jinglepluginfactory.h
/*
Copyright (c) 2013-2023 by Jakob Schröter <js@camaya.net>
This file is part of the gloox library. http://camaya.net/gloox
This software is distributed under a license. The full license
agreement can be found in the file LICENSE in this distribution.
This software may not be copied, modified, sold or distributed
other than expressed in the named license agreement.
This software is distributed without any warranty.
*/
#ifndef JINGLEPLUGINFACTORY_H__
#define JINGLEPLUGINFACTORY_H__
#include "jingleplugin.h"
#include "jinglesession.h"
namespace gloox
{
class Tag;
namespace Jingle
{
class PluginFactory
{
friend class SessionManager;
public:
virtual ~PluginFactory();
void registerPlugin( Plugin* plugin );
void addPlugins( Plugin& plugin, const Tag* tag );
void addPlugins( Session::Jingle& jingle, const Tag* tag );
private:
PluginFactory();
PluginList m_plugins;
};
}
}
#endif // JINGLEPLUGINFACTORY_H__
gloox::Jingle::PluginFactory::~PluginFactory
virtual ~PluginFactory()
Definition jinglepluginfactory.cpp:28
gloox::Jingle::PluginFactory::addPlugins
void addPlugins(Plugin &plugin, const Tag *tag)
Definition jinglepluginfactory.cpp:42
gloox::Jingle::PluginFactory::registerPlugin
void registerPlugin(Plugin *plugin)
Definition jinglepluginfactory.cpp:33
gloox::Jingle::Plugin
An abstraction of a Jingle plugin. This is part of Jingle (XEP-0166 et al.).
Definition jingleplugin.h:68
gloox::Jingle::Session::Jingle
This is an abstraction of Jingle's (XEP-0166) <jingle> element as a StanzaExtension.
Definition jinglesession.h:199
gloox::Tag
This is an abstraction of an XML element.
Definition tag.h:47
gloox::Jingle
The namespace containing Jingle-related (XEP-0166 et. al.) classes.
Definition jinglecontent.cpp:22
gloox::Jingle::PluginList
std::list< const Plugin * > PluginList
Definition jingleplugin.h:52
gloox
The namespace for the gloox library.
Definition adhoc.cpp:28