1 /****************************************************************************
2 **
3 ** Copyright (C) 2017 The Qt Company Ltd.
4 ** Copyright (C) 2017 Pier Luigi Fiorini <pierluigi.fiorini@gmail.com>
5 ** Contact: https://www.qt.io/licensing/
6 **
7 ** This file is part of the QtWaylandCompositor module of the Qt Toolkit.
8 **
9 ** $QT_BEGIN_LICENSE:GPL$
10 ** Commercial License Usage
11 ** Licensees holding valid commercial Qt licenses may use this file in
12 ** accordance with the commercial license agreement provided with the
13 ** Software or, alternatively, in accordance with the terms contained in
14 ** a written agreement between you and The Qt Company. For licensing terms
15 ** and conditions see https://www.qt.io/terms-conditions. For further
16 ** information use the contact form at https://www.qt.io/contact-us.
17 **
18 ** GNU General Public License Usage
19 ** Alternatively, this file may be used under the terms of the GNU
20 ** General Public License version 3 or (at your option) any later version
21 ** approved by the KDE Free Qt Foundation. The licenses are as published by
22 ** the Free Software Foundation and appearing in the file LICENSE.GPL3
23 ** included in the packaging of this file. Please review the following
24 ** information to ensure the GNU General Public License requirements will
25 ** be met: https://www.gnu.org/licenses/gpl-3.0.html.
26 **
27 ** $QT_END_LICENSE$
28 **
29 ****************************************************************************/
30 
31 #ifndef QWAYLANDQTWINDOWMANAGER_P_H
32 #define QWAYLANDQTWINDOWMANAGER_P_H
33 
34 #include <QtCore/QMap>
35 
36 #include <QtWaylandCompositor/QWaylandQtWindowManager>
37 #include <QtWaylandCompositor/private/qwaylandcompositorextension_p.h>
38 #include <QtWaylandCompositor/private/qwayland-server-qt-windowmanager.h>
39 
40 //
41 //  W A R N I N G
42 //  -------------
43 //
44 // This file is not part of the Qt API.  It exists purely as an
45 // implementation detail.  This header file may change from version to
46 // version without notice, or even be removed.
47 //
48 // We mean it.
49 //
50 
51 QT_BEGIN_NAMESPACE
52 
53 class Q_WAYLAND_COMPOSITOR_EXPORT QWaylandQtWindowManagerPrivate
54         : public QWaylandCompositorExtensionPrivate
55         , public QtWaylandServer::qt_windowmanager
56 {
57     Q_DECLARE_PUBLIC(QWaylandQtWindowManager)
58 public:
59     QWaylandQtWindowManagerPrivate();
60 
61 protected:
62     void windowmanager_bind_resource(Resource *resource) override;
63     void windowmanager_destroy_resource(Resource *resource) override;
64     void windowmanager_open_url(Resource *resource, uint32_t remaining, const QString &url) override;
65 
66 private:
67     bool showIsFullScreen = false;
68     QMap<Resource*, QString> urls;
69 };
70 
71 QT_END_NAMESPACE
72 
73 #endif // QWAYLANDQTWINDOWMANAGER_P_H
74