15 #ifndef PRIVATEXML_H__
16 #define PRIVATEXML_H__
18 #include "iqhandler.h"
19 #include "privatexmlhandler.h"
60 std::string requestXML(
const std::string& tag,
const std::string& xmlns,
PrivateXMLHandler* pxh );
72 virtual bool handleIq(
const IQ& iq ) { (void)iq;
return false; }
75 virtual void handleIqID(
const IQ& iq,
int context );
81 #ifdef PRIVATEXML_TEST
98 Query(
const std::string& tag,
const std::string& xmlns )
101 m_privateXML =
new Tag( tag,
XMLNS, xmlns );
109 Query(
const Tag* tag = 0 );
114 ~Query() {
delete m_privateXML; }
120 const Tag* privateXML()
const {
return m_privateXML; }
123 virtual const std::string& filterString()
const;
126 virtual StanzaExtension* newInstance(
const Tag* tag )
const
128 return new Query( tag );
132 virtual Tag* tag()
const;
135 virtual StanzaExtension* clone()
const
137 Query* q =
new Query();
138 q->m_privateXML = m_privateXML ? m_privateXML->clone() : 0;
143 const Tag* m_privateXML;
153 typedef std::map<std::string, PrivateXMLHandler*> TrackMap;
160 #endif // PRIVATEXML_H__
This class abstracts a stanza extension, which is usually an XML child element in a specific namespac...
virtual bool handleIq(const IQ &iq)
A virtual interface which can be reimplemented to receive IQ stanzas.
This class implements XEP-0049 (Private XML Storage).
A virtual interface which can be reimplemented to store and receive private XML data.
The namespace for the gloox library.
This is an abstraction of an XML element.
An abstraction of an IQ stanza.
This is the common base class for a Jabber/XMPP Client and a Jabber Component.