gloox
1.0.9
Main Page
Related Pages
Namespaces
Classes
Files
File List
src
registrationhandler.h
1
/*
2
Copyright (c) 2005-2013 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__
gloox::RegistrationHandler
A virtual interface that receives events from an Registration object.
Definition:
registrationhandler.h:77
gloox::DataForm
An abstraction of a XEP-0004 Data Form.
Definition:
dataform.h:56
gloox::RegistrationNotAllowed
Definition:
registrationhandler.h:62
gloox::RegistrationHandler::~RegistrationHandler
virtual ~RegistrationHandler()
Definition:
registrationhandler.h:83
gloox::RegistrationForbidden
Definition:
registrationhandler.h:50
gloox::RegistrationNotAuthorized
Definition:
registrationhandler.h:38
gloox::RegistrationRequired
Definition:
registrationhandler.h:52
gloox::RegistrationResult
RegistrationResult
Definition:
registrationhandler.h:32
gloox::RegistrationBadRequest
Definition:
registrationhandler.h:43
gloox::RegistrationNotAcceptable
Definition:
registrationhandler.h:36
gloox::JID
An abstraction of a JID.
Definition:
jid.h:30
gloox::RegistrationUnknownError
Definition:
registrationhandler.h:64
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::RegistrationConflict
Definition:
registrationhandler.h:37
gloox::RegistrationUnexpectedRequest
Definition:
registrationhandler.h:54
gloox::RegistrationSuccess
Definition:
registrationhandler.h:34
Generated on Wed Jan 29 2014 17:07:23 for gloox by
1.8.6