gloox 1.0.27
registrationhandler.h
1/*
2 Copyright (c) 2005-2023 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
22namespace gloox
23{
24
25 class OOB;
26 class JID;
27 class DataForm;
28
69
80 class GLOOX_API RegistrationHandler
81 {
82 public:
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__
An abstraction of a XEP-0004 Data Form.
Definition dataform.h:57
An abstraction of a JID.
Definition jid.h:31
This is an abstraction of a jabber:x:oob namespace element or a jabber:iq:oob namespace element as sp...
Definition oob.h:36
A virtual interface that receives events from an Registration object.
virtual void handleDataForm(const JID &from, const DataForm &form)=0
virtual void handleAlreadyRegistered(const JID &from)=0
virtual void handleOOB(const JID &from, const OOB &oob)=0
virtual void handleRegistrationResult(const JID &from, RegistrationResult regResult)=0
virtual void handleRegistrationFields(const JID &from, int fields, std::string instructions)=0
The namespace for the gloox library.
Definition adhoc.cpp:28
@ RegistrationUnknownError
@ RegistrationUnexpectedRequest
@ RegistrationNotAuthorized
@ RegistrationNotAcceptable