[Bug 36604] TpAccount connection features?

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Tue Apr 26 12:33:24 CEST 2011


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

--- Comment #2 from Simon McVittie <simon.mcvittie at collabora.co.uk> 2011-04-26 03:33:21 PDT ---
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".)

If ChangingPresence goes from true to false with no Connection, any pending
tp_account_prepare_connection_async calls should probably also fail, with the
ConnectionError as error.

-- 
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