| 1 | // Copyright (C) 2021 The Qt Company Ltd. | 
| 2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only | 
| 3 |  | 
| 4 | #ifndef QWAYLANDQTSHELLINTEGRATION_H | 
| 5 | #define QWAYLANDQTSHELLINTEGRATION_H | 
| 6 |  | 
| 7 | #include <QtWaylandCompositor/private/qwaylandquickshellsurfaceitem_p.h> | 
| 8 |  | 
| 9 | #include "qwaylandqtshell.h" | 
| 10 |  | 
| 11 | QT_BEGIN_NAMESPACE | 
| 12 |  | 
| 13 | // | 
| 14 | //  W A R N I N G | 
| 15 | //  ------------- | 
| 16 | // | 
| 17 | // This file is not part of the Qt API.  It exists purely as an | 
| 18 | // implementation detail.  This header file may change from version to | 
| 19 | // version without notice, or even be removed. | 
| 20 | // | 
| 21 | // We mean it. | 
| 22 | // | 
| 23 |  | 
| 24 | namespace QtWayland { | 
| 25 |  | 
| 26 | class QtShellIntegration : public QWaylandQuickShellIntegration | 
| 27 | { | 
| 28 |     Q_OBJECT | 
| 29 | public: | 
| 30 |     QtShellIntegration(QWaylandQuickShellSurfaceItem *item); | 
| 31 |     ~QtShellIntegration() override; | 
| 32 |  | 
| 33 | private Q_SLOTS: | 
| 34 |     void handleQtShellSurfaceDestroyed(); | 
| 35 |  | 
| 36 | private: | 
| 37 |     QWaylandQuickShellSurfaceItem *m_item = nullptr; | 
| 38 |     QWaylandQtShellSurface *m_shellSurface = nullptr; | 
| 39 | }; | 
| 40 |  | 
| 41 | } | 
| 42 |  | 
| 43 | QT_END_NAMESPACE | 
| 44 |  | 
| 45 | #endif // QWAYLANDQTSHELLINTEGRATION_H | 
| 46 |  |