DBus support and implementation of the Desktop Notifications Specification.
reason
The reasons according to the notification spec.
Notification type definitions.
int queues_notification_insert(struct notification *n)
Insert a fully initialized notification into queues.
void queues_notification_remove_id(gint id, enum reason reason)
Remove the notification that has n->id == id.
unsigned int queues_length_waiting(void)
Returns the current amount of notifications, which are waiting to get displayed.
void queues_notification_remove(struct notification *n, enum reason reason)
Remove the given notification from all queues.
void queues_init(void)
Initialise necessary queues.
GList * queues_get_displayed(void)
Receive the current list of displayed notifications.
void queues_history_pop(void)
Pushes the latest notification of history to the displayed queue and removes it from history.
void queues_teardown(void)
Remove all notifications from all list and free the notifications.
void queues_notification_close(struct notification *n, enum reason reason)
Close the given notification.
gint64 queues_get_next_datachange(gint64 time)
Calculate the distance to the next event, when an element in the queues changes.
void queues_reapply_all_rules(void)
Reapply all rules to the queue (used when reloading configs)
guint queues_history_clear(void)
Removes all notifications from history Returns the number of removed notifications.
unsigned int queues_length_history(void)
Returns the current amount of notifications, which are already in history.
void queues_notification_close_id(gint id, enum reason reason)
Close the notification that has n->id == id.
unsigned int queues_length_displayed(void)
Returns the current amount of notifications, which are shown in the UI.
void queues_history_pop_by_id(gint id)
Pushes the latest notification found in the history buffer identified by it's assigned id.
void queues_history_push_all(void)
Push all waiting and displayed notifications to history.
bool queues_notification_replace_id(struct notification *new)
Replace the notification which matches the id field of the new notification.
struct notification * queues_get_head_waiting(void)
Get the highest notification in line.
void queues_history_push(struct notification *n)
Push a single notification to history The given notification has to be removed its queue.
void queues_update(struct dunst_status status, gint64 time)
Move inserted notifications from waiting queue to displayed queue and show them.
struct notification * queues_get_by_id(gint id)
Get the notification which has the given id in the displayed and waiting queue or NULL if not found.
GList * queues_get_history(void)
Recieve the list of all notifications encountered.
bool queues_history_remove_by_id(gint id)
Removes an notification identified by the given id from the history.