14 #ifndef REGISTRATION_H__
15 #define REGISTRATION_H__
17 #include "iqhandler.h"
18 #include "registrationhandler.h"
138 Query(
bool del =
false );
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;
This is the common base class for a Jabber/XMPP Client and a Jabber Component.
An abstraction of an IQ stanza.
A virtual interface which can be reimplemented to receive IQ stanzas.
This is an abstraction of a jabber:x:oob namespace element or a jabber:iq:oob namespace element as sp...
A virtual interface that receives events from an Registration object.
A wrapping class for the XEP-0077 <query> element.
const std::string & instructions() const
const DataForm * form() const
virtual StanzaExtension * newInstance(const Tag *tag) const
virtual StanzaExtension * clone() const
This class is an implementation of XEP-0077 (In-Band Registration).
virtual bool handleIq(const IQ &iq)
This class abstracts a stanza extension, which is usually an XML child element in a specific namespac...
This is an abstraction of an XML element.
The namespace for the gloox library.