<div dir="ltr"><div>> For now, you can write a class to keep the buddy list in a vector. When<br>
the application loads, it should load the vector from a file and each<br>
time you add or remove a buddy it should write the complete list out to<br>
file again.<br><br></div>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?<br><br>[1] <a href="https://github.com/MateusBellomo/resiprocate/blob/master/apps/telepathy/Connection.hxx">https://github.com/MateusBellomo/resiprocate/blob/master/apps/telepathy/Connection.hxx</a><br></div><div class="gmail_extra"><br><div class="gmail_quote">2016-05-22 3:10 GMT-03:00 Daniel Pocock <span dir="ltr"><<a href="mailto:daniel@pocock.pro" target="_blank">daniel@pocock.pro</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class=""><br>
<br>
On 21/05/16 23:10, Mateus Bellomo wrote:<br>
> Hello,<br>
><br>
> I'm implementing adding contact method in resiprocate and I'm using<br>
> telepathy-morse [1] as model. I would like to know what is the<br>
> resiprocate equivalent of CTelegramCore found at [2] line 133.<br>
><br>
> The reason I'm asking that is because there is a function call to<br>
> addContacts() in line 594 at [3] in the end of function<br>
> requestSubscription() and I was wondering where actually the contact is<br>
> being added to.<br>
><br>
<br>
<br>
<br>
</span>The underlying APIs (e.g. Telegram, reSIProcate) won't be exactly the same<br>
<br>
For example, XMPP stores contacts in the XMPP server-side account and<br>
maybe Telegram is doing that too (I'm not familiar with the Telegram API)<br>
<br>
For SIP, you can add the buddy to a resource list on a resource list<br>
server (RLS) or you can store it locally in a file.<br>
<br>
For now, you can write a class to keep the buddy list in a vector. When<br>
the application loads, it should load the vector from a file and each<br>
time you add or remove a buddy it should write the complete list out to<br>
file again.<br>
<br>
When you are looking for how to do something with the reSIProcate API, I<br>
would recommend looking at the unit tests, e.g. look at resip/dum/test<br>
for the basicClient, basicMessage, basicPublication, rls*<br>
<span class=""><br>
<br>
><br>
><br>
> [1] <a href="https://github.com/TelepathyQt/telepathy-morse" rel="noreferrer" target="_blank">https://github.com/TelepathyQt/telepathy-morse</a><br>
> [2]<br>
> <a href="https://github.com/TelepathyQt/telepathy-morse/blob/master/connection.hpp" rel="noreferrer" target="_blank">https://github.com/TelepathyQt/telepathy-morse/blob/master/connection.hpp</a><br>
> [3]<br>
> <a href="https://github.com/TelepathyQt/telepathy-morse/blob/master/connection.cpp" rel="noreferrer" target="_blank">https://github.com/TelepathyQt/telepathy-morse/blob/master/connection.cpp</a><br>
><br>
><br>
</span>> _______________________________________________<br>
> telepathy mailing list<br>
> <a href="mailto:telepathy@lists.freedesktop.org">telepathy@lists.freedesktop.org</a><br>
> <a href="https://lists.freedesktop.org/mailman/listinfo/telepathy" rel="noreferrer" target="_blank">https://lists.freedesktop.org/mailman/listinfo/telepathy</a><br>
><br>
_______________________________________________<br>
telepathy mailing list<br>
<a href="mailto:telepathy@lists.freedesktop.org">telepathy@lists.freedesktop.org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/telepathy" rel="noreferrer" target="_blank">https://lists.freedesktop.org/mailman/listinfo/telepathy</a><br>
</blockquote></div><br></div>