Changeset View
Changeset View
Standalone View
Standalone View
src/waylandintegration_p.h
Show All 36 Lines | 36 | namespace KWayland { | |||
---|---|---|---|---|---|
37 | namespace Client { | 37 | namespace Client { | ||
38 | class ConnectionThread; | 38 | class ConnectionThread; | ||
39 | class EventQueue; | 39 | class EventQueue; | ||
40 | class FakeInput; | 40 | class FakeInput; | ||
41 | class Registry; | 41 | class Registry; | ||
42 | class RemoteAccessManager; | 42 | class RemoteAccessManager; | ||
43 | class RemoteBuffer; | 43 | class RemoteBuffer; | ||
44 | class Output; | 44 | class Output; | ||
45 | class PlasmaWindow; | ||||
46 | class PlasmaWindowManagement; | ||||
45 | } | 47 | } | ||
46 | } | 48 | } | ||
47 | 49 | | |||
48 | namespace WaylandIntegration | 50 | namespace WaylandIntegration | ||
49 | { | 51 | { | ||
50 | 52 | | |||
51 | class WaylandIntegrationPrivate : public WaylandIntegration::WaylandIntegration | 53 | class WaylandIntegrationPrivate : public WaylandIntegration::WaylandIntegration | ||
52 | { | 54 | { | ||
Show All 22 Lines | 56 | public: | |||
75 | void stopStreaming(); | 77 | void stopStreaming(); | ||
76 | 78 | | |||
77 | void requestPointerButtonPress(quint32 linuxButton); | 79 | void requestPointerButtonPress(quint32 linuxButton); | ||
78 | void requestPointerButtonRelease(quint32 linuxButton); | 80 | void requestPointerButtonRelease(quint32 linuxButton); | ||
79 | void requestPointerMotion(const QSizeF &delta); | 81 | void requestPointerMotion(const QSizeF &delta); | ||
80 | void requestPointerMotionAbsolute(const QPointF &pos); | 82 | void requestPointerMotionAbsolute(const QPointF &pos); | ||
81 | void requestPointerAxisDiscrete(Qt::Orientation axis, qreal delta); | 83 | void requestPointerAxisDiscrete(Qt::Orientation axis, qreal delta); | ||
82 | 84 | | |||
85 | KWayland::Client::PlasmaWindowManagement *plasmaWindowManagement(); | ||||
83 | QMap<quint32, WaylandOutput> screens(); | 86 | QMap<quint32, WaylandOutput> screens(); | ||
84 | QVariant streams(); | 87 | QVariant streams(); | ||
85 | 88 | | |||
86 | protected Q_SLOTS: | 89 | protected Q_SLOTS: | ||
87 | void addOutput(quint32 name, quint32 version); | 90 | void addOutput(quint32 name, quint32 version); | ||
88 | void removeOutput(quint32 name); | 91 | void removeOutput(quint32 name); | ||
89 | void processBuffer(const KWayland::Client::RemoteBuffer *rbuf); | 92 | void processBuffer(const KWayland::Client::RemoteBuffer *rbuf); | ||
90 | void setupRegistry(); | 93 | void setupRegistry(); | ||
91 | 94 | | |||
92 | private: | 95 | private: | ||
93 | bool m_eglInitialized; | 96 | bool m_eglInitialized = false; | ||
94 | bool m_streamingEnabled; | 97 | bool m_streamingEnabled = false; | ||
95 | bool m_streamInput = false; | 98 | bool m_streamInput = false; | ||
96 | bool m_registryInitialized; | 99 | bool m_registryInitialized = false; | ||
97 | bool m_waylandAuthenticationRequested; | 100 | bool m_waylandAuthenticationRequested = false; | ||
98 | 101 | | |||
99 | quint32 m_output; | 102 | quint32 m_output; | ||
100 | QDateTime m_lastFrameTime; | 103 | QDateTime m_lastFrameTime; | ||
101 | ScreenCastStream *m_stream; | 104 | ScreenCastStream *m_stream = nullptr; | ||
102 | 105 | | |||
103 | QThread *m_thread; | 106 | QThread *m_thread = nullptr; | ||
104 | 107 | | |||
105 | QPoint m_streamedScreenPosition; | 108 | QPoint m_streamedScreenPosition; | ||
106 | 109 | | |||
107 | QMap<quint32, WaylandOutput> m_outputMap; | 110 | QMap<quint32, WaylandOutput> m_outputMap; | ||
108 | QList<KWayland::Client::Output*> m_bindOutputs; | 111 | QList<KWayland::Client::Output*> m_bindOutputs; | ||
109 | 112 | | |||
110 | KWayland::Client::ConnectionThread *m_connection; | 113 | KWayland::Client::ConnectionThread *m_connection = nullptr; | ||
111 | KWayland::Client::EventQueue *m_queue; | 114 | KWayland::Client::EventQueue *m_queue = nullptr; | ||
112 | KWayland::Client::FakeInput *m_fakeInput; | 115 | KWayland::Client::FakeInput *m_fakeInput = nullptr; | ||
113 | KWayland::Client::Registry *m_registry; | 116 | KWayland::Client::Registry *m_registry = nullptr; | ||
114 | KWayland::Client::RemoteAccessManager *m_remoteAccessManager; | 117 | KWayland::Client::RemoteAccessManager *m_remoteAccessManager = nullptr; | ||
118 | KWayland::Client::PlasmaWindowManagement *m_windowManagement = nullptr; | ||||
115 | 119 | | |||
116 | qint32 m_drmFd = 0; // for GBM buffer mmap | 120 | qint32 m_drmFd = 0; // for GBM buffer mmap | ||
117 | gbm_device *m_gbmDevice = nullptr; // for passed GBM buffer retrieval | 121 | gbm_device *m_gbmDevice = nullptr; // for passed GBM buffer retrieval | ||
118 | struct { | 122 | struct { | ||
119 | QList<QByteArray> extensions; | 123 | QList<QByteArray> extensions; | ||
120 | EGLDisplay display = EGL_NO_DISPLAY; | 124 | EGLDisplay display = EGL_NO_DISPLAY; | ||
121 | EGLContext context = EGL_NO_CONTEXT; | 125 | EGLContext context = EGL_NO_CONTEXT; | ||
122 | } m_egl; | 126 | } m_egl; | ||
123 | }; | 127 | }; | ||
124 | 128 | | |||
125 | } | 129 | } | ||
126 | 130 | | |||
127 | #endif // XDG_DESKTOP_PORTAL_KDE_WAYLAND_INTEGRATION_P_H | 131 | #endif // XDG_DESKTOP_PORTAL_KDE_WAYLAND_INTEGRATION_P_H | ||
128 | 132 | | |||
129 | 133 | |