Subversion Repositories Projects

Rev

Rev 674 | Go to most recent revision | Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 674 Rev 711
1
/***************************************************************************
1
/***************************************************************************
2
 *   Copyright (C) 2008 by Manuel Schrape                                  *
2
 *   Copyright (C) 2008 by Manuel Schrape                                  *
3
 *   manuel.schrape@gmx.de                                                 *
3
 *   manuel.schrape@gmx.de                                                 *
4
 *                                                                         *
4
 *                                                                         *
5
 *   This program is free software; you can redistribute it and/or modify  *
5
 *   This program is free software; you can redistribute it and/or modify  *
6
 *   it under the terms of the GNU General Public License as published by  *
6
 *   it under the terms of the GNU General Public License as published by  *
7
 *   the Free Software Foundation; either version 2 of the License.        *
7
 *   the Free Software Foundation; either version 2 of the License.        *
8
 *                                                                         *
8
 *                                                                         *
9
 *   This program is distributed in the hope that it will be useful,       *
9
 *   This program is distributed in the hope that it will be useful,       *
10
 *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
10
 *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
11
 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
11
 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
12
 *   GNU General Public License for more details.                          *
12
 *   GNU General Public License for more details.                          *
13
 *                                                                         *
13
 *                                                                         *
14
 *   You should have received a copy of the GNU General Public License     *
14
 *   You should have received a copy of the GNU General Public License     *
15
 *   along with this program; if not, write to the                         *
15
 *   along with this program; if not, write to the                         *
16
 *   Free Software Foundation, Inc.,                                       *
16
 *   Free Software Foundation, Inc.,                                       *
17
 *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             *
17
 *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             *
18
 ***************************************************************************/
18
 ***************************************************************************/
19
#ifndef CSETTINGS_H
19
#ifndef CSETTINGS_H
20
#define CSETTINGS_H
20
#define CSETTINGS_H
21
 
21
 
22
#include <QSize>
22
#include <QSize>
23
#include <QPoint>
23
#include <QPoint>
24
#include <QString>
24
#include <QString>
25
 
25
 
26
#include "../Defines.h"
26
#include "../Defines.h"
27
 
27
 
28
struct set_SERVER
28
struct set_SERVER
29
{
29
{
30
    int TCP_PORT;
30
    int TCP_PORT;
31
    int UDP_PORT;
31
    int UDP_PORT;
32
    QString Password;
32
    QString Password;
33
};
33
};
34
 
34
 
35
struct set_CLIENT
35
struct set_CLIENT
36
{
36
{
37
    QString TTY_DEVICES[10];
37
    QString TTY_DEVICES[10];
38
    int     TTY_MAX;
38
    int     TTY_MAX;
39
    int     TTY_ID;
39
    int     TTY_ID;
-
 
40
 
-
 
41
    QString TCP_SERVER[10];
-
 
42
    QString TCP_Password;
-
 
43
    int     TCP_MAX;
-
 
44
    int     TCP_ID;
40
};
45
};
41
 
46
 
42
struct set_GUI
47
struct set_GUI
43
{
48
{
44
    bool   isMax;
49
    bool   isMax;
45
    QSize  Size;
50
    QSize  Size;
46
    QPoint Point;
51
    QPoint Point;
47
};
52
};
48
 
53
 
49
class cSettings
54
class cSettings
50
{
55
{
51
    public:
56
    public:
52
        cSettings();
57
        cSettings();
53
        void read_Settings();
58
        void read_Settings();
54
        void write_Settings();
59
        void write_Settings();
55
 
60
 
56
        int Settings_ID;
61
        int Settings_ID;
57
 
62
 
58
        set_GUI    GUI;
63
        set_GUI    GUI;
59
        set_SERVER SERVER;
64
        set_SERVER SERVER;
60
        set_CLIENT CLIENT;
65
        set_CLIENT CLIENT;
61
};
66
};
62
 
67
 
63
#endif // CSETTINGS_H
68
#endif // CSETTINGS_H
64
 
69