14 #include "stanzaextensionfactory.h"
17 #include "mutexguard.h"
20 #include "stanzaextension.h"
32 m_extensionsMutex.
lock();
34 m_extensionsMutex.
unlock();
43 SEList::iterator it = m_extensions.begin();
45 while( it != m_extensions.end() )
51 m_extensions.erase( it2 );
54 m_extensions.push_back( ext );
60 SEList::iterator it = m_extensions.begin();
61 for( ; it != m_extensions.end(); ++it )
63 if( (*it)->extensionType() == ext )
66 m_extensions.erase( it );
75 ConstTagList::const_iterator it;
78 SEList::const_iterator ite = m_extensions.begin();
79 for( ; ite != m_extensions.end(); ++ite )
83 for( ; it != match.end(); ++it )
~StanzaExtensionFactory()
void registerExtension(StanzaExtension *ext)
void addExtensions(Stanza &stanza, Tag *tag)
bool removeExtension(int ext)
This class abstracts a stanza extension, which is usually an XML child element in a specific namespac...
virtual Stanza * embeddedStanza() const
virtual StanzaExtension * newInstance(const Tag *tag) const =0
int extensionType() const
This is the base class for XMPP stanza abstractions.
void addExtension(const StanzaExtension *se)
This is an abstraction of an XML element.
ConstTagList findTagList(const std::string &expression) const
A simple implementation of a mutex guard.
void clearList(std::list< T * > &L)
The namespace for the gloox library.
std::list< const Tag * > ConstTagList