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.
SWGUDPSourceSettings.h
Go to the documentation of this file.
1 
13 /*
14  * SWGUDPSourceSettings.h
15  *
16  * UDPSource
17  */
18 
19 #ifndef SWGUDPSourceSettings_H_
20 #define SWGUDPSourceSettings_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  SWGUDPSourceSettings(QString* json);
36  virtual ~SWGUDPSourceSettings();
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 SWGUDPSourceSettings* fromJson(QString &jsonString) override;
44 
45  qint32 getSampleFormat();
46  void setSampleFormat(qint32 sample_format);
47 
48  float getInputSampleRate();
49  void setInputSampleRate(float input_sample_rate);
50 
51  qint64 getInputFrequencyOffset();
52  void setInputFrequencyOffset(qint64 input_frequency_offset);
53 
54  float getRfBandwidth();
55  void setRfBandwidth(float rf_bandwidth);
56 
57  float getLowCutoff();
58  void setLowCutoff(float low_cutoff);
59 
60  qint32 getFmDeviation();
61  void setFmDeviation(qint32 fm_deviation);
62 
63  float getAmModFactor();
64  void setAmModFactor(float am_mod_factor);
65 
66  qint32 getChannelMute();
67  void setChannelMute(qint32 channel_mute);
68 
69  float getGainIn();
70  void setGainIn(float gain_in);
71 
72  float getGainOut();
73  void setGainOut(float gain_out);
74 
75  float getSquelch();
76  void setSquelch(float squelch);
77 
78  float getSquelchGate();
79  void setSquelchGate(float squelch_gate);
80 
81  qint32 getSquelchEnabled();
82  void setSquelchEnabled(qint32 squelch_enabled);
83 
84  qint32 getAutoRwBalance();
85  void setAutoRwBalance(qint32 auto_rw_balance);
86 
87  qint32 getStereoInput();
88  void setStereoInput(qint32 stereo_input);
89 
90  qint32 getRgbColor();
91  void setRgbColor(qint32 rgb_color);
92 
93  QString* getUdpAddress();
94  void setUdpAddress(QString* udp_address);
95 
96  qint32 getUdpPort();
97  void setUdpPort(qint32 udp_port);
98 
99  QString* getTitle();
100  void setTitle(QString* title);
101 
102  qint32 getUseReverseApi();
103  void setUseReverseApi(qint32 use_reverse_api);
104 
105  QString* getReverseApiAddress();
106  void setReverseApiAddress(QString* reverse_api_address);
107 
108  qint32 getReverseApiPort();
109  void setReverseApiPort(qint32 reverse_api_port);
110 
111  qint32 getReverseApiDeviceIndex();
112  void setReverseApiDeviceIndex(qint32 reverse_api_device_index);
113 
114  qint32 getReverseApiChannelIndex();
115  void setReverseApiChannelIndex(qint32 reverse_api_channel_index);
116 
117 
118  virtual bool isSet() override;
119 
120 private:
123 
126 
129 
132 
133  float low_cutoff;
135 
136  qint32 fm_deviation;
138 
141 
142  qint32 channel_mute;
144 
145  float gain_in;
147 
148  float gain_out;
150 
151  float squelch;
153 
156 
159 
162 
163  qint32 stereo_input;
165 
166  qint32 rgb_color;
168 
169  QString* udp_address;
171 
172  qint32 udp_port;
174 
175  QString* title;
177 
180 
183 
186 
189 
192 
193 };
194 
195 }
196 
197 #endif /* SWGUDPSourceSettings_H_ */
#define SWG_API
Definition: export.h:124