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#ifndef QWAYLANDHARDWAREINTEGRATION_H
5#define QWAYLANDHARDWAREINTEGRATION_H
6
7//
8// W A R N I N G
9// -------------
10//
11// This file is not part of the Qt API. It exists purely as an
12// implementation detail. This header file may change from version to
13// version without notice, or even be removed.
14//
15// We mean it.
16//
17
18#include <QtWaylandClient/private/qwayland-hardware-integration.h>
19#include <QtWaylandClient/qtwaylandclientglobal.h>
20#include <QtCore/private/qglobal_p.h>
21
22QT_BEGIN_NAMESPACE
23
24namespace QtWaylandClient {
25
26class QWaylandDisplay;
27
28class Q_WAYLANDCLIENT_EXPORT QWaylandHardwareIntegration : public QtWayland::qt_hardware_integration
29{
30public:
31 QWaylandHardwareIntegration(struct ::wl_registry *registry, int id);
32
33 QString clientBufferIntegration();
34 QString serverBufferIntegration();
35
36protected:
37 void hardware_integration_client_backend(const QString &name) override;
38 void hardware_integration_server_backend(const QString &name) override;
39
40private:
41 QString m_client_buffer;
42 QString m_server_buffer;
43};
44
45}
46
47QT_END_NAMESPACE
48
49#endif
50

source code of qtwayland/src/client/hardwareintegration/qwaylandhardwareintegration_p.h