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
11QT_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
24namespace QtWayland {
25
26class QtShellIntegration : public QWaylandQuickShellIntegration
27{
28 Q_OBJECT
29public:
30 QtShellIntegration(QWaylandQuickShellSurfaceItem *item);
31 ~QtShellIntegration() override;
32
33private Q_SLOTS:
34 void handleQtShellSurfaceDestroyed();
35
36private:
37 QWaylandQuickShellSurfaceItem *m_item = nullptr;
38 QWaylandQtShellSurface *m_shellSurface = nullptr;
39};
40
41}
42
43QT_END_NAMESPACE
44
45#endif // QWAYLANDQTSHELLINTEGRATION_H
46

source code of qtwayland/src/imports/compositor-extensions/qtshell/qwaylandqtshellintegration_p.h