gloox
1.0.28
|
#include <stanzaextensionfactory.h>
Public Member Functions | |
void | registerExtension (StanzaExtension *ext) |
bool | removeExtension (int ext) |
StanzaExtensionFactory () | |
~StanzaExtensionFactory () | |
void | addExtensions (Stanza &stanza, Tag *tag) |
A Factory that creates StanzaExtensions from Tags.
To supply a custom StanzaExtension, reimplement StanzaExtension's virtuals and pass an instance to registerExtension().
You should not need to use this class directly. Use ClientBase::registerStanzaExtension() instead. See StanzaExtension for more information about adding protocol implementations to gloox.
Definition at line 41 of file stanzaextensionfactory.h.
Creates a new StanzaExtensionFactory.
Definition at line 26 of file stanzaextensionfactory.cpp.
Non-virtual destructor.
Definition at line 30 of file stanzaextensionfactory.cpp.
This function creates StanzaExtensions from the given Tag and attaches them to the given Stanza.
stanza | The Stanza to attach the extensions to. |
tag | The Tag to parse and create the StanzaExtension from. |
Definition at line 73 of file stanzaextensionfactory.cpp.
void registerExtension | ( | StanzaExtension * | ext | ) |
Use this function to inform StanzaExtensionFactory about available StanzaExtensions. By default, StanzaExtensionFactory does not know about any extensions. gloox-built-in extensions will usually be registered by their respective protocol implementations unless otherwise noted in the extension's API docs.
ext | An extension to register. |
Definition at line 37 of file stanzaextensionfactory.cpp.
bool removeExtension | ( | int | ext | ) |
Removes the given extension type.
ext | The extension type. |
Definition at line 57 of file stanzaextensionfactory.cpp.