Debian Codegraph @

wayland/qtwayland-dev/5.15.1/QtWaylandClient/private/qwaylandwindowmanagerintegration_p.h

raw symbols SCIP
1 // Copyright (C) 2016 The Qt Company Ltd.
2 //
3 // SPDX-License-Identifier: LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
4
5 #ifndef QWAYLANDWINDOWMANAGERINTEGRATION_H
6 #define QWAYLANDWINDOWMANAGERINTEGRATION_H
7
8 //
9 // W A R N I N G
10 // -------------
11 //
12 // This file is not part of the Qt API. It exists purely as an
13 // implementation detail. This header file may change from version to
14 // version without notice, or even be removed.
15 //
16 // We mean it.
17 //
18
19 #include <QtCore/QObject>
20 #include <QtCore/QScopedPointer>
21
22 #include <wayland-client.h>
23 #include <QtServiceSupport/private/qgenericunixservices_p.h>
24
25 #include <QtWaylandClient/private/qwayland-qt-windowmanager.h>
26 #include <QtWaylandClient/qtwaylandclientglobal.h>
27
28 QT_BEGIN_NAMESPACE
29
30 namespace QtWaylandClient {
31
32 class QWaylandWindow;
33 class QWaylandDisplay;
34
35 class QWaylandWindowManagerIntegrationPrivate;
36
37 class Q_WAYLAND_CLIENT_EXPORT QWaylandWindowManagerIntegration : public QObject, public QGenericUnixServices, public QtWayland::qt_windowmanager
38 {
39 Q_OBJECT
40 Q_DECLARE_PRIVATE(QWaylandWindowManagerIntegration)
41 public:
42 explicit QWaylandWindowManagerIntegration(QWaylandDisplay *waylandDisplay);
43 ~QWaylandWindowManagerIntegration() override;
44
45 bool openUrl(const QUrl &url) override;
46 bool openDocument(const QUrl &url) override;
47
48 bool showIsFullScreen() const;
49
50 private:
51 static void wlHandleListenerGlobal(void *data, wl_registry *registry, uint32_t id,
52 const QString &interface, uint32_t version);
53
54 QScopedPointer<QWaylandWindowManagerIntegrationPrivate> d_ptr;
55
56 void windowmanager_hints(int32_t showIsFullScreen) override;
57 void windowmanager_quit() override;
58
59 void openUrl_helper(const QUrl &url);
60 };
61
62 QT_END_NAMESPACE
63
64 }
65
66 #endif // QWAYLANDWINDOWMANAGERINTEGRATION_H