[Telepathy] add contacts
Mateus Bellomo
mateusbellomo at gmail.com
Sun May 22 20:17:49 UTC 2016
I've added the requestSubscription method in Connection.cxx which is the
one to insert a contact in the buddy list. Besides that I uncommented the
lines 100 and 101 at [1]. This should be sufficient to make available the
option Empathy>Contacts>Add Contacts..., right?
Because this option continues blocked to me. Should I add another function
somewhere else?
[1]
https://github.com/resiprocate/resiprocate/blob/master/apps/telepathy/Connection.cxx
2016-05-22 15:21 GMT-03:00 Daniel Pocock <daniel at pocock.pro>:
>
>
> On 22/05/16 19:35, Mateus Bellomo wrote:
> >> For now, you can write a class to keep the buddy list in a vector. When
> > the application loads, it should load the vector from a file and each
> > time you add or remove a buddy it should write the complete list out to
> > file again.
> >
> > I'm doing that but I got a little confused about the variables mHandles
> > and mIdentifiers at [1] line 84,85. Isn't that variables suppose to hold
> > the friends of the contact already?
> >
> > [1]
> >
> https://github.com/MateusBellomo/resiprocate/blob/master/apps/telepathy/Connection.hxx
> >
>
> Those hash maps (mHandles and mIdentifiers) are specific to the
> telepathy-resiprocate implementation, they basically cache the handles
> (unsigned integers) used by Telepathy.
>
> If you like, you can use them and persist them to disk without creating
> another class for them. Keep in mind that when you do start supporting
> a server-side buddy list, you would need to download the list of
> contacts from the server and use it to initialize those maps each time
> the user logs in
>
> Please also see the comments I just added to the README about padsp, you
> may find it helpful
>
> Regards,
>
> Daniel
> _______________________________________________
> telepathy mailing list
> telepathy at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/telepathy
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/telepathy/attachments/20160522/3e206592/attachment.html>
More information about the telepathy
mailing list