TagHandler Class Reference

A virtual interface which can be reimplemented to receive non-XMPP Core stanzas. More...

#include <taghandler.h>

Inheritance diagram for TagHandler:

Inheritance graph
[legend]

List of all members.

Public Member Functions

virtual ~TagHandler ()
virtual void handleTag (Tag *tag)=0


Detailed Description

A virtual interface which can be reimplemented to receive non-XMPP Core stanzas.

Derived classes can be registered as TagHandlers with the ClientBase. A TagHandler can handle arbitrary elements not defined by RFC 3920, XMPP Core.

It can also be used to handle Tags emitted by Parser.

Author:
Jakob Schroeter <js@camaya.net>

Definition at line 32 of file taghandler.h.


Constructor & Destructor Documentation

virtual ~TagHandler (  )  [inline, virtual]

Virtual Destructor.

Definition at line 38 of file taghandler.h.


Member Function Documentation

virtual void handleTag ( Tag tag  )  [pure virtual]

This function is called when a registered XML element arrives. As with every handler in gloox, the Tag is going to be deleted after this function returned. If you need a copy afterwards, create it using Tag::clone().

Parameters:
tag The complete Tag.

Implemented in ClientBase.


The documentation for this class was generated from the following file:
Generated on Sat Nov 10 08:50:44 2007 for gloox by  doxygen 1.5.3-20071008