Changeset View
Changeset View
Standalone View
Standalone View
src/server/plasmashell_interface.cpp
Show First 20 Lines • Show All 44 Lines • ▼ Show 20 Line(s) | 43 | private: | |||
---|---|---|---|---|---|
45 | void bind(wl_client *client, uint32_t version, uint32_t id) override; | 45 | void bind(wl_client *client, uint32_t version, uint32_t id) override; | ||
46 | void createSurface(wl_client *client, uint32_t version, uint32_t id, SurfaceInterface *surface, wl_resource *parentResource); | 46 | void createSurface(wl_client *client, uint32_t version, uint32_t id, SurfaceInterface *surface, wl_resource *parentResource); | ||
47 | 47 | | |||
48 | PlasmaShellInterface *q; | 48 | PlasmaShellInterface *q; | ||
49 | static const struct org_kde_plasma_shell_interface s_interface; | 49 | static const struct org_kde_plasma_shell_interface s_interface; | ||
50 | static const quint32 s_version; | 50 | static const quint32 s_version; | ||
51 | }; | 51 | }; | ||
52 | 52 | | |||
53 | const quint32 PlasmaShellInterface::Private::s_version = 5; | 53 | const quint32 PlasmaShellInterface::Private::s_version = 6; | ||
54 | 54 | | |||
55 | PlasmaShellInterface::Private::Private(PlasmaShellInterface *q, Display *d) | 55 | PlasmaShellInterface::Private::Private(PlasmaShellInterface *q, Display *d) | ||
56 | : Global::Private(d, &org_kde_plasma_shell_interface, s_version) | 56 | : Global::Private(d, &org_kde_plasma_shell_interface, s_version) | ||
57 | , q(q) | 57 | , q(q) | ||
58 | { | 58 | { | ||
59 | } | 59 | } | ||
60 | 60 | | |||
61 | #ifndef DOXYGEN_SHOULD_SKIP_THIS | 61 | #ifndef DOXYGEN_SHOULD_SKIP_THIS | ||
▲ Show 20 Lines • Show All 185 Lines • ▼ Show 20 Line(s) | 246 | case ORG_KDE_PLASMA_SURFACE_ROLE_ONSCREENDISPLAY: | |||
247 | r = Role::OnScreenDisplay; | 247 | r = Role::OnScreenDisplay; | ||
248 | break; | 248 | break; | ||
249 | case ORG_KDE_PLASMA_SURFACE_ROLE_NOTIFICATION: | 249 | case ORG_KDE_PLASMA_SURFACE_ROLE_NOTIFICATION: | ||
250 | r = Role::Notification; | 250 | r = Role::Notification; | ||
251 | break; | 251 | break; | ||
252 | case ORG_KDE_PLASMA_SURFACE_ROLE_TOOLTIP: | 252 | case ORG_KDE_PLASMA_SURFACE_ROLE_TOOLTIP: | ||
253 | r = Role::ToolTip; | 253 | r = Role::ToolTip; | ||
254 | break; | 254 | break; | ||
255 | case ORG_KDE_PLASMA_SURFACE_ROLE_CRITICALNOTIFICATION: | ||||
256 | r = Role::CriticalNotification; | ||||
257 | break; | ||||
255 | case ORG_KDE_PLASMA_SURFACE_ROLE_NORMAL: | 258 | case ORG_KDE_PLASMA_SURFACE_ROLE_NORMAL: | ||
256 | default: | 259 | default: | ||
257 | r = Role::Normal; | 260 | r = Role::Normal; | ||
258 | break; | 261 | break; | ||
259 | } | 262 | } | ||
260 | if (r == m_role) { | 263 | if (r == m_role) { | ||
261 | return; | 264 | return; | ||
262 | } | 265 | } | ||
▲ Show 20 Lines • Show All 149 Lines • Show Last 20 Lines |