Bug 29529

Summary: TpAccountManager: being able to ask for account and connection features
Product: Telepathy Reporter: Guillaume Desmottes <guillaume.desmottes>
Component: tp-glibAssignee: Telepathy bugs list <telepathy-bugs>
Status: VERIFIED FIXED QA Contact: Telepathy bugs list <telepathy-bugs>
Severity: enhancement    
Priority: medium CC: olli.salli, xclaesse
Version: unspecified   
Hardware: Other   
OS: All   
Whiteboard:
i915 platform: i915 features:
Bug Depends on:    
Bug Blocks: 29451    

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.