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 PlasmaVirtualDesktopManagementInterface; | 60 | class PlasmaVirtualDesktopManagementInterface; | ||
58 | class PlasmaWindowManagementInterface; | 61 | class PlasmaWindowManagementInterface; | ||
Show All 35 Lines | 96 | KWayland::Server::Display *display() { | |||
94 | return m_display; | 97 | return m_display; | ||
95 | } | 98 | } | ||
96 | KWayland::Server::CompositorInterface *compositor() { | 99 | KWayland::Server::CompositorInterface *compositor() { | ||
97 | return m_compositor; | 100 | return m_compositor; | ||
98 | } | 101 | } | ||
99 | KWayland::Server::SeatInterface *seat() { | 102 | KWayland::Server::SeatInterface *seat() { | ||
100 | return m_seat; | 103 | return m_seat; | ||
101 | } | 104 | } | ||
105 | KWayland::Server::DataDeviceManagerInterface *dataDeviceManager() { | ||||
106 | return m_dataDeviceManager; | ||||
107 | } | ||||
102 | KWayland::Server::ShellInterface *shell() { | 108 | KWayland::Server::ShellInterface *shell() { | ||
103 | return m_shell; | 109 | return m_shell; | ||
104 | } | 110 | } | ||
105 | KWayland::Server::PlasmaVirtualDesktopManagementInterface *virtualDesktopManagement() { | 111 | KWayland::Server::PlasmaVirtualDesktopManagementInterface *virtualDesktopManagement() { | ||
106 | return m_virtualDesktopManagement; | 112 | return m_virtualDesktopManagement; | ||
107 | } | 113 | } | ||
108 | KWayland::Server::PlasmaWindowManagementInterface *windowManagement() { | 114 | KWayland::Server::PlasmaWindowManagementInterface *windowManagement() { | ||
109 | return m_windowManagement; | 115 | return m_windowManagement; | ||
▲ Show 20 Lines • Show All 63 Lines • ▼ Show 20 Line(s) | 178 | KWayland::Server::ClientConnection *internalConnection() const { | |||
173 | return m_internalConnection.server; | 179 | return m_internalConnection.server; | ||
174 | } | 180 | } | ||
175 | KWayland::Server::ClientConnection *screenLockerClientConnection() const { | 181 | KWayland::Server::ClientConnection *screenLockerClientConnection() const { | ||
176 | return m_screenLockerClientConnection; | 182 | return m_screenLockerClientConnection; | ||
177 | } | 183 | } | ||
178 | QPointer<KWayland::Server::DataDeviceInterface> xclipboardSyncDataDevice() const { | 184 | QPointer<KWayland::Server::DataDeviceInterface> xclipboardSyncDataDevice() const { | ||
179 | return m_xclipbaordSync.ddi; | 185 | return m_xclipbaordSync.ddi; | ||
180 | } | 186 | } | ||
187 | KWayland::Client::Seat *internalSeat() { | ||||
188 | return m_internalConnection.seat; | ||||
189 | } | ||||
190 | KWayland::Client::DataDeviceManager *internalDataDeviceManager() { | ||||
191 | return m_internalConnection.ddm; | ||||
192 | } | ||||
181 | KWayland::Client::ShmPool *internalShmPool() { | 193 | KWayland::Client::ShmPool *internalShmPool() { | ||
182 | return m_internalConnection.shm; | 194 | return m_internalConnection.shm; | ||
183 | } | 195 | } | ||
184 | KWayland::Client::ConnectionThread *internalClientConection() { | 196 | KWayland::Client::ConnectionThread *internalClientConection() { | ||
185 | return m_internalConnection.client; | 197 | return m_internalConnection.client; | ||
186 | } | 198 | } | ||
187 | KWayland::Client::Registry *internalClientRegistry() { | 199 | KWayland::Client::Registry *internalClientRegistry() { | ||
188 | return m_internalConnection.registry; | 200 | return m_internalConnection.registry; | ||
Show All 39 Lines | 234 | private: | |||
228 | void destroyInternalConnection(); | 240 | void destroyInternalConnection(); | ||
229 | void configurationChangeRequested(KWayland::Server::OutputConfigurationInterface *config); | 241 | void configurationChangeRequested(KWayland::Server::OutputConfigurationInterface *config); | ||
230 | template <class T> | 242 | template <class T> | ||
231 | void createSurface(T *surface); | 243 | void createSurface(T *surface); | ||
232 | void initScreenLocker(); | 244 | void initScreenLocker(); | ||
233 | KWayland::Server::Display *m_display = nullptr; | 245 | KWayland::Server::Display *m_display = nullptr; | ||
234 | KWayland::Server::CompositorInterface *m_compositor = nullptr; | 246 | KWayland::Server::CompositorInterface *m_compositor = nullptr; | ||
235 | KWayland::Server::SeatInterface *m_seat = nullptr; | 247 | KWayland::Server::SeatInterface *m_seat = nullptr; | ||
248 | KWayland::Server::DataDeviceManagerInterface *m_dataDeviceManager = nullptr; | ||||
236 | KWayland::Server::ShellInterface *m_shell = nullptr; | 249 | KWayland::Server::ShellInterface *m_shell = nullptr; | ||
237 | KWayland::Server::XdgShellInterface *m_xdgShell5 = nullptr; | 250 | KWayland::Server::XdgShellInterface *m_xdgShell5 = nullptr; | ||
238 | KWayland::Server::XdgShellInterface *m_xdgShell6 = nullptr; | 251 | KWayland::Server::XdgShellInterface *m_xdgShell6 = nullptr; | ||
239 | KWayland::Server::XdgShellInterface *m_xdgShell = nullptr; | 252 | KWayland::Server::XdgShellInterface *m_xdgShell = nullptr; | ||
240 | KWayland::Server::PlasmaShellInterface *m_plasmaShell = nullptr; | 253 | KWayland::Server::PlasmaShellInterface *m_plasmaShell = nullptr; | ||
241 | KWayland::Server::PlasmaWindowManagementInterface *m_windowManagement = nullptr; | 254 | KWayland::Server::PlasmaWindowManagementInterface *m_windowManagement = nullptr; | ||
242 | KWayland::Server::PlasmaVirtualDesktopManagementInterface *m_virtualDesktopManagement = nullptr; | 255 | KWayland::Server::PlasmaVirtualDesktopManagementInterface *m_virtualDesktopManagement = nullptr; | ||
243 | KWayland::Server::QtSurfaceExtensionInterface *m_qtExtendedSurface = nullptr; | 256 | KWayland::Server::QtSurfaceExtensionInterface *m_qtExtendedSurface = nullptr; | ||
Show All 10 Lines | |||||
254 | } m_xwayland; | 267 | } m_xwayland; | ||
255 | KWayland::Server::ClientConnection *m_inputMethodServerConnection = nullptr; | 268 | KWayland::Server::ClientConnection *m_inputMethodServerConnection = nullptr; | ||
256 | KWayland::Server::ClientConnection *m_screenLockerClientConnection = nullptr; | 269 | KWayland::Server::ClientConnection *m_screenLockerClientConnection = nullptr; | ||
257 | struct { | 270 | struct { | ||
258 | KWayland::Server::ClientConnection *server = nullptr; | 271 | KWayland::Server::ClientConnection *server = nullptr; | ||
259 | KWayland::Client::ConnectionThread *client = nullptr; | 272 | KWayland::Client::ConnectionThread *client = nullptr; | ||
260 | QThread *clientThread = nullptr; | 273 | QThread *clientThread = nullptr; | ||
261 | KWayland::Client::Registry *registry = nullptr; | 274 | KWayland::Client::Registry *registry = nullptr; | ||
275 | KWayland::Client::Seat *seat = nullptr; | ||||
276 | KWayland::Client::DataDeviceManager *ddm = nullptr; | ||||
262 | KWayland::Client::ShmPool *shm = nullptr; | 277 | KWayland::Client::ShmPool *shm = nullptr; | ||
263 | bool interfacesAnnounced = false; | 278 | bool interfacesAnnounced = false; | ||
264 | 279 | | |||
265 | } m_internalConnection; | 280 | } m_internalConnection; | ||
266 | struct { | 281 | struct { | ||
267 | QProcess *process = nullptr; | 282 | QProcess *process = nullptr; | ||
268 | KWayland::Server::ClientConnection *client = nullptr; | 283 | KWayland::Server::ClientConnection *client = nullptr; | ||
269 | QPointer<KWayland::Server::DataDeviceInterface> ddi; | 284 | QPointer<KWayland::Server::DataDeviceInterface> ddi; | ||
Show All 19 Lines |