DiscoHandler Class Reference

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

#include <discohandler.h>

Inherited by FlexibleOffline.

Inheritance diagram for DiscoHandler:

Inheritance graph
[legend]
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 (JEP-0030) events.

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

Author:
Jakob Schroeter <js@camaya.net>

Definition at line 30 of file discohandler.h.


Constructor & Destructor Documentation

virtual ~DiscoHandler (  )  [inline, virtual]

Virtual Destructor.

Definition at line 36 of file discohandler.h.


Member Function Documentation

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 FlexibleOffline.

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 FlexibleOffline.

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 FlexibleOffline.

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 71 of file discohandler.h.


The documentation for this class was generated from the following file:
Generated on Tue May 1 14:20:23 2007 for gloox by  doxygen 1.5.1