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.
SWGWFMDemodSettings.h
Go to the documentation of this file.
1 
13 /*
14  * SWGWFMDemodSettings.h
15  *
16  * WFMDemod
17  */
18 
19 #ifndef SWGWFMDemodSettings_H_
20 #define SWGWFMDemodSettings_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  SWGWFMDemodSettings(QString* json);
36  virtual ~SWGWFMDemodSettings();
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 SWGWFMDemodSettings* 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  float getVolume();
55  void setVolume(float volume);
56 
57  float getSquelch();
58  void setSquelch(float squelch);
59 
60  qint32 getAudioMute();
61  void setAudioMute(qint32 audio_mute);
62 
63  qint32 getRgbColor();
64  void setRgbColor(qint32 rgb_color);
65 
66  QString* getTitle();
67  void setTitle(QString* title);
68 
69  QString* getAudioDeviceName();
70  void setAudioDeviceName(QString* audio_device_name);
71 
72  qint32 getUseReverseApi();
73  void setUseReverseApi(qint32 use_reverse_api);
74 
75  QString* getReverseApiAddress();
76  void setReverseApiAddress(QString* reverse_api_address);
77 
78  qint32 getReverseApiPort();
79  void setReverseApiPort(qint32 reverse_api_port);
80 
81  qint32 getReverseApiDeviceIndex();
82  void setReverseApiDeviceIndex(qint32 reverse_api_device_index);
83 
84  qint32 getReverseApiChannelIndex();
85  void setReverseApiChannelIndex(qint32 reverse_api_channel_index);
86 
87 
88  virtual bool isSet() override;
89 
90 private:
93 
94  float rf_bandwidth;
96 
97  float af_bandwidth;
99 
100  float volume;
102 
103  float squelch;
105 
106  qint32 audio_mute;
108 
109  qint32 rgb_color;
111 
112  QString* title;
114 
117 
120 
123 
126 
129 
132 
133 };
134 
135 }
136 
137 #endif /* SWGWFMDemodSettings_H_ */
#define SWG_API
Definition: export.h:124