gloox  0.9.9.12
Public Member Functions | List of all members
DiscoHandler Class Reference

#include <discohandler.h>

Inheritance diagram for DiscoHandler:
Inheritance graph
[legend]

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@ca.nosp@m.maya.nosp@m..net

Definition at line 31 of file discohandler.h.

Constructor & Destructor Documentation

virtual ~DiscoHandler ( )
inlinevirtual

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
stanzaThe full Stanza.
contextA context identifier.
Todo:
Replace the stanza with decoded values.

Implemented in Adhoc, and 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
stanzaThe full Stanza.
contextA context identifier.
Todo:
Replace the stanza with decoded values.

Implemented in Adhoc, and 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
stanzaThe full Stanza.
contextA context identifier.
Todo:
Replace the stanza with decoded values.

Implemented in Adhoc, and FlexibleOffline.

virtual bool handleDiscoSet ( Stanza stanza)
inlinevirtual

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

Parameters
stanzaThe 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: