Top | ![]() |
![]() |
![]() |
![]() |
#define | NOTIFICATIONS_SCHEMA_ID |
#define | NOTIFICATIONS_KEY_SHOW_BANNERS |
#define | NOTIFICATIONS_KEY_APP_CHILDREN |
#define | NOTIFICATIONS_APP_SCHEMA_ID |
#define | NOTIFICATIONS_APP_PREFIX |
#define | NOTIFICATIONS_APP_KEY_SHOW_BANNERS |
#define | NOTIFICATIONS_APP_KEY_APP_ID |
#define | PHOSH_TYPE_NOTIFY_MANAGER |
PhoshNotifyManager |
GObject ╰── GDBusInterfaceSkeleton ╰── PhoshNotifyDBusNotificationsSkeleton ╰── PhoshNotifyManager
PhoshNotifyManager implements GDBusInterface and PhoshNotifyDBusNotifications.
PhoshNotifyManager manages notifications sent from the shell iself and via the org.freedesktop.Notification DBus interface. See https://developer.gnome.org/notification-spec/
It maintains a list of notifications via a PhoshNotificationList.
PhoshNotificationList *
phosh_notify_manager_get_list (PhoshNotifyManager *self
);
Get the PhoshNotificationList of current notifications
gboolean
phosh_notify_manager_get_show_banners (PhoshNotifyManager *self
);
Are notififcation banners enabled
guint
phosh_notify_manager_get_notification_id
(PhoshNotifyManager *self
);
Get a notification id
void phosh_notify_manager_add_notification (PhoshNotifyManager *self
,const gchar *source_id
,int expire_timeout
,PhoshNotification *notification
);
Adds notification
to the current list of notifications.
gboolean phosh_notify_manager_close_notification_by_id (PhoshNotifyManager *self
,int id
,PhoshNotificationReason reason
);
void phosh_notify_manager_close_all_notifications (PhoshNotifyManager *self
,PhoshNotificationReason reaseon
);
gboolean phosh_notify_manager_get_show_notification_banner (PhoshNotifyManager *self
,PhoshNotification *notification
);
#define NOTIFICATIONS_APP_SCHEMA_ID NOTIFICATIONS_SCHEMA_ID ".application"
#define NOTIFICATIONS_APP_PREFIX "/org/gnome/desktop/notifications/application"
“new-notification”
signalvoid user_function (PhoshNotifyManager *self, PhoshNotification *notification, gpointer user_data)
Emitted when a new notification is received and a banner should (possibly) be shown
self |
||
notification |
the new PhoshNotification |
|
user_data |
user data set when the signal handler was connected. |
Flags: Run Last
“notification-activated”
signalvoid user_function (PhoshNotifyManager *self, PhoshNotification *notification, gpointer user_data)
Emitted when the action on a notification gets activated.
Flags: Run Last