diff options
author | Will Thompson <will.thompson@collabora.co.uk> | 2011-04-16 13:44:32 +0100 |
---|---|---|
committer | Will Thompson <will.thompson@collabora.co.uk> | 2011-04-16 14:17:56 +0100 |
commit | e678ed09f969ecf4b41e0c868477d9aed4dd581a (patch) | |
tree | 7071a0ccaa69c320fab7431c531ff13940e282eb /telepathy-glib/base-contact-list.h | |
parent | e466cb6f91e13f4a7382d3e80b77135ccfcba6c3 (diff) | |
download | telepathy-glib-e678ed09f969ecf4b41e0c868477d9aed4dd581a.tar.gz |
BlockableContactListIface: add _with_abuse variant
Diffstat (limited to 'telepathy-glib/base-contact-list.h')
-rw-r--r-- | telepathy-glib/base-contact-list.h | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/telepathy-glib/base-contact-list.h b/telepathy-glib/base-contact-list.h index 9612bda7a..686618571 100644 --- a/telepathy-glib/base-contact-list.h +++ b/telepathy-glib/base-contact-list.h @@ -295,6 +295,13 @@ gboolean tp_base_contact_list_unblock_contacts_finish (TpBaseContactList *self, GAsyncResult *result, GError **error); +typedef void (*TpBaseContactListBlockContactsWithAbuseFunc) ( + TpBaseContactList *self, + TpHandleSet *contacts, + gboolean report_abusive, + GAsyncReadyCallback callback, + gpointer user_data); + struct _TpBlockableContactListInterface { GTypeInterface parent; @@ -302,7 +309,9 @@ struct _TpBlockableContactListInterface { TpBaseContactListDupContactsFunc dup_blocked_contacts; - /* _async mandatory-to-implement, _finish has a default implementation + /* unblock_contacts_async is mandatory to implement; either + * block_contacts_async or block_contacts_with_abuse_async (but not both!) + * must also be implemented. _finish have default implementations * suitable for a GSimpleAsyncResult */ TpBaseContactListActOnContactsFunc block_contacts_async; @@ -311,8 +320,11 @@ struct _TpBlockableContactListInterface { TpBaseContactListAsyncFinishFunc unblock_contacts_finish; /* optional to implement */ - TpBaseContactListBooleanFunc can_block; + + /* see above. block_contacts_finish is the corresponding _finish function. + */ + TpBaseContactListBlockContactsWithAbuseFunc block_contacts_with_abuse_async; }; /* ---- Called by subclasses for ContactGroups ---- */ |