Top | ![]() |
![]() |
![]() |
![]() |
GStrv | actions | Read / Write |
GIcon * | app-icon | Read / Write |
GAppInfo * | app-info | Read / Write |
gchar * | app-name | Read / Write |
gchar * | body | Read / Write |
gchar * | category | Read / Write |
guint | id | Read / Write |
GIcon * | image | Read / Write |
gboolean | resident | Read / Write |
gchar * | summary | Read / Write |
GDateTime * | timestamp | Read / Write |
gboolean | transient | Read / Write |
PhoshNotificationUrgency | urgency | Read / Write |
enum | PhoshNotificationUrgency |
enum | PhoshNotificationReason |
#define | PHOSH_NOTIFICATION_DEFAULT_ACTION |
#define | PHOSH_TYPE_NOTIFICATION |
PhoshNotification |
GEnum ├── PhoshNotificationReason ╰── PhoshNotificationUrgency GObject ╰── PhoshNotification
PhoshNotification * phosh_notification_new (guint id
,const char *app_name
,GAppInfo *info
,const char *summary
,const char *body
,GIcon *icon
,GIcon *image
,PhoshNotificationUrgency urgency
,GStrv actions
,gboolean transient
,gboolean resident
,const char *category
,GDateTime *timestamp
);
void phosh_notification_set_summary (PhoshNotification *self
,const char *summary
);
const char *
phosh_notification_get_summary (PhoshNotification *self
);
void phosh_notification_set_body (PhoshNotification *self
,const char *body
);
void phosh_notification_set_app_name (PhoshNotification *self
,const char *app_name
);
const char *
phosh_notification_get_app_name (PhoshNotification *self
);
GDateTime *
phosh_notification_get_timestamp (PhoshNotification *self
);
void phosh_notification_set_timestamp (PhoshNotification *self
,GDateTime *timestamp
);
void phosh_notification_set_app_icon (PhoshNotification *self
,GIcon *icon
);
GIcon *
phosh_notification_get_app_icon (PhoshNotification *self
);
void phosh_notification_set_app_info (PhoshNotification *self
,GAppInfo *info
);
GAppInfo *
phosh_notification_get_app_info (PhoshNotification *self
);
void phosh_notification_set_image (PhoshNotification *self
,GIcon *icon
);
void phosh_notification_set_urgency (PhoshNotification *self
,PhoshNotificationUrgency urgency
);
PhoshNotificationUrgency
phosh_notification_get_urgency (PhoshNotification *self
);
void phosh_notification_set_actions (PhoshNotification *self
,GStrv actions
);
const GStrv
phosh_notification_get_actions (PhoshNotification *self
);
void phosh_notification_set_transient (PhoshNotification *self
,gboolean transient
);
Set if self
should go to the message tray
gboolean
phosh_notification_get_transient (PhoshNotification *self
);
Transient notifications don't go to the message tray
void phosh_notification_set_resident (PhoshNotification *self
,gboolean resident
);
Set whether of not invoking actions dismiss self
gboolean
phosh_notification_get_resident (PhoshNotification *self
);
When TRUE
invoking an action _doesn't_ dismiss the notification
void phosh_notification_set_category (PhoshNotification *self
,const char *category
);
Set the type of notification, such as "email.arrived"
const char *
phosh_notification_get_category (PhoshNotification *self
);
Get the category hint the notification was sent with
See https://people.gnome.org/~mccann/docs/notification-spec/notification-spec-latest.htmlcategories
void phosh_notification_activate (PhoshNotification *self
,const char *action
);
void phosh_notification_expires (PhoshNotification *self
,int timeout
);
Set self
to expire after timeout
(from this call)
Note doesn't close the notification, for that call
phosh_notification_close()
is response to “expired”
void phosh_notification_close (PhoshNotification *self
,PhoshNotificationReason reason
);
“app-info”
property“app-info” GAppInfo *
When non-NULL
this overrides the values of “app-name”
and “app-icon” with those from the GAppInfo
Flags: Read / Write
“app-name”
property“app-name” gchar *
The applications's name.
Flags: Read / Write
Default value: ""
“category”
property“category” gchar *
The notification's category.
Flags: Read / Write
Default value: ""
“resident”
property“resident” gboolean
The notification is resident.
Flags: Read / Write
Default value: FALSE
“summary”
property“summary” gchar *
The notification's summary.
Flags: Read / Write
Default value: ""
“timestamp”
property“timestamp” GDateTime *
The time that notification came in.
Flags: Read / Write
“transient”
property“transient” gboolean
The notification is transient.
Flags: Read / Write
Default value: FALSE
“urgency”
property“urgency” PhoshNotificationUrgency
Notification urgency.
Flags: Read / Write
Default value: PHOSH_NOTIFICATION_URGENCY_NORMAL
“actioned”
signalvoid user_function (PhoshNotification *phoshnotification, gchar *arg1, gpointer user_data)
Flags: Run Last
“closed”
signalvoid user_function (PhoshNotification *phoshnotification, PhoshNotificationReason arg1, gpointer user_data)
Flags: Run Last
“expired”
signalvoid user_function (PhoshNotification *phoshnotification, gpointer user_data)
Flags: Run Last