| base-contact-list.h | | base-contact-list.h | |
| | | | |
| skipping to change at line 67 | | skipping to change at line 67 | |
| #define TP_BASE_CONTACT_LIST_GET_CLASS(obj) \ | | #define TP_BASE_CONTACT_LIST_GET_CLASS(obj) \ | |
| (G_TYPE_INSTANCE_GET_CLASS ((obj), TP_TYPE_BASE_CONTACT_LIST, \ | | (G_TYPE_INSTANCE_GET_CLASS ((obj), TP_TYPE_BASE_CONTACT_LIST, \ | |
| TpBaseContactListClass)) | | TpBaseContactListClass)) | |
| | | | |
| /* ---- Utility stuff which subclasses can use ---- */ | | /* ---- Utility stuff which subclasses can use ---- */ | |
| | | | |
| TpContactListState tp_base_contact_list_get_state (TpBaseContactList *self, | | TpContactListState tp_base_contact_list_get_state (TpBaseContactList *self, | |
| GError **error); | | GError **error); | |
| TpBaseConnection *tp_base_contact_list_get_connection ( | | TpBaseConnection *tp_base_contact_list_get_connection ( | |
| TpBaseContactList *self, GError **error); | | TpBaseContactList *self, GError **error); | |
|
| | | gboolean tp_base_contact_list_get_download_at_connection ( | |
| | | TpBaseContactList *self); | |
| | | | |
| /* ---- Called by subclasses for ContactList (or both) ---- */ | | /* ---- Called by subclasses for ContactList (or both) ---- */ | |
| | | | |
| void tp_base_contact_list_set_list_pending (TpBaseContactList *self); | | void tp_base_contact_list_set_list_pending (TpBaseContactList *self); | |
| void tp_base_contact_list_set_list_failed (TpBaseContactList *self, | | void tp_base_contact_list_set_list_failed (TpBaseContactList *self, | |
| GQuark domain, | | GQuark domain, | |
| gint code, | | gint code, | |
| const gchar *message); | | const gchar *message); | |
| void tp_base_contact_list_set_list_received (TpBaseContactList *self); | | void tp_base_contact_list_set_list_received (TpBaseContactList *self); | |
| | | | |
| | | | |
| skipping to change at line 115 | | skipping to change at line 117 | |
| TpSubscriptionState *subscribe, | | TpSubscriptionState *subscribe, | |
| TpSubscriptionState *publish, | | TpSubscriptionState *publish, | |
| gchar **publish_request); | | gchar **publish_request); | |
| | | | |
| void tp_base_contact_list_dup_states (TpBaseContactList *self, | | void tp_base_contact_list_dup_states (TpBaseContactList *self, | |
| TpHandle contact, | | TpHandle contact, | |
| TpSubscriptionState *subscribe, | | TpSubscriptionState *subscribe, | |
| TpSubscriptionState *publish, | | TpSubscriptionState *publish, | |
| gchar **publish_request); | | 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 *se | |
| | | lf, | |
| | | GAsyncResult *result, | |
| | | GError **error); | |
| | | | |
| struct _TpBaseContactListClass { | | struct _TpBaseContactListClass { | |
| GObjectClass parent_class; | | GObjectClass parent_class; | |
| | | | |
| TpBaseContactListDupContactsFunc dup_contacts; | | TpBaseContactListDupContactsFunc dup_contacts; | |
| TpBaseContactListDupStatesFunc dup_states; | | TpBaseContactListDupStatesFunc dup_states; | |
| TpBaseContactListBooleanFunc get_contact_list_persists; | | TpBaseContactListBooleanFunc get_contact_list_persists; | |
| | | | |
|
| | | TpBaseContactListAsyncFunc download_async; | |
| | | TpBaseContactListAsyncFinishFunc download_finish; | |
| | | | |
| /*<private>*/ | | /*<private>*/ | |
|
| GCallback _padding[7]; | | GCallback _padding[5]; | |
| TpBaseContactListClassPrivate *priv; | | TpBaseContactListClassPrivate *priv; | |
| }; | | }; | |
| | | | |
| /* ---- Implemented by subclasses for ContactList modification ---- */ | | /* ---- Implemented by subclasses for ContactList modification ---- */ | |
| | | | |
| #define TP_TYPE_MUTABLE_CONTACT_LIST \ | | #define TP_TYPE_MUTABLE_CONTACT_LIST \ | |
| (tp_mutable_contact_list_get_type ()) | | (tp_mutable_contact_list_get_type ()) | |
| | | | |
| #define TP_IS_MUTABLE_CONTACT_LIST(obj) \ | | #define TP_IS_MUTABLE_CONTACT_LIST(obj) \ | |
| (G_TYPE_CHECK_INSTANCE_TYPE ((obj), \ | | (G_TYPE_CHECK_INSTANCE_TYPE ((obj), \ | |
| | | | |
| skipping to change at line 155 | | skipping to change at line 177 | |
| const gchar *message, | | const gchar *message, | |
| GAsyncReadyCallback callback, | | GAsyncReadyCallback callback, | |
| gpointer user_data); | | gpointer user_data); | |
| | | | |
| typedef void (*TpBaseContactListActOnContactsFunc) ( | | typedef void (*TpBaseContactListActOnContactsFunc) ( | |
| TpBaseContactList *self, | | TpBaseContactList *self, | |
| TpHandleSet *contacts, | | TpHandleSet *contacts, | |
| GAsyncReadyCallback callback, | | GAsyncReadyCallback callback, | |
| gpointer user_data); | | gpointer user_data); | |
| | | | |
|
| typedef gboolean (*TpBaseContactListAsyncFinishFunc) (TpBaseContactList *se | | | |
| lf, | | | |
| GAsyncResult *result, | | | |
| GError **error); | | | |
| | | | |
| struct _TpMutableContactListInterface { | | struct _TpMutableContactListInterface { | |
| GTypeInterface parent; | | GTypeInterface parent; | |
| | | | |
| /* _async mandatory-to-implement, _finish has a default implementation | | /* _async mandatory-to-implement, _finish has a default implementation | |
| * suitable for a GSimpleAsyncResult */ | | * suitable for a GSimpleAsyncResult */ | |
| | | | |
| TpBaseContactListRequestSubscriptionFunc request_subscription_async; | | TpBaseContactListRequestSubscriptionFunc request_subscription_async; | |
| TpBaseContactListAsyncFinishFunc request_subscription_finish; | | TpBaseContactListAsyncFinishFunc request_subscription_finish; | |
| | | | |
| TpBaseContactListActOnContactsFunc authorize_publication_async; | | TpBaseContactListActOnContactsFunc authorize_publication_async; | |
| | | | |
End of changes. 5 change blocks. |
| 6 lines changed or deleted | | 24 lines changed or added | |
|