DiscoHandler Class Reference

A virtual interface that enables objects to receive Service Discovery (XEP-0030) events. More...

#include <discohandler.h>

Inherited by Adhoc, FlexibleOffline, and MUCRoom [private].

List of all members.

Public Member Functions

virtual ~DiscoHandler ()
virtual void handleDiscoInfoResult (Stanza *stanza, int context)=0
virtual void handleDiscoItemsResult (Stanza *stanza, int context)=0
virtual void handleDiscoError (Stanza *stanza, int context)=0
virtual bool handleDiscoSet (Stanza *stanza)

Detailed Description

A virtual interface that enables objects to receive Service Discovery (XEP-0030) events.

A class implementing this interface can receive the results of sent disco queries.

Author:
Jakob Schroeter <js@camaya.net>

Definition at line 31 of file discohandler.h.


Constructor & Destructor Documentation

virtual ~DiscoHandler (  )  [inline, virtual]

Virtual Destructor.

Definition at line 37 of file discohandler.h.


Member Function Documentation

virtual void handleDiscoError ( Stanza stanza,
int  context 
) [pure virtual]

Reimplement this function to receive disco error notifications.

Parameters:
stanza The full Stanza.
context A context identifier.
Todo:
Replace the stanza with decoded values.

Implemented in Adhoc, FlexibleOffline, and MUCRoom.

virtual void handleDiscoInfoResult ( Stanza stanza,
int  context 
) [pure virtual]

Reimplement this function if you want to be notified about the result of an disco::info query.

Parameters:
stanza The full Stanza.
context A context identifier.
Todo:
Replace the stanza with decoded values.

Implemented in Adhoc, FlexibleOffline, and MUCRoom.

virtual void handleDiscoItemsResult ( Stanza stanza,
int  context 
) [pure virtual]

Reimplement this function if you want to be notified about the result of an disco::items query.

Parameters:
stanza The full Stanza.
context A context identifier.
Todo:
Replace the stanza with decoded values.

Implemented in Adhoc, FlexibleOffline, and MUCRoom.

virtual bool handleDiscoSet ( Stanza stanza  )  [inline, virtual]

Reimplement this function to receive notifications about incoming IQ stanzas of type 'set' in the disco namespace.

Parameters:
stanza The full Stanza.
Returns:
Returns true if the stanza was handled and answered, false otherwise.
Todo:
Replace the stanza with decoded values.

Definition at line 72 of file discohandler.h.


The documentation for this class was generated from the following file:

Generated on Mon Dec 7 13:28:24 2009 for gloox by  doxygen 1.6.1