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.
SWGNFMDemodSettings.h
Go to the documentation of this file.
1 
13 /*
14  * SWGNFMDemodSettings.h
15  *
16  * NFMDemod
17  */
18 
19 #ifndef SWGNFMDemodSettings_H_
20 #define SWGNFMDemodSettings_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  SWGNFMDemodSettings(QString* json);
36  virtual ~SWGNFMDemodSettings();
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 SWGNFMDemodSettings* fromJson(QString &jsonString) override;
44 
45  qint64 getInputFrequencyOffset();
46  void setInputFrequencyOffset(qint64 input_frequency_offset);
47 
48  float getRfBandwidth();
49  void setRfBandwidth(float rf_bandwidth);
50 
51  float getAfBandwidth();
52  void setAfBandwidth(float af_bandwidth);
53 
54  qint32 getFmDeviation();
55  void setFmDeviation(qint32 fm_deviation);
56 
57  qint32 getSquelchGate();
58  void setSquelchGate(qint32 squelch_gate);
59 
60  qint32 getDeltaSquelch();
61  void setDeltaSquelch(qint32 delta_squelch);
62 
63  float getSquelch();
64  void setSquelch(float squelch);
65 
66  float getVolume();
67  void setVolume(float volume);
68 
69  qint32 getCtcssOn();
70  void setCtcssOn(qint32 ctcss_on);
71 
72  qint32 getHighPass();
73  void setHighPass(qint32 high_pass);
74 
75  qint32 getAudioMute();
76  void setAudioMute(qint32 audio_mute);
77 
78  qint32 getCtcssIndex();
79  void setCtcssIndex(qint32 ctcss_index);
80 
81  qint32 getRgbColor();
82  void setRgbColor(qint32 rgb_color);
83 
84  QString* getTitle();
85  void setTitle(QString* title);
86 
87  QString* getAudioDeviceName();
88  void setAudioDeviceName(QString* audio_device_name);
89 
90  qint32 getUseReverseApi();
91  void setUseReverseApi(qint32 use_reverse_api);
92 
93  QString* getReverseApiAddress();
94  void setReverseApiAddress(QString* reverse_api_address);
95 
96  qint32 getReverseApiPort();
97  void setReverseApiPort(qint32 reverse_api_port);
98 
99  qint32 getReverseApiDeviceIndex();
100  void setReverseApiDeviceIndex(qint32 reverse_api_device_index);
101 
102  qint32 getReverseApiChannelIndex();
103  void setReverseApiChannelIndex(qint32 reverse_api_channel_index);
104 
105 
106  virtual bool isSet() override;
107 
108 private:
111 
114 
117 
118  qint32 fm_deviation;
120 
121  qint32 squelch_gate;
123 
126 
127  float squelch;
129 
130  float volume;
132 
133  qint32 ctcss_on;
135 
136  qint32 high_pass;
138 
139  qint32 audio_mute;
141 
142  qint32 ctcss_index;
144 
145  qint32 rgb_color;
147 
148  QString* title;
150 
153 
156 
159 
162 
165 
168 
169 };
170 
171 }
172 
173 #endif /* SWGNFMDemodSettings_H_ */
#define SWG_API
Definition: export.h:124