[Bug 29417] Add API to get a TpAccount from a TpContact and/or TpConnection

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Thu Jun 9 12:00:16 CEST 2011


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

--- Comment #5 from Xavier Claessens <xclaesse at gmail.com> 2011-06-09 03:00:12 PDT ---
Since TpConnection is a CM proxy and TpAccount is a MC proxy, there is just no
way a TpConnection get always guarantee to know its TpAccount. The best we can
do is guarantee that if a TpAccountManager happens to be prepared, then
TpConnection objects shared by an account will have the account set. That's
what my branch does.

A 2nd step, would make sure that TpAccount and TpBaseClient actually share the
same TpConnection objects, but for that we need a factory that creates unique
proxies, like we have (or will have?) for TpChannel.

Once that 2nd step is done, that will become "Your connection has an account if
and only if a TpAccount exists and is using the same connection factory than
your TpBaseClient".

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