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
This is the common base class for a Jabber/XMPP Client and a Jabber Component.
An abstraction of an IQ stanza.
A virtual interface which can be reimplemented to receive IQ stanzas.
This is an virtual interface that, once reimplemented, allows to receive the results of Last-Activity...
This is an abstraction of a LastActivity Query that can be used in XEP-0012 as well as XEP-0256.
virtual StanzaExtension * newInstance(const Tag *tag) const
virtual StanzaExtension * clone() const
const std::string & status() const
This is an implementation of XEP-0012 (Last Activity) for both clients and components.
void removeLastActivityHandler()
void registerLastActivityHandler(LastActivityHandler *lah)
This class abstracts a stanza extension, which is usually an XML child element in a specific namespac...
This is an abstraction of an XML element.
The namespace for the gloox library.