From 425bde705a072effe6232cb3fa4fecdcb8849639 Mon Sep 17 00:00:00 2001 From: Jason Conti Date: Tue, 17 May 2011 16:15:41 -0400 Subject: Adding a timestamp to the messages. Currently sends a timestamp string across dbus, but ideally it will send an integer, and the indicator can decide how to display it (time ago in words, custom time format, etc). --- src/notification.h | 24 ++++++++++++++---------- 1 file changed, 14 insertions(+), 10 deletions(-) (limited to 'src/notification.h') diff --git a/src/notification.h b/src/notification.h index a11036f..d9a67fe 100644 --- a/src/notification.h +++ b/src/notification.h @@ -8,6 +8,7 @@ #include #include #include +#include G_BEGIN_DECLS @@ -33,16 +34,17 @@ struct _NotificationClass }; struct _NotificationPrivate { - gchar *app_name; - gsize app_name_length; - guint32 replaces_id; - gchar *app_icon; - gsize app_icon_length; - gchar *summary; - gsize summary_length; - gchar *body; - gsize body_length; - gint expire_timeout; + gchar *app_name; + gsize app_name_length; + guint32 replaces_id; + gchar *app_icon; + gsize app_icon_length; + gchar *summary; + gsize summary_length; + gchar *body; + gsize body_length; + gint expire_timeout; + GDateTime *timestamp; }; #define NOTIFICATION_GET_PRIVATE(o) \ @@ -55,6 +57,8 @@ const gchar *notification_get_app_name(Notification *); const gchar *notification_get_app_icon(Notification *); const gchar *notification_get_summary(Notification *); const gchar *notification_get_body(Notification *); +gint64 notification_get_timestamp(Notification *); +gchar *notification_timestamp_for_locale(Notification *); void notification_print(Notification *); G_END_DECLS -- cgit v1.2.3