1 | // Copyright (C) 2017 The Qt Company Ltd. |
2 | // Copyright (C) 2017 Pier Luigi Fiorini <pierluigi.fiorini@gmail.com> |
3 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only |
4 | |
5 | #ifndef QWAYLANDQTWINDOWMANAGER_P_H |
6 | #define QWAYLANDQTWINDOWMANAGER_P_H |
7 | |
8 | #include <QtCore/QMap> |
9 | |
10 | #include <QtWaylandCompositor/QWaylandQtWindowManager> |
11 | #include <QtWaylandCompositor/private/qwaylandcompositorextension_p.h> |
12 | #include <QtWaylandCompositor/private/qwayland-server-qt-windowmanager.h> |
13 | |
14 | // |
15 | // W A R N I N G |
16 | // ------------- |
17 | // |
18 | // This file is not part of the Qt API. It exists purely as an |
19 | // implementation detail. This header file may change from version to |
20 | // version without notice, or even be removed. |
21 | // |
22 | // We mean it. |
23 | // |
24 | |
25 | QT_BEGIN_NAMESPACE |
26 | |
27 | class Q_WAYLANDCOMPOSITOR_EXPORT QWaylandQtWindowManagerPrivate |
28 | : public QWaylandCompositorExtensionPrivate |
29 | , public QtWaylandServer::qt_windowmanager |
30 | { |
31 | Q_DECLARE_PUBLIC(QWaylandQtWindowManager) |
32 | public: |
33 | QWaylandQtWindowManagerPrivate(); |
34 | |
35 | protected: |
36 | void windowmanager_bind_resource(Resource *resource) override; |
37 | void windowmanager_destroy_resource(Resource *resource) override; |
38 | void windowmanager_open_url(Resource *resource, uint32_t remaining, const QString &url) override; |
39 | |
40 | private: |
41 | bool showIsFullScreen = false; |
42 | QMap<Resource*, QString> urls; |
43 | }; |
44 | |
45 | QT_END_NAMESPACE |
46 | |
47 | #endif // QWAYLANDQTWINDOWMANAGER_P_H |
48 | |