#include <registrationhandler.h>
Public Types | |
enum | resultEnum { REGISTRATION_SUCCESS = 0, REGISTRATION_NOT_ACCEPTABLE, REGISTRATION_CONFLICT, REGISTRATION_NOT_AUTHORIZED, REGISTRATION_BAD_REQUEST, REGISTRATION_FORBIDDEN, REGISTRATION_REGISTRATION_REQUIRED, REGISTRATION_UNEXPECTED_REQUEST, REGISTRATION_NOT_ALLOWED } |
Public Member Functions | |
virtual | ~RegistrationHandler () |
virtual void | handleRegistrationFields (int fields, std::string instructions)=0 |
virtual void | handleAlreadyRegistered ()=0 |
virtual void | handleRegistrationResult (resultEnum result)=0 |
Derived classes can be registered as RegistrationHandlers with an Registration object. Incoming result for operations initiated through the Registration object are forwarded to this handler.
Definition at line 32 of file registrationhandler.h.
|
Possible results of a JEP-0077 operation.
Definition at line 38 of file registrationhandler.h. |
|
Virtual Destructor. Definition at line 72 of file registrationhandler.h. |
|
This function is called if Registration::createAccount() was called on an authenticated stream and the server lets us know about this. Referenced by Registration::handleIqID(). |
|
Reimplement this function to receive results of the Registration::fetchRegistrationFields() function.
Referenced by Registration::handleIqID(). |
|
This funtion is called to notify about the result of an operation.
Referenced by Registration::handleIq(), and Registration::handleIqID(). |