Changeset View
Changeset View
Standalone View
Standalone View
waylandserver.h
Show All 15 Lines | |||||
16 | 16 | | |||
17 | You should have received a copy of the GNU General Public License | 17 | You should have received a copy of the GNU General Public License | ||
18 | along with this program. If not, see <http://www.gnu.org/licenses/>. | 18 | along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
19 | *********************************************************************/ | 19 | *********************************************************************/ | ||
20 | #ifndef SCREENLOCKER_WAYLANDSERVER_H | 20 | #ifndef SCREENLOCKER_WAYLANDSERVER_H | ||
21 | #define SCREENLOCKER_WAYLANDSERVER_H | 21 | #define SCREENLOCKER_WAYLANDSERVER_H | ||
22 | 22 | | |||
23 | #include <QObject> | 23 | #include <QObject> | ||
24 | #include <QMap> | ||||
24 | 25 | | |||
25 | struct wl_client; | 26 | struct wl_client; | ||
26 | struct wl_global; | 27 | struct wl_global; | ||
27 | struct wl_resource; | 28 | struct wl_resource; | ||
28 | 29 | | |||
29 | namespace KWayland | 30 | namespace KWayland | ||
30 | { | 31 | { | ||
31 | namespace Server | 32 | namespace Server | ||
Show All 16 Lines | 45 | public: | |||
48 | void stop(); | 49 | void stop(); | ||
49 | 50 | | |||
50 | Q_SIGNALS: | 51 | Q_SIGNALS: | ||
51 | void x11WindowAdded(quint32 window); | 52 | void x11WindowAdded(quint32 window); | ||
52 | 53 | | |||
53 | private Q_SLOTS: | 54 | private Q_SLOTS: | ||
54 | void osdProgress(const QString &icon, int percent, const QString &additionalText); | 55 | void osdProgress(const QString &icon, int percent, const QString &additionalText); | ||
55 | void osdText(const QString &icon, const QString &additionalText); | 56 | void osdText(const QString &icon, const QString &additionalText); | ||
57 | void notify(uint id, const QString &appName, uint &replacesId, | ||||
58 | const QString &appIcon, const QString &summary, const QString &body, | ||||
59 | const QStringList &actions, const QVariantMap &hints, int timeout); | ||||
56 | 60 | | |||
57 | private: | 61 | private: | ||
58 | static void bind(wl_client *client, void *data, uint32_t version, uint32_t id); | 62 | static void bind(wl_client *client, void *data, uint32_t version, uint32_t id); | ||
59 | static void unbind(wl_resource *resource); | 63 | static void unbind(wl_resource *resource); | ||
60 | static void x11WindowCallback(wl_client *client, wl_resource *resource, uint32_t id); | 64 | static void x11WindowCallback(wl_client *client, wl_resource *resource, uint32_t id); | ||
61 | static void suspendSystemCallback(wl_client *client, wl_resource *resource); | 65 | static void suspendSystemCallback(wl_client *client, wl_resource *resource); | ||
62 | static void hibernateSystemCallback(wl_client *client, wl_resource *resource); | 66 | static void hibernateSystemCallback(wl_client *client, wl_resource *resource); | ||
63 | void addResource(wl_resource *r); | 67 | void addResource(wl_resource *r); | ||
Show All 12 Lines |