Changeset View
Changeset View
Standalone View
Standalone View
src/waylandintegration.h
Show All 20 Lines | |||||
21 | #ifndef XDG_DESKTOP_PORTAL_KDE_WAYLAND_INTEGRATION_H | 21 | #ifndef XDG_DESKTOP_PORTAL_KDE_WAYLAND_INTEGRATION_H | ||
22 | #define XDG_DESKTOP_PORTAL_KDE_WAYLAND_INTEGRATION_H | 22 | #define XDG_DESKTOP_PORTAL_KDE_WAYLAND_INTEGRATION_H | ||
23 | 23 | | |||
24 | #include <QObject> | 24 | #include <QObject> | ||
25 | #include <QPoint> | 25 | #include <QPoint> | ||
26 | #include <QSize> | 26 | #include <QSize> | ||
27 | #include <QVariant> | 27 | #include <QVariant> | ||
28 | 28 | | |||
29 | namespace KWayland { | ||||
30 | namespace Client { | ||||
31 | class PlasmaWindowManagement; | ||||
32 | } | ||||
33 | } | ||||
29 | 34 | | |||
30 | namespace WaylandIntegration | 35 | namespace WaylandIntegration | ||
31 | { | 36 | { | ||
32 | 37 | | |||
33 | class WaylandOutput | 38 | class WaylandOutput | ||
34 | { | 39 | { | ||
35 | public: | 40 | public: | ||
36 | enum OutputType { | 41 | enum OutputType { | ||
Show All 34 Lines | 67 | private: | |||
71 | int m_waylandOutputVersion; | 76 | int m_waylandOutputVersion; | ||
72 | }; | 77 | }; | ||
73 | 78 | | |||
74 | class WaylandIntegration : public QObject | 79 | class WaylandIntegration : public QObject | ||
75 | { | 80 | { | ||
76 | Q_OBJECT | 81 | Q_OBJECT | ||
77 | Q_SIGNALS: | 82 | Q_SIGNALS: | ||
78 | void newBuffer(uint8_t *screenData); | 83 | void newBuffer(uint8_t *screenData); | ||
84 | void plasmaWindowManagementInitialized(); | ||||
79 | }; | 85 | }; | ||
80 | 86 | | |||
81 | void authenticate(); | 87 | void authenticate(); | ||
82 | void init(); | 88 | void init(); | ||
83 | 89 | | |||
84 | bool isEGLInitialized(); | 90 | bool isEGLInitialized(); | ||
85 | bool isStreamingEnabled(); | 91 | bool isStreamingEnabled(); | ||
86 | 92 | | |||
87 | void startStreamingInput(); | 93 | void startStreamingInput(); | ||
88 | bool startStreaming(quint32 outputName); | 94 | bool startStreaming(quint32 outputName); | ||
89 | void stopStreaming(); | 95 | void stopStreaming(); | ||
90 | 96 | | |||
91 | void requestPointerButtonPress(quint32 linuxButton); | 97 | void requestPointerButtonPress(quint32 linuxButton); | ||
92 | void requestPointerButtonRelease(quint32 linuxButton); | 98 | void requestPointerButtonRelease(quint32 linuxButton); | ||
93 | void requestPointerMotion(const QSizeF &delta); | 99 | void requestPointerMotion(const QSizeF &delta); | ||
94 | void requestPointerMotionAbsolute(const QPointF &pos); | 100 | void requestPointerMotionAbsolute(const QPointF &pos); | ||
95 | void requestPointerAxisDiscrete(Qt::Orientation axis, qreal delta); | 101 | void requestPointerAxisDiscrete(Qt::Orientation axis, qreal delta); | ||
96 | 102 | | |||
103 | KWayland::Client::PlasmaWindowManagement *plasmaWindowManagement(); | ||||
97 | QMap<quint32, WaylandOutput> screens(); | 104 | QMap<quint32, WaylandOutput> screens(); | ||
98 | QVariant streams(); | 105 | QVariant streams(); | ||
99 | 106 | | |||
100 | WaylandIntegration *waylandIntegration(); | 107 | WaylandIntegration *waylandIntegration(); | ||
101 | 108 | | |||
102 | } | 109 | } | ||
103 | 110 | | |||
104 | #endif // XDG_DESKTOP_PORTAL_KDE_WAYLAND_INTEGRATION_H | 111 | #endif // XDG_DESKTOP_PORTAL_KDE_WAYLAND_INTEGRATION_H | ||
105 | 112 | | |||
106 | 113 | |