14 #ifndef LASTACTIVITY_H__
15 #define LASTACTIVITY_H__
17 #include "iqhandler.h"
26 class LastActivityHandler;
66 Query(
const std::string& status,
long seconds );
78 long seconds()
const {
return m_seconds; }
85 const std::string&
status()
const {
return m_status; }
88 virtual const std::string& filterString()
const;
93 return new Query( tag );
97 virtual Tag* tag()
const;
102 return new Query( *
this );
107 std::string m_status;
127 void query(
const JID& jid );
145 void resetIdleTimer();
148 virtual bool handleIq(
const IQ& iq );
151 virtual void handleIqID(
const IQ& iq,
int context );
154 #ifdef LASTACTIVITY_TEST
166 #endif // LASTACTIVITY_H__
An abstraction of an IQ stanza.
void registerLastActivityHandler(LastActivityHandler *lah)
This is an abstraction of a LastActivity Query that can be used in XEP-0012 as well as XEP-0256...
const std::string & status() const
The namespace for the gloox library.
This class abstracts a stanza extension, which is usually an element in a specific namespace...
virtual StanzaExtension * newInstance(const Tag *tag) const
This is an virtual interface that, once reimplemented, allows to receive the results of Last-Activity...
A virtual interface which can be reimplemented to receive IQ stanzas.
virtual StanzaExtension * clone() const
This is an implementation of XEP-0012 (Last Activity) for both clients and components.
This is the common base class for a Jabber/XMPP Client and a Jabber Component.
This is an abstraction of an XML element.
void removeLastActivityHandler()