stanzaextensionfactory.h
/*
Copyright (c) 2006-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 STANZAEXTENSIONFACTORY_H__
#define STANZAEXTENSIONFACTORY_H__
#include "mutex.h"
#include <list>
namespace gloox
{
class Tag;
class Stanza;
class StanzaExtension;
class StanzaExtensionFactory
{
friend class ClientBase;
public:
void registerExtension( StanzaExtension* ext );
bool removeExtension( int ext );
StanzaExtensionFactory();
~StanzaExtensionFactory();
void addExtensions( Stanza& stanza, Tag* tag );
private:
typedef std::list<StanzaExtension*> SEList;
SEList m_extensions;
util::Mutex m_extensionsMutex;
};
}
#endif // STANZAEXTENSIONFACTORY_H__
gloox::StanzaExtensionFactory::StanzaExtensionFactory
StanzaExtensionFactory()
Definition stanzaextensionfactory.cpp:26
gloox::StanzaExtensionFactory::~StanzaExtensionFactory
~StanzaExtensionFactory()
Definition stanzaextensionfactory.cpp:30
gloox::StanzaExtensionFactory::registerExtension
void registerExtension(StanzaExtension *ext)
Definition stanzaextensionfactory.cpp:37
gloox::StanzaExtensionFactory::addExtensions
void addExtensions(Stanza &stanza, Tag *tag)
Definition stanzaextensionfactory.cpp:73
gloox::StanzaExtensionFactory::removeExtension
bool removeExtension(int ext)
Definition stanzaextensionfactory.cpp:57
gloox::StanzaExtension
This class abstracts a stanza extension, which is usually an XML child element in a specific namespac...
Definition stanzaextension.h:204
gloox::Stanza
This is the base class for XMPP stanza abstractions.
Definition stanza.h:34
gloox::Tag
This is an abstraction of an XML element.
Definition tag.h:47
gloox::util::Mutex
A simple implementation of mutex as a wrapper around a pthread mutex or a win32 critical section.
Definition mutex.h:34
gloox
The namespace for the gloox library.
Definition adhoc.cpp:28