17 #include "stanzaextension.h" 57 m_error( error ), m_appError( appError )
89 void setAppError(
Tag* appError );
100 const std::string& text(
const std::string& lang =
EmptyString )
const;
115 virtual const std::string& filterString()
const;
120 return new Error( tag );
124 virtual Tag* tag()
const;
129 return new Error( *
this );
135 void setValues(
const Tag* tag );
Error(StanzaErrorType type, StanzaError error, Tag *appError=0)
virtual StanzaExtension * newInstance(const Tag *tag) const
A stanza error abstraction implemented as a StanzaExtension.
virtual StanzaExtension * clone() const
StanzaErrorType type() const
The namespace for the gloox library.
This class abstracts a stanza extension, which is usually an XML child element in a specific namespac...
std::map< std::string, std::string > StringMap
StanzaError error() const
const Tag * appError() const
void setText(const std::string &text, const std::string &lang=EmptyString)
const std::string EmptyString
This is an abstraction of an XML element.