[Gossip-dev] Questions about GossipContactManager
Martyn Russell
martyn at imendio.com
Wed Feb 21 10:40:23 CET 2007
Xavier Claessens wrote:
> On lun, 2007-02-19 at 11:31 +0000, Martyn Russell wrote:
>> Xavier Claessens wrote:
>>> Hello,
>> Hi,
>>
>>> I'm fixing telepathy backend to use the new API and contact manager.
>>> Here are my problems:
>>>
>>> 1) Is gossip_protocol_find_contact() still useful ? Shouldn't we use
>>> gossip_contact_manager_find() instead now ?
>> Well, one finds contacts for a given protocol and the other finds ALL
>> contacts that we know about. So no I would say there is a good reason
>> for keeping them both.
>
> Hum... gossip_contact_manager_find() search for a given GossipAccount,
> so I would say it's the same than searching in protocol.
Ah yea, of course good point. Perhaps this should just be internal for
the time being then. This way, if we change our minds and have contacts
created from the contact manager, then we can make it public.
>> Apart from protocols where you don't have an ID at any point, which
>> might be problematic, I can't see why you can't create a contact object
>> before connecting.
>
> Every protocol has an ID or some kind of unique string for the own
> contact, but it's known only after connecting. I can create the contact
> object but it won't have an id before the account is connected.
When you say ID do you mean an "id" parameter? i.e. are you talking
about the unique identifier for that contact which is given to you by
Telepathy - not actually an id that is relevant outside Telepathy?
If so, then setting that id after you have connected should be fine.
--
Regards,
Martyn
More information about the Gossip-dev
mailing list