14 #ifndef CAPABILITIES_H__
15 #define CAPABILITIES_H__
17 #include "disconodehandler.h"
18 #include "stanzaextension.h"
61 const std::string&
node()
const {
return m_node; }
67 void setNode(
const std::string& node ) { m_node = node; }
73 const std::string ver()
const;
76 virtual const std::string& filterString()
const;
85 virtual Tag* tag()
const;
94 virtual StringList handleDiscoNodeFeatures(
const JID& from,
const std::string& node );
98 const std::string& node );
109 const std::string& hash()
const {
return m_hash; }
116 void setHash(
const std::string& hash ) { m_hash = hash; }
119 const StringList& features,
const DataForm* form = 0 );
120 static std::string generate(
const Disco::Info* info );
121 static std::string generate(
const Disco* disco );
This is an implementation of XEP-0115 (Entity Capabilities).
const std::string & node() const
void setNode(const std::string &node)
virtual StanzaExtension * newInstance(const Tag *tag) const
virtual StanzaExtension * clone() const
Derived classes can be registered as NodeHandlers for certain nodes with the Disco object.
This class implements XEP-0030 (Service Discovery) and XEP-0092 (Software Version).
std::list< Identity * > IdentityList
std::list< Item * > ItemList
This class abstracts a stanza extension, which is usually an XML child element in a specific namespac...
This is an abstraction of an XML element.
The namespace for the gloox library.
std::list< std::string > StringList
const std::string EmptyString