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__