1// Copyright (C) 2020 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
3
4#ifndef QWLHWINTEGRATION_P_H
5#define QWLHWINTEGRATION_P_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 <QtWaylandCompositor/private/qwayland-server-hardware-integration.h>
19
20#include <QtWaylandCompositor/QWaylandCompositorExtension>
21
22#include <QtCore/QString>
23#include <QtCore/private/qglobal_p.h>
24
25QT_BEGIN_NAMESPACE
26
27class QWaylandCompositor;
28
29namespace QtWayland {
30
31class HardwareIntegration : public QWaylandCompositorExtensionTemplate<HardwareIntegration>, public QtWaylandServer::qt_hardware_integration
32{
33public:
34 HardwareIntegration(QWaylandCompositor *compositor);
35
36 void setClientBufferIntegrationName(const QString &name);
37 void setServerBufferIntegrationName(const QString &name);
38
39protected:
40 void hardware_integration_bind_resource(Resource *resource) override;
41
42private:
43 QString m_client_buffer_integration_name;
44 QString m_server_buffer_integration_name;
45};
46
47}
48
49QT_END_NAMESPACE
50#endif
51

source code of qtwayland/src/compositor/hardware_integration/qwlhwintegration_p.h