Bug 21332 - TpContact should have a capabilities feature and property
Summary: TpContact should have a capabilities feature and property
Status: RESOLVED FIXED
Alias: None
Product: Telepathy
Classification: Unclassified
Component: tp-glib (show other bugs)
Version: unspecified
Hardware: Other All
: high enhancement
Assignee: Guillaume Desmottes
QA Contact: Telepathy bugs list
URL: http://git.collabora.co.uk/?p=user/ca...
Whiteboard: review+
Keywords: patch
Depends on: 27511 27618
Blocks: 25512
  Show dependency treegraph
 
Reported: 2009-04-22 02:53 UTC by Xavier Claessens
Modified: 2010-04-23 09:57 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

Description Xavier Claessens 2009-04-22 02:53:57 UTC
TpContact should provide API to know if we can send a file to it, initiate a VoIP call, etc...

This should probably use the new ContactCapabilities interface.
Comment 1 Guillaume Desmottes 2009-12-08 03:58:33 UTC
This blocks this Empathy bug: https://bugzilla.gnome.org/show_bug.cgi?id=579813
Comment 2 Simon McVittie 2009-12-08 07:19:42 UTC
Before implementing this, please read the corresponding API in telepathy-qt4. The telepathy-glib API should be analogous (high-level convenience functions, plus an accessor for the a{sv} for advanced users).
Comment 3 Guillaume Desmottes 2010-04-05 05:39:43 UTC
If you could design this API (the prototypes) I should probably be able to implement it if you want.
Comment 4 Simon McVittie 2010-04-07 04:23:17 UTC
The reason this is blocked by Bug #25512 is that ContactCapabilities and RequestableChannelClasses are related:

* You should be able to ask the Connection for its RequestableChannelClasses, as a Capabilities object (this is a feature in the sense of Bug #25512, IMO - perhaps TP_CONNECTION_FEATURE_CAPABILITIES)

* You should also be able to ask a Contact for its capabilities, as a Capabilities object

* If the Connection doesn't implement ContactCapabilities, every Contact should wait for TP_CONNECTION_FEATURE_CAPABILITIES, then return a copy of the Connection's Capabilities object, with a flag set to say "this is just a guess really"

See the equivalent APIs in telepathy-qt4 for details; I basically want to implement a GObject clone of those.
Comment 5 Simon McVittie 2010-04-07 04:33:52 UTC
(In reply to comment #4)
> The reason this is blocked by Bug #25512

Er, I meant Bug #21097.
Comment 6 Simon McVittie 2010-04-15 11:02:54 UTC
This looks good to me, thanks!
Comment 7 Guillaume Desmottes 2010-04-15 23:42:30 UTC
Merged; will be in 0.11.3
Thanks!


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.