Changeset View
Changeset View
Standalone View
Standalone View
src/server/idleinhibit_interface_v1.cpp
Show First 20 Lines • Show All 42 Lines • ▼ Show 20 Line(s) | 34 | private: | |||
---|---|---|---|---|---|
43 | static void createInhibitorCallback(wl_client *client, wl_resource *resource, uint32_t id, wl_resource * surface); | 43 | static void createInhibitorCallback(wl_client *client, wl_resource *resource, uint32_t id, wl_resource * surface); | ||
44 | 44 | | |||
45 | static const struct zwp_idle_inhibit_manager_v1_interface s_interface; | 45 | static const struct zwp_idle_inhibit_manager_v1_interface s_interface; | ||
46 | static const quint32 s_version; | 46 | static const quint32 s_version; | ||
47 | }; | 47 | }; | ||
48 | 48 | | |||
49 | const quint32 IdleInhibitManagerUnstableV1Interface::Private::s_version = 1; | 49 | const quint32 IdleInhibitManagerUnstableV1Interface::Private::s_version = 1; | ||
50 | 50 | | |||
51 | #ifndef DOXYGEN_SHOULD_SKIP_THIS | 51 | #ifndef K_DOXYGEN | ||
52 | const struct zwp_idle_inhibit_manager_v1_interface IdleInhibitManagerUnstableV1Interface::Private::s_interface = { | 52 | const struct zwp_idle_inhibit_manager_v1_interface IdleInhibitManagerUnstableV1Interface::Private::s_interface = { | ||
53 | destroyCallback, | 53 | destroyCallback, | ||
54 | createInhibitorCallback | 54 | createInhibitorCallback | ||
55 | }; | 55 | }; | ||
56 | #endif | 56 | #endif | ||
57 | 57 | | |||
58 | IdleInhibitManagerUnstableV1Interface::Private::Private(IdleInhibitManagerUnstableV1Interface *q, Display *d) | 58 | IdleInhibitManagerUnstableV1Interface::Private::Private(IdleInhibitManagerUnstableV1Interface *q, Display *d) | ||
59 | : IdleInhibitManagerInterface::Private(q, d, &zwp_idle_inhibit_manager_v1_interface, s_version, IdleInhibitManagerInterfaceVersion::UnstableV1) | 59 | : IdleInhibitManagerInterface::Private(q, d, &zwp_idle_inhibit_manager_v1_interface, s_version, IdleInhibitManagerInterfaceVersion::UnstableV1) | ||
Show All 39 Lines | |||||
99 | 99 | | |||
100 | IdleInhibitManagerUnstableV1Interface::IdleInhibitManagerUnstableV1Interface(Display *display, QObject *parent) | 100 | IdleInhibitManagerUnstableV1Interface::IdleInhibitManagerUnstableV1Interface(Display *display, QObject *parent) | ||
101 | : IdleInhibitManagerInterface(new Private(this, display), parent) | 101 | : IdleInhibitManagerInterface(new Private(this, display), parent) | ||
102 | { | 102 | { | ||
103 | } | 103 | } | ||
104 | 104 | | |||
105 | IdleInhibitManagerUnstableV1Interface::~IdleInhibitManagerUnstableV1Interface() = default; | 105 | IdleInhibitManagerUnstableV1Interface::~IdleInhibitManagerUnstableV1Interface() = default; | ||
106 | 106 | | |||
107 | #ifndef DOXYGEN_SHOULD_SKIP_THIS | 107 | #ifndef K_DOXYGEN | ||
108 | const struct zwp_idle_inhibitor_v1_interface IdleInhibitorInterface::Private::s_interface = { | 108 | const struct zwp_idle_inhibitor_v1_interface IdleInhibitorInterface::Private::s_interface = { | ||
109 | resourceDestroyedCallback | 109 | resourceDestroyedCallback | ||
110 | }; | 110 | }; | ||
111 | #endif | 111 | #endif | ||
112 | 112 | | |||
113 | IdleInhibitorInterface::Private::Private(IdleInhibitorInterface *q, IdleInhibitManagerInterface *c, wl_resource *parentResource) | 113 | IdleInhibitorInterface::Private::Private(IdleInhibitorInterface *q, IdleInhibitManagerInterface *c, wl_resource *parentResource) | ||
114 | : Resource::Private(q, c, parentResource, &zwp_idle_inhibitor_v1_interface, &s_interface) | 114 | : Resource::Private(q, c, parentResource, &zwp_idle_inhibitor_v1_interface, &s_interface) | ||
115 | { | 115 | { | ||
Show All 24 Lines |