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 )
A simple implementation of a mutex guard.
virtual Stanza * embeddedStanza() const
void clearList(std::list< T * > &L)
This is the base class for XMPP stanza abstractions.
void addExtension(const StanzaExtension *se)
std::list< const Tag * > ConstTagList
int extensionType() const
virtual StanzaExtension * newInstance(const Tag *tag) const =0
void addExtensions(Stanza &stanza, Tag *tag)
The namespace for the gloox library.
This class abstracts a stanza extension, which is usually an element in a specific namespace...
bool removeExtension(int ext)
void registerExtension(StanzaExtension *ext)
~StanzaExtensionFactory()
ConstTagList findTagList(const std::string &expression) const
This is an abstraction of an XML element.