diff options
author | Xavier Claessens <xclaesse@gmail.com> | 2009-10-08 08:42:21 +0200 |
---|---|---|
committer | Xavier Claessens <xclaesse@gmail.com> | 2010-05-19 12:36:22 +0200 |
commit | c055dba60e1a47337c6ad3eaa76157f6ecd6b065 (patch) | |
tree | 037251f12843e275369a0b2b13687dc1056b19fe /telepathy-glib/contact.h | |
parent | eadf97f8f96793332ea95862616850c078e9b5ec (diff) | |
download | telepathy-glib-c055dba60e1a47337c6ad3eaa76157f6ecd6b065.tar.gz |
Add Avatar data cache on TpContact
New TpContact feature: TP_CONTACT_FEATURE_AVATAR_DATA, and properties:
"avatar-file" and "avatar-mimetype".
Diffstat (limited to 'telepathy-glib/contact.h')
-rw-r--r-- | telepathy-glib/contact.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/telepathy-glib/contact.h b/telepathy-glib/contact.h index 820271801..7709bc289 100644 --- a/telepathy-glib/contact.h +++ b/telepathy-glib/contact.h @@ -22,6 +22,7 @@ #define __TP_CONTACT_H__ #include <glib-object.h> +#include <gio/gio.h> #include <telepathy-glib/capabilities.h> #include <telepathy-glib/connection.h> @@ -59,7 +60,8 @@ typedef enum { TP_CONTACT_FEATURE_PRESENCE, TP_CONTACT_FEATURE_LOCATION, TP_CONTACT_FEATURE_CAPABILITIES, -#define NUM_TP_CONTACT_FEATURES (TP_CONTACT_FEATURE_CAPABILITIES + 1) + TP_CONTACT_FEATURE_AVATAR_DATA, +#define NUM_TP_CONTACT_FEATURES (TP_CONTACT_FEATURE_AVATAR_DATA + 1) } TpContactFeature; /* Basic functionality, always available */ @@ -85,6 +87,10 @@ GHashTable *tp_contact_get_location (TpContact *self); /* TP_CONTACT_FEATURE_CAPABILITIES */ TpCapabilities *tp_contact_get_capabilities (TpContact *self); +/* TP_CONTACT_FEATURE_AVATAR_DATA */ +GFile *tp_contact_get_avatar_file (TpContact *self); +const gchar *tp_contact_get_avatar_mimetype (TpContact *self); + typedef void (*TpConnectionContactsByHandleCb) (TpConnection *connection, guint n_contacts, TpContact * const *contacts, guint n_failed, const TpHandle *failed, |