gloox  1.0.20
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__
A virtual interface that receives events from an Registration object.
An abstraction of a XEP-0004 Data Form.
Definition: dataform.h:56
The namespace for the gloox library.
Definition: adhoc.cpp:27
An abstraction of a JID.
Definition: jid.h:30
This is an abstraction of a jabber:x:oob namespace element or a jabber:iq:oob namespace element as sp...
Definition: oob.h:35