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