[Bug 20035] Avatar cache reference implementation

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Thu May 6 19:03:37 CEST 2010


https://bugs.freedesktop.org/show_bug.cgi?id=20035

--- Comment #11 from Xavier Claessens <xclaesse at gmail.com> 2010-05-06 10:03:37 PDT ---
Ok, so here is another way for doing this:
http://git.collabora.co.uk/?p=user/xclaesse/telepathy-glib.git;a=shortlog;h=refs/heads/avatar-data2

it adds an AVATAR_DATA feature on TpContact. When that feature is set,
"avatar-filename" and "avatar-mimetype" properties will be available. When the
token change, either the avatar is already in cache and
"notify::avatar-filename/mimetype" are directly emitted, or it's not yet in
cache and then it is fetched from CM. Once CM gives the data, it's written in
cache and properties are updated.

Like that a client can create contacts with the AVATAR_DATA feature, and just
wait for "notify::avatar-filename" signal to be emitted to update its UI.

We could add more helper functions, to get the data as input stream, or GArray,
or wathever, but at least this part should be fine, since it's purely the cache
implementation with minimal API to access it.

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.



More information about the telepathy-bugs mailing list