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 );
132 #endif // CAPABILITIES_H__
std::list< Item * > ItemList
std::list< std::string > StringList
std::list< Identity * > IdentityList
virtual StanzaExtension * newInstance(const Tag *tag) const
Derived classes can be registered as NodeHandlers for certain nodes with the Disco object...
The namespace for the gloox library.
This class abstracts a stanza extension, which is usually an element in a specific namespace...
const std::string & node() const
virtual StanzaExtension * clone() const
This class implements XEP-0030 (Service Discovery) and XEP-0092 (Software Version).
This is an implementation of XEP-0115 (Entity Capabilities).
void setNode(const std::string &node)
const std::string EmptyString
This is an abstraction of an XML element.