Changeset View
Changeset View
Standalone View
Standalone View
src/server/dpms_interface.cpp
Show All 22 Lines | |||||
23 | 23 | | |||
24 | namespace KWayland | 24 | namespace KWayland | ||
25 | { | 25 | { | ||
26 | namespace Server | 26 | namespace Server | ||
27 | { | 27 | { | ||
28 | 28 | | |||
29 | const quint32 DpmsManagerInterface::Private::s_version = 1; | 29 | const quint32 DpmsManagerInterface::Private::s_version = 1; | ||
30 | 30 | | |||
31 | #ifndef DOXYGEN_SHOULD_SKIP_THIS | 31 | #ifndef K_DOXYGEN | ||
32 | const struct org_kde_kwin_dpms_manager_interface DpmsManagerInterface::Private::s_interface = { | 32 | const struct org_kde_kwin_dpms_manager_interface DpmsManagerInterface::Private::s_interface = { | ||
33 | getDpmsCallback | 33 | getDpmsCallback | ||
34 | }; | 34 | }; | ||
35 | #endif | 35 | #endif | ||
36 | 36 | | |||
37 | DpmsManagerInterface::Private::Private(DpmsManagerInterface *qptr, Display *d) | 37 | DpmsManagerInterface::Private::Private(DpmsManagerInterface *qptr, Display *d) | ||
38 | : Global::Private(d, &org_kde_kwin_dpms_manager_interface, s_version) | 38 | : Global::Private(d, &org_kde_kwin_dpms_manager_interface, s_version) | ||
39 | , q(qptr) | 39 | , q(qptr) | ||
Show All 30 Lines | |||||
70 | DpmsManagerInterface::DpmsManagerInterface(Display *display, QObject *parent) | 70 | DpmsManagerInterface::DpmsManagerInterface(Display *display, QObject *parent) | ||
71 | : Global(new Private(this, display), parent) | 71 | : Global(new Private(this, display), parent) | ||
72 | { | 72 | { | ||
73 | } | 73 | } | ||
74 | 74 | | |||
75 | DpmsManagerInterface::~DpmsManagerInterface() = default; | 75 | DpmsManagerInterface::~DpmsManagerInterface() = default; | ||
76 | 76 | | |||
77 | 77 | | |||
78 | #ifndef DOXYGEN_SHOULD_SKIP_THIS | 78 | #ifndef K_DOXYGEN | ||
79 | const struct org_kde_kwin_dpms_interface DpmsInterface::Private::s_interface = { | 79 | const struct org_kde_kwin_dpms_interface DpmsInterface::Private::s_interface = { | ||
80 | setCallback, | 80 | setCallback, | ||
81 | resourceDestroyedCallback | 81 | resourceDestroyedCallback | ||
82 | }; | 82 | }; | ||
83 | #endif | 83 | #endif | ||
84 | 84 | | |||
85 | DpmsInterface::Private::Private(DpmsInterface *q, DpmsManagerInterface *g, wl_resource *parentResource, OutputInterface *outputInterface) | 85 | DpmsInterface::Private::Private(DpmsInterface *q, DpmsManagerInterface *g, wl_resource *parentResource, OutputInterface *outputInterface) | ||
86 | : Resource::Private(q, g, parentResource, &org_kde_kwin_dpms_interface, &s_interface) | 86 | : Resource::Private(q, g, parentResource, &org_kde_kwin_dpms_interface, &s_interface) | ||
▲ Show 20 Lines • Show All 90 Lines • Show Last 20 Lines |