[Bug 26205] High-level API for ContactLists

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Thu Jun 9 12:51:20 CEST 2011


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

--- Comment #30 from Olli Salli <ollisal at gmail.com> 2011-06-09 03:51:18 PDT ---
(In reply to comment #29)
> I'm not convinced that tp_{account,connection}_prepare_async() is the way to
> go. Maybe a factory approach defining the features we want on every objects
> would be better. We could have a TpFactory object implementing
> TpClientChannelFactoryInterface and futures
> TpClient{Account,Connection,Contact}FactoryInterface.
> 
> We'd pass this TpFactory to the most top lewel object (TpAccountManager) which
> will pass it back to all the other objects created.
> 
> Isn't tp-qt4 doing something like that?
> 

Yes, tp-qt4 has most exactly that, although the factories are separate objects
rather than interfaces on a single object. Using multiple glib interfaces on a
single object allows you to binary compatibly add more factory-constructible
types though, which is cool (in C++ you can't add base classes without breaking
ABI).

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