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; }
104 inline const T* findExtension(
int type )
const
106 return static_cast<const T*
>( findExtension( type ) );
118 void removeExtensions();
127 virtual Tag* tag()
const = 0;
146 std::string m_xmllang;
150 static const std::string& findLang(
const StringMap* map,
151 const std::string& defaultData,
152 const std::string& lang );
155 std::string& defaultLang,
159 std::string& defaultLang,
160 const std::string& data,
161 const std::string& xmllang );
163 static void getLangs(
const StringMap* map,
164 const std::string& defaultData,
165 const std::string& name,
Tag* tag );