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.
SWGKiwiSDRSettings.h
Go to the documentation of this file.
1 
13 /*
14  * SWGKiwiSDRSettings.h
15  *
16  * KiwiSDR
17  */
18 
19 #ifndef SWGKiwiSDRSettings_H_
20 #define SWGKiwiSDRSettings_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  SWGKiwiSDRSettings(QString* json);
36  virtual ~SWGKiwiSDRSettings();
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 SWGKiwiSDRSettings* fromJson(QString &jsonString) override;
44 
45  qint32 getGain();
46  void setGain(qint32 gain);
47 
48  qint32 getUseAgc();
49  void setUseAgc(qint32 use_agc);
50 
51  qint32 getDcBlock();
52  void setDcBlock(qint32 dc_block);
53 
54  qint64 getCenterFrequency();
55  void setCenterFrequency(qint64 center_frequency);
56 
57  QString* getServerAddress();
58  void setServerAddress(QString* server_address);
59 
60  QString* getFileRecordName();
61  void setFileRecordName(QString* file_record_name);
62 
63  qint32 getUseReverseApi();
64  void setUseReverseApi(qint32 use_reverse_api);
65 
66  QString* getReverseApiAddress();
67  void setReverseApiAddress(QString* reverse_api_address);
68 
69  qint32 getReverseApiPort();
70  void setReverseApiPort(qint32 reverse_api_port);
71 
72  qint32 getReverseApiDeviceIndex();
73  void setReverseApiDeviceIndex(qint32 reverse_api_device_index);
74 
75 
76  virtual bool isSet() override;
77 
78 private:
79  qint32 gain;
81 
82  qint32 use_agc;
84 
85  qint32 dc_block;
87 
90 
91  QString* server_address;
93 
94  QString* file_record_name;
96 
99 
102 
105 
108 
109 };
110 
111 }
112 
113 #endif /* SWGKiwiSDRSettings_H_ */
#define SWG_API
Definition: export.h:124