15 #include "softwareversion.h"
22 const std::string& version,
23 const std::string& os )
40 m_version = t->
cdata();
53 static const std::string filter =
"/iq/query[@xmlns='" +
XMLNS_VERSION +
"']";
59 Tag* t =
new Tag(
"query" );
63 new Tag( t,
"name", m_name );
65 if( !m_version.empty() )
66 new Tag( t,
"version", m_version );
69 new Tag( t,
"os", m_os );
bool setXmlns(const std::string &xmlns, const std::string &prefix=EmptyString)
virtual ~SoftwareVersion()
virtual const std::string & filterString() const
SoftwareVersion(const std::string &name, const std::string &version, const std::string &os)
The namespace for the gloox library.
This class abstracts a stanza extension, which is usually an element in a specific namespace...
const std::string cdata() const
virtual Tag * tag() const
const std::string XMLNS_VERSION
Tag * findChild(const std::string &name) const
This is an abstraction of an XML element.