gloox
1.0.28
|
#include <iqhandler.h>
Public Member Functions | |
virtual | ~IqHandler () |
virtual bool | handleIq (const IQ &iq)=0 |
virtual void | handleIqID (const IQ &iq, int context)=0 |
A virtual interface which can be reimplemented to receive IQ stanzas.
Derived classes can be registered as IqHandlers with the Client. Upon an incoming IQ packet handleIq() will be called.
Definition at line 31 of file iqhandler.h.
|
inlinevirtual |
Virtual Destructor.
Definition at line 37 of file iqhandler.h.
|
pure virtual |
Reimplement this function if you want to be notified about incoming IQs.
iq | The complete IQ stanza. |
Implemented in VCardManager, SOCKS5BytestreamManager, SIProfileFT, SIManager, Search, RosterManager, Registration, Manager, PrivateXML, PrivacyManager, NonSaslAuth, MUCRoom, LastActivity, SessionManager, Session, InBandBytestream, FlexibleOffline, Disco, and Adhoc.
|
pure virtual |
Reimplement this function if you want to be notified about incoming IQs with a specific value of the id
attribute. You have to enable tracking of those IDs using Client::trackID(). This is usually useful for IDs that generate a empty positive reply, i.e. <iq type='result' id='reg'/> where a namespace filter wouldn't work.
iq | The complete IQ stanza. |
context | A value to restore context, stored with ClientBase::trackID(). |
Implemented in VCardManager, SOCKS5BytestreamManager, SIProfileFT, SIManager, Search, RosterManager, Registration, Manager, PrivateXML, PrivacyManager, NonSaslAuth, MUCRoom, LastActivity, Session, InBandBytestream, FlexibleOffline, Disco, Adhoc, and SessionManager.