#include <iqhandler.h>
Inherited by Adhoc [private]
, Disco, FlexibleOffline [private]
, InBandBytestreamManager, LastActivity, NonSaslAuth, PrivacyManager, PrivateXML, Registration, RosterManager, Search, and VCardManager.
Inheritance diagram for IqHandler:
Public Member Functions | |
virtual | ~IqHandler () |
virtual bool | handleIq (Stanza *stanza)=0 |
virtual bool | handleIqID (Stanza *stanza, int context)=0 |
Derived classes can be registered as IqHandlers with the Client. Upon an incoming IQ packet handleIq() will be called.
Definition at line 30 of file iqhandler.h.
virtual ~IqHandler | ( | ) | [inline, virtual] |
Virtual Destructor.
Definition at line 36 of file iqhandler.h.
virtual bool handleIq | ( | Stanza * | stanza | ) | [pure virtual] |
Reimplement this function if you want to be notified about incoming IQs.
stanza | The complete Stanza. |
Implemented in Adhoc, Disco, FlexibleOffline, InBandBytestreamManager, LastActivity, NonSaslAuth, PrivacyManager, PrivateXML, Registration, RosterManager, Search, and VCardManager.
virtual bool handleIqID | ( | Stanza * | stanza, | |
int | context | |||
) | [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 positive reply, i.e. <iq type='result' id='reg'/> where a namespace filter wouldn't work.
stanza | The complete Stanza. | |
context | A value to restore context, stored with ClientBase::trackID(). |
Implemented in Adhoc, Disco, FlexibleOffline, InBandBytestreamManager, LastActivity, NonSaslAuth, PrivacyManager, PrivateXML, Registration, RosterManager, Search, and VCardManager.