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;
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;
A stanza error abstraction implemented as a StanzaExtension.
This class abstracts a stanza extension, which is usually an XML child element in a specific namespac...
This is the base class for XMPP stanza abstractions.
void setFrom(const JID &from)
virtual Tag * tag() const =0
const T * findExtension(int type) const
const std::string & xmlLang() const
bool hasEmbeddedStanza() const
const StanzaExtensionList & extensions() const
const std::string & id() const
This is an abstraction of an XML element.
The namespace for the gloox library.
std::list< const StanzaExtension * > StanzaExtensionList
std::map< std::string, std::string > StringMap