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 =
static_cast<IQ::IqType
>( util::lookup( tag->findAttribute( TYPE ), iqTypeStringValues ) );
38 IQ::IQ(
IqType type,
const JID& to,
const std::string&
id )
39 :
Stanza( to ), m_subtype( type )
62 StanzaExtensionList::const_iterator it = m_extensionList.begin();
63 for( ; it != m_extensionList.end(); ++it )
IQ(IqType type, const JID &to, const std::string &id=EmptyString)
virtual Tag * tag() const
const std::string & full() const
This is the base class for XMPP stanza abstractions.
const std::string & id() const
This is an abstraction of an XML element.
bool addAttribute(Attribute *attr)
void addChild(Tag *child)
The namespace for the gloox library.