blob: 80b94e273eebecefdf1e63f5002a36aa723df676 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
|
#ifndef SERVERDATATYPE_H
#define SERVERDATATYPE_H
#include <qptrlist.h>
#include <qstring.h>
class port
{
public:
port( const QString &portnum ) { p=portnum; }
QString portnum() const { return p; }
private:
QString p;
};
class Server
{
public:
Server( const QString &group,
const QString &server,
QPtrList<port> ports,
const QString &serverdesc,
const QString &script,
const QString &password = QString::null,
bool dossl = false
) {
g=group; s=server; p=ports; sd=serverdesc; sc=script;
pass=password;
ssl = dossl;
p.setAutoDelete(TRUE);
}
QString group() const { return g; }
QString server() const { return s; }
QPtrList<port> ports() const { return p; }
QString serverdesc() const { return sd; }
QString script() const { return sc; }
QString password() const { return pass; }
bool usessl() const { return ssl; }
private:
QString g;
QString s;
QPtrList<port> p;
QString sd;
QString sc;
QString pass;
bool ssl;
};
#endif
|