Subversion Repositories Projects

Rev

Rev 711 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
674 KeyOz 1
/***************************************************************************
2
 *   Copyright (C) 2008 by Manuel Schrape                                  *
3
 *   manuel.schrape@gmx.de                                                 *
4
 *                                                                         *
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  *
7
 *   the Free Software Foundation; either version 2 of the License.        *
8
 *                                                                         *
9
 *   This program is distributed in the hope that it will be useful,       *
10
 *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
11
 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
12
 *   GNU General Public License for more details.                          *
13
 *                                                                         *
14
 *   You should have received a copy of the GNU General Public License     *
15
 *   along with this program; if not, write to the                         *
16
 *   Free Software Foundation, Inc.,                                       *
17
 *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             *
18
 ***************************************************************************/
19
#ifndef CSETTINGS_H
20
#define CSETTINGS_H
21
 
22
#include <QSize>
23
#include <QPoint>
24
#include <QString>
25
 
26
#include "../Defines.h"
27
 
28
struct set_SERVER
29
{
30
    int TCP_PORT;
31
    int UDP_PORT;
32
    QString Password;
33
};
34
 
750 KeyOz 35
struct set_LIVEDATA
36
{
37
    QString Server;
38
    QString Port;
39
    QString User;
40
    QString Password;
41
};
42
 
674 KeyOz 43
struct set_CLIENT
44
{
45
    QString TTY_DEVICES[10];
46
    int     TTY_MAX;
47
    int     TTY_ID;
711 KeyOz 48
 
49
    QString TCP_SERVER[10];
50
    QString TCP_Password;
51
    int     TCP_MAX;
52
    int     TCP_ID;
674 KeyOz 53
};
54
 
55
struct set_GUI
56
{
57
    bool   isMax;
58
    QSize  Size;
59
    QPoint Point;
60
};
61
 
750 KeyOz 62
struct set_DATA
63
{
64
    bool Send;
65
    bool Data;
66
    bool Info;
67
    bool TCP;
68
};
69
 
674 KeyOz 70
class cSettings
71
{
72
    public:
73
        cSettings();
74
        void read_Settings();
75
        void write_Settings();
76
 
77
        int Settings_ID;
78
 
750 KeyOz 79
        set_DATA   DATA;
674 KeyOz 80
        set_GUI    GUI;
750 KeyOz 81
        set_GUI    TERMINAL;
674 KeyOz 82
        set_SERVER SERVER;
83
        set_CLIENT CLIENT;
750 KeyOz 84
        set_LIVEDATA LIVEDATA;
674 KeyOz 85
};
86
 
87
#endif // CSETTINGS_H