aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy/empathy-contact-list.h
diff options
context:
space:
mode:
authorTravis Reitter <treitter@gmail.com>2010-02-17 02:11:43 +0800
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2010-03-15 16:28:40 +0800
commitb8657a61fe72be0da2d91325b0851dd4d7fd533c (patch)
tree497904127e697e2a4bfab0e9666057a784606be2 /libempathy/empathy-contact-list.h
parent870983d8050e267e1894f36c7ab6fe7fe0295441 (diff)
downloadgsoc2013-empathy-b8657a61fe72be0da2d91325b0851dd4d7fd533c.tar
gsoc2013-empathy-b8657a61fe72be0da2d91325b0851dd4d7fd533c.tar.gz
gsoc2013-empathy-b8657a61fe72be0da2d91325b0851dd4d7fd533c.tar.bz2
gsoc2013-empathy-b8657a61fe72be0da2d91325b0851dd4d7fd533c.tar.lz
gsoc2013-empathy-b8657a61fe72be0da2d91325b0851dd4d7fd533c.tar.xz
gsoc2013-empathy-b8657a61fe72be0da2d91325b0851dd4d7fd533c.tar.zst
gsoc2013-empathy-b8657a61fe72be0da2d91325b0851dd4d7fd533c.zip
Add support for marking contacts as favorites (which gives them a highlighted
star next to their name and adds them to the top of the contact list)
Diffstat (limited to 'libempathy/empathy-contact-list.h')
-rw-r--r--libempathy/empathy-contact-list.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/libempathy/empathy-contact-list.h b/libempathy/empathy-contact-list.h
index 28238e44a..c3fff7271 100644
--- a/libempathy/empathy-contact-list.h
+++ b/libempathy/empathy-contact-list.h
@@ -34,6 +34,9 @@ G_BEGIN_DECLS
#define EMPATHY_IS_CONTACT_LIST(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), EMPATHY_TYPE_CONTACT_LIST))
#define EMPATHY_CONTACT_LIST_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), EMPATHY_TYPE_CONTACT_LIST, EmpathyContactListIface))
+/* The favourites are just in a specially-handled group */
+#define EMPATHY_GROUP_FAVOURITES "Favorites"
+
typedef enum {
EMPATHY_CONTACT_LIST_CAN_ADD = 1 << 0,
EMPATHY_CONTACT_LIST_CAN_REMOVE = 1 << 1,
@@ -104,6 +107,10 @@ EmpathyContactMonitor *
EmpathyContactListFlags
empathy_contact_list_get_flags (EmpathyContactList *list);
+gboolean empathy_contact_list_contact_is_favourite
+ (EmpathyContactList *list,
+ EmpathyContact *contact);
+
G_END_DECLS
#endif /* __EMPATHY_CONTACT_LIST_H__ */