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.
SWGUDPSinkSettings.h
Go to the documentation of this file.
1 
13 /*
14  * SWGUDPSinkSettings.h
15  *
16  * UDPSink
17  */
18 
19 #ifndef SWGUDPSinkSettings_H_
20 #define SWGUDPSinkSettings_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  SWGUDPSinkSettings(QString* json);
36  virtual ~SWGUDPSinkSettings();
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 SWGUDPSinkSettings* fromJson(QString &jsonString) override;
44 
45  float getOutputSampleRate();
46  void setOutputSampleRate(float output_sample_rate);
47 
48  qint32 getSampleFormat();
49  void setSampleFormat(qint32 sample_format);
50 
51  qint64 getInputFrequencyOffset();
52  void setInputFrequencyOffset(qint64 input_frequency_offset);
53 
54  float getRfBandwidth();
55  void setRfBandwidth(float rf_bandwidth);
56 
57  qint32 getFmDeviation();
58  void setFmDeviation(qint32 fm_deviation);
59 
60  qint32 getChannelMute();
61  void setChannelMute(qint32 channel_mute);
62 
63  float getGain();
64  void setGain(float gain);
65 
66  qint32 getSquelchDb();
67  void setSquelchDb(qint32 squelch_db);
68 
69  qint32 getSquelchGate();
70  void setSquelchGate(qint32 squelch_gate);
71 
72  qint32 getSquelchEnabled();
73  void setSquelchEnabled(qint32 squelch_enabled);
74 
75  qint32 getAgc();
76  void setAgc(qint32 agc);
77 
78  qint32 getAudioActive();
79  void setAudioActive(qint32 audio_active);
80 
81  qint32 getAudioStereo();
82  void setAudioStereo(qint32 audio_stereo);
83 
84  qint32 getVolume();
85  void setVolume(qint32 volume);
86 
87  QString* getUdpAddress();
88  void setUdpAddress(QString* udp_address);
89 
90  qint32 getUdpPort();
91  void setUdpPort(qint32 udp_port);
92 
93  qint32 getAudioPort();
94  void setAudioPort(qint32 audio_port);
95 
96  qint32 getRgbColor();
97  void setRgbColor(qint32 rgb_color);
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  qint32 fm_deviation;
135 
136  qint32 channel_mute;
138 
139  float gain;
141 
142  qint32 squelch_db;
144 
145  qint32 squelch_gate;
147 
150 
151  qint32 agc;
153 
154  qint32 audio_active;
156 
157  qint32 audio_stereo;
159 
160  qint32 volume;
162 
163  QString* udp_address;
165 
166  qint32 udp_port;
168 
169  qint32 audio_port;
171 
172  qint32 rgb_color;
174 
175  QString* title;
177 
180 
183 
186 
189 
192 
193 };
194 
195 }
196 
197 #endif /* SWGUDPSinkSettings_H_ */
#define SWG_API
Definition: export.h:124