17 #include "stanzaextension.h"
57 m_error( error ), m_appError( appError )
94 const std::string& text(
const std::string& lang =
EmptyString )
const;
109 virtual const std::string& filterString()
const;
114 return new Error( tag );
118 virtual Tag* tag()
const;
123 return new Error( *
this );
129 void setValues(
const Tag* tag );
StanzaError error() const
Error(StanzaErrorType type, StanzaError error, Tag *appError=0)
const Tag * appError() const
StanzaErrorType type() const
A stanza error abstraction implemented as a StanzaExtension.
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
virtual StanzaExtension * clone() const
virtual StanzaExtension * newInstance(const Tag *tag) const
void setText(const std::string &text, const std::string &lang=EmptyString)
const std::string EmptyString
This is an abstraction of an XML element.