[Bug 36604] TpAccount connection features?

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Thu Apr 28 19:11:10 CEST 2011


https://bugs.freedesktop.org/show_bug.cgi?id=36604

--- Comment #3 from Will Thompson <will.thompson at collabora.co.uk> 2011-04-28 10:11:10 PDT ---
(In reply to comment #2)
> Another way to do this, which I think I'd prefer, would be:
> 
>     void tp_account_prepare_connection_async (TpAccount *self,
>         const GQuark *account_features,
>         const GQuark *connection_features,
>         the usual async goo);
>     gboolean tp_account_prepare_connection_finish (TpAccount *self,
>         TpConnection **,
>         GError **);
> 
> Either way, it's worth documenting very clearly that this isn't, in itself,
> sufficient to make the account go online: you have to set a requested presence
> too. (Maybe there should be a version that takes 3 extra arguments representing
> the RequestedPresence, or a version that copies the AutomaticPresence to the
> RequestedPresence if it isn't already "something online-looking".)

This would help in the initial “Okay I have the account now I want the
connection” case but it doesn't help you monitor the coming and going of a
connection on an existing account.

Could we have a TpAccount::connection-prepared signal whose detail is the
feature quark you're interested in? :D

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.


More information about the telepathy-bugs mailing list