summaryrefslogtreecommitdiff
path: root/telepathy-glib/contact.h
diff options
context:
space:
mode:
authorXavier Claessens <xclaesse@gmail.com>2010-05-30 16:54:00 +0200
committerXavier Claessens <xclaesse@gmail.com>2010-06-03 15:02:18 +0200
commitcf66169ba1140fedcbe436fd1ecc0e0271b342b8 (patch)
treec654bc02be3a846aa0d22b22c1db7d7e50bcd840 /telepathy-glib/contact.h
parenta29c29040335b22836b259e5783128db381db7df (diff)
downloadtelepathy-glib-cf66169ba1140fedcbe436fd1ecc0e0271b342b8.tar.gz
Add ContactInfo support on TpContact
Diffstat (limited to 'telepathy-glib/contact.h')
-rw-r--r--telepathy-glib/contact.h13
1 files changed, 12 insertions, 1 deletions
diff --git a/telepathy-glib/contact.h b/telepathy-glib/contact.h
index e7852c600..e00f112f5 100644
--- a/telepathy-glib/contact.h
+++ b/telepathy-glib/contact.h
@@ -61,7 +61,8 @@ typedef enum {
TP_CONTACT_FEATURE_LOCATION,
TP_CONTACT_FEATURE_CAPABILITIES,
TP_CONTACT_FEATURE_AVATAR_DATA,
-#define NUM_TP_CONTACT_FEATURES (TP_CONTACT_FEATURE_AVATAR_DATA + 1)
+ TP_CONTACT_FEATURE_CONTACT_INFO,
+#define NUM_TP_CONTACT_FEATURES (TP_CONTACT_FEATURE_CONTACT_INFO + 1)
} TpContactFeature;
/* Basic functionality, always available */
@@ -91,6 +92,16 @@ TpCapabilities *tp_contact_get_capabilities (TpContact *self);
GFile *tp_contact_get_avatar_file (TpContact *self);
const gchar *tp_contact_get_avatar_mime_type (TpContact *self);
+/* TP_CONTACT_FEATURE_INFO */
+GList *tp_contact_get_contact_info (TpContact *self);
+
+void tp_connection_refresh_contact_info_async (TpConnection *self,
+ guint n_contacts, TpContact * const *contacts, GAsyncReadyCallback callback,
+ gpointer user_data);
+
+gboolean tp_connection_refresh_contact_info_finish (TpConnection *self,
+ GAsyncResult *result, GError **error);
+
typedef void (*TpConnectionContactsByHandleCb) (TpConnection *connection,
guint n_contacts, TpContact * const *contacts,
guint n_failed, const TpHandle *failed,