Class
PurpleNotification
since: 3.0.0
Description [src]
final class Purple.Notification : GObject.Object {
/* No available fields */
}
An object that represents a notification.
Available since: 3.0.0
Constructors
purple_notification_new
Creates a new notification with the given properties. account
is optional.
since: 3.0.0
purple_notification_new_from_add_contact_request
Creates a new PurpleNotification
for request
. This helper will
automatically fill out the notification according to the information in
request
.
since: 3.0.0.
purple_notification_new_from_authorization_request
Creates a new PurpleNotification
for the authorization_request
. This
helper will automatically fill out the notification according to the
information in authorization_request
.
since: 3.0.0
purple_notification_new_from_connection_error
Creates a new PurpleNotification
for account
with the info
for
the connection. This helper will automatically fill out the notification
according to the given parameters.
since: 3.0.0
Functions
purple_notification_compare
A comparison function for PurpleNotification that is suitable as a GCompareFunc.
since: 3.0.0
Instance methods
purple_notification_delete
Emits the PurpleNotification::deleted
signal. This is typically
called by a user interface when the user has deleted a notification.
since: 3.0.0
purple_notification_get_interactive
Gets whether or not notification
can be interacted with.
since: 3.0.0
purple_notification_get_notification_type
Gets the PurpleNotificationType
of notification
.
since: 3.0.0
purple_notification_set_created_timestamp
Sets the created timestamp of notification
to timestamp
.
since: 3.0.0
purple_notification_set_interactive
Sets notification
‘s interactive state to interactive
.
since: 3.0.0
Properties
Purple.Notification:created-timestamp
The creation time of this notification. This always represented as UTC internally, and will be set to UTC now by default.
since: 3.0.0
Purple.Notification:data
Data specific to the PurpleNotificationType
for the notification.
since: 3.0.0
Purple.Notification:data-destroy-func
A function to call to free PurpleNotification:data
.
since: 3.0.0
Purple.Notification:icon-name
The icon-name in the icon theme to use for the notification. A user interface may or may not choose to use this when display the notification.
since: 3.0.0
Purple.Notification:id
The ID of the notification. Used for things that need to address it. This is auto populated at creation time.
since: 3.0.0
Purple.Notification:interactive
Whether or not the notification can be interacted with.
since: 3.0.0
Purple.Notification:title
An optional title for this notification. A user interface may or may not choose to use this when displaying the notification. Regardless, this should be a translated string.
since: 3.0.0
Signals
Purple.Notification::deleted
Emitted when the notification is deleted. This is typically done by a
user interface calling purple_notification_delete()
.
since: 3.0.0
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.