Changeset View
Changeset View
Standalone View
Standalone View
wayland_server.h
Show First 20 Lines • Show All 43 Lines • ▼ Show 20 Line(s) | |||||
44 | namespace Server | 44 | namespace Server | ||
45 | { | 45 | { | ||
46 | class AppMenuManagerInterface; | 46 | class AppMenuManagerInterface; | ||
47 | class ClientConnection; | 47 | class ClientConnection; | ||
48 | class CompositorInterface; | 48 | class CompositorInterface; | ||
49 | class Display; | 49 | class Display; | ||
50 | class DataDeviceInterface; | 50 | class DataDeviceInterface; | ||
51 | class IdleInterface; | 51 | class IdleInterface; | ||
52 | class InputMethodInterface; | ||||
53 | class InputPanelInterface; | ||||
54 | class InputPanelSurfaceInterface; | ||||
52 | class SeatInterface; | 55 | class SeatInterface; | ||
53 | class DataDeviceManagerInterface; | 56 | class DataDeviceManagerInterface; | ||
54 | class ServerSideDecorationManagerInterface; | 57 | class ServerSideDecorationManagerInterface; | ||
55 | class ServerSideDecorationPaletteManagerInterface; | 58 | class ServerSideDecorationPaletteManagerInterface; | ||
56 | class SurfaceInterface; | 59 | class SurfaceInterface; | ||
57 | class OutputInterface; | 60 | class OutputInterface; | ||
58 | class PlasmaShellInterface; | 61 | class PlasmaShellInterface; | ||
59 | class PlasmaShellSurfaceInterface; | 62 | class PlasmaShellSurfaceInterface; | ||
▲ Show 20 Lines • Show All 56 Lines • ▼ Show 20 Line(s) | 88 | public: | |||
116 | } | 119 | } | ||
117 | KWayland::Server::ServerSideDecorationManagerInterface *decorationManager() const { | 120 | KWayland::Server::ServerSideDecorationManagerInterface *decorationManager() const { | ||
118 | return m_decorationManager; | 121 | return m_decorationManager; | ||
119 | } | 122 | } | ||
120 | KWayland::Server::XdgOutputManagerInterface *xdgOutputManager() const { | 123 | KWayland::Server::XdgOutputManagerInterface *xdgOutputManager() const { | ||
121 | return m_xdgOutputManager; | 124 | return m_xdgOutputManager; | ||
122 | } | 125 | } | ||
123 | KWayland::Server::LinuxDmabufUnstableV1Interface *linuxDmabuf(); | 126 | KWayland::Server::LinuxDmabufUnstableV1Interface *linuxDmabuf(); | ||
127 | KWayland::Server::InputMethodInterface *inputMethod() const { | ||||
128 | return m_inputMethod; | ||||
129 | } | ||||
130 | KWayland::Server::InputPanelInterface *inputPanel() const { | ||||
131 | return m_inputPanel; | ||||
132 | } | ||||
124 | 133 | | |||
125 | QList<XdgShellClient *> clients() const { | 134 | QList<XdgShellClient *> clients() const { | ||
126 | return m_clients; | 135 | return m_clients; | ||
127 | } | 136 | } | ||
128 | void removeClient(XdgShellClient *c); | 137 | void removeClient(XdgShellClient *c); | ||
129 | XdgShellClient *findClient(quint32 id) const; | 138 | XdgShellClient *findClient(quint32 id) const; | ||
130 | XdgShellClient *findClient(KWayland::Server::SurfaceInterface *surface) const; | 139 | XdgShellClient *findClient(KWayland::Server::SurfaceInterface *surface) const; | ||
131 | AbstractClient *findAbstractClient(KWayland::Server::SurfaceInterface *surface) const; | 140 | AbstractClient *findAbstractClient(KWayland::Server::SurfaceInterface *surface) const; | ||
▲ Show 20 Lines • Show All 91 Lines • ▼ Show 20 Line(s) | 231 | QSet<KWayland::Server::LinuxDmabufUnstableV1Buffer*> linuxDmabufBuffers() const { | |||
223 | return m_linuxDmabufBuffers; | 232 | return m_linuxDmabufBuffers; | ||
224 | } | 233 | } | ||
225 | void addLinuxDmabufBuffer(KWayland::Server::LinuxDmabufUnstableV1Buffer *buffer) { | 234 | void addLinuxDmabufBuffer(KWayland::Server::LinuxDmabufUnstableV1Buffer *buffer) { | ||
226 | m_linuxDmabufBuffers << buffer; | 235 | m_linuxDmabufBuffers << buffer; | ||
227 | } | 236 | } | ||
228 | void removeLinuxDmabufBuffer(KWayland::Server::LinuxDmabufUnstableV1Buffer *buffer) { | 237 | void removeLinuxDmabufBuffer(KWayland::Server::LinuxDmabufUnstableV1Buffer *buffer) { | ||
229 | m_linuxDmabufBuffers.remove(buffer); | 238 | m_linuxDmabufBuffers.remove(buffer); | ||
230 | } | 239 | } | ||
240 | AbstractClient *createInputPanelSurface(KWayland::Server::InputPanelSurfaceInterface *surface); | ||||
zzag: s/createInputPanelSurface/createInputPanelClient/ | |||||
231 | 241 | | |||
232 | Q_SIGNALS: | 242 | Q_SIGNALS: | ||
233 | void shellClientAdded(KWin::XdgShellClient *); | 243 | void shellClientAdded(KWin::XdgShellClient *); | ||
234 | void shellClientRemoved(KWin::XdgShellClient *); | 244 | void shellClientRemoved(KWin::XdgShellClient *); | ||
235 | void terminatingInternalClientConnection(); | 245 | void terminatingInternalClientConnection(); | ||
236 | void initialized(); | 246 | void initialized(); | ||
237 | void foreignTransientChanged(KWayland::Server::SurfaceInterface *child); | 247 | void foreignTransientChanged(KWayland::Server::SurfaceInterface *child); | ||
238 | 248 | | |||
Show All 16 Lines | 249 | private: | |||
255 | KWayland::Server::ServerSideDecorationManagerInterface *m_decorationManager = nullptr; | 265 | KWayland::Server::ServerSideDecorationManagerInterface *m_decorationManager = nullptr; | ||
256 | KWayland::Server::OutputManagementInterface *m_outputManagement = nullptr; | 266 | KWayland::Server::OutputManagementInterface *m_outputManagement = nullptr; | ||
257 | KWayland::Server::AppMenuManagerInterface *m_appMenuManager = nullptr; | 267 | KWayland::Server::AppMenuManagerInterface *m_appMenuManager = nullptr; | ||
258 | KWayland::Server::ServerSideDecorationPaletteManagerInterface *m_paletteManager = nullptr; | 268 | KWayland::Server::ServerSideDecorationPaletteManagerInterface *m_paletteManager = nullptr; | ||
259 | KWayland::Server::IdleInterface *m_idle = nullptr; | 269 | KWayland::Server::IdleInterface *m_idle = nullptr; | ||
260 | KWayland::Server::XdgOutputManagerInterface *m_xdgOutputManager = nullptr; | 270 | KWayland::Server::XdgOutputManagerInterface *m_xdgOutputManager = nullptr; | ||
261 | KWayland::Server::XdgDecorationManagerInterface *m_xdgDecorationManager = nullptr; | 271 | KWayland::Server::XdgDecorationManagerInterface *m_xdgDecorationManager = nullptr; | ||
262 | KWayland::Server::LinuxDmabufUnstableV1Interface *m_linuxDmabuf = nullptr; | 272 | KWayland::Server::LinuxDmabufUnstableV1Interface *m_linuxDmabuf = nullptr; | ||
273 | KWayland::Server::InputMethodInterface* m_inputMethod = nullptr; | ||||
274 | KWayland::Server::InputPanelInterface* m_inputPanel = nullptr; | ||||
263 | QSet<KWayland::Server::LinuxDmabufUnstableV1Buffer*> m_linuxDmabufBuffers; | 275 | QSet<KWayland::Server::LinuxDmabufUnstableV1Buffer*> m_linuxDmabufBuffers; | ||
264 | struct { | 276 | struct { | ||
265 | KWayland::Server::ClientConnection *client = nullptr; | 277 | KWayland::Server::ClientConnection *client = nullptr; | ||
266 | QMetaObject::Connection destroyConnection; | 278 | QMetaObject::Connection destroyConnection; | ||
267 | } m_xwayland; | 279 | } m_xwayland; | ||
268 | KWayland::Server::ClientConnection *m_inputMethodServerConnection = nullptr; | 280 | KWayland::Server::ClientConnection *m_inputMethodServerConnection = nullptr; | ||
269 | KWayland::Server::ClientConnection *m_screenLockerClientConnection = nullptr; | 281 | KWayland::Server::ClientConnection *m_screenLockerClientConnection = nullptr; | ||
270 | struct { | 282 | struct { | ||
Show All 29 Lines |
s/createInputPanelSurface/createInputPanelClient/