forked from BastianGschrey/PowerTune
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appsettings.h
43 lines (29 loc) · 995 Bytes
/
appsettings.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
#ifndef APPSETTINGS_H
#define APPSETTINGS_H
#include <QObject>
class AppSettings : public QObject
{
Q_OBJECT
public:
explicit AppSettings(QObject *parent = 0);
Q_INVOKABLE int getBaudRate();
Q_INVOKABLE void setBaudRate(const int &arg);
Q_INVOKABLE int getParity();
Q_INVOKABLE void setParity(const int &arg);
Q_INVOKABLE int getDataBits();
Q_INVOKABLE void setDataBits(const int &arg);
Q_INVOKABLE int getStopBits();
Q_INVOKABLE void setStopBits(const int &arg);
Q_INVOKABLE int getFlowControl();
Q_INVOKABLE void setFlowControl(const int &arg);
Q_INVOKABLE int getECU();
Q_INVOKABLE void setECU(const int &arg);
Q_INVOKABLE int getInterface();
Q_INVOKABLE void setInterface(const int &arg);
Q_INVOKABLE int getLogging();
Q_INVOKABLE void setLogging(const int &arg);
private:
void setValue(const QString &key, const QVariant &value);
QVariant getValue(const QString &key);
};
#endif // APPSETTINGS_H