1// Copyright (C) 2016 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3
4#include "qwaylandhardwareintegration_p.h"
5
6#include "qwaylanddisplay_p.h"
7QT_BEGIN_NAMESPACE
8
9namespace QtWaylandClient {
10
11QWaylandHardwareIntegration::QWaylandHardwareIntegration(struct ::wl_registry *registry, int id)
12 : qt_hardware_integration(registry, id, 1)
13{
14}
15
16QString QWaylandHardwareIntegration::clientBufferIntegration()
17{
18 return m_client_buffer;
19}
20
21QString QWaylandHardwareIntegration::serverBufferIntegration()
22{
23 return m_server_buffer;
24}
25
26void QWaylandHardwareIntegration::hardware_integration_client_backend(const QString &name)
27{
28 m_client_buffer = name;
29}
30
31void QWaylandHardwareIntegration::hardware_integration_server_backend(const QString &name)
32{
33 m_server_buffer = name;
34}
35
36}
37
38QT_END_NAMESPACE
39

source code of qtwayland/src/client/hardwareintegration/qwaylandhardwareintegration.cpp