Changeset View
Changeset View
Standalone View
Standalone View
src/server/appmenu_interface.cpp
Show First 20 Lines • Show All 49 Lines • ▼ Show 20 Line(s) | 41 | private: | |||
---|---|---|---|---|---|
50 | 50 | | |||
51 | AppMenuManagerInterface *q; | 51 | AppMenuManagerInterface *q; | ||
52 | static const struct org_kde_kwin_appmenu_manager_interface s_interface; | 52 | static const struct org_kde_kwin_appmenu_manager_interface s_interface; | ||
53 | static const quint32 s_version; | 53 | static const quint32 s_version; | ||
54 | }; | 54 | }; | ||
55 | 55 | | |||
56 | const quint32 AppMenuManagerInterface::Private::s_version = 1; | 56 | const quint32 AppMenuManagerInterface::Private::s_version = 1; | ||
57 | 57 | | |||
58 | #ifndef DOXYGEN_SHOULD_SKIP_THIS | 58 | #ifndef K_DOXYGEN | ||
59 | const struct org_kde_kwin_appmenu_manager_interface AppMenuManagerInterface::Private::s_interface = { | 59 | const struct org_kde_kwin_appmenu_manager_interface AppMenuManagerInterface::Private::s_interface = { | ||
60 | createCallback | 60 | createCallback | ||
61 | }; | 61 | }; | ||
62 | #endif | 62 | #endif | ||
63 | 63 | | |||
64 | void AppMenuManagerInterface::Private::createCallback(wl_client *client, wl_resource *resource, uint32_t id, wl_resource * surface) | 64 | void AppMenuManagerInterface::Private::createCallback(wl_client *client, wl_resource *resource, uint32_t id, wl_resource * surface) | ||
65 | { | 65 | { | ||
66 | auto p = reinterpret_cast<Private*>(wl_resource_get_user_data(resource)); | 66 | auto p = reinterpret_cast<Private*>(wl_resource_get_user_data(resource)); | ||
▲ Show 20 Lines • Show All 55 Lines • ▼ Show 20 Line(s) | 120 | private: | |||
122 | 122 | | |||
123 | AppMenuInterface *q_func() { | 123 | AppMenuInterface *q_func() { | ||
124 | return reinterpret_cast<AppMenuInterface *>(q); | 124 | return reinterpret_cast<AppMenuInterface *>(q); | ||
125 | } | 125 | } | ||
126 | static AppMenuInterface *get(SurfaceInterface *s); | 126 | static AppMenuInterface *get(SurfaceInterface *s); | ||
127 | static const struct org_kde_kwin_appmenu_interface s_interface; | 127 | static const struct org_kde_kwin_appmenu_interface s_interface; | ||
128 | }; | 128 | }; | ||
129 | 129 | | |||
130 | #ifndef DOXYGEN_SHOULD_SKIP_THIS | 130 | #ifndef K_DOXYGEN | ||
131 | const struct org_kde_kwin_appmenu_interface AppMenuInterface::Private::s_interface = { | 131 | const struct org_kde_kwin_appmenu_interface AppMenuInterface::Private::s_interface = { | ||
132 | setAddressCallback, | 132 | setAddressCallback, | ||
133 | resourceDestroyedCallback | 133 | resourceDestroyedCallback | ||
134 | }; | 134 | }; | ||
135 | #endif | 135 | #endif | ||
136 | 136 | | |||
137 | void AppMenuInterface::Private::setAddressCallback(wl_client *client, wl_resource *resource, const char * service_name, const char * object_path) | 137 | void AppMenuInterface::Private::setAddressCallback(wl_client *client, wl_resource *resource, const char * service_name, const char * object_path) | ||
138 | { | 138 | { | ||
▲ Show 20 Lines • Show All 78 Lines • Show Last 20 Lines |