19 #include "searchhandler.h"
20 #include "discohandler.h"
21 #include "iqhandler.h"
22 #include "stanzaextension.h"
93 virtual bool handleIq(
const IQ& iq ) { (void)iq;
return false; }
96 virtual void handleIqID(
const IQ& iq,
int context );
105 typedef std::map<std::string, SearchHandler*> TrackMap;
108 ClientBase* m_parent;
121 class Query :
public StanzaExtension
128 Query( DataForm* form );
136 Query(
int fields,
const SearchFieldStruct& values );
143 Query(
const Tag* tag = 0 );
154 const DataForm* form()
const {
return m_form; }
160 const std::string& instructions()
const {
return m_instructions; }
166 int fields()
const {
return m_fields; }
175 virtual const std::string& filterString()
const;
178 virtual StanzaExtension* newInstance(
const Tag* tag )
const
180 return new Query( tag );
184 virtual Tag* tag()
const;
187 virtual StanzaExtension* clone()
const
189 Query* q =
new Query();
190 q->m_form = m_form ?
new DataForm( *m_form ) : 0;
191 q->m_fields = m_fields;
192 q->m_values = m_values;
193 q->m_instructions = m_instructions;
194 SearchResultList::const_iterator it = m_srl.begin();
195 for( ; it != m_srl.end(); ++it )
196 q->m_srl.push_back(
new SearchFieldStruct( *(*it) ) );
206 SearchFieldStruct m_values;
207 std::string m_instructions;
An abstraction of an IQ stanza.
std::list< const SearchFieldStruct * > SearchResultList
An implementation of XEP-0055 (Jabber Search)
The namespace for the gloox library.
A virtual interface which can be reimplemented to receive IQ stanzas.
A virtual interface that enables objects to receive Jabber Search (XEP-0055) results.
This is the common base class for a Jabber/XMPP Client and a Jabber Component.
virtual bool handleIq(const IQ &iq)