Rev 711 | Only display areas with differences | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 711 | Rev 750 | ||
---|---|---|---|
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 | ||
- | 35 | struct set_LIVEDATA |
|
- | 36 | { |
|
- | 37 | QString Server; |
|
- | 38 | QString Port; |
|
- | 39 | QString User; |
|
- | 40 | QString Password; |
|
- | 41 | }; |
|
34 | 42 | ||
35 | struct set_CLIENT |
43 | struct set_CLIENT |
36 | { |
44 | { |
37 | QString TTY_DEVICES[10]; |
45 | QString TTY_DEVICES[10]; |
38 | int TTY_MAX; |
46 | int TTY_MAX; |
39 | int TTY_ID; |
47 | int TTY_ID; |
40 | 48 | ||
41 | QString TCP_SERVER[10]; |
49 | QString TCP_SERVER[10]; |
42 | QString TCP_Password; |
50 | QString TCP_Password; |
43 | int TCP_MAX; |
51 | int TCP_MAX; |
44 | int TCP_ID; |
52 | int TCP_ID; |
45 | }; |
53 | }; |
46 | 54 | ||
47 | struct set_GUI |
55 | struct set_GUI |
48 | { |
56 | { |
49 | bool isMax; |
57 | bool isMax; |
50 | QSize Size; |
58 | QSize Size; |
51 | QPoint Point; |
59 | QPoint Point; |
52 | }; |
60 | }; |
- | 61 | ||
- | 62 | struct set_DATA |
|
- | 63 | { |
|
- | 64 | bool Send; |
|
- | 65 | bool Data; |
|
- | 66 | bool Info; |
|
- | 67 | bool TCP; |
|
- | 68 | }; |
|
53 | 69 | ||
54 | class cSettings |
70 | class cSettings |
55 | { |
71 | { |
56 | public: |
72 | public: |
57 | cSettings(); |
73 | cSettings(); |
58 | void read_Settings(); |
74 | void read_Settings(); |
59 | void write_Settings(); |
75 | void write_Settings(); |
60 | 76 | ||
61 | int Settings_ID; |
77 | int Settings_ID; |
- | 78 | ||
62 | 79 | set_DATA DATA; |
|
- | 80 | set_GUI GUI; |
|
63 | set_GUI GUI; |
81 | set_GUI TERMINAL; |
64 | set_SERVER SERVER; |
82 | set_SERVER SERVER; |
- | 83 | set_CLIENT CLIENT; |
|
65 | set_CLIENT CLIENT; |
84 | set_LIVEDATA LIVEDATA; |
66 | }; |
85 | }; |
67 | 86 | ||
68 | #endif // CSETTINGS_H |
87 | #endif // CSETTINGS_H |
69 | 88 |