14 #ifndef REGISTRATION_H__
15 #define REGISTRATION_H__
17 #include "iqhandler.h"
18 #include "registrationhandler.h"
138 Query(
bool del =
false );
192 bool remove()
const {
return m_del; }
201 virtual const std::string& filterString()
const;
206 return new Query( tag );
210 virtual Tag* tag()
const;
216 q->m_form = m_form ?
new DataForm( *m_form ) : 0;
217 q->m_fields = m_fields;
218 q->m_values = m_values;
219 q->m_instructions = m_instructions;
220 q->m_oob =
new OOB( *m_oob );
230 std::string m_instructions;
260 void fetchRegistrationFields();
283 void createAccount(
DataForm* form );
288 void removeAccount();
296 void changePassword(
const std::string& username,
const std::string& password );
307 void removeRegistrationHandler();
310 virtual bool handleIq(
const IQ& iq ) { (void)iq;
return false; }
313 virtual void handleIqID(
const IQ& iq,
int context );
316 #ifdef REGISTRATION_TEST
322 FetchRegistrationFields,
328 Registration operator=(
const Registration& );
332 ClientBase* m_parent;
334 RegistrationHandler* m_registrationHandler;
339 #endif // REGISTRATION_H__