[Telepathy] send local user status

Mateus Bellomo mateusbellomo at gmail.com
Tue Jun 7 01:46:00 UTC 2016


> The CM setPresence() implementation (probably via a special library)
sends network packages
to inform remotes about the new presence

I was looking for this special library at resiprocate but couldn't find it.
So I was wondering if there is a way to send this network packages to
inform remotes only using telepathy d-bus interface.

2016-06-06 2:52 GMT-03:00 Alexandr Akulich <akulichalexander at gmail.com>:

> Hi Mateus,
>
> On Mon, Jun 6, 2016 at 1:45 AM, Mateus Bellomo <mateusbellomo at gmail.com>
> wrote:
> > I've implemented both setPresence() and getPresences() methods, but
> > I didn't see there any methods so the user could send his status info to
> his contacts.
>
> setPresence() accepts string:Status and string:StatusMessage and
> designed to send the passed info to contacts.
>
> See [1] and [2]. Local user set presence in the UI (Empathy,
> KDE-Telepathy, ...). The UI calls setPresence(). The CM setPresence()
> implementation (probably via a special library) sends network packages
> to inform remotes about the new presence. Morse calls
> CTelegramCore::setOnlineStatus() of the TelegramQt backend library;
> Nonsense calls QXmppClient::setClientPresence() of the QXmpp backend
> library.
>
> [1]
> https://github.com/TelepathyQt/telepathy-nonsense/blob/master/connection.cc#L347
> [2]
> https://github.com/TelepathyQt/telepathy-morse/blob/master/connection.cpp#L655
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/telepathy/attachments/20160606/f0214be7/attachment.html>


More information about the telepathy mailing list