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