gloox  1.0.27
Public Member Functions | List of all members
LastActivityHandler Class Referenceabstract

#include <lastactivityhandler.h>

Public Member Functions

virtual ~LastActivityHandler ()
virtual void handleLastActivityResult (const JID &jid, long seconds, const std::string &status)=0
virtual void handleLastActivityError (const JID &jid, StanzaError error)=0

Detailed Description

This is an virtual interface that, once reimplemented, allows to receive the results of Last-Activity-queries to other entities.

Jakob Schröter

Definition at line 30 of file lastactivityhandler.h.

Constructor & Destructor Documentation

◆ ~LastActivityHandler()

virtual ~LastActivityHandler ( )

Virtual Destructor.

Definition at line 36 of file lastactivityhandler.h.

Member Function Documentation

◆ handleLastActivityError()

virtual void handleLastActivityError ( const JID jid,
StanzaError  error 
pure virtual

This function is called when an error is returned by the queried antity.

jidThe queried entity's address.
errorThe reported error.

◆ handleLastActivityResult()

virtual void handleLastActivityResult ( const JID jid,
long  seconds,
const std::string &  status 
pure virtual

This function is called when a positive result of a query arrives.

jidThe JID of the queried contact.
secondsThe idle time or time of last presence of the contact. (Depends on the JID, check the spec.)
statusIf the contact is offline, this is the last presence status message. May be empty.

The documentation for this class was generated from the following file: