| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
#ifndef QWAYLANDWINDOWMANAGERINTEGRATION_H |
| 6 |
#define QWAYLANDWINDOWMANAGERINTEGRATION_H |
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
|
| 16 |
|
| 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 |