[Telepathy] Uniqueness of objects

Simon McVittie simon.mcvittie at collabora.co.uk
Fri Oct 3 04:52:37 PDT 2008


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Fri, 03 Oct 2008 at 13:12:18 +0300, Olli Salli wrote:
> in fact, QDBus already does dbus_bus_get_private to get one instance
> of a DBusConnection for the session, system and starter buses, and
> shares that between all users of QDBusConnection::sessionBus() etc.

Ah, brilliant. So telepathy-glib, telepathy-qt4 and telepathy-python can
never end up sharing a DBusConnection, since dbus-glib is the only
binding still using the "shared" connection :-)

> Some wizardry certainly needs to be performed even inside TelepathyQt4
> to prevent using multiple Connection objects associated with the same
> remote connection - namely, not keeping the reference counter inside a
> single Connection object, but share it between Connections using a
> (bus uuid, remote conn service name) -> refcounter mapping.

Agreed. telepathy-glib will need to do this too (I'm working on code for
that today).

    Simon
-----BEGIN PGP SIGNATURE-----

iD8DBQFI5gd9WSc8zVUw7HYRAkFlAKDgzdbasVbcz5tGCKs0AjtqBV2I9gCdGSbk
3xbxJa5fhTgPsXwo7ySLXII=
=lhG+
-----END PGP SIGNATURE-----


More information about the Telepathy mailing list