gloox  1.0.22
registrationhandler.h
1 /*
2  Copyright (c) 2005-2017 by Jakob Schröter <js@camaya.net>
3  This file is part of the gloox library. http://camaya.net/gloox
4 
5  This software is distributed under a license. The full license
6  agreement can be found in the file LICENSE in this distribution.
7  This software may not be copied, modified, sold or distributed
8  other than expressed in the named license agreement.
9 
10  This software is distributed without any warranty.
11 */
12 
13 
14 
15 #ifndef REGISTRATIONHANDLER_H__
16 #define REGISTRATIONHANDLER_H__
17 
18 #include "oob.h"
19 
20 #include <string>
21 
22 namespace gloox
23 {
24 
25  class OOB;
26  class JID;
27  class DataForm;
28 
33  {
68  };
69 
80  class GLOOX_API RegistrationHandler
81  {
82  public:
86  virtual ~RegistrationHandler() {}
87 
95  virtual void handleRegistrationFields( const JID& from, int fields,
96  std::string instructions ) = 0;
97 
102  virtual void handleAlreadyRegistered( const JID& from ) = 0;
103 
109  virtual void handleRegistrationResult( const JID& from, RegistrationResult regResult ) = 0;
110 
117  virtual void handleDataForm( const JID& from, const DataForm& form ) = 0;
118 
125  virtual void handleOOB( const JID& from, const OOB& oob ) = 0;
126 
127  };
128 
129 }
130 
131 #endif // REGISTRATIONHANDLER_H__
gloox::RegistrationUnknownError
@ RegistrationUnknownError
Definition: registrationhandler.h:67
gloox::RegistrationSuccess
@ RegistrationSuccess
Definition: registrationhandler.h:34
gloox::RegistrationHandler::~RegistrationHandler
virtual ~RegistrationHandler()
Definition: registrationhandler.h:86
gloox::RegistrationRequired
@ RegistrationRequired
Definition: registrationhandler.h:52
gloox::RegistrationNotAcceptable
@ RegistrationNotAcceptable
Definition: registrationhandler.h:36
gloox::DataForm
An abstraction of a XEP-0004 Data Form.
Definition: dataform.h:56
gloox::RegistrationBadRequest
@ RegistrationBadRequest
Definition: registrationhandler.h:43
gloox::RegistrationNotAuthorized
@ RegistrationNotAuthorized
Definition: registrationhandler.h:38
gloox::RegistrationUnexpectedRequest
@ RegistrationUnexpectedRequest
Definition: registrationhandler.h:54
gloox::OOB
This is an abstraction of a jabber:x:oob namespace element or a jabber:iq:oob namespace element as sp...
Definition: oob.h:35
gloox::JID
An abstraction of a JID.
Definition: jid.h:30
gloox
The namespace for the gloox library.
Definition: adhoc.cpp:27
gloox::RegistrationConstraint
@ RegistrationConstraint
Definition: registrationhandler.h:64
gloox::RegistrationResult
RegistrationResult
Definition: registrationhandler.h:32
gloox::RegistrationHandler
A virtual interface that receives events from an Registration object.
Definition: registrationhandler.h:80
gloox::RegistrationNotAllowed
@ RegistrationNotAllowed
Definition: registrationhandler.h:62
gloox::RegistrationConflict
@ RegistrationConflict
Definition: registrationhandler.h:37
gloox::RegistrationForbidden
@ RegistrationForbidden
Definition: registrationhandler.h:50