gloox  1.0
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 handleDiscoInfo (const JID &from, const Disco::Info &info, int context)=0
virtual void handleDiscoItems (const JID &from, const Disco::Items &items, int context)=0
virtual void handleDiscoError (const JID &from, const Error *error, int context)=0
virtual bool handleDiscoSet (const IQ &iq)

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

Constructor & Destructor Documentation

virtual ~DiscoHandler ( )
inlinevirtual

Virtual Destructor.

Definition at line 40 of file discohandler.h.

Member Function Documentation

virtual void handleDiscoError ( const JID from,
const Error error,
int  context 
)
pure virtual

Reimplement this function to receive disco error notifications.

Parameters
fromThe sender of the error result.
errorThe Error. May be 0.
contextA context identifier.
Since
1.0

Implemented in Adhoc, and FlexibleOffline.

virtual void handleDiscoInfo ( const JID from,
const Disco::Info info,
int  context 
)
pure virtual

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

Parameters
fromThe sender of the disco::info result.
infoThe Info.
contextA context identifier.
Since
1.0

Implemented in Adhoc, and FlexibleOffline.

virtual void handleDiscoItems ( const JID from,
const Disco::Items items,
int  context 
)
pure virtual

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

Parameters
fromThe sender of the disco::items result.
itemsThe Items.
contextA context identifier.
Since
1.0

Implemented in Adhoc, and FlexibleOffline.

virtual bool handleDiscoSet ( const IQ iq)
inlinevirtual

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

Parameters
iqThe full IQ.
Returns
Returns true if the stanza was handled and answered, false otherwise.

Definition at line 77 of file discohandler.h.


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