| 1 | // Copyright (C) 2022 David Reondo <kde@david-redondo.de> | 
| 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 QWAYLANDXDGEXPORTERV2_H | 
| 5 | #define QWAYLANDXDGEXPORTERV2_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 <qwayland-xdg-foreign-unstable-v2.h> | 
| 19 |  | 
| 20 | #include <QtWaylandClient/qtwaylandclientglobal.h> | 
| 21 |  | 
| 22 | QT_BEGIN_NAMESPACE | 
| 23 |  | 
| 24 | namespace QtWaylandClient { | 
| 25 |  | 
| 26 | class QWaylandXdgExportedV2 : public QtWayland::zxdg_exported_v2 | 
| 27 | { | 
| 28 | public: | 
| 29 |     explicit QWaylandXdgExportedV2(::zxdg_exported_v2 *object); | 
| 30 |     ~QWaylandXdgExportedV2() override; | 
| 31 |     QString handle() const; | 
| 32 |  | 
| 33 | private: | 
| 34 |     void zxdg_exported_v2_handle(const QString &handle) override; | 
| 35 |     QString mHandle; | 
| 36 | }; | 
| 37 |  | 
| 38 | class QWaylandXdgExporterV2 : public QtWayland::zxdg_exporter_v2 | 
| 39 | { | 
| 40 | public: | 
| 41 |     QWaylandXdgExporterV2(wl_registry *registry, uint32_t id, int version); | 
| 42 |     ~QWaylandXdgExporterV2() override; | 
| 43 | }; | 
| 44 |  | 
| 45 | } | 
| 46 |  | 
| 47 | QT_END_NAMESPACE | 
| 48 |  | 
| 49 | #endif // QWAYLANDXDGEXPORTERV2_H | 
| 50 |  |