[Telepathy] New ContactInfo interface based on vCards

Will Thompson will.thompson at collabora.co.uk
Thu Nov 20 04:09:24 PST 2008


I've been working on a draft[0] of a new ContactInfo connection
interface, which models the information as a slightly structured
representation of vCard data. (Contrast with the old interface, which
represented vCards as... a string containing a vCard. :-)) While vCard
is kind of hairy and suboptimal, it's widely used (both XEPs relating to
contact info are based on vCard) and there's no point in defining
another format only to have to map to and from the vCard semantics in
every CM.

I'm not sure what to do about change notification. I understand that in
XMPP you can either subscribe to contacts' vCards, in which case they
are pushed to you, or not, in which case you have to explicitly retrieve
the cards. Do any protocols exist where you get change notifications but
not the content pushed to the client? I defined flags for both[1], but
the first flag is currently useless. Do we want a vCard token interface,
similar to avatar tokens? If no protocols with contentless change
notifications exist, it would be an unnecessary complication.

Also, in the current draft of the interface RequestContactInfo doesn't
return until GotContactInfo has been emitted for each requested contact.
That feels wrong, but I don't see how it would usefully report errors
for a subset of the contacts passed to it while still succeeding for the
others otherwise.




-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 260 bytes
Desc: OpenPGP digital signature
Url : http://lists.freedesktop.org/archives/telepathy/attachments/20081120/5d0d2022/attachment.pgp 

More information about the Telepathy mailing list