Class
PhoshNotification
Description [src]
class Phosh.Notification : GObject.Object
{
/* No available fields */
}
A notification displayed to the user
A notification usually consists of a summary, a body (the content) and an icon.
Instance methods
phosh_notification_get_profile
Get the intended feedback profile for the event related to this notification.
phosh_notification_set_profile
Set the feedback profile (constrained by feedbackd’s global policy) for the event related to this notification.
phosh_notification_set_timestamp
Sets the timestamp of a notification. If NULL
is passed it’s set
to the current date and time.
Properties
Phosh.Notification:app-info
When non-NULL
this overrides the values of PhoshNotification:app-name
and PhoshNotification:app-icon
with those from the GAppInfo
.
Phosh.Notification:profile
The feedback profile to use for the event triggered by this
notification. Valid values from Feedbackd’s Feedback Theme
Specification as well as the value none
meaning: don’t trigger
any feedback for this event. If NULL
(the default) the decision
is left to feedbackd.
Signals
Phosh.Notification::expired
Emitted when the timeout set by phosh_notification_expires()
has expired.
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.
Class structure
struct PhoshNotificationClass {
GObjectClass parent_class;
void (* do_action) (
PhoshNotification* self,
guint id,
const char* action
);
}
No description available.
Class members
parent_class: GObjectClass
The object class structure needs to be the first element in the widget class structure in order for the class mechanism to work correctly. This allows a PhoshNotificationClass pointer to be cast to a GObjectClass pointer.
do_action: void (* do_action) ( PhoshNotification* self, guint id, const char* action )
This function allows the notification to implement their own action behaviour instead of the default DBus interface.
Virtual methods
Phosh.NotificationClass.do_action
This function allows the notification to implement their own action behaviour instead of the default DBus interface.