Changeset View
Changeset View
Standalone View
Standalone View
src/waylandintegration.h
Show All 29 Lines | |||||
30 | #include <gbm.h> | 30 | #include <gbm.h> | ||
31 | #include <epoxy/egl.h> | 31 | #include <epoxy/egl.h> | ||
32 | #include <epoxy/gl.h> | 32 | #include <epoxy/gl.h> | ||
33 | #endif | 33 | #endif | ||
34 | 34 | | |||
35 | namespace KWayland { | 35 | namespace KWayland { | ||
36 | namespace Client { | 36 | namespace Client { | ||
37 | class PlasmaWindowManagement; | 37 | class PlasmaWindowManagement; | ||
38 | class ScreencastingSource; | ||||
38 | } | 39 | } | ||
39 | } | 40 | } | ||
40 | 41 | | |||
41 | namespace WaylandIntegration | 42 | namespace WaylandIntegration | ||
42 | { | 43 | { | ||
43 | #if HAVE_PIPEWIRE_SUPPORT | 44 | #if HAVE_PIPEWIRE_SUPPORT | ||
44 | struct EGLStruct { | 45 | struct EGLStruct { | ||
45 | QList<QByteArray> extensions; | 46 | QList<QByteArray> extensions; | ||
▲ Show 20 Lines • Show All 57 Lines • ▼ Show 20 Line(s) | 103 | #if HAVE_PIPEWIRE_SUPPORT | |||
103 | const char * formatGLError(GLenum err); | 104 | const char * formatGLError(GLenum err); | ||
104 | 105 | | |||
105 | void authenticate(); | 106 | void authenticate(); | ||
106 | 107 | | |||
107 | bool isEGLInitialized(); | 108 | bool isEGLInitialized(); | ||
108 | bool isStreamingEnabled(); | 109 | bool isStreamingEnabled(); | ||
109 | 110 | | |||
110 | void startStreamingInput(); | 111 | void startStreamingInput(); | ||
111 | bool startStreaming(quint32 outputName); | 112 | bool startStreaming(const KWayland::Client::ScreencastingSource &source); | ||
112 | void stopStreaming(); | 113 | void stopAllStreaming(); | ||
113 | 114 | | |||
114 | void requestPointerButtonPress(quint32 linuxButton); | 115 | void requestPointerButtonPress(quint32 linuxButton); | ||
115 | void requestPointerButtonRelease(quint32 linuxButton); | 116 | void requestPointerButtonRelease(quint32 linuxButton); | ||
116 | void requestPointerMotion(const QSizeF &delta); | 117 | void requestPointerMotion(const QSizeF &delta); | ||
117 | void requestPointerMotionAbsolute(const QPointF &pos); | 118 | void requestPointerMotionAbsolute(const QPointF &pos); | ||
118 | void requestPointerAxisDiscrete(Qt::Orientation axis, qreal delta); | 119 | void requestPointerAxisDiscrete(Qt::Orientation axis, qreal delta); | ||
119 | 120 | | |||
120 | void requestKeyboardKeycode(int keycode, bool state); | 121 | void requestKeyboardKeycode(int keycode, bool state); | ||
121 | 122 | | |||
122 | EGLStruct egl(); | 123 | EGLStruct egl(); | ||
123 | QMap<quint32, WaylandOutput> screens(); | 124 | QMap<quint32, WaylandOutput> screens(); | ||
125 | QVector<KWayland::Client::ScreencastingSource> screencastingSources(); | ||||
124 | QVariant streams(); | 126 | QVariant streams(); | ||
125 | #endif | 127 | #endif | ||
126 | void init(); | 128 | void init(); | ||
127 | 129 | | |||
128 | KWayland::Client::PlasmaWindowManagement *plasmaWindowManagement(); | 130 | KWayland::Client::PlasmaWindowManagement *plasmaWindowManagement(); | ||
129 | 131 | | |||
130 | WaylandIntegration *waylandIntegration(); | 132 | WaylandIntegration *waylandIntegration(); | ||
131 | } | 133 | } | ||
132 | 134 | | |||
133 | #endif // XDG_DESKTOP_PORTAL_KDE_WAYLAND_INTEGRATION_H | 135 | #endif // XDG_DESKTOP_PORTAL_KDE_WAYLAND_INTEGRATION_H | ||
134 | 136 | | |||
135 | 137 | |