aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy-gtk
diff options
context:
space:
mode:
authorWill Thompson <will.thompson@collabora.co.uk>2012-03-28 17:39:51 +0800
committerWill Thompson <will.thompson@collabora.co.uk>2012-03-28 17:41:57 +0800
commited85fe70b223a778b5d7bdca6b4fe8d5ac327959 (patch)
tree636c97a08143b39440a226efdc96159ba67f7a0c /libempathy-gtk
parent9420ba8ea42efb6d5e1e044d68cc1ba571120314 (diff)
downloadgsoc2013-empathy-ed85fe70b223a778b5d7bdca6b4fe8d5ac327959.tar
gsoc2013-empathy-ed85fe70b223a778b5d7bdca6b4fe8d5ac327959.tar.gz
gsoc2013-empathy-ed85fe70b223a778b5d7bdca6b4fe8d5ac327959.tar.bz2
gsoc2013-empathy-ed85fe70b223a778b5d7bdca6b4fe8d5ac327959.tar.lz
gsoc2013-empathy-ed85fe70b223a778b5d7bdca6b4fe8d5ac327959.tar.xz
gsoc2013-empathy-ed85fe70b223a778b5d7bdca6b4fe8d5ac327959.tar.zst
gsoc2013-empathy-ed85fe70b223a778b5d7bdca6b4fe8d5ac327959.zip
Move category name constants to #defines
This is kind of overkill to avoid me typoing the two names used in empathy-chat-window.c, but, hey.
Diffstat (limited to 'libempathy-gtk')
-rw-r--r--libempathy-gtk/empathy-notify-manager.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/libempathy-gtk/empathy-notify-manager.h b/libempathy-gtk/empathy-notify-manager.h
index dd7565c9f..0b937e1d5 100644
--- a/libempathy-gtk/empathy-notify-manager.h
+++ b/libempathy-gtk/empathy-notify-manager.h
@@ -43,6 +43,21 @@ G_BEGIN_DECLS
#define EMPATHY_NOTIFY_MANAGER_CAP_X_CANONICAL_PRIVATE_SYNCHRONOUS "x-canonical-private-synchronous"
#define EMPATHY_NOTIFY_MANAGER_CAP_X_CANONICAL_TRUNCATION "x-canonical-truncation"
+/* Categories associated with EMPATHY_NOTIFY_MANAGER_CAP_CATEGORY.
+ * Uses x-empathy as prefix for unofficial categories. See
+ * http://www.galago-project.org/specs/notification/0.9/x211.html */
+#define EMPATHY_NOTIFICATION_CATEGORY_CHAT "im.received"
+#define EMPATHY_NOTIFICATION_CATEGORY_PRESENCE_ONLINE "presence.online"
+#define EMPATHY_NOTIFICATION_CATEGORY_PRESENCE_OFFLINE "presence.offline"
+/* Yes, these two are the same. */
+#define EMPATHY_NOTIFICATION_CATEGORY_VOIP "x-empathy.call.incoming"
+#define EMPATHY_NOTIFICATION_CATEGORY_CALL "x-empathy.call.incoming"
+#define EMPATHY_NOTIFICATION_CATEGORY_TRANSFER "x-empathy.transfer.incoming"
+#define EMPATHY_NOTIFICATION_CATEGORY_INVITATION "x-empathy.im.room-invitation"
+#define EMPATHY_NOTIFICATION_CATEGORY_AUTH "x-empathy.network.auth-request"
+#define EMPATHY_NOTIFICATION_CATEGORY_SUBSCRIPTION "x-empathy.im.subscription-request"
+#define EMPATHY_NOTIFICATION_CATEGORY_MENTIONED "x-empathy.im.mentioned"
+
#define EMPATHY_TYPE_NOTIFY_MANAGER (empathy_notify_manager_get_type ())
#define EMPATHY_NOTIFY_MANAGER(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), EMPATHY_TYPE_NOTIFY_MANAGER, EmpathyNotifyManager))
#define EMPATHY_NOTIFY_MANAGER_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), EMPATHY_TYPE_NOTIFY_MANAGER, EmpathyNotifyManagerClass))