glooxd
0.3-svn
Main Page
Namespaces
Classes
Files
File List
src
domain.h
1
/*
2
Copyright (c) 2009 by Jakob Schroeter <js@camaya.net>
3
This file is part of the glooxd library. http://camaya.net/glooxd
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
#ifndef DOMAIN_H__
15
#define DOMAIN_H__
16
17
#include "macros.h"
18
19
#include <string>
20
21
namespace
glooxd
22
{
23
24
class
AuthenticationHandler;
25
32
class
GLOOXD_API
Domain
33
{
34
public
:
38
Domain
(
const
std::string& name,
const
std::string&
/*interface*/
,
39
unsigned
short
/*port*/
)
40
: m_name( name ), m_authHandler( 0 )
41
{}
42
46
~Domain
() {}
47
51
bool
addInterface(
const
std::string&
/*interface*/
,
unsigned
int
/*port*/
) {
return
false
; }
57
void
setAuthHandler
(
AuthenticationHandler
* ah ) { m_authHandler = ah; }
58
63
AuthenticationHandler
*
authHandler
()
const
{
return
m_authHandler; }
64
71
void
setCertificates(
const
std::string& _key,
72
const
std::string& _cert )
73
{
74
m_key = _key;
75
m_cert = _cert;
76
}
77
82
const
std::string&
key
()
const
{
return
m_key; }
83
88
const
std::string&
cert
()
const
{
return
m_cert; }
89
90
private
:
91
std::string m_name;
92
std::string m_cert;
93
std::string m_key;
94
95
AuthenticationHandler
* m_authHandler;
96
97
};
98
99
}
100
101
#endif // DOMAIN_H__
Generated on Wed Aug 28 2013 16:09:27 for glooxd by
1.8.1.2