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::SWGSSBDemodSettings Class Reference

#include <SWGSSBDemodSettings.h>

+ Inheritance diagram for SWGSDRangel::SWGSSBDemodSettings:
+ Collaboration diagram for SWGSDRangel::SWGSSBDemodSettings:

Public Member Functions

 SWGSSBDemodSettings ()
 
 SWGSSBDemodSettings (QString *json)
 
virtual ~SWGSSBDemodSettings ()
 
void init ()
 
void cleanup ()
 
virtual QString asJson () override
 
virtual QJsonObject * asJsonObject () override
 
virtual void fromJsonObject (QJsonObject &json) override
 
virtual SWGSSBDemodSettingsfromJson (QString &jsonString) override
 
qint64 getInputFrequencyOffset ()
 
void setInputFrequencyOffset (qint64 input_frequency_offset)
 
float getRfBandwidth ()
 
void setRfBandwidth (float rf_bandwidth)
 
float getLowCutoff ()
 
void setLowCutoff (float low_cutoff)
 
float getVolume ()
 
void setVolume (float volume)
 
qint32 getSpanLog2 ()
 
void setSpanLog2 (qint32 span_log2)
 
qint32 getAudioBinaural ()
 
void setAudioBinaural (qint32 audio_binaural)
 
qint32 getAudioFlipChannels ()
 
void setAudioFlipChannels (qint32 audio_flip_channels)
 
qint32 getDsb ()
 
void setDsb (qint32 dsb)
 
qint32 getAudioMute ()
 
void setAudioMute (qint32 audio_mute)
 
qint32 getAgc ()
 
void setAgc (qint32 agc)
 
qint32 getAgcClamping ()
 
void setAgcClamping (qint32 agc_clamping)
 
qint32 getAgcTimeLog2 ()
 
void setAgcTimeLog2 (qint32 agc_time_log2)
 
qint32 getAgcPowerThreshold ()
 
void setAgcPowerThreshold (qint32 agc_power_threshold)
 
qint32 getAgcThresholdGate ()
 
void setAgcThresholdGate (qint32 agc_threshold_gate)
 
qint32 getRgbColor ()
 
void setRgbColor (qint32 rgb_color)
 
QString * getTitle ()
 
void setTitle (QString *title)
 
QString * getAudioDeviceName ()
 
void setAudioDeviceName (QString *audio_device_name)
 
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

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
 
float volume
 
bool m_volume_isSet
 
qint32 span_log2
 
bool m_span_log2_isSet
 
qint32 audio_binaural
 
bool m_audio_binaural_isSet
 
qint32 audio_flip_channels
 
bool m_audio_flip_channels_isSet
 
qint32 dsb
 
bool m_dsb_isSet
 
qint32 audio_mute
 
bool m_audio_mute_isSet
 
qint32 agc
 
bool m_agc_isSet
 
qint32 agc_clamping
 
bool m_agc_clamping_isSet
 
qint32 agc_time_log2
 
bool m_agc_time_log2_isSet
 
qint32 agc_power_threshold
 
bool m_agc_power_threshold_isSet
 
qint32 agc_threshold_gate
 
bool m_agc_threshold_gate_isSet
 
qint32 rgb_color
 
bool m_rgb_color_isSet
 
QString * title
 
bool m_title_isSet
 
QString * audio_device_name
 
bool m_audio_device_name_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 SWGSSBDemodSettings.h.

Constructor & Destructor Documentation

◆ SWGSSBDemodSettings() [1/2]

SWGSDRangel::SWGSSBDemodSettings::SWGSSBDemodSettings ( )

Definition at line 30 of file SWGSSBDemodSettings.cpp.

References agc, agc_clamping, agc_power_threshold, agc_threshold_gate, agc_time_log2, audio_binaural, audio_device_name, audio_flip_channels, audio_mute, dsb, input_frequency_offset, low_cutoff, m_agc_clamping_isSet, m_agc_isSet, m_agc_power_threshold_isSet, m_agc_threshold_gate_isSet, m_agc_time_log2_isSet, m_audio_binaural_isSet, m_audio_device_name_isSet, m_audio_flip_channels_isSet, m_audio_mute_isSet, m_dsb_isSet, m_input_frequency_offset_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_span_log2_isSet, m_title_isSet, m_use_reverse_api_isSet, m_volume_isSet, reverse_api_address, reverse_api_channel_index, reverse_api_device_index, reverse_api_port, rf_bandwidth, rgb_color, span_log2, title, use_reverse_api, and volume.

30  {
33  rf_bandwidth = 0.0f;
34  m_rf_bandwidth_isSet = false;
35  low_cutoff = 0.0f;
36  m_low_cutoff_isSet = false;
37  volume = 0.0f;
38  m_volume_isSet = false;
39  span_log2 = 0;
40  m_span_log2_isSet = false;
41  audio_binaural = 0;
42  m_audio_binaural_isSet = false;
45  dsb = 0;
46  m_dsb_isSet = false;
47  audio_mute = 0;
48  m_audio_mute_isSet = false;
49  agc = 0;
50  m_agc_isSet = false;
51  agc_clamping = 0;
52  m_agc_clamping_isSet = false;
53  agc_time_log2 = 0;
54  m_agc_time_log2_isSet = false;
59  rgb_color = 0;
60  m_rgb_color_isSet = false;
61  title = nullptr;
62  m_title_isSet = false;
63  audio_device_name = nullptr;
65  use_reverse_api = 0;
67  reverse_api_address = nullptr;
69  reverse_api_port = 0;
75 }

◆ SWGSSBDemodSettings() [2/2]

SWGSDRangel::SWGSSBDemodSettings::SWGSSBDemodSettings ( QString *  json)

Definition at line 25 of file SWGSSBDemodSettings.cpp.

References fromJson(), and init().

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

◆ ~SWGSSBDemodSettings()

SWGSDRangel::SWGSSBDemodSettings::~SWGSSBDemodSettings ( )
virtual

Definition at line 77 of file SWGSSBDemodSettings.cpp.

References cleanup().

77  {
78  this->cleanup();
79 }
+ Here is the call graph for this function:

Member Function Documentation

◆ asJson()

QString SWGSDRangel::SWGSSBDemodSettings::asJson ( )
overridevirtual

Reimplemented from SWGSDRangel::SWGObject.

Definition at line 219 of file SWGSSBDemodSettings.cpp.

References asJsonObject().

220 {
221  QJsonObject* obj = this->asJsonObject();
222 
223  QJsonDocument doc(*obj);
224  QByteArray bytes = doc.toJson();
225  delete obj;
226  return QString(bytes);
227 }
virtual QJsonObject * asJsonObject() override
+ Here is the call graph for this function:

◆ asJsonObject()

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

Reimplemented from SWGSDRangel::SWGObject.

Definition at line 230 of file SWGSSBDemodSettings.cpp.

References agc, agc_clamping, agc_power_threshold, agc_threshold_gate, agc_time_log2, audio_binaural, audio_device_name, audio_flip_channels, audio_mute, dsb, input_frequency_offset, low_cutoff, m_agc_clamping_isSet, m_agc_isSet, m_agc_power_threshold_isSet, m_agc_threshold_gate_isSet, m_agc_time_log2_isSet, m_audio_binaural_isSet, m_audio_flip_channels_isSet, m_audio_mute_isSet, m_dsb_isSet, m_input_frequency_offset_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_span_log2_isSet, m_use_reverse_api_isSet, m_volume_isSet, reverse_api_address, reverse_api_channel_index, reverse_api_device_index, reverse_api_port, rf_bandwidth, rgb_color, span_log2, title, SWGSDRangel::toJsonValue(), use_reverse_api, and volume.

Referenced by asJson().

230  {
231  QJsonObject* obj = new QJsonObject();
233  obj->insert("inputFrequencyOffset", QJsonValue(input_frequency_offset));
234  }
236  obj->insert("rfBandwidth", QJsonValue(rf_bandwidth));
237  }
238  if(m_low_cutoff_isSet){
239  obj->insert("lowCutoff", QJsonValue(low_cutoff));
240  }
241  if(m_volume_isSet){
242  obj->insert("volume", QJsonValue(volume));
243  }
244  if(m_span_log2_isSet){
245  obj->insert("spanLog2", QJsonValue(span_log2));
246  }
248  obj->insert("audioBinaural", QJsonValue(audio_binaural));
249  }
251  obj->insert("audioFlipChannels", QJsonValue(audio_flip_channels));
252  }
253  if(m_dsb_isSet){
254  obj->insert("dsb", QJsonValue(dsb));
255  }
256  if(m_audio_mute_isSet){
257  obj->insert("audioMute", QJsonValue(audio_mute));
258  }
259  if(m_agc_isSet){
260  obj->insert("agc", QJsonValue(agc));
261  }
263  obj->insert("agcClamping", QJsonValue(agc_clamping));
264  }
266  obj->insert("agcTimeLog2", QJsonValue(agc_time_log2));
267  }
269  obj->insert("agcPowerThreshold", QJsonValue(agc_power_threshold));
270  }
272  obj->insert("agcThresholdGate", QJsonValue(agc_threshold_gate));
273  }
274  if(m_rgb_color_isSet){
275  obj->insert("rgbColor", QJsonValue(rgb_color));
276  }
277  if(title != nullptr && *title != QString("")){
278  toJsonValue(QString("title"), title, obj, QString("QString"));
279  }
280  if(audio_device_name != nullptr && *audio_device_name != QString("")){
281  toJsonValue(QString("audioDeviceName"), audio_device_name, obj, QString("QString"));
282  }
284  obj->insert("useReverseAPI", QJsonValue(use_reverse_api));
285  }
286  if(reverse_api_address != nullptr && *reverse_api_address != QString("")){
287  toJsonValue(QString("reverseAPIAddress"), reverse_api_address, obj, QString("QString"));
288  }
290  obj->insert("reverseAPIPort", QJsonValue(reverse_api_port));
291  }
293  obj->insert("reverseAPIDeviceIndex", QJsonValue(reverse_api_device_index));
294  }
296  obj->insert("reverseAPIChannelIndex", QJsonValue(reverse_api_channel_index));
297  }
298 
299  return obj;
300 }
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::SWGSSBDemodSettings::cleanup ( )

Definition at line 130 of file SWGSSBDemodSettings.cpp.

References audio_device_name, reverse_api_address, and title.

Referenced by ~SWGSSBDemodSettings().

130  {
131 
132 
133 
134 
135 
136 
137 
138 
139 
140 
141 
142 
143 
144 
145 
146  if(title != nullptr) {
147  delete title;
148  }
149  if(audio_device_name != nullptr) {
150  delete audio_device_name;
151  }
152 
153  if(reverse_api_address != nullptr) {
154  delete reverse_api_address;
155  }
156 
157 
158 
159 }
+ Here is the caller graph for this function:

◆ fromJson()

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

Reimplemented from SWGSDRangel::SWGObject.

Definition at line 162 of file SWGSSBDemodSettings.cpp.

References fromJsonObject().

Referenced by SWGSSBDemodSettings().

162  {
163  QByteArray array (json.toStdString().c_str());
164  QJsonDocument doc = QJsonDocument::fromJson(array);
165  QJsonObject jsonObject = doc.object();
166  this->fromJsonObject(jsonObject);
167  return this;
168 }
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::SWGSSBDemodSettings::fromJsonObject ( QJsonObject &  json)
overridevirtual

Reimplemented from SWGSDRangel::SWGObject.

Definition at line 171 of file SWGSSBDemodSettings.cpp.

References agc, agc_clamping, agc_power_threshold, agc_threshold_gate, agc_time_log2, audio_binaural, audio_device_name, audio_flip_channels, audio_mute, dsb, input_frequency_offset, low_cutoff, reverse_api_address, reverse_api_channel_index, reverse_api_device_index, reverse_api_port, rf_bandwidth, rgb_color, SWGSDRangel::setValue(), span_log2, title, use_reverse_api, and volume.

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

171  {
172  ::SWGSDRangel::setValue(&input_frequency_offset, pJson["inputFrequencyOffset"], "qint64", "");
173 
174  ::SWGSDRangel::setValue(&rf_bandwidth, pJson["rfBandwidth"], "float", "");
175 
176  ::SWGSDRangel::setValue(&low_cutoff, pJson["lowCutoff"], "float", "");
177 
178  ::SWGSDRangel::setValue(&volume, pJson["volume"], "float", "");
179 
180  ::SWGSDRangel::setValue(&span_log2, pJson["spanLog2"], "qint32", "");
181 
182  ::SWGSDRangel::setValue(&audio_binaural, pJson["audioBinaural"], "qint32", "");
183 
184  ::SWGSDRangel::setValue(&audio_flip_channels, pJson["audioFlipChannels"], "qint32", "");
185 
186  ::SWGSDRangel::setValue(&dsb, pJson["dsb"], "qint32", "");
187 
188  ::SWGSDRangel::setValue(&audio_mute, pJson["audioMute"], "qint32", "");
189 
190  ::SWGSDRangel::setValue(&agc, pJson["agc"], "qint32", "");
191 
192  ::SWGSDRangel::setValue(&agc_clamping, pJson["agcClamping"], "qint32", "");
193 
194  ::SWGSDRangel::setValue(&agc_time_log2, pJson["agcTimeLog2"], "qint32", "");
195 
196  ::SWGSDRangel::setValue(&agc_power_threshold, pJson["agcPowerThreshold"], "qint32", "");
197 
198  ::SWGSDRangel::setValue(&agc_threshold_gate, pJson["agcThresholdGate"], "qint32", "");
199 
200  ::SWGSDRangel::setValue(&rgb_color, pJson["rgbColor"], "qint32", "");
201 
202  ::SWGSDRangel::setValue(&title, pJson["title"], "QString", "QString");
203 
204  ::SWGSDRangel::setValue(&audio_device_name, pJson["audioDeviceName"], "QString", "QString");
205 
206  ::SWGSDRangel::setValue(&use_reverse_api, pJson["useReverseAPI"], "qint32", "");
207 
208  ::SWGSDRangel::setValue(&reverse_api_address, pJson["reverseAPIAddress"], "QString", "QString");
209 
210  ::SWGSDRangel::setValue(&reverse_api_port, pJson["reverseAPIPort"], "qint32", "");
211 
212  ::SWGSDRangel::setValue(&reverse_api_device_index, pJson["reverseAPIDeviceIndex"], "qint32", "");
213 
214  ::SWGSDRangel::setValue(&reverse_api_channel_index, pJson["reverseAPIChannelIndex"], "qint32", "");
215 
216 }
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:

◆ getAgc()

qint32 SWGSDRangel::SWGSSBDemodSettings::getAgc ( )

Definition at line 393 of file SWGSSBDemodSettings.cpp.

References agc.

Referenced by SSBDemod::webapiSettingsPutPatch().

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

◆ getAgcClamping()

qint32 SWGSDRangel::SWGSSBDemodSettings::getAgcClamping ( )

Definition at line 403 of file SWGSSBDemodSettings.cpp.

References agc_clamping.

Referenced by SSBDemod::webapiSettingsPutPatch().

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

◆ getAgcPowerThreshold()

qint32 SWGSDRangel::SWGSSBDemodSettings::getAgcPowerThreshold ( )

Definition at line 423 of file SWGSSBDemodSettings.cpp.

References agc_power_threshold.

Referenced by SSBDemod::webapiSettingsPutPatch().

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

◆ getAgcThresholdGate()

qint32 SWGSDRangel::SWGSSBDemodSettings::getAgcThresholdGate ( )

Definition at line 433 of file SWGSSBDemodSettings.cpp.

References agc_threshold_gate.

Referenced by SSBDemod::webapiSettingsPutPatch().

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

◆ getAgcTimeLog2()

qint32 SWGSDRangel::SWGSSBDemodSettings::getAgcTimeLog2 ( )

Definition at line 413 of file SWGSSBDemodSettings.cpp.

References agc_time_log2.

Referenced by SSBDemod::webapiSettingsPutPatch().

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

◆ getAudioBinaural()

qint32 SWGSDRangel::SWGSSBDemodSettings::getAudioBinaural ( )

Definition at line 353 of file SWGSSBDemodSettings.cpp.

References audio_binaural.

Referenced by SSBDemod::webapiSettingsPutPatch().

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

◆ getAudioDeviceName()

QString * SWGSDRangel::SWGSSBDemodSettings::getAudioDeviceName ( )

Definition at line 463 of file SWGSSBDemodSettings.cpp.

References audio_device_name.

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

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

◆ getAudioFlipChannels()

qint32 SWGSDRangel::SWGSSBDemodSettings::getAudioFlipChannels ( )

Definition at line 363 of file SWGSSBDemodSettings.cpp.

References audio_flip_channels.

Referenced by SSBDemod::webapiSettingsPutPatch().

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

◆ getAudioMute()

qint32 SWGSDRangel::SWGSSBDemodSettings::getAudioMute ( )

Definition at line 383 of file SWGSSBDemodSettings.cpp.

References audio_mute.

Referenced by SSBDemod::webapiSettingsPutPatch().

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

◆ getDsb()

qint32 SWGSDRangel::SWGSSBDemodSettings::getDsb ( )

Definition at line 373 of file SWGSSBDemodSettings.cpp.

References dsb.

Referenced by SSBDemod::webapiSettingsPutPatch().

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

◆ getInputFrequencyOffset()

qint64 SWGSDRangel::SWGSSBDemodSettings::getInputFrequencyOffset ( )

Definition at line 303 of file SWGSSBDemodSettings.cpp.

References input_frequency_offset.

Referenced by SSBDemod::webapiSettingsPutPatch().

303  {
304  return input_frequency_offset;
305 }
+ Here is the caller graph for this function:

◆ getLowCutoff()

float SWGSDRangel::SWGSSBDemodSettings::getLowCutoff ( )

Definition at line 323 of file SWGSSBDemodSettings.cpp.

References low_cutoff.

Referenced by SSBDemod::webapiSettingsPutPatch().

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

◆ getReverseApiAddress()

QString * SWGSDRangel::SWGSSBDemodSettings::getReverseApiAddress ( )

Definition at line 483 of file SWGSSBDemodSettings.cpp.

References reverse_api_address.

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

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

◆ getReverseApiChannelIndex()

qint32 SWGSDRangel::SWGSSBDemodSettings::getReverseApiChannelIndex ( )

Definition at line 513 of file SWGSSBDemodSettings.cpp.

References reverse_api_channel_index.

Referenced by SSBDemod::webapiSettingsPutPatch().

513  {
515 }
+ Here is the caller graph for this function:

◆ getReverseApiDeviceIndex()

qint32 SWGSDRangel::SWGSSBDemodSettings::getReverseApiDeviceIndex ( )

Definition at line 503 of file SWGSSBDemodSettings.cpp.

References reverse_api_device_index.

Referenced by SSBDemod::webapiSettingsPutPatch().

503  {
505 }
+ Here is the caller graph for this function:

◆ getReverseApiPort()

qint32 SWGSDRangel::SWGSSBDemodSettings::getReverseApiPort ( )

Definition at line 493 of file SWGSSBDemodSettings.cpp.

References reverse_api_port.

Referenced by SSBDemod::webapiSettingsPutPatch().

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

◆ getRfBandwidth()

float SWGSDRangel::SWGSSBDemodSettings::getRfBandwidth ( )

Definition at line 313 of file SWGSSBDemodSettings.cpp.

References rf_bandwidth.

Referenced by SSBDemod::webapiSettingsPutPatch().

313  {
314  return rf_bandwidth;
315 }
+ Here is the caller graph for this function:

◆ getRgbColor()

qint32 SWGSDRangel::SWGSSBDemodSettings::getRgbColor ( )

Definition at line 443 of file SWGSSBDemodSettings.cpp.

References rgb_color.

Referenced by SSBDemod::webapiSettingsPutPatch().

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

◆ getSpanLog2()

qint32 SWGSDRangel::SWGSSBDemodSettings::getSpanLog2 ( )

Definition at line 343 of file SWGSSBDemodSettings.cpp.

References span_log2.

Referenced by SSBDemod::webapiSettingsPutPatch().

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

◆ getTitle()

QString * SWGSDRangel::SWGSSBDemodSettings::getTitle ( )

Definition at line 453 of file SWGSSBDemodSettings.cpp.

References title.

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

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

◆ getUseReverseApi()

qint32 SWGSDRangel::SWGSSBDemodSettings::getUseReverseApi ( )

Definition at line 473 of file SWGSSBDemodSettings.cpp.

References use_reverse_api.

Referenced by SSBDemod::webapiSettingsPutPatch().

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

◆ getVolume()

float SWGSDRangel::SWGSSBDemodSettings::getVolume ( )

Definition at line 333 of file SWGSSBDemodSettings.cpp.

References volume.

Referenced by SSBDemod::webapiSettingsPutPatch().

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

◆ init()

void SWGSDRangel::SWGSSBDemodSettings::init ( )

Definition at line 82 of file SWGSSBDemodSettings.cpp.

References agc, agc_clamping, agc_power_threshold, agc_threshold_gate, agc_time_log2, audio_binaural, audio_device_name, audio_flip_channels, audio_mute, dsb, input_frequency_offset, low_cutoff, m_agc_clamping_isSet, m_agc_isSet, m_agc_power_threshold_isSet, m_agc_threshold_gate_isSet, m_agc_time_log2_isSet, m_audio_binaural_isSet, m_audio_device_name_isSet, m_audio_flip_channels_isSet, m_audio_mute_isSet, m_dsb_isSet, m_input_frequency_offset_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_span_log2_isSet, m_title_isSet, m_use_reverse_api_isSet, m_volume_isSet, reverse_api_address, reverse_api_channel_index, reverse_api_device_index, reverse_api_port, rf_bandwidth, rgb_color, span_log2, title, use_reverse_api, and volume.

Referenced by SWGSSBDemodSettings(), and SSBDemod::webapiSettingsGet().

82  {
85  rf_bandwidth = 0.0f;
86  m_rf_bandwidth_isSet = false;
87  low_cutoff = 0.0f;
88  m_low_cutoff_isSet = false;
89  volume = 0.0f;
90  m_volume_isSet = false;
91  span_log2 = 0;
92  m_span_log2_isSet = false;
93  audio_binaural = 0;
94  m_audio_binaural_isSet = false;
97  dsb = 0;
98  m_dsb_isSet = false;
99  audio_mute = 0;
100  m_audio_mute_isSet = false;
101  agc = 0;
102  m_agc_isSet = false;
103  agc_clamping = 0;
104  m_agc_clamping_isSet = false;
105  agc_time_log2 = 0;
106  m_agc_time_log2_isSet = false;
109  agc_threshold_gate = 0;
111  rgb_color = 0;
112  m_rgb_color_isSet = false;
113  title = new QString("");
114  m_title_isSet = false;
115  audio_device_name = new QString("");
117  use_reverse_api = 0;
118  m_use_reverse_api_isSet = false;
119  reverse_api_address = new QString("");
121  reverse_api_port = 0;
122  m_reverse_api_port_isSet = false;
127 }
+ Here is the caller graph for this function:

◆ isSet()

bool SWGSDRangel::SWGSSBDemodSettings::isSet ( )
overridevirtual

Reimplemented from SWGSDRangel::SWGObject.

Definition at line 524 of file SWGSSBDemodSettings.cpp.

References audio_device_name, m_agc_clamping_isSet, m_agc_isSet, m_agc_power_threshold_isSet, m_agc_threshold_gate_isSet, m_agc_time_log2_isSet, m_audio_binaural_isSet, m_audio_flip_channels_isSet, m_audio_mute_isSet, m_dsb_isSet, m_input_frequency_offset_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_span_log2_isSet, m_use_reverse_api_isSet, m_volume_isSet, reverse_api_address, and title.

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

524  {
525  bool isObjectUpdated = false;
526  do{
527  if(m_input_frequency_offset_isSet){ isObjectUpdated = true; break;}
528  if(m_rf_bandwidth_isSet){ isObjectUpdated = true; break;}
529  if(m_low_cutoff_isSet){ isObjectUpdated = true; break;}
530  if(m_volume_isSet){ isObjectUpdated = true; break;}
531  if(m_span_log2_isSet){ isObjectUpdated = true; break;}
532  if(m_audio_binaural_isSet){ isObjectUpdated = true; break;}
533  if(m_audio_flip_channels_isSet){ isObjectUpdated = true; break;}
534  if(m_dsb_isSet){ isObjectUpdated = true; break;}
535  if(m_audio_mute_isSet){ isObjectUpdated = true; break;}
536  if(m_agc_isSet){ isObjectUpdated = true; break;}
537  if(m_agc_clamping_isSet){ isObjectUpdated = true; break;}
538  if(m_agc_time_log2_isSet){ isObjectUpdated = true; break;}
539  if(m_agc_power_threshold_isSet){ isObjectUpdated = true; break;}
540  if(m_agc_threshold_gate_isSet){ isObjectUpdated = true; break;}
541  if(m_rgb_color_isSet){ isObjectUpdated = true; break;}
542  if(title != nullptr && *title != QString("")){ isObjectUpdated = true; break;}
543  if(audio_device_name != nullptr && *audio_device_name != QString("")){ isObjectUpdated = true; break;}
544  if(m_use_reverse_api_isSet){ isObjectUpdated = true; break;}
545  if(reverse_api_address != nullptr && *reverse_api_address != QString("")){ isObjectUpdated = true; break;}
546  if(m_reverse_api_port_isSet){ isObjectUpdated = true; break;}
547  if(m_reverse_api_device_index_isSet){ isObjectUpdated = true; break;}
548  if(m_reverse_api_channel_index_isSet){ isObjectUpdated = true; break;}
549  }while(false);
550  return isObjectUpdated;
551 }
+ Here is the caller graph for this function:

◆ setAgc()

void SWGSDRangel::SWGSSBDemodSettings::setAgc ( qint32  agc)

Definition at line 397 of file SWGSSBDemodSettings.cpp.

References agc, and m_agc_isSet.

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

397  {
398  this->agc = agc;
399  this->m_agc_isSet = true;
400 }
+ Here is the caller graph for this function:

◆ setAgcClamping()

void SWGSDRangel::SWGSSBDemodSettings::setAgcClamping ( qint32  agc_clamping)

Definition at line 407 of file SWGSSBDemodSettings.cpp.

References agc_clamping, and m_agc_clamping_isSet.

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

+ Here is the caller graph for this function:

◆ setAgcPowerThreshold()

void SWGSDRangel::SWGSSBDemodSettings::setAgcPowerThreshold ( qint32  agc_power_threshold)

Definition at line 427 of file SWGSSBDemodSettings.cpp.

References agc_power_threshold, and m_agc_power_threshold_isSet.

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

+ Here is the caller graph for this function:

◆ setAgcThresholdGate()

void SWGSDRangel::SWGSSBDemodSettings::setAgcThresholdGate ( qint32  agc_threshold_gate)

Definition at line 437 of file SWGSSBDemodSettings.cpp.

References agc_threshold_gate, and m_agc_threshold_gate_isSet.

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

+ Here is the caller graph for this function:

◆ setAgcTimeLog2()

void SWGSDRangel::SWGSSBDemodSettings::setAgcTimeLog2 ( qint32  agc_time_log2)

Definition at line 417 of file SWGSSBDemodSettings.cpp.

References agc_time_log2, and m_agc_time_log2_isSet.

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

+ Here is the caller graph for this function:

◆ setAudioBinaural()

void SWGSDRangel::SWGSSBDemodSettings::setAudioBinaural ( qint32  audio_binaural)

Definition at line 357 of file SWGSSBDemodSettings.cpp.

References audio_binaural, and m_audio_binaural_isSet.

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

+ Here is the caller graph for this function:

◆ setAudioDeviceName()

void SWGSDRangel::SWGSSBDemodSettings::setAudioDeviceName ( QString *  audio_device_name)

Definition at line 467 of file SWGSSBDemodSettings.cpp.

References audio_device_name, and m_audio_device_name_isSet.

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

+ Here is the caller graph for this function:

◆ setAudioFlipChannels()

void SWGSDRangel::SWGSSBDemodSettings::setAudioFlipChannels ( qint32  audio_flip_channels)

Definition at line 367 of file SWGSSBDemodSettings.cpp.

References audio_flip_channels, and m_audio_flip_channels_isSet.

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

+ Here is the caller graph for this function:

◆ setAudioMute()

void SWGSDRangel::SWGSSBDemodSettings::setAudioMute ( qint32  audio_mute)

Definition at line 387 of file SWGSSBDemodSettings.cpp.

References audio_mute, and m_audio_mute_isSet.

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

+ Here is the caller graph for this function:

◆ setDsb()

void SWGSDRangel::SWGSSBDemodSettings::setDsb ( qint32  dsb)

Definition at line 377 of file SWGSSBDemodSettings.cpp.

References dsb, and m_dsb_isSet.

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

377  {
378  this->dsb = dsb;
379  this->m_dsb_isSet = true;
380 }
+ Here is the caller graph for this function:

◆ setInputFrequencyOffset()

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

◆ setLowCutoff()

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

Definition at line 327 of file SWGSSBDemodSettings.cpp.

References low_cutoff, and m_low_cutoff_isSet.

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

+ Here is the caller graph for this function:

◆ setReverseApiAddress()

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

Definition at line 487 of file SWGSSBDemodSettings.cpp.

References m_reverse_api_address_isSet, and reverse_api_address.

Referenced by SSBDemod::webapiFormatChannelSettings().

+ Here is the caller graph for this function:

◆ setReverseApiChannelIndex()

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

Definition at line 517 of file SWGSSBDemodSettings.cpp.

References m_reverse_api_channel_index_isSet, and reverse_api_channel_index.

Referenced by SSBDemod::webapiFormatChannelSettings().

+ Here is the caller graph for this function:

◆ setReverseApiDeviceIndex()

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

Definition at line 507 of file SWGSSBDemodSettings.cpp.

References m_reverse_api_device_index_isSet, and reverse_api_device_index.

Referenced by SSBDemod::webapiFormatChannelSettings().

+ Here is the caller graph for this function:

◆ setReverseApiPort()

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

Definition at line 497 of file SWGSSBDemodSettings.cpp.

References m_reverse_api_port_isSet, and reverse_api_port.

Referenced by SSBDemod::webapiFormatChannelSettings().

+ Here is the caller graph for this function:

◆ setRfBandwidth()

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

Definition at line 317 of file SWGSSBDemodSettings.cpp.

References m_rf_bandwidth_isSet, and rf_bandwidth.

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

+ Here is the caller graph for this function:

◆ setRgbColor()

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

Definition at line 447 of file SWGSSBDemodSettings.cpp.

References m_rgb_color_isSet, and rgb_color.

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

+ Here is the caller graph for this function:

◆ setSpanLog2()

void SWGSDRangel::SWGSSBDemodSettings::setSpanLog2 ( qint32  span_log2)

Definition at line 347 of file SWGSSBDemodSettings.cpp.

References m_span_log2_isSet, and span_log2.

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

+ Here is the caller graph for this function:

◆ setTitle()

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

Definition at line 457 of file SWGSSBDemodSettings.cpp.

References m_title_isSet, and title.

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

457  {
458  this->title = title;
459  this->m_title_isSet = true;
460 }
+ Here is the caller graph for this function:

◆ setUseReverseApi()

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

Definition at line 477 of file SWGSSBDemodSettings.cpp.

References m_use_reverse_api_isSet, and use_reverse_api.

Referenced by SSBDemod::webapiFormatChannelSettings().

+ Here is the caller graph for this function:

◆ setVolume()

void SWGSDRangel::SWGSSBDemodSettings::setVolume ( float  volume)

Definition at line 337 of file SWGSSBDemodSettings.cpp.

References m_volume_isSet, and volume.

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

337  {
338  this->volume = volume;
339  this->m_volume_isSet = true;
340 }
+ Here is the caller graph for this function:

Member Data Documentation

◆ agc

qint32 SWGSDRangel::SWGSSBDemodSettings::agc
private

◆ agc_clamping

qint32 SWGSDRangel::SWGSSBDemodSettings::agc_clamping
private

◆ agc_power_threshold

qint32 SWGSDRangel::SWGSSBDemodSettings::agc_power_threshold
private

◆ agc_threshold_gate

qint32 SWGSDRangel::SWGSSBDemodSettings::agc_threshold_gate
private

◆ agc_time_log2

qint32 SWGSDRangel::SWGSSBDemodSettings::agc_time_log2
private

◆ audio_binaural

qint32 SWGSDRangel::SWGSSBDemodSettings::audio_binaural
private

◆ audio_device_name

QString* SWGSDRangel::SWGSSBDemodSettings::audio_device_name
private

◆ audio_flip_channels

qint32 SWGSDRangel::SWGSSBDemodSettings::audio_flip_channels
private

◆ audio_mute

qint32 SWGSDRangel::SWGSSBDemodSettings::audio_mute
private

◆ dsb

qint32 SWGSDRangel::SWGSSBDemodSettings::dsb
private

◆ input_frequency_offset

qint64 SWGSDRangel::SWGSSBDemodSettings::input_frequency_offset
private

◆ low_cutoff

float SWGSDRangel::SWGSSBDemodSettings::low_cutoff
private

◆ m_agc_clamping_isSet

bool SWGSDRangel::SWGSSBDemodSettings::m_agc_clamping_isSet
private

Definition at line 146 of file SWGSSBDemodSettings.h.

Referenced by asJsonObject(), init(), isSet(), setAgcClamping(), and SWGSSBDemodSettings().

◆ m_agc_isSet

bool SWGSDRangel::SWGSSBDemodSettings::m_agc_isSet
private

Definition at line 143 of file SWGSSBDemodSettings.h.

Referenced by asJsonObject(), init(), isSet(), setAgc(), and SWGSSBDemodSettings().

◆ m_agc_power_threshold_isSet

bool SWGSDRangel::SWGSSBDemodSettings::m_agc_power_threshold_isSet
private

◆ m_agc_threshold_gate_isSet

bool SWGSDRangel::SWGSSBDemodSettings::m_agc_threshold_gate_isSet
private

◆ m_agc_time_log2_isSet

bool SWGSDRangel::SWGSSBDemodSettings::m_agc_time_log2_isSet
private

Definition at line 149 of file SWGSSBDemodSettings.h.

Referenced by asJsonObject(), init(), isSet(), setAgcTimeLog2(), and SWGSSBDemodSettings().

◆ m_audio_binaural_isSet

bool SWGSDRangel::SWGSSBDemodSettings::m_audio_binaural_isSet
private

◆ m_audio_device_name_isSet

bool SWGSDRangel::SWGSSBDemodSettings::m_audio_device_name_isSet
private

Definition at line 164 of file SWGSSBDemodSettings.h.

Referenced by init(), setAudioDeviceName(), and SWGSSBDemodSettings().

◆ m_audio_flip_channels_isSet

bool SWGSDRangel::SWGSSBDemodSettings::m_audio_flip_channels_isSet
private

◆ m_audio_mute_isSet

bool SWGSDRangel::SWGSSBDemodSettings::m_audio_mute_isSet
private

Definition at line 140 of file SWGSSBDemodSettings.h.

Referenced by asJsonObject(), init(), isSet(), setAudioMute(), and SWGSSBDemodSettings().

◆ m_dsb_isSet

bool SWGSDRangel::SWGSSBDemodSettings::m_dsb_isSet
private

Definition at line 137 of file SWGSSBDemodSettings.h.

Referenced by asJsonObject(), init(), isSet(), setDsb(), and SWGSSBDemodSettings().

◆ m_input_frequency_offset_isSet

bool SWGSDRangel::SWGSSBDemodSettings::m_input_frequency_offset_isSet
private

◆ m_low_cutoff_isSet

bool SWGSDRangel::SWGSSBDemodSettings::m_low_cutoff_isSet
private

Definition at line 122 of file SWGSSBDemodSettings.h.

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

◆ m_reverse_api_address_isSet

bool SWGSDRangel::SWGSSBDemodSettings::m_reverse_api_address_isSet
private

Definition at line 170 of file SWGSSBDemodSettings.h.

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

◆ m_reverse_api_channel_index_isSet

bool SWGSDRangel::SWGSSBDemodSettings::m_reverse_api_channel_index_isSet
private

◆ m_reverse_api_device_index_isSet

bool SWGSDRangel::SWGSSBDemodSettings::m_reverse_api_device_index_isSet
private

◆ m_reverse_api_port_isSet

bool SWGSDRangel::SWGSSBDemodSettings::m_reverse_api_port_isSet
private

◆ m_rf_bandwidth_isSet

bool SWGSDRangel::SWGSSBDemodSettings::m_rf_bandwidth_isSet
private

Definition at line 119 of file SWGSSBDemodSettings.h.

Referenced by asJsonObject(), init(), isSet(), setRfBandwidth(), and SWGSSBDemodSettings().

◆ m_rgb_color_isSet

bool SWGSDRangel::SWGSSBDemodSettings::m_rgb_color_isSet
private

Definition at line 158 of file SWGSSBDemodSettings.h.

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

◆ m_span_log2_isSet

bool SWGSDRangel::SWGSSBDemodSettings::m_span_log2_isSet
private

Definition at line 128 of file SWGSSBDemodSettings.h.

Referenced by asJsonObject(), init(), isSet(), setSpanLog2(), and SWGSSBDemodSettings().

◆ m_title_isSet

bool SWGSDRangel::SWGSSBDemodSettings::m_title_isSet
private

Definition at line 161 of file SWGSSBDemodSettings.h.

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

◆ m_use_reverse_api_isSet

bool SWGSDRangel::SWGSSBDemodSettings::m_use_reverse_api_isSet
private

◆ m_volume_isSet

bool SWGSDRangel::SWGSSBDemodSettings::m_volume_isSet
private

Definition at line 125 of file SWGSSBDemodSettings.h.

Referenced by asJsonObject(), init(), isSet(), setVolume(), and SWGSSBDemodSettings().

◆ reverse_api_address

QString* SWGSDRangel::SWGSSBDemodSettings::reverse_api_address
private

◆ reverse_api_channel_index

qint32 SWGSDRangel::SWGSSBDemodSettings::reverse_api_channel_index
private

◆ reverse_api_device_index

qint32 SWGSDRangel::SWGSSBDemodSettings::reverse_api_device_index
private

◆ reverse_api_port

qint32 SWGSDRangel::SWGSSBDemodSettings::reverse_api_port
private

◆ rf_bandwidth

float SWGSDRangel::SWGSSBDemodSettings::rf_bandwidth
private

◆ rgb_color

qint32 SWGSDRangel::SWGSSBDemodSettings::rgb_color
private

◆ span_log2

qint32 SWGSDRangel::SWGSSBDemodSettings::span_log2
private

◆ title

QString* SWGSDRangel::SWGSSBDemodSettings::title
private

◆ use_reverse_api

qint32 SWGSDRangel::SWGSSBDemodSettings::use_reverse_api
private

◆ volume

float SWGSDRangel::SWGSSBDemodSettings::volume
private

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