[Bug 26866] add support for requesting handles for a vCard field or URI
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Fri Aug 27 19:17:49 CEST 2010
https://bugs.freedesktop.org/show_bug.cgi?id=26866
--- Comment #33 from Eitan Isaacson <eitan.isaacson at collabora.co.uk> 2010-08-27 10:17:48 PDT ---
(In reply to comment #30)
> <tp:contact-attribute name="representations" type="a{ss}"
> tp:type="Representations_Map">
> <tp:docstring>
> The various vCard and URI addresses that identify this contact.
> </tp:docstring>
> </tp:contact-attribute>
>
> I think it's better to have another attribute for URI representations, rather
> than (in addition to?) distinguishing them by the special "url:" namespace
> (which may be a misnomer, as URLs are a subset of URIs). A client should not be
> forced to filter maps if it is only interested in URI representations. Also,
> with my pet case of using URNs, "url:urn" will look ugly and confusing.
Do you think using a url: prefix is a bad idea everywhere we expect a vcard
field? Or just that we should use uri: instead?
If the former, we will need:
* To split the attribute above to vcard-representations and
uri-representations.
* Addressing.GetContactsByURI
* Add Protocol.AddressableURIField
* Add Channel.TargetURIScheme and Channel.TargetURI
URLs could just be on their own and not be used as URL fields from vcards, so
this weird pattern could be avoided:
Addressing.GetContactsByVCardField("url", "sip:example.com")
And instead would be:
Addressing.GetContactsByURI("sip:eitan at example.com")
and
EnsureChannel(
{ ChannelType: Call,
TargetURIScheme: "sip",
TargetURI: "sip:eitan at example.com",
});
Does all that look reasonable?
>
> <tp:contact-attribute name="requested" type="s">
> <tp:docstring xmlns="http://www.w3.org/1999/xhtml">
> <p>The contact's address, as it was requested
> through <tp:member-ref>GetContactsByVCardField</tp:member-ref>.</p>
> </tp:docstring>
> </tp:contact-attribute>
>
> Should the vCard field name be also represented?
Good catch, I'll fix that. It should be ss.
--
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
More information about the telepathy-bugs
mailing list