20 #include "stanzaextension.h"
51 const JID&
from()
const {
return m_from; }
57 const JID&
to()
const {
return m_to; }
63 const std::string&
id()
const {
return m_id; }
69 const Error* error()
const;
76 const std::string&
xmlLang()
const {
return m_xmllang; }
106 return static_cast<const T*
>( findExtension( type ) );
118 void removeExtensions();
145 Stanza* embeddedStanza()
const;
156 Tag* embeddedTag()
const;
164 virtual Tag* tag()
const = 0;
183 std::string m_xmllang;
187 static const std::string& findLang(
const StringMap* map,
188 const std::string& defaultData,
189 const std::string& lang );
192 std::string& defaultLang,
196 std::string& defaultLang,
197 const std::string& data,
198 const std::string& xmllang );
200 static void getLangs(
const StringMap* map,
201 const std::string& defaultData,
202 const std::string& name,
Tag* tag );
207 bool m_hasEmbeddedStanza;
const StanzaExtensionList & extensions() const
std::list< const StanzaExtension * > StanzaExtensionList
This is the base class for XMPP stanza abstractions.
A stanza error abstraction implemented as a StanzaExtension.
void setFrom(const JID &from)
const std::string & xmlLang() const
The namespace for the gloox library.
This class abstracts a stanza extension, which is usually an element in a specific namespace...
std::map< std::string, std::string > StringMap
bool hasEmbeddedStanza() const
const std::string & id() const
This is an abstraction of an XML element.
const T * findExtension(int type) const