[Telepathy] Uniqueness of objects

Olli Salli ollisal at gmail.com
Fri Oct 3 05:05:32 PDT 2008


On Fri, Oct 3, 2008 at 1:31 PM,  <mikhail.zabaluev at nokia.com> wrote:
> Hi,
>
>>-----Original Message-----
>>From: telepathy-bounces at lists.freedesktop.org
>>[mailto:telepathy-bounces at lists.freedesktop.org] On Behalf Of
>>ext Olli Salli
>>Sent: Friday, October 03, 2008 1:12 PM
>>To: telepathy at lists.freedesktop.org
>>Subject: Re: [Telepathy] Uniqueness of objects
>>
>>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.
>
> Can you simply protect the constructor and create Connections only through the ConnectionManager?

I'll look into this. Thanks for the suggestion. However, note that
using ConnectionManager isn't the only way to get a Connection - you
can get one eg. using MC to connect to an account or when handling a
channel, etc. Some of these ways might be extensions not known to the
library in advance, which might further complicate things. All of
these ways to get the connection would then need to somehow relate to
the API in the ConnectionManager to present the user with the
Connection.

>
> Best regards,
>  Misha
>

Br,
Olli Salli


More information about the Telepathy mailing list