[Bug 27687] new GIO-style async methods for requesting TpContacts
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Tue May 8 10:02:13 CEST 2012
https://bugs.freedesktop.org/show_bug.cgi?id=27687
--- Comment #14 from Guillaume Desmottes <guillaume.desmottes at collabora.co.uk> 2012-05-08 01:02:13 PDT ---
(In reply to comment #13)
> tp_connection_get_contacts_by_handle():
> - I think CONTACT TpHandle must totally disappear from our API, and this
> function should be killed. I think in general high-level APIs should expose
> TpContact objects. At least spec should always give handle+id and so the
> recommended way to get a TpContact is tp_client_factory_ensure_contact() +
> eventually upgrade. Note that 'next' already make immortal handles mandatory.
Agreed, let's drop it.
> tp_connection_get_contacts_by_id():
> - It should be proper _async().
> - Should use GetContactAttributesByID (bug #30874) for massive simplification
> and single round-trip.
Actually wouldn't it be easier to have it as a method on the *factory* instead?
The factory acts as the de-facto place where all the features we care about are
stored so that could make things easier.
Something like:
void tp_simple_client_factory_ensure_contact_by_id_async (TpSimpleClientFactory
*factory,
TpConnection *connection,
const gchar *id,
GAsyncReadyCallback callback,
gpointer user_data);
--
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