diff options
author | Danielle Madeley <danielle.madeley@collabora.co.uk> | 2011-02-09 14:24:27 +0800 |
---|---|---|
committer | Chandni Verma <chandniverma2112@gmail.com> | 2011-03-08 09:07:29 +0800 |
commit | 6da159d09091d68a102c142b10747ae58755de51 (patch) | |
tree | cc09647e5650e7d4beb0ddc26d97c1fdd1c467fd /libempathy/empathy-individual-manager.h | |
parent | 4f3b2d373b9f22abdbf2679a8c87ec68c1ae1d20 (diff) | |
download | gsoc2013-empathy-6da159d09091d68a102c142b10747ae58755de51.tar gsoc2013-empathy-6da159d09091d68a102c142b10747ae58755de51.tar.gz gsoc2013-empathy-6da159d09091d68a102c142b10747ae58755de51.tar.bz2 gsoc2013-empathy-6da159d09091d68a102c142b10747ae58755de51.tar.lz gsoc2013-empathy-6da159d09091d68a102c142b10747ae58755de51.tar.xz gsoc2013-empathy-6da159d09091d68a102c142b10747ae58755de51.tar.zst gsoc2013-empathy-6da159d09091d68a102c142b10747ae58755de51.zip |
Add contact blocking support to EmpathyIndividualManager
Diffstat (limited to 'libempathy/empathy-individual-manager.h')
-rw-r--r-- | libempathy/empathy-individual-manager.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/libempathy/empathy-individual-manager.h b/libempathy/empathy-individual-manager.h index f2f5f5b56..daa7ec86a 100644 --- a/libempathy/empathy-individual-manager.h +++ b/libempathy/empathy-individual-manager.h @@ -36,6 +36,16 @@ G_BEGIN_DECLS #define EMPATHY_IS_INDIVIDUAL_MANAGER_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), EMPATHY_TYPE_INDIVIDUAL_MANAGER)) #define EMPATHY_INDIVIDUAL_MANAGER_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), EMPATHY_TYPE_INDIVIDUAL_MANAGER, EmpathyIndividualManagerClass)) +typedef enum +{ + EMPATHY_INDIVIDUAL_MANAGER_NO_FLAGS = 0, + EMPATHY_INDIVIDUAL_MANAGER_CAN_ADD = 1 << 0, + EMPATHY_INDIVIDUAL_MANAGER_CAN_REMOVE = 1 << 1, + EMPATHY_INDIVIDUAL_MANAGER_CAN_ALIAS = 1 << 2, + EMPATHY_INDIVIDUAL_MANAGER_CAN_GROUP = 1 << 3, + EMPATHY_INDIVIDUAL_MANAGER_CAN_BLOCK = 1 << 4, +} EmpathyIndividualManagerFlags; + typedef struct _EmpathyIndividualManager EmpathyIndividualManager; typedef struct _EmpathyIndividualManagerClass EmpathyIndividualManagerClass; @@ -81,5 +91,13 @@ void empathy_individual_manager_unlink_individual ( EmpathyIndividualManager *self, FolksIndividual *individual); +gboolean empathy_individual_manager_supports_blocking ( + EmpathyIndividualManager *self, + FolksIndividual *individual); + +void empathy_individual_manager_set_blocked (EmpathyIndividualManager *self, + FolksIndividual *individual, + gboolean blocked); + G_END_DECLS #endif /* __EMPATHY_INDIVIDUAL_MANAGER_H__ */ |