Changeset View
Changeset View
Standalone View
Standalone View
wayland_server.h
Show All 29 Lines | |||||
30 | class QWindow; | 30 | class QWindow; | ||
31 | 31 | | |||
32 | namespace KWayland | 32 | namespace KWayland | ||
33 | { | 33 | { | ||
34 | namespace Client | 34 | namespace Client | ||
35 | { | 35 | { | ||
36 | class ConnectionThread; | 36 | class ConnectionThread; | ||
37 | class Registry; | 37 | class Registry; | ||
38 | class Seat; | ||||
39 | class DataDeviceManager; | ||||
38 | class ShmPool; | 40 | class ShmPool; | ||
39 | class Surface; | 41 | class Surface; | ||
40 | } | 42 | } | ||
41 | namespace Server | 43 | namespace Server | ||
42 | { | 44 | { | ||
43 | class AppMenuManagerInterface; | 45 | class AppMenuManagerInterface; | ||
44 | class ClientConnection; | 46 | class ClientConnection; | ||
45 | class CompositorInterface; | 47 | class CompositorInterface; | ||
46 | class Display; | 48 | class Display; | ||
47 | class DataDeviceInterface; | 49 | class DataDeviceInterface; | ||
48 | class IdleInterface; | 50 | class IdleInterface; | ||
49 | class ShellInterface; | 51 | class ShellInterface; | ||
50 | class SeatInterface; | 52 | class SeatInterface; | ||
53 | class DataDeviceManagerInterface; | ||||
51 | class ServerSideDecorationManagerInterface; | 54 | class ServerSideDecorationManagerInterface; | ||
52 | class ServerSideDecorationPaletteManagerInterface; | 55 | class ServerSideDecorationPaletteManagerInterface; | ||
53 | class SurfaceInterface; | 56 | class SurfaceInterface; | ||
54 | class OutputInterface; | 57 | class OutputInterface; | ||
55 | class PlasmaShellInterface; | 58 | class PlasmaShellInterface; | ||
56 | class PlasmaShellSurfaceInterface; | 59 | class PlasmaShellSurfaceInterface; | ||
57 | class PlasmaWindowManagementInterface; | 60 | class PlasmaWindowManagementInterface; | ||
58 | class QtSurfaceExtensionInterface; | 61 | class QtSurfaceExtensionInterface; | ||
Show All 32 Lines | 93 | KWayland::Server::Display *display() { | |||
91 | return m_display; | 94 | return m_display; | ||
92 | } | 95 | } | ||
93 | KWayland::Server::CompositorInterface *compositor() { | 96 | KWayland::Server::CompositorInterface *compositor() { | ||
94 | return m_compositor; | 97 | return m_compositor; | ||
95 | } | 98 | } | ||
96 | KWayland::Server::SeatInterface *seat() { | 99 | KWayland::Server::SeatInterface *seat() { | ||
97 | return m_seat; | 100 | return m_seat; | ||
98 | } | 101 | } | ||
102 | KWayland::Server::DataDeviceManagerInterface *dataDeviceManager() { | ||||
103 | return m_dataDeviceManager; | ||||
104 | } | ||||
99 | KWayland::Server::ShellInterface *shell() { | 105 | KWayland::Server::ShellInterface *shell() { | ||
100 | return m_shell; | 106 | return m_shell; | ||
101 | } | 107 | } | ||
102 | KWayland::Server::PlasmaWindowManagementInterface *windowManagement() { | 108 | KWayland::Server::PlasmaWindowManagementInterface *windowManagement() { | ||
103 | return m_windowManagement; | 109 | return m_windowManagement; | ||
104 | } | 110 | } | ||
105 | KWayland::Server::ServerSideDecorationManagerInterface *decorationManager() const { | 111 | KWayland::Server::ServerSideDecorationManagerInterface *decorationManager() const { | ||
106 | return m_decorationManager; | 112 | return m_decorationManager; | ||
▲ Show 20 Lines • Show All 55 Lines • ▼ Show 20 Line(s) | 167 | KWayland::Server::ClientConnection *internalConnection() const { | |||
162 | return m_internalConnection.server; | 168 | return m_internalConnection.server; | ||
163 | } | 169 | } | ||
164 | KWayland::Server::ClientConnection *screenLockerClientConnection() const { | 170 | KWayland::Server::ClientConnection *screenLockerClientConnection() const { | ||
165 | return m_screenLockerClientConnection; | 171 | return m_screenLockerClientConnection; | ||
166 | } | 172 | } | ||
167 | QPointer<KWayland::Server::DataDeviceInterface> xclipboardSyncDataDevice() const { | 173 | QPointer<KWayland::Server::DataDeviceInterface> xclipboardSyncDataDevice() const { | ||
168 | return m_xclipbaordSync.ddi; | 174 | return m_xclipbaordSync.ddi; | ||
169 | } | 175 | } | ||
176 | KWayland::Client::Seat *internalSeat() { | ||||
177 | return m_internalConnection.seat; | ||||
178 | } | ||||
179 | KWayland::Client::DataDeviceManager *internalDataDeviceManager() { | ||||
180 | return m_internalConnection.ddm; | ||||
181 | } | ||||
170 | KWayland::Client::ShmPool *internalShmPool() { | 182 | KWayland::Client::ShmPool *internalShmPool() { | ||
171 | return m_internalConnection.shm; | 183 | return m_internalConnection.shm; | ||
172 | } | 184 | } | ||
173 | KWayland::Client::ConnectionThread *internalClientConection() { | 185 | KWayland::Client::ConnectionThread *internalClientConection() { | ||
174 | return m_internalConnection.client; | 186 | return m_internalConnection.client; | ||
175 | } | 187 | } | ||
176 | KWayland::Client::Registry *internalClientRegistry() { | 188 | KWayland::Client::Registry *internalClientRegistry() { | ||
177 | return m_internalConnection.registry; | 189 | return m_internalConnection.registry; | ||
Show All 38 Lines | 222 | private: | |||
216 | void destroyInternalConnection(); | 228 | void destroyInternalConnection(); | ||
217 | void configurationChangeRequested(KWayland::Server::OutputConfigurationInterface *config); | 229 | void configurationChangeRequested(KWayland::Server::OutputConfigurationInterface *config); | ||
218 | template <class T> | 230 | template <class T> | ||
219 | void createSurface(T *surface); | 231 | void createSurface(T *surface); | ||
220 | void initScreenLocker(); | 232 | void initScreenLocker(); | ||
221 | KWayland::Server::Display *m_display = nullptr; | 233 | KWayland::Server::Display *m_display = nullptr; | ||
222 | KWayland::Server::CompositorInterface *m_compositor = nullptr; | 234 | KWayland::Server::CompositorInterface *m_compositor = nullptr; | ||
223 | KWayland::Server::SeatInterface *m_seat = nullptr; | 235 | KWayland::Server::SeatInterface *m_seat = nullptr; | ||
236 | KWayland::Server::DataDeviceManagerInterface *m_dataDeviceManager = nullptr; | ||||
224 | KWayland::Server::ShellInterface *m_shell = nullptr; | 237 | KWayland::Server::ShellInterface *m_shell = nullptr; | ||
225 | KWayland::Server::XdgShellInterface *m_xdgShell = nullptr; | 238 | KWayland::Server::XdgShellInterface *m_xdgShell = nullptr; | ||
226 | KWayland::Server::XdgShellInterface *m_xdgShell6 = nullptr; | 239 | KWayland::Server::XdgShellInterface *m_xdgShell6 = nullptr; | ||
227 | KWayland::Server::PlasmaShellInterface *m_plasmaShell = nullptr; | 240 | KWayland::Server::PlasmaShellInterface *m_plasmaShell = nullptr; | ||
228 | KWayland::Server::PlasmaWindowManagementInterface *m_windowManagement = nullptr; | 241 | KWayland::Server::PlasmaWindowManagementInterface *m_windowManagement = nullptr; | ||
229 | KWayland::Server::QtSurfaceExtensionInterface *m_qtExtendedSurface = nullptr; | 242 | KWayland::Server::QtSurfaceExtensionInterface *m_qtExtendedSurface = nullptr; | ||
230 | KWayland::Server::ServerSideDecorationManagerInterface *m_decorationManager = nullptr; | 243 | KWayland::Server::ServerSideDecorationManagerInterface *m_decorationManager = nullptr; | ||
231 | KWayland::Server::OutputManagementInterface *m_outputManagement = nullptr; | 244 | KWayland::Server::OutputManagementInterface *m_outputManagement = nullptr; | ||
232 | KWayland::Server::AppMenuManagerInterface *m_appMenuManager = nullptr; | 245 | KWayland::Server::AppMenuManagerInterface *m_appMenuManager = nullptr; | ||
233 | KWayland::Server::ServerSideDecorationPaletteManagerInterface *m_paletteManager = nullptr; | 246 | KWayland::Server::ServerSideDecorationPaletteManagerInterface *m_paletteManager = nullptr; | ||
234 | KWayland::Server::IdleInterface *m_idle = nullptr; | 247 | KWayland::Server::IdleInterface *m_idle = nullptr; | ||
235 | KWayland::Server::XdgOutputManagerInterface *m_xdgOutputManager = nullptr; | 248 | KWayland::Server::XdgOutputManagerInterface *m_xdgOutputManager = nullptr; | ||
236 | struct { | 249 | struct { | ||
237 | KWayland::Server::ClientConnection *client = nullptr; | 250 | KWayland::Server::ClientConnection *client = nullptr; | ||
238 | QMetaObject::Connection destroyConnection; | 251 | QMetaObject::Connection destroyConnection; | ||
239 | } m_xwayland; | 252 | } m_xwayland; | ||
240 | KWayland::Server::ClientConnection *m_inputMethodServerConnection = nullptr; | 253 | KWayland::Server::ClientConnection *m_inputMethodServerConnection = nullptr; | ||
241 | KWayland::Server::ClientConnection *m_screenLockerClientConnection = nullptr; | 254 | KWayland::Server::ClientConnection *m_screenLockerClientConnection = nullptr; | ||
242 | struct { | 255 | struct { | ||
243 | KWayland::Server::ClientConnection *server = nullptr; | 256 | KWayland::Server::ClientConnection *server = nullptr; | ||
244 | KWayland::Client::ConnectionThread *client = nullptr; | 257 | KWayland::Client::ConnectionThread *client = nullptr; | ||
245 | QThread *clientThread = nullptr; | 258 | QThread *clientThread = nullptr; | ||
246 | KWayland::Client::Registry *registry = nullptr; | 259 | KWayland::Client::Registry *registry = nullptr; | ||
260 | KWayland::Client::Seat *seat = nullptr; | ||||
261 | KWayland::Client::DataDeviceManager *ddm = nullptr; | ||||
247 | KWayland::Client::ShmPool *shm = nullptr; | 262 | KWayland::Client::ShmPool *shm = nullptr; | ||
248 | bool interfacesAnnounced = false; | 263 | bool interfacesAnnounced = false; | ||
249 | 264 | | |||
250 | } m_internalConnection; | 265 | } m_internalConnection; | ||
251 | struct { | 266 | struct { | ||
252 | QProcess *process = nullptr; | 267 | QProcess *process = nullptr; | ||
253 | KWayland::Server::ClientConnection *client = nullptr; | 268 | KWayland::Server::ClientConnection *client = nullptr; | ||
254 | QPointer<KWayland::Server::DataDeviceInterface> ddi; | 269 | QPointer<KWayland::Server::DataDeviceInterface> ddi; | ||
Show All 19 Lines |