-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathSettingsManager.h
46 lines (33 loc) · 981 Bytes
/
SettingsManager.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
#ifndef SETTINGSMANAGER_H
#define SETTINGSMANAGER_H
#include <Suscan/Library.h>
class MultiChannelForwarder;
class ZeroMQSink;
class SettingsManager : public QObject
{
Q_OBJECT
QString m_zmqAddress = "";
bool m_correctDc = false;
bool m_aborted = false;
SUFREQ m_tunerFreq = 0;
SUFREQ m_lnbFreq = 0;
template<typename ... arg> void error(const char *fmt, arg ...);
public:
SettingsManager(QObject *);
bool loadSettings(const char *path);
bool saveSettings(const char *path, const MultiChannelForwarder *);
void abortLoad();
QString getZmqAddres() const;
bool getCorrectDC() const;
SUFREQ getTunerFreq() const;
SUFREQ getLNBFreq() const;
void setZmqAddress(QString);
void setCorrectDC(bool);
void setTunerFreq(SUFREQ);
void setLNBFreq(SUFREQ);
signals:
void loadError(QString);
void createMaster(QString, SUFREQ, SUFLOAT, bool);
void createVFO(QString, SUFREQ, SUFLOAT, QString, qint64, bool);
};
#endif // SETTINGSMANAGER_H