-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.h
52 lines (46 loc) · 966 Bytes
/
config.h
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
#ifndef CONFIG_H
#define CONFIG_H
#include <libconfig.h++>
#include <QString>
#include <QDebug>
typedef struct {
QString callsign;
QString dbfile;
int rig;
QString serial;
//zwiazane z zawodami
QString cat_station;
QString cat_power;
QString cat_mode;
QString contest;
QString cat_assisted;
QString cat_band;
QString cat_operators;
QString cat_signal;
QString cat_soapbox;
QString cat_time;
QString cat_overlay;
QString adress;
QString email;
QString klub;
bool czy_stala_wymiana; // czy stala
} params;
typedef struct {
QString baudrate;
QString databits;
QString stopbit;
QString parity;
QString handshake;
} comcfg;
class config
{
public:
config();
~config();
void load_settings(params *p, comcfg *cc, QString &confFIle);
int save_settings(params *p, comcfg *cc);
void reset(params *s, comcfg *cc);
private:
libconfig::Config cfg;
};
#endif // CONFIG_H