SDRAngel  4.11.5
Developer docs for <a href="https://github.com/f4exb/sdrangel">SDRangel<\a>, an Open Source Qt5 / OpenGL 3.0+ SDR and signal analyzer frontend to various hardware.
SWGPerseusSettings.h
Go to the documentation of this file.
1 
13 /*
14  * SWGPerseusSettings.h
15  *
16  * Perseus
17  */
18 
19 #ifndef SWGPerseusSettings_H_
20 #define SWGPerseusSettings_H_
21 
22 #include <QJsonObject>
23 
24 
25 #include <QString>
26 
27 #include "SWGObject.h"
28 #include "export.h"
29 
30 namespace SWGSDRangel {
31 
33 public:
35  SWGPerseusSettings(QString* json);
36  virtual ~SWGPerseusSettings();
37  void init();
38  void cleanup();
39 
40  virtual QString asJson () override;
41  virtual QJsonObject* asJsonObject() override;
42  virtual void fromJsonObject(QJsonObject &json) override;
43  virtual SWGPerseusSettings* fromJson(QString &jsonString) override;
44 
45  qint64 getCenterFrequency();
46  void setCenterFrequency(qint64 center_frequency);
47 
48  qint32 getLOppmTenths();
49  void setLOppmTenths(qint32 l_oppm_tenths);
50 
51  qint32 getDevSampleRateIndex();
52  void setDevSampleRateIndex(qint32 dev_sample_rate_index);
53 
54  qint32 getLog2Decim();
55  void setLog2Decim(qint32 log2_decim);
56 
57  qint32 getAdcDither();
58  void setAdcDither(qint32 adc_dither);
59 
60  qint32 getAdcPreamp();
61  void setAdcPreamp(qint32 adc_preamp);
62 
63  qint32 getWideBand();
64  void setWideBand(qint32 wide_band);
65 
66  qint32 getTransverterMode();
67  void setTransverterMode(qint32 transverter_mode);
68 
69  qint64 getTransverterDeltaFrequency();
70  void setTransverterDeltaFrequency(qint64 transverter_delta_frequency);
71 
72  QString* getFileRecordName();
73  void setFileRecordName(QString* file_record_name);
74 
75  qint32 getAttenuator();
76  void setAttenuator(qint32 attenuator);
77 
78  qint32 getUseReverseApi();
79  void setUseReverseApi(qint32 use_reverse_api);
80 
81  QString* getReverseApiAddress();
82  void setReverseApiAddress(QString* reverse_api_address);
83 
84  qint32 getReverseApiPort();
85  void setReverseApiPort(qint32 reverse_api_port);
86 
87  qint32 getReverseApiDeviceIndex();
88  void setReverseApiDeviceIndex(qint32 reverse_api_device_index);
89 
90 
91  virtual bool isSet() override;
92 
93 private:
96 
97  qint32 l_oppm_tenths;
99 
102 
103  qint32 log2_decim;
105 
106  qint32 adc_dither;
108 
109  qint32 adc_preamp;
111 
112  qint32 wide_band;
114 
117 
120 
123 
124  qint32 attenuator;
126 
129 
132 
135 
138 
139 };
140 
141 }
142 
143 #endif /* SWGPerseusSettings_H_ */
#define SWG_API
Definition: export.h:124