We announced a new communications product, Hangouts, in May 2013. Hangouts will replace Google Talk and does not support XMPP.

PresenceOutTask Class

An XMPP helper task that sends the current user's status to a XMPP server. The task does not wait for a reply (XMPP does not define a reply), but ends itself once the status stanza has been sent. See CallClient::InitPresence in callclient.cc for example code. The methods shown are not thread-safe, and can be called on any thread, but you should call them from the signaling thread.


class PresenceOutTask : public XmppTask


The following table lists the important public methods of PresenceOutTask.

Name Description
XmppReturnStatus Send(const Status & s) Sends the current user's status to the XMPP server.
XmppReturnStatus SendDirected(const Jid & j, const Status & s) Sends the current user's status to a specific user on the XMPP server. The JID must be the full jid of the user, not a bare JID.
XmppReturnStatus SendProbe(const Jid& jid) Sends a request for the presence of a particular user, identified by their full JID.
virtual int ProcessStart() Starts the task running.


See Also

Attributes: public

Declaration file: talk/examples/login/presenceouttask.h