[Bug 27374] New: GetContactAttributes() is specified to be needlessly fascist about interfaces
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Tue Mar 30 20:54:24 CEST 2010
http://bugs.freedesktop.org/show_bug.cgi?id=27374
Summary: GetContactAttributes() is specified to be needlessly
fascist about interfaces
Product: Telepathy
Version: git master
Platform: Other
OS/Version: All
Status: NEW
Keywords: patch
Severity: normal
Priority: medium
Component: butterfly
AssignedTo: telepathy-bugs at lists.freedesktop.org
ReportedBy: will.thompson at collabora.co.uk
Depends on: 27325
+++ This bug was initially created as a clone of Bug #27325 +++
>From the definition of GetContactAttributes():
> It is an error to request interfaces that are not supported by this
> Connection (i.e. mentioned in the ContactAttributeInterfaces
> property).
>
> | This makes it possible to distinguish between interfaces for which
> | the Connection has nothing to say (e.g. we don't know the avatar
> | tokens of any of the contacts, so we omitted them all), and interfaces
> | for which this API isn't supported.
This is needlessly pedantic. If we had instead said that the CM must
ignore interfaces which aren't supported on the Contacts interface, then
client code that does care could still check ContactAttributeInterfaces
to distinguish those two cases, and client code that doesn't care
wouldn't have to mess around checking the list of interfaces it passes
to GetContactAttributes().
--
Configure bugmail: http://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the telepathy-bugs
mailing list