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__
A virtual interface that receives events from an Registration object.
virtual StanzaExtension * clone() const
This class is an implementation of XEP-0077 (In-Band Registration).
An abstraction of an IQ stanza.
virtual StanzaExtension * newInstance(const Tag *tag) const
virtual bool handleIq(const IQ &iq)
The namespace for the gloox library.
const std::string & instructions() const
This class abstracts a stanza extension, which is usually an element in a specific namespace...
const DataForm * form() const
This is an abstraction of a jabber:x:oob namespace element or a jabber:iq:oob namespace element as sp...
A wrapping class for the XEP-0077 element.
A virtual interface which can be reimplemented to receive IQ stanzas.
This is the common base class for a Jabber/XMPP Client and a Jabber Component.
This is an abstraction of an XML element.