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.
Public Member Functions | Private Attributes | List of all members
SWGSDRangel::SWGUDPSourceSettings Class Reference

#include <SWGUDPSourceSettings.h>

+ Inheritance diagram for SWGSDRangel::SWGUDPSourceSettings:
+ Collaboration diagram for SWGSDRangel::SWGUDPSourceSettings:

Public Member Functions

 SWGUDPSourceSettings ()
 
 SWGUDPSourceSettings (QString *json)
 
virtual ~SWGUDPSourceSettings ()
 
void init ()
 
void cleanup ()
 
virtual QString asJson () override
 
virtual QJsonObject * asJsonObject () override
 
virtual void fromJsonObject (QJsonObject &json) override
 
virtual SWGUDPSourceSettingsfromJson (QString &jsonString) override
 
qint32 getSampleFormat ()
 
void setSampleFormat (qint32 sample_format)
 
float getInputSampleRate ()
 
void setInputSampleRate (float input_sample_rate)
 
qint64 getInputFrequencyOffset ()
 
void setInputFrequencyOffset (qint64 input_frequency_offset)
 
float getRfBandwidth ()
 
void setRfBandwidth (float rf_bandwidth)
 
float getLowCutoff ()
 
void setLowCutoff (float low_cutoff)
 
qint32 getFmDeviation ()
 
void setFmDeviation (qint32 fm_deviation)
 
float getAmModFactor ()
 
void setAmModFactor (float am_mod_factor)
 
qint32 getChannelMute ()
 
void setChannelMute (qint32 channel_mute)
 
float getGainIn ()
 
void setGainIn (float gain_in)
 
float getGainOut ()
 
void setGainOut (float gain_out)
 
float getSquelch ()
 
void setSquelch (float squelch)
 
float getSquelchGate ()
 
void setSquelchGate (float squelch_gate)
 
qint32 getSquelchEnabled ()
 
void setSquelchEnabled (qint32 squelch_enabled)
 
qint32 getAutoRwBalance ()
 
void setAutoRwBalance (qint32 auto_rw_balance)
 
qint32 getStereoInput ()
 
void setStereoInput (qint32 stereo_input)
 
qint32 getRgbColor ()
 
void setRgbColor (qint32 rgb_color)
 
QString * getUdpAddress ()
 
void setUdpAddress (QString *udp_address)
 
qint32 getUdpPort ()
 
void setUdpPort (qint32 udp_port)
 
QString * getTitle ()
 
void setTitle (QString *title)
 
qint32 getUseReverseApi ()
 
void setUseReverseApi (qint32 use_reverse_api)
 
QString * getReverseApiAddress ()
 
void setReverseApiAddress (QString *reverse_api_address)
 
qint32 getReverseApiPort ()
 
void setReverseApiPort (qint32 reverse_api_port)
 
qint32 getReverseApiDeviceIndex ()
 
void setReverseApiDeviceIndex (qint32 reverse_api_device_index)
 
qint32 getReverseApiChannelIndex ()
 
void setReverseApiChannelIndex (qint32 reverse_api_channel_index)
 
virtual bool isSet () override
 
- Public Member Functions inherited from SWGSDRangel::SWGObject
virtual ~SWGObject ()
 

Private Attributes

qint32 sample_format
 
bool m_sample_format_isSet
 
float input_sample_rate
 
bool m_input_sample_rate_isSet
 
qint64 input_frequency_offset
 
bool m_input_frequency_offset_isSet
 
float rf_bandwidth
 
bool m_rf_bandwidth_isSet
 
float low_cutoff
 
bool m_low_cutoff_isSet
 
qint32 fm_deviation
 
bool m_fm_deviation_isSet
 
float am_mod_factor
 
bool m_am_mod_factor_isSet
 
qint32 channel_mute
 
bool m_channel_mute_isSet
 
float gain_in
 
bool m_gain_in_isSet
 
float gain_out
 
bool m_gain_out_isSet
 
float squelch
 
bool m_squelch_isSet
 
float squelch_gate
 
bool m_squelch_gate_isSet
 
qint32 squelch_enabled
 
bool m_squelch_enabled_isSet
 
qint32 auto_rw_balance
 
bool m_auto_rw_balance_isSet
 
qint32 stereo_input
 
bool m_stereo_input_isSet
 
qint32 rgb_color
 
bool m_rgb_color_isSet
 
QString * udp_address
 
bool m_udp_address_isSet
 
qint32 udp_port
 
bool m_udp_port_isSet
 
QString * title
 
bool m_title_isSet
 
qint32 use_reverse_api
 
bool m_use_reverse_api_isSet
 
QString * reverse_api_address
 
bool m_reverse_api_address_isSet
 
qint32 reverse_api_port
 
bool m_reverse_api_port_isSet
 
qint32 reverse_api_device_index
 
bool m_reverse_api_device_index_isSet
 
qint32 reverse_api_channel_index
 
bool m_reverse_api_channel_index_isSet
 

Detailed Description

Definition at line 32 of file SWGUDPSourceSettings.h.

Constructor & Destructor Documentation

◆ SWGUDPSourceSettings() [1/2]

SWGSDRangel::SWGUDPSourceSettings::SWGUDPSourceSettings ( )

Definition at line 30 of file SWGUDPSourceSettings.cpp.

References am_mod_factor, auto_rw_balance, channel_mute, fm_deviation, gain_in, gain_out, input_frequency_offset, input_sample_rate, low_cutoff, m_am_mod_factor_isSet, m_auto_rw_balance_isSet, m_channel_mute_isSet, m_fm_deviation_isSet, m_gain_in_isSet, m_gain_out_isSet, m_input_frequency_offset_isSet, m_input_sample_rate_isSet, m_low_cutoff_isSet, m_reverse_api_address_isSet, m_reverse_api_channel_index_isSet, m_reverse_api_device_index_isSet, m_reverse_api_port_isSet, m_rf_bandwidth_isSet, m_rgb_color_isSet, m_sample_format_isSet, m_squelch_enabled_isSet, m_squelch_gate_isSet, m_squelch_isSet, m_stereo_input_isSet, m_title_isSet, m_udp_address_isSet, m_udp_port_isSet, m_use_reverse_api_isSet, reverse_api_address, reverse_api_channel_index, reverse_api_device_index, reverse_api_port, rf_bandwidth, rgb_color, sample_format, squelch, squelch_enabled, squelch_gate, stereo_input, title, udp_address, udp_port, and use_reverse_api.

30  {
31  sample_format = 0;
32  m_sample_format_isSet = false;
33  input_sample_rate = 0.0f;
37  rf_bandwidth = 0.0f;
38  m_rf_bandwidth_isSet = false;
39  low_cutoff = 0.0f;
40  m_low_cutoff_isSet = false;
41  fm_deviation = 0;
42  m_fm_deviation_isSet = false;
43  am_mod_factor = 0.0f;
44  m_am_mod_factor_isSet = false;
45  channel_mute = 0;
46  m_channel_mute_isSet = false;
47  gain_in = 0.0f;
48  m_gain_in_isSet = false;
49  gain_out = 0.0f;
50  m_gain_out_isSet = false;
51  squelch = 0.0f;
52  m_squelch_isSet = false;
53  squelch_gate = 0.0f;
54  m_squelch_gate_isSet = false;
55  squelch_enabled = 0;
57  auto_rw_balance = 0;
59  stereo_input = 0;
60  m_stereo_input_isSet = false;
61  rgb_color = 0;
62  m_rgb_color_isSet = false;
63  udp_address = nullptr;
64  m_udp_address_isSet = false;
65  udp_port = 0;
66  m_udp_port_isSet = false;
67  title = nullptr;
68  m_title_isSet = false;
69  use_reverse_api = 0;
71  reverse_api_address = nullptr;
73  reverse_api_port = 0;
79 }

◆ SWGUDPSourceSettings() [2/2]

SWGSDRangel::SWGUDPSourceSettings::SWGUDPSourceSettings ( QString *  json)

Definition at line 25 of file SWGUDPSourceSettings.cpp.

References fromJson(), and init().

25  {
26  init();
27  this->fromJson(*json);
28 }
virtual SWGUDPSourceSettings * fromJson(QString &jsonString) override
+ Here is the call graph for this function:

◆ ~SWGUDPSourceSettings()

SWGSDRangel::SWGUDPSourceSettings::~SWGUDPSourceSettings ( )
virtual

Definition at line 81 of file SWGUDPSourceSettings.cpp.

References cleanup().

81  {
82  this->cleanup();
83 }
+ Here is the call graph for this function:

Member Function Documentation

◆ asJson()

QString SWGSDRangel::SWGUDPSourceSettings::asJson ( )
overridevirtual

Reimplemented from SWGSDRangel::SWGObject.

Definition at line 233 of file SWGUDPSourceSettings.cpp.

References asJsonObject().

234 {
235  QJsonObject* obj = this->asJsonObject();
236 
237  QJsonDocument doc(*obj);
238  QByteArray bytes = doc.toJson();
239  delete obj;
240  return QString(bytes);
241 }
virtual QJsonObject * asJsonObject() override
+ Here is the call graph for this function:

◆ asJsonObject()

QJsonObject * SWGSDRangel::SWGUDPSourceSettings::asJsonObject ( )
overridevirtual

Reimplemented from SWGSDRangel::SWGObject.

Definition at line 244 of file SWGUDPSourceSettings.cpp.

References am_mod_factor, auto_rw_balance, channel_mute, fm_deviation, gain_in, gain_out, input_frequency_offset, input_sample_rate, low_cutoff, m_am_mod_factor_isSet, m_auto_rw_balance_isSet, m_channel_mute_isSet, m_fm_deviation_isSet, m_gain_in_isSet, m_gain_out_isSet, m_input_frequency_offset_isSet, m_input_sample_rate_isSet, m_low_cutoff_isSet, m_reverse_api_channel_index_isSet, m_reverse_api_device_index_isSet, m_reverse_api_port_isSet, m_rf_bandwidth_isSet, m_rgb_color_isSet, m_sample_format_isSet, m_squelch_enabled_isSet, m_squelch_gate_isSet, m_squelch_isSet, m_stereo_input_isSet, m_udp_port_isSet, m_use_reverse_api_isSet, reverse_api_address, reverse_api_channel_index, reverse_api_device_index, reverse_api_port, rf_bandwidth, rgb_color, sample_format, squelch, squelch_enabled, squelch_gate, stereo_input, title, SWGSDRangel::toJsonValue(), udp_address, udp_port, and use_reverse_api.

Referenced by asJson().

244  {
245  QJsonObject* obj = new QJsonObject();
247  obj->insert("sampleFormat", QJsonValue(sample_format));
248  }
250  obj->insert("inputSampleRate", QJsonValue(input_sample_rate));
251  }
253  obj->insert("inputFrequencyOffset", QJsonValue(input_frequency_offset));
254  }
256  obj->insert("rfBandwidth", QJsonValue(rf_bandwidth));
257  }
258  if(m_low_cutoff_isSet){
259  obj->insert("lowCutoff", QJsonValue(low_cutoff));
260  }
262  obj->insert("fmDeviation", QJsonValue(fm_deviation));
263  }
265  obj->insert("amModFactor", QJsonValue(am_mod_factor));
266  }
268  obj->insert("channelMute", QJsonValue(channel_mute));
269  }
270  if(m_gain_in_isSet){
271  obj->insert("gainIn", QJsonValue(gain_in));
272  }
273  if(m_gain_out_isSet){
274  obj->insert("gainOut", QJsonValue(gain_out));
275  }
276  if(m_squelch_isSet){
277  obj->insert("squelch", QJsonValue(squelch));
278  }
280  obj->insert("squelchGate", QJsonValue(squelch_gate));
281  }
283  obj->insert("squelchEnabled", QJsonValue(squelch_enabled));
284  }
286  obj->insert("autoRWBalance", QJsonValue(auto_rw_balance));
287  }
289  obj->insert("stereoInput", QJsonValue(stereo_input));
290  }
291  if(m_rgb_color_isSet){
292  obj->insert("rgbColor", QJsonValue(rgb_color));
293  }
294  if(udp_address != nullptr && *udp_address != QString("")){
295  toJsonValue(QString("udpAddress"), udp_address, obj, QString("QString"));
296  }
297  if(m_udp_port_isSet){
298  obj->insert("udpPort", QJsonValue(udp_port));
299  }
300  if(title != nullptr && *title != QString("")){
301  toJsonValue(QString("title"), title, obj, QString("QString"));
302  }
304  obj->insert("useReverseAPI", QJsonValue(use_reverse_api));
305  }
306  if(reverse_api_address != nullptr && *reverse_api_address != QString("")){
307  toJsonValue(QString("reverseAPIAddress"), reverse_api_address, obj, QString("QString"));
308  }
310  obj->insert("reverseAPIPort", QJsonValue(reverse_api_port));
311  }
313  obj->insert("reverseAPIDeviceIndex", QJsonValue(reverse_api_device_index));
314  }
316  obj->insert("reverseAPIChannelIndex", QJsonValue(reverse_api_channel_index));
317  }
318 
319  return obj;
320 }
void toJsonValue(QString name, void *value, QJsonObject *output, QString type)
Definition: SWGHelpers.cpp:383
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ cleanup()

void SWGSDRangel::SWGUDPSourceSettings::cleanup ( )

Definition at line 138 of file SWGUDPSourceSettings.cpp.

References reverse_api_address, title, and udp_address.

Referenced by ~SWGUDPSourceSettings().

138  {
139 
140 
141 
142 
143 
144 
145 
146 
147 
148 
149 
150 
151 
152 
153 
154 
155  if(udp_address != nullptr) {
156  delete udp_address;
157  }
158 
159  if(title != nullptr) {
160  delete title;
161  }
162 
163  if(reverse_api_address != nullptr) {
164  delete reverse_api_address;
165  }
166 
167 
168 
169 }
+ Here is the caller graph for this function:

◆ fromJson()

SWGUDPSourceSettings * SWGSDRangel::SWGUDPSourceSettings::fromJson ( QString &  jsonString)
overridevirtual

Reimplemented from SWGSDRangel::SWGObject.

Definition at line 172 of file SWGUDPSourceSettings.cpp.

References fromJsonObject().

Referenced by SWGUDPSourceSettings().

172  {
173  QByteArray array (json.toStdString().c_str());
174  QJsonDocument doc = QJsonDocument::fromJson(array);
175  QJsonObject jsonObject = doc.object();
176  this->fromJsonObject(jsonObject);
177  return this;
178 }
virtual void fromJsonObject(QJsonObject &json) override
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ fromJsonObject()

void SWGSDRangel::SWGUDPSourceSettings::fromJsonObject ( QJsonObject &  json)
overridevirtual

Reimplemented from SWGSDRangel::SWGObject.

Definition at line 181 of file SWGUDPSourceSettings.cpp.

References am_mod_factor, auto_rw_balance, channel_mute, fm_deviation, gain_in, gain_out, input_frequency_offset, input_sample_rate, low_cutoff, reverse_api_address, reverse_api_channel_index, reverse_api_device_index, reverse_api_port, rf_bandwidth, rgb_color, sample_format, SWGSDRangel::setValue(), squelch, squelch_enabled, squelch_gate, stereo_input, title, udp_address, udp_port, and use_reverse_api.

Referenced by fromJson(), and WebAPIRequestMapper::validateChannelSettings().

181  {
182  ::SWGSDRangel::setValue(&sample_format, pJson["sampleFormat"], "qint32", "");
183 
184  ::SWGSDRangel::setValue(&input_sample_rate, pJson["inputSampleRate"], "float", "");
185 
186  ::SWGSDRangel::setValue(&input_frequency_offset, pJson["inputFrequencyOffset"], "qint64", "");
187 
188  ::SWGSDRangel::setValue(&rf_bandwidth, pJson["rfBandwidth"], "float", "");
189 
190  ::SWGSDRangel::setValue(&low_cutoff, pJson["lowCutoff"], "float", "");
191 
192  ::SWGSDRangel::setValue(&fm_deviation, pJson["fmDeviation"], "qint32", "");
193 
194  ::SWGSDRangel::setValue(&am_mod_factor, pJson["amModFactor"], "float", "");
195 
196  ::SWGSDRangel::setValue(&channel_mute, pJson["channelMute"], "qint32", "");
197 
198  ::SWGSDRangel::setValue(&gain_in, pJson["gainIn"], "float", "");
199 
200  ::SWGSDRangel::setValue(&gain_out, pJson["gainOut"], "float", "");
201 
202  ::SWGSDRangel::setValue(&squelch, pJson["squelch"], "float", "");
203 
204  ::SWGSDRangel::setValue(&squelch_gate, pJson["squelchGate"], "float", "");
205 
206  ::SWGSDRangel::setValue(&squelch_enabled, pJson["squelchEnabled"], "qint32", "");
207 
208  ::SWGSDRangel::setValue(&auto_rw_balance, pJson["autoRWBalance"], "qint32", "");
209 
210  ::SWGSDRangel::setValue(&stereo_input, pJson["stereoInput"], "qint32", "");
211 
212  ::SWGSDRangel::setValue(&rgb_color, pJson["rgbColor"], "qint32", "");
213 
214  ::SWGSDRangel::setValue(&udp_address, pJson["udpAddress"], "QString", "QString");
215 
216  ::SWGSDRangel::setValue(&udp_port, pJson["udpPort"], "qint32", "");
217 
218  ::SWGSDRangel::setValue(&title, pJson["title"], "QString", "QString");
219 
220  ::SWGSDRangel::setValue(&use_reverse_api, pJson["useReverseAPI"], "qint32", "");
221 
222  ::SWGSDRangel::setValue(&reverse_api_address, pJson["reverseAPIAddress"], "QString", "QString");
223 
224  ::SWGSDRangel::setValue(&reverse_api_port, pJson["reverseAPIPort"], "qint32", "");
225 
226  ::SWGSDRangel::setValue(&reverse_api_device_index, pJson["reverseAPIDeviceIndex"], "qint32", "");
227 
228  ::SWGSDRangel::setValue(&reverse_api_channel_index, pJson["reverseAPIChannelIndex"], "qint32", "");
229 
230 }
void setValue(void *value, QJsonValue obj, QString type, QString complexType)
Definition: SWGHelpers.cpp:25
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getAmModFactor()

float SWGSDRangel::SWGUDPSourceSettings::getAmModFactor ( )

Definition at line 383 of file SWGUDPSourceSettings.cpp.

References am_mod_factor.

Referenced by UDPSource::webapiSettingsPutPatch().

383  {
384  return am_mod_factor;
385 }
+ Here is the caller graph for this function:

◆ getAutoRwBalance()

qint32 SWGSDRangel::SWGUDPSourceSettings::getAutoRwBalance ( )

Definition at line 453 of file SWGUDPSourceSettings.cpp.

References auto_rw_balance.

Referenced by UDPSource::webapiSettingsPutPatch().

453  {
454  return auto_rw_balance;
455 }
+ Here is the caller graph for this function:

◆ getChannelMute()

qint32 SWGSDRangel::SWGUDPSourceSettings::getChannelMute ( )

Definition at line 393 of file SWGUDPSourceSettings.cpp.

References channel_mute.

Referenced by UDPSource::webapiSettingsPutPatch().

393  {
394  return channel_mute;
395 }
+ Here is the caller graph for this function:

◆ getFmDeviation()

qint32 SWGSDRangel::SWGUDPSourceSettings::getFmDeviation ( )

Definition at line 373 of file SWGUDPSourceSettings.cpp.

References fm_deviation.

Referenced by UDPSource::webapiSettingsPutPatch().

373  {
374  return fm_deviation;
375 }
+ Here is the caller graph for this function:

◆ getGainIn()

float SWGSDRangel::SWGUDPSourceSettings::getGainIn ( )

Definition at line 403 of file SWGUDPSourceSettings.cpp.

References gain_in.

Referenced by UDPSource::webapiSettingsPutPatch().

403  {
404  return gain_in;
405 }
+ Here is the caller graph for this function:

◆ getGainOut()

float SWGSDRangel::SWGUDPSourceSettings::getGainOut ( )

Definition at line 413 of file SWGUDPSourceSettings.cpp.

References gain_out.

Referenced by UDPSource::webapiSettingsPutPatch().

413  {
414  return gain_out;
415 }
+ Here is the caller graph for this function:

◆ getInputFrequencyOffset()

qint64 SWGSDRangel::SWGUDPSourceSettings::getInputFrequencyOffset ( )

Definition at line 343 of file SWGUDPSourceSettings.cpp.

References input_frequency_offset.

Referenced by UDPSource::webapiSettingsPutPatch().

343  {
344  return input_frequency_offset;
345 }
+ Here is the caller graph for this function:

◆ getInputSampleRate()

float SWGSDRangel::SWGUDPSourceSettings::getInputSampleRate ( )

Definition at line 333 of file SWGUDPSourceSettings.cpp.

References input_sample_rate.

Referenced by UDPSource::webapiSettingsPutPatch().

333  {
334  return input_sample_rate;
335 }
+ Here is the caller graph for this function:

◆ getLowCutoff()

float SWGSDRangel::SWGUDPSourceSettings::getLowCutoff ( )

Definition at line 363 of file SWGUDPSourceSettings.cpp.

References low_cutoff.

Referenced by UDPSource::webapiSettingsPutPatch().

363  {
364  return low_cutoff;
365 }
+ Here is the caller graph for this function:

◆ getReverseApiAddress()

QString * SWGSDRangel::SWGUDPSourceSettings::getReverseApiAddress ( )

Definition at line 523 of file SWGUDPSourceSettings.cpp.

References reverse_api_address.

Referenced by UDPSource::webapiFormatChannelSettings(), and UDPSource::webapiSettingsPutPatch().

523  {
524  return reverse_api_address;
525 }
+ Here is the caller graph for this function:

◆ getReverseApiChannelIndex()

qint32 SWGSDRangel::SWGUDPSourceSettings::getReverseApiChannelIndex ( )

Definition at line 553 of file SWGUDPSourceSettings.cpp.

References reverse_api_channel_index.

Referenced by UDPSource::webapiSettingsPutPatch().

553  {
555 }
+ Here is the caller graph for this function:

◆ getReverseApiDeviceIndex()

qint32 SWGSDRangel::SWGUDPSourceSettings::getReverseApiDeviceIndex ( )

Definition at line 543 of file SWGUDPSourceSettings.cpp.

References reverse_api_device_index.

Referenced by UDPSource::webapiSettingsPutPatch().

543  {
545 }
+ Here is the caller graph for this function:

◆ getReverseApiPort()

qint32 SWGSDRangel::SWGUDPSourceSettings::getReverseApiPort ( )

Definition at line 533 of file SWGUDPSourceSettings.cpp.

References reverse_api_port.

Referenced by UDPSource::webapiSettingsPutPatch().

533  {
534  return reverse_api_port;
535 }
+ Here is the caller graph for this function:

◆ getRfBandwidth()

float SWGSDRangel::SWGUDPSourceSettings::getRfBandwidth ( )

Definition at line 353 of file SWGUDPSourceSettings.cpp.

References rf_bandwidth.

Referenced by UDPSource::webapiSettingsPutPatch().

353  {
354  return rf_bandwidth;
355 }
+ Here is the caller graph for this function:

◆ getRgbColor()

qint32 SWGSDRangel::SWGUDPSourceSettings::getRgbColor ( )

Definition at line 473 of file SWGUDPSourceSettings.cpp.

References rgb_color.

Referenced by UDPSource::webapiSettingsPutPatch().

473  {
474  return rgb_color;
475 }
+ Here is the caller graph for this function:

◆ getSampleFormat()

qint32 SWGSDRangel::SWGUDPSourceSettings::getSampleFormat ( )

Definition at line 323 of file SWGUDPSourceSettings.cpp.

References sample_format.

Referenced by UDPSource::webapiSettingsPutPatch().

323  {
324  return sample_format;
325 }
+ Here is the caller graph for this function:

◆ getSquelch()

float SWGSDRangel::SWGUDPSourceSettings::getSquelch ( )

Definition at line 423 of file SWGUDPSourceSettings.cpp.

References squelch.

Referenced by UDPSource::webapiSettingsPutPatch().

423  {
424  return squelch;
425 }
+ Here is the caller graph for this function:

◆ getSquelchEnabled()

qint32 SWGSDRangel::SWGUDPSourceSettings::getSquelchEnabled ( )

Definition at line 443 of file SWGUDPSourceSettings.cpp.

References squelch_enabled.

Referenced by UDPSource::webapiSettingsPutPatch().

443  {
444  return squelch_enabled;
445 }
+ Here is the caller graph for this function:

◆ getSquelchGate()

float SWGSDRangel::SWGUDPSourceSettings::getSquelchGate ( )

Definition at line 433 of file SWGUDPSourceSettings.cpp.

References squelch_gate.

Referenced by UDPSource::webapiSettingsPutPatch().

433  {
434  return squelch_gate;
435 }
+ Here is the caller graph for this function:

◆ getStereoInput()

qint32 SWGSDRangel::SWGUDPSourceSettings::getStereoInput ( )

Definition at line 463 of file SWGUDPSourceSettings.cpp.

References stereo_input.

Referenced by UDPSource::webapiSettingsPutPatch().

463  {
464  return stereo_input;
465 }
+ Here is the caller graph for this function:

◆ getTitle()

QString * SWGSDRangel::SWGUDPSourceSettings::getTitle ( )

Definition at line 503 of file SWGUDPSourceSettings.cpp.

References title.

Referenced by UDPSource::webapiFormatChannelSettings(), and UDPSource::webapiSettingsPutPatch().

503  {
504  return title;
505 }
+ Here is the caller graph for this function:

◆ getUdpAddress()

QString * SWGSDRangel::SWGUDPSourceSettings::getUdpAddress ( )

Definition at line 483 of file SWGUDPSourceSettings.cpp.

References udp_address.

Referenced by UDPSource::webapiFormatChannelSettings(), and UDPSource::webapiSettingsPutPatch().

483  {
484  return udp_address;
485 }
+ Here is the caller graph for this function:

◆ getUdpPort()

qint32 SWGSDRangel::SWGUDPSourceSettings::getUdpPort ( )

Definition at line 493 of file SWGUDPSourceSettings.cpp.

References udp_port.

Referenced by UDPSource::webapiSettingsPutPatch().

493  {
494  return udp_port;
495 }
+ Here is the caller graph for this function:

◆ getUseReverseApi()

qint32 SWGSDRangel::SWGUDPSourceSettings::getUseReverseApi ( )

Definition at line 513 of file SWGUDPSourceSettings.cpp.

References use_reverse_api.

Referenced by UDPSource::webapiSettingsPutPatch().

513  {
514  return use_reverse_api;
515 }
+ Here is the caller graph for this function:

◆ init()

void SWGSDRangel::SWGUDPSourceSettings::init ( )

Definition at line 86 of file SWGUDPSourceSettings.cpp.

References am_mod_factor, auto_rw_balance, channel_mute, fm_deviation, gain_in, gain_out, input_frequency_offset, input_sample_rate, low_cutoff, m_am_mod_factor_isSet, m_auto_rw_balance_isSet, m_channel_mute_isSet, m_fm_deviation_isSet, m_gain_in_isSet, m_gain_out_isSet, m_input_frequency_offset_isSet, m_input_sample_rate_isSet, m_low_cutoff_isSet, m_reverse_api_address_isSet, m_reverse_api_channel_index_isSet, m_reverse_api_device_index_isSet, m_reverse_api_port_isSet, m_rf_bandwidth_isSet, m_rgb_color_isSet, m_sample_format_isSet, m_squelch_enabled_isSet, m_squelch_gate_isSet, m_squelch_isSet, m_stereo_input_isSet, m_title_isSet, m_udp_address_isSet, m_udp_port_isSet, m_use_reverse_api_isSet, reverse_api_address, reverse_api_channel_index, reverse_api_device_index, reverse_api_port, rf_bandwidth, rgb_color, sample_format, squelch, squelch_enabled, squelch_gate, stereo_input, title, udp_address, udp_port, and use_reverse_api.

Referenced by SWGUDPSourceSettings(), and UDPSource::webapiSettingsGet().

86  {
87  sample_format = 0;
88  m_sample_format_isSet = false;
89  input_sample_rate = 0.0f;
93  rf_bandwidth = 0.0f;
94  m_rf_bandwidth_isSet = false;
95  low_cutoff = 0.0f;
96  m_low_cutoff_isSet = false;
97  fm_deviation = 0;
98  m_fm_deviation_isSet = false;
99  am_mod_factor = 0.0f;
100  m_am_mod_factor_isSet = false;
101  channel_mute = 0;
102  m_channel_mute_isSet = false;
103  gain_in = 0.0f;
104  m_gain_in_isSet = false;
105  gain_out = 0.0f;
106  m_gain_out_isSet = false;
107  squelch = 0.0f;
108  m_squelch_isSet = false;
109  squelch_gate = 0.0f;
110  m_squelch_gate_isSet = false;
111  squelch_enabled = 0;
112  m_squelch_enabled_isSet = false;
113  auto_rw_balance = 0;
114  m_auto_rw_balance_isSet = false;
115  stereo_input = 0;
116  m_stereo_input_isSet = false;
117  rgb_color = 0;
118  m_rgb_color_isSet = false;
119  udp_address = new QString("");
120  m_udp_address_isSet = false;
121  udp_port = 0;
122  m_udp_port_isSet = false;
123  title = new QString("");
124  m_title_isSet = false;
125  use_reverse_api = 0;
126  m_use_reverse_api_isSet = false;
127  reverse_api_address = new QString("");
129  reverse_api_port = 0;
130  m_reverse_api_port_isSet = false;
135 }
+ Here is the caller graph for this function:

◆ isSet()

bool SWGSDRangel::SWGUDPSourceSettings::isSet ( )
overridevirtual

Reimplemented from SWGSDRangel::SWGObject.

Definition at line 564 of file SWGUDPSourceSettings.cpp.

References m_am_mod_factor_isSet, m_auto_rw_balance_isSet, m_channel_mute_isSet, m_fm_deviation_isSet, m_gain_in_isSet, m_gain_out_isSet, m_input_frequency_offset_isSet, m_input_sample_rate_isSet, m_low_cutoff_isSet, m_reverse_api_channel_index_isSet, m_reverse_api_device_index_isSet, m_reverse_api_port_isSet, m_rf_bandwidth_isSet, m_rgb_color_isSet, m_sample_format_isSet, m_squelch_enabled_isSet, m_squelch_gate_isSet, m_squelch_isSet, m_stereo_input_isSet, m_udp_port_isSet, m_use_reverse_api_isSet, reverse_api_address, title, and udp_address.

Referenced by SWGSDRangel::SWGChannelSettings::asJsonObject(), SWGSDRangel::SWGChannelSettings_2::asJsonObject(), SWGSDRangel::SWGChannelSettings_2::isSet(), and SWGSDRangel::SWGChannelSettings::isSet().

564  {
565  bool isObjectUpdated = false;
566  do{
567  if(m_sample_format_isSet){ isObjectUpdated = true; break;}
568  if(m_input_sample_rate_isSet){ isObjectUpdated = true; break;}
569  if(m_input_frequency_offset_isSet){ isObjectUpdated = true; break;}
570  if(m_rf_bandwidth_isSet){ isObjectUpdated = true; break;}
571  if(m_low_cutoff_isSet){ isObjectUpdated = true; break;}
572  if(m_fm_deviation_isSet){ isObjectUpdated = true; break;}
573  if(m_am_mod_factor_isSet){ isObjectUpdated = true; break;}
574  if(m_channel_mute_isSet){ isObjectUpdated = true; break;}
575  if(m_gain_in_isSet){ isObjectUpdated = true; break;}
576  if(m_gain_out_isSet){ isObjectUpdated = true; break;}
577  if(m_squelch_isSet){ isObjectUpdated = true; break;}
578  if(m_squelch_gate_isSet){ isObjectUpdated = true; break;}
579  if(m_squelch_enabled_isSet){ isObjectUpdated = true; break;}
580  if(m_auto_rw_balance_isSet){ isObjectUpdated = true; break;}
581  if(m_stereo_input_isSet){ isObjectUpdated = true; break;}
582  if(m_rgb_color_isSet){ isObjectUpdated = true; break;}
583  if(udp_address != nullptr && *udp_address != QString("")){ isObjectUpdated = true; break;}
584  if(m_udp_port_isSet){ isObjectUpdated = true; break;}
585  if(title != nullptr && *title != QString("")){ isObjectUpdated = true; break;}
586  if(m_use_reverse_api_isSet){ isObjectUpdated = true; break;}
587  if(reverse_api_address != nullptr && *reverse_api_address != QString("")){ isObjectUpdated = true; break;}
588  if(m_reverse_api_port_isSet){ isObjectUpdated = true; break;}
589  if(m_reverse_api_device_index_isSet){ isObjectUpdated = true; break;}
590  if(m_reverse_api_channel_index_isSet){ isObjectUpdated = true; break;}
591  }while(false);
592  return isObjectUpdated;
593 }
+ Here is the caller graph for this function:

◆ setAmModFactor()

void SWGSDRangel::SWGUDPSourceSettings::setAmModFactor ( float  am_mod_factor)

Definition at line 387 of file SWGUDPSourceSettings.cpp.

References am_mod_factor, and m_am_mod_factor_isSet.

Referenced by UDPSource::webapiFormatChannelSettings(), and UDPSource::webapiReverseSendSettings().

+ Here is the caller graph for this function:

◆ setAutoRwBalance()

void SWGSDRangel::SWGUDPSourceSettings::setAutoRwBalance ( qint32  auto_rw_balance)

Definition at line 457 of file SWGUDPSourceSettings.cpp.

References auto_rw_balance, and m_auto_rw_balance_isSet.

Referenced by UDPSource::webapiFormatChannelSettings(), and UDPSource::webapiReverseSendSettings().

+ Here is the caller graph for this function:

◆ setChannelMute()

void SWGSDRangel::SWGUDPSourceSettings::setChannelMute ( qint32  channel_mute)

Definition at line 397 of file SWGUDPSourceSettings.cpp.

References channel_mute, and m_channel_mute_isSet.

Referenced by UDPSource::webapiFormatChannelSettings(), and UDPSource::webapiReverseSendSettings().

+ Here is the caller graph for this function:

◆ setFmDeviation()

void SWGSDRangel::SWGUDPSourceSettings::setFmDeviation ( qint32  fm_deviation)

Definition at line 377 of file SWGUDPSourceSettings.cpp.

References fm_deviation, and m_fm_deviation_isSet.

Referenced by UDPSource::webapiFormatChannelSettings(), and UDPSource::webapiReverseSendSettings().

+ Here is the caller graph for this function:

◆ setGainIn()

void SWGSDRangel::SWGUDPSourceSettings::setGainIn ( float  gain_in)

Definition at line 407 of file SWGUDPSourceSettings.cpp.

References gain_in, and m_gain_in_isSet.

Referenced by UDPSource::webapiFormatChannelSettings(), and UDPSource::webapiReverseSendSettings().

+ Here is the caller graph for this function:

◆ setGainOut()

void SWGSDRangel::SWGUDPSourceSettings::setGainOut ( float  gain_out)

Definition at line 417 of file SWGUDPSourceSettings.cpp.

References gain_out, and m_gain_out_isSet.

Referenced by UDPSource::webapiFormatChannelSettings(), and UDPSource::webapiReverseSendSettings().

+ Here is the caller graph for this function:

◆ setInputFrequencyOffset()

void SWGSDRangel::SWGUDPSourceSettings::setInputFrequencyOffset ( qint64  input_frequency_offset)

◆ setInputSampleRate()

void SWGSDRangel::SWGUDPSourceSettings::setInputSampleRate ( float  input_sample_rate)

Definition at line 337 of file SWGUDPSourceSettings.cpp.

References input_sample_rate, and m_input_sample_rate_isSet.

Referenced by UDPSource::webapiFormatChannelSettings(), and UDPSource::webapiReverseSendSettings().

+ Here is the caller graph for this function:

◆ setLowCutoff()

void SWGSDRangel::SWGUDPSourceSettings::setLowCutoff ( float  low_cutoff)

Definition at line 367 of file SWGUDPSourceSettings.cpp.

References low_cutoff, and m_low_cutoff_isSet.

Referenced by UDPSource::webapiFormatChannelSettings(), and UDPSource::webapiReverseSendSettings().

+ Here is the caller graph for this function:

◆ setReverseApiAddress()

void SWGSDRangel::SWGUDPSourceSettings::setReverseApiAddress ( QString *  reverse_api_address)

Definition at line 527 of file SWGUDPSourceSettings.cpp.

References m_reverse_api_address_isSet, and reverse_api_address.

Referenced by UDPSource::webapiFormatChannelSettings().

+ Here is the caller graph for this function:

◆ setReverseApiChannelIndex()

void SWGSDRangel::SWGUDPSourceSettings::setReverseApiChannelIndex ( qint32  reverse_api_channel_index)

◆ setReverseApiDeviceIndex()

void SWGSDRangel::SWGUDPSourceSettings::setReverseApiDeviceIndex ( qint32  reverse_api_device_index)

Definition at line 547 of file SWGUDPSourceSettings.cpp.

References m_reverse_api_device_index_isSet, and reverse_api_device_index.

Referenced by UDPSource::webapiFormatChannelSettings().

+ Here is the caller graph for this function:

◆ setReverseApiPort()

void SWGSDRangel::SWGUDPSourceSettings::setReverseApiPort ( qint32  reverse_api_port)

Definition at line 537 of file SWGUDPSourceSettings.cpp.

References m_reverse_api_port_isSet, and reverse_api_port.

Referenced by UDPSource::webapiFormatChannelSettings().

+ Here is the caller graph for this function:

◆ setRfBandwidth()

void SWGSDRangel::SWGUDPSourceSettings::setRfBandwidth ( float  rf_bandwidth)

Definition at line 357 of file SWGUDPSourceSettings.cpp.

References m_rf_bandwidth_isSet, and rf_bandwidth.

Referenced by UDPSource::webapiFormatChannelSettings(), and UDPSource::webapiReverseSendSettings().

+ Here is the caller graph for this function:

◆ setRgbColor()

void SWGSDRangel::SWGUDPSourceSettings::setRgbColor ( qint32  rgb_color)

Definition at line 477 of file SWGUDPSourceSettings.cpp.

References m_rgb_color_isSet, and rgb_color.

Referenced by UDPSource::webapiFormatChannelSettings(), and UDPSource::webapiReverseSendSettings().

+ Here is the caller graph for this function:

◆ setSampleFormat()

void SWGSDRangel::SWGUDPSourceSettings::setSampleFormat ( qint32  sample_format)

Definition at line 327 of file SWGUDPSourceSettings.cpp.

References m_sample_format_isSet, and sample_format.

Referenced by UDPSource::webapiFormatChannelSettings(), and UDPSource::webapiReverseSendSettings().

+ Here is the caller graph for this function:

◆ setSquelch()

void SWGSDRangel::SWGUDPSourceSettings::setSquelch ( float  squelch)

Definition at line 427 of file SWGUDPSourceSettings.cpp.

References m_squelch_isSet, and squelch.

Referenced by UDPSource::webapiFormatChannelSettings(), and UDPSource::webapiReverseSendSettings().

+ Here is the caller graph for this function:

◆ setSquelchEnabled()

void SWGSDRangel::SWGUDPSourceSettings::setSquelchEnabled ( qint32  squelch_enabled)

Definition at line 447 of file SWGUDPSourceSettings.cpp.

References m_squelch_enabled_isSet, and squelch_enabled.

Referenced by UDPSource::webapiFormatChannelSettings(), and UDPSource::webapiReverseSendSettings().

+ Here is the caller graph for this function:

◆ setSquelchGate()

void SWGSDRangel::SWGUDPSourceSettings::setSquelchGate ( float  squelch_gate)

Definition at line 437 of file SWGUDPSourceSettings.cpp.

References m_squelch_gate_isSet, and squelch_gate.

Referenced by UDPSource::webapiFormatChannelSettings(), and UDPSource::webapiReverseSendSettings().

+ Here is the caller graph for this function:

◆ setStereoInput()

void SWGSDRangel::SWGUDPSourceSettings::setStereoInput ( qint32  stereo_input)

Definition at line 467 of file SWGUDPSourceSettings.cpp.

References m_stereo_input_isSet, and stereo_input.

Referenced by UDPSource::webapiFormatChannelSettings(), and UDPSource::webapiReverseSendSettings().

+ Here is the caller graph for this function:

◆ setTitle()

void SWGSDRangel::SWGUDPSourceSettings::setTitle ( QString *  title)

Definition at line 507 of file SWGUDPSourceSettings.cpp.

References m_title_isSet, and title.

Referenced by UDPSource::webapiFormatChannelSettings(), and UDPSource::webapiReverseSendSettings().

507  {
508  this->title = title;
509  this->m_title_isSet = true;
510 }
+ Here is the caller graph for this function:

◆ setUdpAddress()

void SWGSDRangel::SWGUDPSourceSettings::setUdpAddress ( QString *  udp_address)

Definition at line 487 of file SWGUDPSourceSettings.cpp.

References m_udp_address_isSet, and udp_address.

Referenced by UDPSource::webapiFormatChannelSettings(), and UDPSource::webapiReverseSendSettings().

+ Here is the caller graph for this function:

◆ setUdpPort()

void SWGSDRangel::SWGUDPSourceSettings::setUdpPort ( qint32  udp_port)

Definition at line 497 of file SWGUDPSourceSettings.cpp.

References m_udp_port_isSet, and udp_port.

Referenced by UDPSource::webapiFormatChannelSettings(), and UDPSource::webapiReverseSendSettings().

+ Here is the caller graph for this function:

◆ setUseReverseApi()

void SWGSDRangel::SWGUDPSourceSettings::setUseReverseApi ( qint32  use_reverse_api)

Definition at line 517 of file SWGUDPSourceSettings.cpp.

References m_use_reverse_api_isSet, and use_reverse_api.

Referenced by UDPSource::webapiFormatChannelSettings().

+ Here is the caller graph for this function:

Member Data Documentation

◆ am_mod_factor

float SWGSDRangel::SWGUDPSourceSettings::am_mod_factor
private

◆ auto_rw_balance

qint32 SWGSDRangel::SWGUDPSourceSettings::auto_rw_balance
private

◆ channel_mute

qint32 SWGSDRangel::SWGUDPSourceSettings::channel_mute
private

◆ fm_deviation

qint32 SWGSDRangel::SWGUDPSourceSettings::fm_deviation
private

◆ gain_in

float SWGSDRangel::SWGUDPSourceSettings::gain_in
private

◆ gain_out

float SWGSDRangel::SWGUDPSourceSettings::gain_out
private

◆ input_frequency_offset

qint64 SWGSDRangel::SWGUDPSourceSettings::input_frequency_offset
private

◆ input_sample_rate

float SWGSDRangel::SWGUDPSourceSettings::input_sample_rate
private

◆ low_cutoff

float SWGSDRangel::SWGUDPSourceSettings::low_cutoff
private

◆ m_am_mod_factor_isSet

bool SWGSDRangel::SWGUDPSourceSettings::m_am_mod_factor_isSet
private

◆ m_auto_rw_balance_isSet

bool SWGSDRangel::SWGUDPSourceSettings::m_auto_rw_balance_isSet
private

◆ m_channel_mute_isSet

bool SWGSDRangel::SWGUDPSourceSettings::m_channel_mute_isSet
private

◆ m_fm_deviation_isSet

bool SWGSDRangel::SWGUDPSourceSettings::m_fm_deviation_isSet
private

◆ m_gain_in_isSet

bool SWGSDRangel::SWGUDPSourceSettings::m_gain_in_isSet
private

Definition at line 146 of file SWGUDPSourceSettings.h.

Referenced by asJsonObject(), init(), isSet(), setGainIn(), and SWGUDPSourceSettings().

◆ m_gain_out_isSet

bool SWGSDRangel::SWGUDPSourceSettings::m_gain_out_isSet
private

Definition at line 149 of file SWGUDPSourceSettings.h.

Referenced by asJsonObject(), init(), isSet(), setGainOut(), and SWGUDPSourceSettings().

◆ m_input_frequency_offset_isSet

bool SWGSDRangel::SWGUDPSourceSettings::m_input_frequency_offset_isSet
private

◆ m_input_sample_rate_isSet

bool SWGSDRangel::SWGUDPSourceSettings::m_input_sample_rate_isSet
private

◆ m_low_cutoff_isSet

bool SWGSDRangel::SWGUDPSourceSettings::m_low_cutoff_isSet
private

Definition at line 134 of file SWGUDPSourceSettings.h.

Referenced by asJsonObject(), init(), isSet(), setLowCutoff(), and SWGUDPSourceSettings().

◆ m_reverse_api_address_isSet

bool SWGSDRangel::SWGUDPSourceSettings::m_reverse_api_address_isSet
private

Definition at line 182 of file SWGUDPSourceSettings.h.

Referenced by init(), setReverseApiAddress(), and SWGUDPSourceSettings().

◆ m_reverse_api_channel_index_isSet

bool SWGSDRangel::SWGUDPSourceSettings::m_reverse_api_channel_index_isSet
private

◆ m_reverse_api_device_index_isSet

bool SWGSDRangel::SWGUDPSourceSettings::m_reverse_api_device_index_isSet
private

◆ m_reverse_api_port_isSet

bool SWGSDRangel::SWGUDPSourceSettings::m_reverse_api_port_isSet
private

◆ m_rf_bandwidth_isSet

bool SWGSDRangel::SWGUDPSourceSettings::m_rf_bandwidth_isSet
private

◆ m_rgb_color_isSet

bool SWGSDRangel::SWGUDPSourceSettings::m_rgb_color_isSet
private

Definition at line 167 of file SWGUDPSourceSettings.h.

Referenced by asJsonObject(), init(), isSet(), setRgbColor(), and SWGUDPSourceSettings().

◆ m_sample_format_isSet

bool SWGSDRangel::SWGUDPSourceSettings::m_sample_format_isSet
private

◆ m_squelch_enabled_isSet

bool SWGSDRangel::SWGUDPSourceSettings::m_squelch_enabled_isSet
private

◆ m_squelch_gate_isSet

bool SWGSDRangel::SWGUDPSourceSettings::m_squelch_gate_isSet
private

◆ m_squelch_isSet

bool SWGSDRangel::SWGUDPSourceSettings::m_squelch_isSet
private

Definition at line 152 of file SWGUDPSourceSettings.h.

Referenced by asJsonObject(), init(), isSet(), setSquelch(), and SWGUDPSourceSettings().

◆ m_stereo_input_isSet

bool SWGSDRangel::SWGUDPSourceSettings::m_stereo_input_isSet
private

◆ m_title_isSet

bool SWGSDRangel::SWGUDPSourceSettings::m_title_isSet
private

Definition at line 176 of file SWGUDPSourceSettings.h.

Referenced by init(), setTitle(), and SWGUDPSourceSettings().

◆ m_udp_address_isSet

bool SWGSDRangel::SWGUDPSourceSettings::m_udp_address_isSet
private

Definition at line 170 of file SWGUDPSourceSettings.h.

Referenced by init(), setUdpAddress(), and SWGUDPSourceSettings().

◆ m_udp_port_isSet

bool SWGSDRangel::SWGUDPSourceSettings::m_udp_port_isSet
private

Definition at line 173 of file SWGUDPSourceSettings.h.

Referenced by asJsonObject(), init(), isSet(), setUdpPort(), and SWGUDPSourceSettings().

◆ m_use_reverse_api_isSet

bool SWGSDRangel::SWGUDPSourceSettings::m_use_reverse_api_isSet
private

◆ reverse_api_address

QString* SWGSDRangel::SWGUDPSourceSettings::reverse_api_address
private

◆ reverse_api_channel_index

qint32 SWGSDRangel::SWGUDPSourceSettings::reverse_api_channel_index
private

◆ reverse_api_device_index

qint32 SWGSDRangel::SWGUDPSourceSettings::reverse_api_device_index
private

◆ reverse_api_port

qint32 SWGSDRangel::SWGUDPSourceSettings::reverse_api_port
private

◆ rf_bandwidth

float SWGSDRangel::SWGUDPSourceSettings::rf_bandwidth
private

◆ rgb_color

qint32 SWGSDRangel::SWGUDPSourceSettings::rgb_color
private

◆ sample_format

qint32 SWGSDRangel::SWGUDPSourceSettings::sample_format
private

◆ squelch

float SWGSDRangel::SWGUDPSourceSettings::squelch
private

◆ squelch_enabled

qint32 SWGSDRangel::SWGUDPSourceSettings::squelch_enabled
private

◆ squelch_gate

float SWGSDRangel::SWGUDPSourceSettings::squelch_gate
private

◆ stereo_input

qint32 SWGSDRangel::SWGUDPSourceSettings::stereo_input
private

◆ title

QString* SWGSDRangel::SWGUDPSourceSettings::title
private

◆ udp_address

QString* SWGSDRangel::SWGUDPSourceSettings::udp_address
private

◆ udp_port

qint32 SWGSDRangel::SWGUDPSourceSettings::udp_port
private

◆ use_reverse_api

qint32 SWGSDRangel::SWGUDPSourceSettings::use_reverse_api
private

The documentation for this class was generated from the following files: