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();
145 Stanza* embeddedStanza()
const;
156 Tag* embeddedTag()
const;
166 virtual Tag* tag()
const = 0;
185 std::string m_xmllang;
189 static const std::string& findLang(
const StringMap* map,
190 const std::string& defaultData,
191 const std::string& lang );
194 std::string& defaultLang,
198 std::string& defaultLang,
199 const std::string& data,
200 const std::string& xmllang );
202 static void getLangs(
const StringMap* map,
203 const std::string& defaultData,
204 const std::string& name,
Tag* tag );
209 bool m_hasEmbeddedStanza;