Re: [Telepathy] send local user status
I'm looking the link you gave and it seems it would be better to create another layer to include line 97-120 right? Because if we want to maintain the Connection.cxx code as clean as possible and make the function calls like [1] or [2] it would be necessary to implement a method setClientPresence() that includes lines 97-120. [1] https://github.com/TelepathyQt/telepathy-nonsense/blob/master/connection.cc#L347 [2] https://github.com/TelepathyQt/telepathy-morse/blob/master/connection.cpp#L655 2016-06-07 8:45 GMT-03:00 Daniel Pocock: > On 07/06/16 03:46, Mateus Bellomo wrote: > > > 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. > > > Look for the DUM method makePublication and examples of code that use it > > Here is one example: > > > https://github.com/resiprocate/resiprocate/blob/master/resip/dum/test/basicPublication.cxx > > You probably want to look for any code that refers to > ClientPublication.hxx for more examples > > > > ___ > telepathy mailing list > telepathy@lists.freedesktop.org > https://lists.freedesktop.org/mailman/listinfo/telepathy > > ___ telepathy mailing list telepathy@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/telepathy
Re: [Telepathy] send local user status
On 07/06/16 03:46, Mateus Bellomo wrote: > > 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. > Look for the DUM method makePublication and examples of code that use it Here is one example: https://github.com/resiprocate/resiprocate/blob/master/resip/dum/test/basicPublication.cxx You probably want to look for any code that refers to ClientPublication.hxxfor more examples ___ telepathy mailing list telepathy@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/telepathy
Re: [Telepathy] send local user status
> 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: > Hi Mateus, > > On Mon, Jun 6, 2016 at 1:45 AM, Mateus Bellomo > 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 > ___ telepathy mailing list telepathy@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/telepathy
Re: [Telepathy] send local user status
Hi Mateus, On Mon, Jun 6, 2016 at 1:45 AM, Mateus Bellomowrote: > 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 ___ telepathy mailing list telepathy@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/telepathy