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 *)

Detailed Description

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

A class implementing this interface can receives 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 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 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 bool handleDiscoSet 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 whether the stanza was handled and answered.
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 Mon Jan 16 16:19:58 2006 for gloox by  doxygen 1.4.6