Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | Related Pages

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

Inheritance diagram for DiscoHandler:

Inheritance graph
[legend]
List of all members.

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@camaya.net>

Definition at line 34 of file discohandler.h.


Constructor & Destructor Documentation

virtual ~DiscoHandler  )  [inline, virtual]
 

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:
from The sender of the error result.
error The Error. May be 0.
context A context identifier.
Since:
1.0

Implemented in Adhoc, FlexibleOffline, and MUCRoom.

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:
from The sender of the disco#info result.
info The Info.
context A context identifier.
Since:
1.0

Implemented in Adhoc, FlexibleOffline, and MUCRoom.

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:
from The sender of the disco#items result.
items The Items.
context A context identifier.
Since:
1.0

Implemented in Adhoc, FlexibleOffline, and MUCRoom.

virtual bool handleDiscoSet const IQ iq  )  [inline, virtual]
 

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

Parameters:
iq The 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:
Generated on Sat Oct 31 19:54:37 2009 for gloox by  doxygen 1.4.1