14#ifndef LASTACTIVITY_H__
15#define LASTACTIVITY_H__
78 long seconds()
const {
return m_seconds; }
85 const std::string&
status()
const {
return m_status; }
88 virtual const std::string& filterString()
const;
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...
virtual StanzaExtension * clone() const
virtual StanzaExtension * newInstance(const Tag *tag) const
const std::string & status() const
virtual Tag * tag() const
This is an implementation of XEP-0012 (Last Activity) for both clients and components.
void removeLastActivityHandler()
LastActivity(ClientBase *parent)
void registerLastActivityHandler(LastActivityHandler *lah)
StanzaExtension(int type)
This is an abstraction of an XML element.
The namespace for the gloox library.