gloox
1.0
Main Page
Related Pages
Namespaces
Classes
Files
File List
src
registrationhandler.h
1
/*
2
Copyright (c) 2005-2009 by Jakob Schroeter <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
32
enum
RegistrationResult
33
{
34
RegistrationSuccess
= 0,
36
RegistrationNotAcceptable
,
37
RegistrationConflict
,
38
RegistrationNotAuthorized
,
43
RegistrationBadRequest
,
50
RegistrationForbidden
,
52
RegistrationRequired
,
54
RegistrationUnexpectedRequest
,
62
RegistrationNotAllowed
,
64
RegistrationUnknownError
65
};
66
77
class
GLOOX_API
RegistrationHandler
78
{
79
public
:
83
virtual
~RegistrationHandler
() {}
84
92
virtual
void
handleRegistrationFields(
const
JID
& from,
int
fields,
93
std::string instructions ) = 0;
94
99
virtual
void
handleAlreadyRegistered(
const
JID
& from ) = 0;
100
106
virtual
void
handleRegistrationResult(
const
JID
& from,
RegistrationResult
regResult ) = 0;
107
114
virtual
void
handleDataForm(
const
JID
& from,
const
DataForm
& form ) = 0;
115
122
virtual
void
handleOOB(
const
JID
& from,
const
OOB
& oob ) = 0;
123
124
};
125
126
}
127
128
#endif // REGISTRATIONHANDLER_H__
Generated on Thu Jun 27 2013 13:02:36 for gloox by
1.8.1.2