diff options
author | Jason Conti <jason.conti@gmail.com> | 2011-05-17 16:15:41 -0400 |
---|---|---|
committer | Jason Conti <jason.conti@gmail.com> | 2011-05-17 16:15:41 -0400 |
commit | 425bde705a072effe6232cb3fa4fecdcb8849639 (patch) | |
tree | 453adb3ed0c348dba733b419ea8ec1131e1c6850 /src/notification.h | |
parent | c802236c56882bbfbb773801a7351a9e6cc11ba9 (diff) | |
download | ayatana-indicator-notifications-425bde705a072effe6232cb3fa4fecdcb8849639.tar.gz ayatana-indicator-notifications-425bde705a072effe6232cb3fa4fecdcb8849639.tar.bz2 ayatana-indicator-notifications-425bde705a072effe6232cb3fa4fecdcb8849639.zip |
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).
Diffstat (limited to 'src/notification.h')
-rw-r--r-- | src/notification.h | 24 |
1 files changed, 14 insertions, 10 deletions
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 <glib.h> #include <glib-object.h> #include <gio/gio.h> +#include <time.h> 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 |