gloox
1.0.9
|
#include <jinglepluginfactory.h>
Public Member Functions | |
virtual | ~PluginFactory () |
void | registerPlugin (Plugin *plugin) |
void | addPlugins (Plugin &plugin, const Tag *tag) |
void | addPlugins (Session::Jingle &jingle, const Tag *tag) |
A factory for which creates Plugin instances based on Tags. This is part of Jingle (XEP-0166).
Used by Jingle::SessionManager. You should not need to use this class directly.
Definition at line 36 of file jinglepluginfactory.h.
|
virtual |
Virtual destructor.
Definition at line 28 of file jinglepluginfactory.cpp.
Based on the template plugins' filter string, this function checks the supplied tag for supported extensions and adds them as new plugins to the supplied Plugin instance.
plugin | The Plugin-derived object that will have the newly created plugins embedded. |
tag | The Tag to check for supported extensions. |
Definition at line 42 of file jinglepluginfactory.cpp.
void addPlugins | ( | Session::Jingle & | jingle, |
const Tag * | tag | ||
) |
Based on the template plugins' filter string, this function checks the supplied tag for supported extensions and adds them as new plugins to the supplied Jingle instance.
jingle | The Jingle object that will have the newly created plugins embedded. |
tag | The Tag to check for supported extensions. |
Definition at line 65 of file jinglepluginfactory.cpp.
void registerPlugin | ( | Plugin * | plugin | ) |
Registers an empty Plugin as a template with the factory.
plugin | The plugin to register. |
Definition at line 33 of file jinglepluginfactory.cpp.