Changeset View
Changeset View
Standalone View
Standalone View
waylandserver.h
Show First 20 Lines • Show All 52 Lines • ▼ Show 20 Line(s) | |||||
53 | private Q_SLOTS: | 53 | private Q_SLOTS: | ||
54 | void osdProgress(const QString &icon, int percent, const QString &additionalText); | 54 | void osdProgress(const QString &icon, int percent, const QString &additionalText); | ||
55 | void osdText(const QString &icon, const QString &additionalText); | 55 | void osdText(const QString &icon, const QString &additionalText); | ||
56 | 56 | | |||
57 | private: | 57 | private: | ||
58 | static void bind(wl_client *client, void *data, uint32_t version, uint32_t id); | 58 | static void bind(wl_client *client, void *data, uint32_t version, uint32_t id); | ||
59 | static void unbind(wl_resource *resource); | 59 | static void unbind(wl_resource *resource); | ||
60 | static void x11WindowCallback(wl_client *client, wl_resource *resource, uint32_t id); | 60 | static void x11WindowCallback(wl_client *client, wl_resource *resource, uint32_t id); | ||
61 | static void suspendSystemCallback(wl_client *client, wl_resource *resource); | ||||
62 | static void hibernateSystemCallback(wl_client *client, wl_resource *resource); | ||||
61 | void addResource(wl_resource *r); | 63 | void addResource(wl_resource *r); | ||
62 | void removeResource(wl_resource *r); | 64 | void removeResource(wl_resource *r); | ||
65 | void sendCanSuspend(); | ||||
66 | void sendCanHibernate(); | ||||
63 | QScopedPointer<KWayland::Server::Display> m_display; | 67 | QScopedPointer<KWayland::Server::Display> m_display; | ||
64 | KWayland::Server::ClientConnection *m_allowedClient = nullptr; | 68 | KWayland::Server::ClientConnection *m_allowedClient = nullptr; | ||
65 | wl_global *m_interface = nullptr; | 69 | wl_global *m_interface = nullptr; | ||
66 | QList<wl_resource*> m_resources; | 70 | QList<wl_resource*> m_resources; | ||
67 | }; | 71 | }; | ||
68 | 72 | | |||
69 | } | 73 | } | ||
70 | 74 | | |||
71 | #endif | 75 | #endif |