Subversion Repositories Projects

Rev

Rev 750 | Go to most recent revision | Details | 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 <QBitArray>
23
#include <QSize>
24
#include <QPoint>
25
 
26
#include "../../Global/Kopter.h"
27
#include "../Defines.h"
28
 
29
struct set_DebugData
30
{
31
    QString   Version;
32
    QString   Label[MAX_DebugData];
33
    QBitArray Show_Plotter;
34
//    QBitArray LogView;
35
};
36
 
37
struct set_GUI
38
{
39
    bool   isMax;
40
    QSize  Size;
41
    QPoint Point;
42
};
43
 
44
struct set_DATA
45
{
46
    int Plotter_Count;
47
    int Debug_Intervall;
48
};
49
 
50
struct set_SERVER
51
{
52
    int IP_MAX;
53
    int IP_ID;
54
    QString IP[10];
55
    QString Password;
56
};
57
 
58
class cSettings
59
{
60
    public:
61
        cSettings();
62
 
63
        int Settings_ID;
64
 
65
        set_GUI       GUI;
66
        set_DebugData DebugData;
67
        set_DATA      DATA;
68
        set_SERVER    SERVER;
69
 
70
        void read_DebugLabels(int ID);
71
        void write_DebugLabels(int ID);
72
 
73
        void read_Settings();
74
        void write_Settings();
75
 
76
 
77
};
78
 
79
#endif // CSETTINGS_H