diff options
author | Emanoil Kotsev <[email protected]> | 2024-07-03 17:28:32 +0000 |
---|---|---|
committer | Emanoil Kotsev <[email protected]> | 2024-11-09 18:49:26 +0000 |
commit | e9f061202525c70635f22a4e5ebaf7fe75e1d806 (patch) | |
tree | a8d826c1c9a0dc03ae2bf773ab44c38d146adbc2 /src/daemon/NotificationsService.h | |
parent | 7ea09f3f10350e44b8b41566f50449219cf6a4bf (diff) | |
download | kdbusnotification-e9f061202525c70635f22a4e5ebaf7fe75e1d806.tar.gz kdbusnotification-e9f061202525c70635f22a4e5ebaf7fe75e1d806.zip |
Implemented the required features to meet v1.2 of the specs
Signed-off-by: Emanoil Kotsev <[email protected]>
Diffstat (limited to 'src/daemon/NotificationsService.h')
-rw-r--r-- | src/daemon/NotificationsService.h | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/src/daemon/NotificationsService.h b/src/daemon/NotificationsService.h index c461b34..874eda7 100644 --- a/src/daemon/NotificationsService.h +++ b/src/daemon/NotificationsService.h @@ -26,7 +26,6 @@ #ifndef NOTIFICATIONSSERVICE_H_ #define NOTIFICATIONSSERVICE_H_ - #include <tqdbusconnection.h> #include <tqdbusvariant.h> #include <tqstringlist.h> @@ -35,6 +34,9 @@ #include "notificationsInterface.h" #include "NotifyWidget.h" +#define NOTIFICATIONS_DBUS_PATH "/org/freedesktop/Notifications" +#define NOTIFICATIONS_DBUS_SRVC "org.freedesktop.Notifications" + class NotificationsService: public org::freedesktop::NotificationsInterface { public: @@ -50,6 +52,18 @@ protected: // implement sending signals protected: // implement DBus calls + /** + * Capabilities + * + * "body" + * "body-hyperlinks" + * "body-images" + * "body-markup" + * "icon-static" + * "persistence" + * "sound" + * + */ virtual bool GetCapabilities(TQStringList& return_caps, TQT_DBusError& error); virtual void CloseNotificationAsync(int asyncCallId, TQ_UINT32 id); virtual bool ReloadSettings(TQT_DBusError& error); @@ -60,6 +74,7 @@ protected: private: TQT_DBusConnection *mConnection; + TQ_UINT32 mNotificationId; TQMap<TQ_UINT32, NotifyWidget*> notificationMap; }; |