Bug 29529 - TpAccountManager: being able to ask for account and connection features
Summary: TpAccountManager: being able to ask for account and connection features
Status: VERIFIED FIXED
Alias: None
Product: Telepathy
Classification: Unclassified
Component: tp-glib (show other bugs)
Version: unspecified
Hardware: Other All
: medium enhancement
Assignee: Telepathy bugs list
QA Contact: Telepathy bugs list
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 29451
  Show dependency treegraph
 
Reported: 2010-08-12 04:45 UTC by Guillaume Desmottes
Modified: 2013-01-08 11:16 UTC (History)
2 users (show)

See Also:
i915 platform:
i915 features:


Attachments

Description Guillaume Desmottes 2010-08-12 04:45:17 UTC
As with accounts (#29528) I'd like to be able to ask for extra account and connection features when preparing the account manager.

One of my use case here is Empathy's account chooser widget. It offers a _set_filter() API so user just have to return TRUE/FALSE depending if he wants to to sensitive the account or not.
The "new call" dialogs uses it and filter accounts having a connection supporting media channels. To re-implement it using TpCapabilities (and so clean and simplify Empathy), the user should receive a TpAccount which is ready and which has a TpConnection having TP_CONNECTION_FEATURE_CAPABILITIES prepared.

If we follow the crazy idea I suggested in bug #29528 this could easily be done by passing TP_ACCOUNT_FEATURE_CORE and TP_CONNECTION_FEATURE_CAPABILITIES to tp_proxy_prepare_async() when preparing the account manager.
Comment 1 Xavier Claessens 2013-01-08 11:11:29 UTC
I think this is already fixed by setting features on the TpSimpleClientFactory API.
Comment 2 Olli Salli 2013-01-08 11:16:28 UTC
Agreed, and it's more general that way (also applies to Accounts and Connections you get as a Client etc). We took the same approach in tp-qt in the end.


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.