diff options
author | Alban Crequy <alban.crequy@collabora.co.uk> | 2012-02-25 19:31:05 +0000 |
---|---|---|
committer | Alban Crequy <alban.crequy@collabora.co.uk> | 2012-03-27 17:46:48 +0100 |
commit | 8bde24822f73aeb9ec66f719d3066673d41d1c08 (patch) | |
tree | 4ffc11a7233205fdf9cf3f6e7f0a581d53cd2c2e /telepathy-glib/base-contact-list.h | |
parent | aa1d2196aa5291af961d4ceff36507773a5393c0 (diff) | |
download | telepathy-glib-8bde24822f73aeb9ec66f719d3066673d41d1c08.tar.gz |
ContactList: add method Download in TpBaseContactList
https://bugs.freedesktop.org/show_bug.cgi?id=43826
Diffstat (limited to 'telepathy-glib/base-contact-list.h')
-rw-r--r-- | telepathy-glib/base-contact-list.h | 22 |
1 files changed, 21 insertions, 1 deletions
diff --git a/telepathy-glib/base-contact-list.h b/telepathy-glib/base-contact-list.h index 1511673a4..bc9b59912 100644 --- a/telepathy-glib/base-contact-list.h +++ b/telepathy-glib/base-contact-list.h @@ -112,6 +112,23 @@ void tp_base_contact_list_dup_states (TpBaseContactList *self, TpSubscriptionState *publish, gchar **publish_request); +typedef void (*TpBaseContactListAsyncFunc) ( + TpBaseContactList *self, + GAsyncReadyCallback callback, + gpointer user_data); + +void tp_base_contact_list_download_async (TpBaseContactList *self, + GAsyncReadyCallback callback, + gpointer user_data); + +gboolean tp_base_contact_list_download_finish (TpBaseContactList *self, + GAsyncResult *result, + GError **error); + +typedef gboolean (*TpBaseContactListAsyncFinishFunc) (TpBaseContactList *self, + GAsyncResult *result, + GError **error); + struct _TpBaseContactListClass { GObjectClass parent_class; @@ -119,8 +136,11 @@ struct _TpBaseContactListClass { TpBaseContactListDupStatesFunc dup_states; TpBaseContactListBooleanFunc get_contact_list_persists; + TpBaseContactListAsyncFunc download_async; + TpBaseContactListAsyncFinishFunc download_finish; + /*<private>*/ - GCallback _padding[7]; + GCallback _padding[5]; TpBaseContactListClassPrivate *priv; }; |