1 | // Copyright (C) 2019 The Qt Company Ltd. |
2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only |
3 | |
4 | #ifndef QWAYLANDCLIENTBUFFERINTEGRATIONPLUGIN_H |
5 | #define QWAYLANDCLIENTBUFFERINTEGRATIONPLUGIN_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/qtwaylandcompositorglobal.h> |
19 | |
20 | #include <QtCore/qplugin.h> |
21 | #include <QtCore/qfactoryinterface.h> |
22 | #include <QtCore/private/qglobal_p.h> |
23 | |
24 | QT_BEGIN_NAMESPACE |
25 | |
26 | namespace QtWayland { |
27 | |
28 | class ClientBufferIntegration; |
29 | |
30 | #define QtWaylandClientBufferIntegrationFactoryInterface_iid "org.qt-project.Qt.WaylandCompositor.QtWaylandClientBufferIntegrationFactoryInterface.5.3" |
31 | |
32 | class Q_WAYLANDCOMPOSITOR_EXPORT ClientBufferIntegrationPlugin : public QObject |
33 | { |
34 | Q_OBJECT |
35 | public: |
36 | explicit ClientBufferIntegrationPlugin(QObject *parent = nullptr); |
37 | ~ClientBufferIntegrationPlugin() override; |
38 | |
39 | virtual ClientBufferIntegration *create(const QString &key, const QStringList ¶mList) = 0; |
40 | }; |
41 | |
42 | } |
43 | |
44 | QT_END_NAMESPACE |
45 | |
46 | #endif // QWAYLANDCLIENTBUFFERINTEGRATIONPLUGIN_H |
47 | |