diff options
author | Danielle Madeley <danielle.madeley@collabora.co.uk> | 2011-02-07 10:41:40 +0800 |
---|---|---|
committer | Chandni Verma <chandniverma2112@gmail.com> | 2011-03-08 08:56:51 +0800 |
commit | 35500a8b9e672f703059707039a1ccee23dd3597 (patch) | |
tree | 0fe16c345ecf16219cfe8b1cc4d38ebe174f280d /libempathy/empathy-contact-list.h | |
parent | 67d602af3ed86c8df908dd8ad429bdb3f8ff5d5b (diff) | |
download | gsoc2013-empathy-35500a8b9e672f703059707039a1ccee23dd3597.tar gsoc2013-empathy-35500a8b9e672f703059707039a1ccee23dd3597.tar.gz gsoc2013-empathy-35500a8b9e672f703059707039a1ccee23dd3597.tar.bz2 gsoc2013-empathy-35500a8b9e672f703059707039a1ccee23dd3597.tar.lz gsoc2013-empathy-35500a8b9e672f703059707039a1ccee23dd3597.tar.xz gsoc2013-empathy-35500a8b9e672f703059707039a1ccee23dd3597.tar.zst gsoc2013-empathy-35500a8b9e672f703059707039a1ccee23dd3597.zip |
Add contact blocking to EmpathyContactList and friends
Diffstat (limited to 'libempathy/empathy-contact-list.h')
-rw-r--r-- | libempathy/empathy-contact-list.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/libempathy/empathy-contact-list.h b/libempathy/empathy-contact-list.h index 3817af876..683974906 100644 --- a/libempathy/empathy-contact-list.h +++ b/libempathy/empathy-contact-list.h @@ -39,6 +39,7 @@ typedef enum { EMPATHY_CONTACT_LIST_CAN_REMOVE = 1 << 1, EMPATHY_CONTACT_LIST_CAN_ALIAS = 1 << 2, EMPATHY_CONTACT_LIST_CAN_GROUP = 1 << 3, + EMPATHY_CONTACT_LIST_CAN_BLOCK = 1 << 4, } EmpathyContactListFlags; typedef struct _EmpathyContactListIface EmpathyContactListIface; @@ -77,6 +78,11 @@ struct _EmpathyContactListIface { EmpathyContact *contact); void (*remove_favourite) (EmpathyContactList *list, EmpathyContact *contact); + void (*set_blocked) (EmpathyContactList *list, + EmpathyContact *contact, + gboolean blocked); + gboolean (*get_blocked) (EmpathyContactList *list, + EmpathyContact *contact); }; GType empathy_contact_list_get_type (void) G_GNUC_CONST; @@ -116,6 +122,12 @@ void empathy_contact_list_remove_from_favourites (EmpathyContactList *list, EmpathyContact *contact); +void empathy_contact_list_set_blocked (EmpathyContactList *list, + EmpathyContact *contact, + gboolean blocked); +gboolean empathy_contact_list_get_blocked (EmpathyContactList *list, + EmpathyContact *contact); + G_END_DECLS |