Class

AstalNotifdNotifd

Description

class AstalNotifd.Notifd : GObject.Object
  implements Gio.ListModel {
  AstalNotifdDaemon* daemon,
  AstalNotifdProxy* proxy
}

The notification daemon. This class queues up to become the next daemon while acting as a proxy in the meantime.

Ancestors

Implements

Functions

astal_notifd_notifd_get_default

Get the singleton instance.

Instance methods

astal_notifd_notifd_get_notification

Gets the AstalNotifdNotification with the given ID, or null if there is no such notification.

astal_notifd_notifd_get_ignore_timeout
No description available.

astal_notifd_notifd_set_ignore_timeout
No description available.

astal_notifd_notifd_get_dont_disturb
No description available.

astal_notifd_notifd_set_dont_disturb
No description available.

astal_notifd_notifd_get_default_timeout
No description available.

astal_notifd_notifd_set_default_timeout
No description available.

astal_notifd_notifd_get_notifications
No description available.

Methods inherited from GObject (43)

Please see GObject for a full list of methods.

Methods inherited from GListModel (5)
g_list_model_get_item

Get the item at position.

g_list_model_get_item_type

Gets the type of the items in list.

g_list_model_get_n_items

Gets the number of items in list.

g_list_model_get_object

Get the item at position.

g_list_model_items_changed

Emits the GListModel::items-changed signal on list.

Properties

AstalNotifd.Notifd:ignore-timeout

Ignore the timeout specified by incoming notifications. By default notifications can specify a timeout in milliseconds after which the daemon will resolve them even without user input.

AstalNotifd.Notifd:dont-disturb

Tells frontends not to show popups to the user. This property does not have any effect on its own; it is merely a value shared between the daemon process and proxies.

AstalNotifd.Notifd:default-timeout

Timeout used for notifications that do not specify a timeout and let the server decide. Negative values result in no timeout. By default this is -1.

AstalNotifd.Notifd:notifications

List of currently unresolved notifications.

Signals

AstalNotifd.Notifd::notified

Emitted when the daemon receives a AstalNotifdNotification.

AstalNotifd.Notifd::resolved

Emitted when a AstalNotifdNotification is resolved.

Signals inherited from GObject (1)
GObject::notify

The notify signal is emitted on an object when one of its properties has its value set through g_object_set_property(), g_object_set(), et al.

Signals inherited from GListModel (1)
GListModel::items-changed

This signal is emitted whenever items were added to or removed from list. At position, removed items were removed and added items were added in their place.

Class structure

struct AstalNotifdNotifdClass {
  void (* notifd_notified) (
    AstalNotifdNotifd* self,
    guint id,
    gboolean replaced
  );
  void (* notifd_resolved) (
    AstalNotifdNotifd* self,
    guint id,
    AstalNotifdClosedReason reason
  );
  
}

No description available.

Class members
notified: void (* notifd_notified) ( AstalNotifdNotifd* self, guint id, gboolean replaced )

No description available.

resolved: void (* notifd_resolved) ( AstalNotifdNotifd* self, guint id, AstalNotifdClosedReason reason )

No description available.