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 | #pragma once |
5 | |
6 | #include "qxcbexport.h" |
7 | #include <QtCore/qplugin.h> |
8 | #include <QtCore/qfactoryinterface.h> |
9 | |
10 | QT_BEGIN_NAMESPACE |
11 | |
12 | #define QXcbGlIntegrationFactoryInterface_iid "org.qt-project.Qt.QPA.Xcb.QXcbGlIntegrationFactoryInterface.5.5" |
13 | |
14 | class QXcbGlIntegration; |
15 | |
16 | class Q_XCB_EXPORT QXcbGlIntegrationPlugin : public QObject |
17 | { |
18 | Q_OBJECT |
19 | public: |
20 | explicit QXcbGlIntegrationPlugin(QObject *parent = nullptr) |
21 | : QObject(parent) |
22 | { } |
23 | |
24 | virtual QXcbGlIntegration *create() = 0; |
25 | // the pattern expected by qLoadPlugin calls for a QString argument. |
26 | // we don't need it, so don't bother subclasses with it: |
27 | QXcbGlIntegration *create(const QString &) { return create(); } |
28 | }; |
29 | QT_END_NAMESPACE |
30 |