19 static const char * iqTypeStringValues[] =
21 "get",
"set",
"result",
"error"
24 static inline const char* typeString(
IQ::IqType type )
26 return iqTypeStringValues[type];
30 : Stanza( tag ), m_subtype( Invalid )
32 if( !tag || tag->name() !=
"iq" )
35 m_subtype = (
IQ::IqType)util::lookup( tag->findAttribute(
TYPE ), iqTypeStringValues );
39 :
Stanza( to ), m_subtype( type )
62 StanzaExtensionList::const_iterator it = m_extensionList.begin();
63 for( ; it != m_extensionList.end(); ++it )
This is the base class for XMPP stanza abstractions.
IQ(IqType type, const JID &to, const std::string &id=EmptyString)
void addChild(Tag *child)
virtual Tag * tag() const
The namespace for the gloox library.
bool addAttribute(Attribute *attr)
const std::string & full() const
const std::string & id() const
This is an abstraction of an XML element.