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

#include <SWGSDRPlaySettings.h>

+ Inheritance diagram for SWGSDRangel::SWGSDRPlaySettings:
+ Collaboration diagram for SWGSDRangel::SWGSDRPlaySettings:

Public Member Functions

 SWGSDRPlaySettings ()
 
 SWGSDRPlaySettings (QString *json)
 
virtual ~SWGSDRPlaySettings ()
 
void init ()
 
void cleanup ()
 
virtual QString asJson () override
 
virtual QJsonObject * asJsonObject () override
 
virtual void fromJsonObject (QJsonObject &json) override
 
virtual SWGSDRPlaySettingsfromJson (QString &jsonString) override
 
qint32 getCenterFrequency ()
 
void setCenterFrequency (qint32 center_frequency)
 
qint32 getTunerGain ()
 
void setTunerGain (qint32 tuner_gain)
 
qint32 getLOppmTenths ()
 
void setLOppmTenths (qint32 l_oppm_tenths)
 
qint32 getFrequencyBandIndex ()
 
void setFrequencyBandIndex (qint32 frequency_band_index)
 
qint32 getIfFrequencyIndex ()
 
void setIfFrequencyIndex (qint32 if_frequency_index)
 
qint32 getBandwidthIndex ()
 
void setBandwidthIndex (qint32 bandwidth_index)
 
qint32 getDevSampleRateIndex ()
 
void setDevSampleRateIndex (qint32 dev_sample_rate_index)
 
qint32 getLog2Decim ()
 
void setLog2Decim (qint32 log2_decim)
 
qint32 getFcPos ()
 
void setFcPos (qint32 fc_pos)
 
qint32 getDcBlock ()
 
void setDcBlock (qint32 dc_block)
 
qint32 getIqCorrection ()
 
void setIqCorrection (qint32 iq_correction)
 
qint32 getTunerGainMode ()
 
void setTunerGainMode (qint32 tuner_gain_mode)
 
qint32 getLnaOn ()
 
void setLnaOn (qint32 lna_on)
 
qint32 getMixerAmpOn ()
 
void setMixerAmpOn (qint32 mixer_amp_on)
 
qint32 getBasebandGain ()
 
void setBasebandGain (qint32 baseband_gain)
 
QString * getFileRecordName ()
 
void setFileRecordName (QString *file_record_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)
 
virtual bool isSet () override
 
- Public Member Functions inherited from SWGSDRangel::SWGObject
virtual ~SWGObject ()
 

Private Attributes

qint32 center_frequency
 
bool m_center_frequency_isSet
 
qint32 tuner_gain
 
bool m_tuner_gain_isSet
 
qint32 l_oppm_tenths
 
bool m_l_oppm_tenths_isSet
 
qint32 frequency_band_index
 
bool m_frequency_band_index_isSet
 
qint32 if_frequency_index
 
bool m_if_frequency_index_isSet
 
qint32 bandwidth_index
 
bool m_bandwidth_index_isSet
 
qint32 dev_sample_rate_index
 
bool m_dev_sample_rate_index_isSet
 
qint32 log2_decim
 
bool m_log2_decim_isSet
 
qint32 fc_pos
 
bool m_fc_pos_isSet
 
qint32 dc_block
 
bool m_dc_block_isSet
 
qint32 iq_correction
 
bool m_iq_correction_isSet
 
qint32 tuner_gain_mode
 
bool m_tuner_gain_mode_isSet
 
qint32 lna_on
 
bool m_lna_on_isSet
 
qint32 mixer_amp_on
 
bool m_mixer_amp_on_isSet
 
qint32 baseband_gain
 
bool m_baseband_gain_isSet
 
QString * file_record_name
 
bool m_file_record_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
 

Detailed Description

Definition at line 32 of file SWGSDRPlaySettings.h.

Constructor & Destructor Documentation

◆ SWGSDRPlaySettings() [1/2]

SWGSDRangel::SWGSDRPlaySettings::SWGSDRPlaySettings ( )

Definition at line 30 of file SWGSDRPlaySettings.cpp.

References bandwidth_index, baseband_gain, center_frequency, dc_block, dev_sample_rate_index, fc_pos, file_record_name, frequency_band_index, if_frequency_index, iq_correction, l_oppm_tenths, lna_on, log2_decim, m_bandwidth_index_isSet, m_baseband_gain_isSet, m_center_frequency_isSet, m_dc_block_isSet, m_dev_sample_rate_index_isSet, m_fc_pos_isSet, m_file_record_name_isSet, m_frequency_band_index_isSet, m_if_frequency_index_isSet, m_iq_correction_isSet, m_l_oppm_tenths_isSet, m_lna_on_isSet, m_log2_decim_isSet, m_mixer_amp_on_isSet, m_reverse_api_address_isSet, m_reverse_api_device_index_isSet, m_reverse_api_port_isSet, m_tuner_gain_isSet, m_tuner_gain_mode_isSet, m_use_reverse_api_isSet, mixer_amp_on, reverse_api_address, reverse_api_device_index, reverse_api_port, tuner_gain, tuner_gain_mode, and use_reverse_api.

30  {
31  center_frequency = 0;
33  tuner_gain = 0;
34  m_tuner_gain_isSet = false;
35  l_oppm_tenths = 0;
36  m_l_oppm_tenths_isSet = false;
41  bandwidth_index = 0;
45  log2_decim = 0;
46  m_log2_decim_isSet = false;
47  fc_pos = 0;
48  m_fc_pos_isSet = false;
49  dc_block = 0;
50  m_dc_block_isSet = false;
51  iq_correction = 0;
52  m_iq_correction_isSet = false;
53  tuner_gain_mode = 0;
55  lna_on = 0;
56  m_lna_on_isSet = false;
57  mixer_amp_on = 0;
58  m_mixer_amp_on_isSet = false;
59  baseband_gain = 0;
60  m_baseband_gain_isSet = false;
61  file_record_name = nullptr;
63  use_reverse_api = 0;
65  reverse_api_address = nullptr;
67  reverse_api_port = 0;
71 }

◆ SWGSDRPlaySettings() [2/2]

SWGSDRangel::SWGSDRPlaySettings::SWGSDRPlaySettings ( QString *  json)

Definition at line 25 of file SWGSDRPlaySettings.cpp.

References fromJson(), and init().

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

◆ ~SWGSDRPlaySettings()

SWGSDRangel::SWGSDRPlaySettings::~SWGSDRPlaySettings ( )
virtual

Definition at line 73 of file SWGSDRPlaySettings.cpp.

References cleanup().

73  {
74  this->cleanup();
75 }
+ Here is the call graph for this function:

Member Function Documentation

◆ asJson()

QString SWGSDRangel::SWGSDRPlaySettings::asJson ( )
overridevirtual

Reimplemented from SWGSDRangel::SWGObject.

Definition at line 203 of file SWGSDRPlaySettings.cpp.

References asJsonObject().

204 {
205  QJsonObject* obj = this->asJsonObject();
206 
207  QJsonDocument doc(*obj);
208  QByteArray bytes = doc.toJson();
209  delete obj;
210  return QString(bytes);
211 }
virtual QJsonObject * asJsonObject() override
+ Here is the call graph for this function:

◆ asJsonObject()

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

Reimplemented from SWGSDRangel::SWGObject.

Definition at line 214 of file SWGSDRPlaySettings.cpp.

References bandwidth_index, baseband_gain, center_frequency, dc_block, dev_sample_rate_index, fc_pos, file_record_name, frequency_band_index, if_frequency_index, iq_correction, l_oppm_tenths, lna_on, log2_decim, m_bandwidth_index_isSet, m_baseband_gain_isSet, m_center_frequency_isSet, m_dc_block_isSet, m_dev_sample_rate_index_isSet, m_fc_pos_isSet, m_frequency_band_index_isSet, m_if_frequency_index_isSet, m_iq_correction_isSet, m_l_oppm_tenths_isSet, m_lna_on_isSet, m_log2_decim_isSet, m_mixer_amp_on_isSet, m_reverse_api_device_index_isSet, m_reverse_api_port_isSet, m_tuner_gain_isSet, m_tuner_gain_mode_isSet, m_use_reverse_api_isSet, mixer_amp_on, reverse_api_address, reverse_api_device_index, reverse_api_port, SWGSDRangel::toJsonValue(), tuner_gain, tuner_gain_mode, and use_reverse_api.

Referenced by asJson().

214  {
215  QJsonObject* obj = new QJsonObject();
217  obj->insert("centerFrequency", QJsonValue(center_frequency));
218  }
219  if(m_tuner_gain_isSet){
220  obj->insert("tunerGain", QJsonValue(tuner_gain));
221  }
223  obj->insert("LOppmTenths", QJsonValue(l_oppm_tenths));
224  }
226  obj->insert("frequencyBandIndex", QJsonValue(frequency_band_index));
227  }
229  obj->insert("ifFrequencyIndex", QJsonValue(if_frequency_index));
230  }
232  obj->insert("bandwidthIndex", QJsonValue(bandwidth_index));
233  }
235  obj->insert("devSampleRateIndex", QJsonValue(dev_sample_rate_index));
236  }
237  if(m_log2_decim_isSet){
238  obj->insert("log2Decim", QJsonValue(log2_decim));
239  }
240  if(m_fc_pos_isSet){
241  obj->insert("fcPos", QJsonValue(fc_pos));
242  }
243  if(m_dc_block_isSet){
244  obj->insert("dcBlock", QJsonValue(dc_block));
245  }
247  obj->insert("iqCorrection", QJsonValue(iq_correction));
248  }
250  obj->insert("tunerGainMode", QJsonValue(tuner_gain_mode));
251  }
252  if(m_lna_on_isSet){
253  obj->insert("lnaOn", QJsonValue(lna_on));
254  }
256  obj->insert("mixerAmpOn", QJsonValue(mixer_amp_on));
257  }
259  obj->insert("basebandGain", QJsonValue(baseband_gain));
260  }
261  if(file_record_name != nullptr && *file_record_name != QString("")){
262  toJsonValue(QString("fileRecordName"), file_record_name, obj, QString("QString"));
263  }
265  obj->insert("useReverseAPI", QJsonValue(use_reverse_api));
266  }
267  if(reverse_api_address != nullptr && *reverse_api_address != QString("")){
268  toJsonValue(QString("reverseAPIAddress"), reverse_api_address, obj, QString("QString"));
269  }
271  obj->insert("reverseAPIPort", QJsonValue(reverse_api_port));
272  }
274  obj->insert("reverseAPIDeviceIndex", QJsonValue(reverse_api_device_index));
275  }
276 
277  return obj;
278 }
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::SWGSDRPlaySettings::cleanup ( )

Definition at line 122 of file SWGSDRPlaySettings.cpp.

References file_record_name, and reverse_api_address.

Referenced by ~SWGSDRPlaySettings().

122  {
123 
124 
125 
126 
127 
128 
129 
130 
131 
132 
133 
134 
135 
136 
137 
138  if(file_record_name != nullptr) {
139  delete file_record_name;
140  }
141 
142  if(reverse_api_address != nullptr) {
143  delete reverse_api_address;
144  }
145 
146 
147 }
+ Here is the caller graph for this function:

◆ fromJson()

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

Reimplemented from SWGSDRangel::SWGObject.

Definition at line 150 of file SWGSDRPlaySettings.cpp.

References fromJsonObject().

Referenced by SWGSDRPlaySettings().

150  {
151  QByteArray array (json.toStdString().c_str());
152  QJsonDocument doc = QJsonDocument::fromJson(array);
153  QJsonObject jsonObject = doc.object();
154  this->fromJsonObject(jsonObject);
155  return this;
156 }
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::SWGSDRPlaySettings::fromJsonObject ( QJsonObject &  json)
overridevirtual

Reimplemented from SWGSDRangel::SWGObject.

Definition at line 159 of file SWGSDRPlaySettings.cpp.

References bandwidth_index, baseband_gain, center_frequency, dc_block, dev_sample_rate_index, fc_pos, file_record_name, frequency_band_index, if_frequency_index, iq_correction, l_oppm_tenths, lna_on, log2_decim, mixer_amp_on, reverse_api_address, reverse_api_device_index, reverse_api_port, SWGSDRangel::setValue(), tuner_gain, tuner_gain_mode, and use_reverse_api.

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

159  {
160  ::SWGSDRangel::setValue(&center_frequency, pJson["centerFrequency"], "qint32", "");
161 
162  ::SWGSDRangel::setValue(&tuner_gain, pJson["tunerGain"], "qint32", "");
163 
164  ::SWGSDRangel::setValue(&l_oppm_tenths, pJson["LOppmTenths"], "qint32", "");
165 
166  ::SWGSDRangel::setValue(&frequency_band_index, pJson["frequencyBandIndex"], "qint32", "");
167 
168  ::SWGSDRangel::setValue(&if_frequency_index, pJson["ifFrequencyIndex"], "qint32", "");
169 
170  ::SWGSDRangel::setValue(&bandwidth_index, pJson["bandwidthIndex"], "qint32", "");
171 
172  ::SWGSDRangel::setValue(&dev_sample_rate_index, pJson["devSampleRateIndex"], "qint32", "");
173 
174  ::SWGSDRangel::setValue(&log2_decim, pJson["log2Decim"], "qint32", "");
175 
176  ::SWGSDRangel::setValue(&fc_pos, pJson["fcPos"], "qint32", "");
177 
178  ::SWGSDRangel::setValue(&dc_block, pJson["dcBlock"], "qint32", "");
179 
180  ::SWGSDRangel::setValue(&iq_correction, pJson["iqCorrection"], "qint32", "");
181 
182  ::SWGSDRangel::setValue(&tuner_gain_mode, pJson["tunerGainMode"], "qint32", "");
183 
184  ::SWGSDRangel::setValue(&lna_on, pJson["lnaOn"], "qint32", "");
185 
186  ::SWGSDRangel::setValue(&mixer_amp_on, pJson["mixerAmpOn"], "qint32", "");
187 
188  ::SWGSDRangel::setValue(&baseband_gain, pJson["basebandGain"], "qint32", "");
189 
190  ::SWGSDRangel::setValue(&file_record_name, pJson["fileRecordName"], "QString", "QString");
191 
192  ::SWGSDRangel::setValue(&use_reverse_api, pJson["useReverseAPI"], "qint32", "");
193 
194  ::SWGSDRangel::setValue(&reverse_api_address, pJson["reverseAPIAddress"], "QString", "QString");
195 
196  ::SWGSDRangel::setValue(&reverse_api_port, pJson["reverseAPIPort"], "qint32", "");
197 
198  ::SWGSDRangel::setValue(&reverse_api_device_index, pJson["reverseAPIDeviceIndex"], "qint32", "");
199 
200 }
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:

◆ getBandwidthIndex()

qint32 SWGSDRangel::SWGSDRPlaySettings::getBandwidthIndex ( )

Definition at line 331 of file SWGSDRPlaySettings.cpp.

References bandwidth_index.

Referenced by SDRPlayInput::webapiSettingsPutPatch().

331  {
332  return bandwidth_index;
333 }
+ Here is the caller graph for this function:

◆ getBasebandGain()

qint32 SWGSDRangel::SWGSDRPlaySettings::getBasebandGain ( )

Definition at line 421 of file SWGSDRPlaySettings.cpp.

References baseband_gain.

Referenced by SDRPlayInput::webapiSettingsPutPatch().

421  {
422  return baseband_gain;
423 }
+ Here is the caller graph for this function:

◆ getCenterFrequency()

qint32 SWGSDRangel::SWGSDRPlaySettings::getCenterFrequency ( )

Definition at line 281 of file SWGSDRPlaySettings.cpp.

References center_frequency.

Referenced by SDRPlayInput::webapiSettingsPutPatch().

281  {
282  return center_frequency;
283 }
+ Here is the caller graph for this function:

◆ getDcBlock()

qint32 SWGSDRangel::SWGSDRPlaySettings::getDcBlock ( )

Definition at line 371 of file SWGSDRPlaySettings.cpp.

References dc_block.

Referenced by SDRPlayInput::webapiSettingsPutPatch().

371  {
372  return dc_block;
373 }
+ Here is the caller graph for this function:

◆ getDevSampleRateIndex()

qint32 SWGSDRangel::SWGSDRPlaySettings::getDevSampleRateIndex ( )

Definition at line 341 of file SWGSDRPlaySettings.cpp.

References dev_sample_rate_index.

Referenced by SDRPlayInput::webapiSettingsPutPatch().

341  {
342  return dev_sample_rate_index;
343 }
+ Here is the caller graph for this function:

◆ getFcPos()

qint32 SWGSDRangel::SWGSDRPlaySettings::getFcPos ( )

Definition at line 361 of file SWGSDRPlaySettings.cpp.

References fc_pos.

Referenced by SDRPlayInput::webapiSettingsPutPatch().

361  {
362  return fc_pos;
363 }
+ Here is the caller graph for this function:

◆ getFileRecordName()

QString * SWGSDRangel::SWGSDRPlaySettings::getFileRecordName ( )

Definition at line 431 of file SWGSDRPlaySettings.cpp.

References file_record_name.

Referenced by SDRPlayInput::webapiFormatDeviceSettings(), and SDRPlayInput::webapiSettingsPutPatch().

431  {
432  return file_record_name;
433 }
+ Here is the caller graph for this function:

◆ getFrequencyBandIndex()

qint32 SWGSDRangel::SWGSDRPlaySettings::getFrequencyBandIndex ( )

Definition at line 311 of file SWGSDRPlaySettings.cpp.

References frequency_band_index.

Referenced by SDRPlayInput::webapiSettingsPutPatch().

311  {
312  return frequency_band_index;
313 }
+ Here is the caller graph for this function:

◆ getIfFrequencyIndex()

qint32 SWGSDRangel::SWGSDRPlaySettings::getIfFrequencyIndex ( )

Definition at line 321 of file SWGSDRPlaySettings.cpp.

References if_frequency_index.

Referenced by SDRPlayInput::webapiSettingsPutPatch().

321  {
322  return if_frequency_index;
323 }
+ Here is the caller graph for this function:

◆ getIqCorrection()

qint32 SWGSDRangel::SWGSDRPlaySettings::getIqCorrection ( )

Definition at line 381 of file SWGSDRPlaySettings.cpp.

References iq_correction.

Referenced by SDRPlayInput::webapiSettingsPutPatch().

381  {
382  return iq_correction;
383 }
+ Here is the caller graph for this function:

◆ getLnaOn()

qint32 SWGSDRangel::SWGSDRPlaySettings::getLnaOn ( )

Definition at line 401 of file SWGSDRPlaySettings.cpp.

References lna_on.

Referenced by SDRPlayInput::webapiSettingsPutPatch().

401  {
402  return lna_on;
403 }
+ Here is the caller graph for this function:

◆ getLog2Decim()

qint32 SWGSDRangel::SWGSDRPlaySettings::getLog2Decim ( )

Definition at line 351 of file SWGSDRPlaySettings.cpp.

References log2_decim.

Referenced by SDRPlayInput::webapiSettingsPutPatch().

351  {
352  return log2_decim;
353 }
+ Here is the caller graph for this function:

◆ getLOppmTenths()

qint32 SWGSDRangel::SWGSDRPlaySettings::getLOppmTenths ( )

Definition at line 301 of file SWGSDRPlaySettings.cpp.

References l_oppm_tenths.

Referenced by SDRPlayInput::webapiSettingsPutPatch().

301  {
302  return l_oppm_tenths;
303 }
+ Here is the caller graph for this function:

◆ getMixerAmpOn()

qint32 SWGSDRangel::SWGSDRPlaySettings::getMixerAmpOn ( )

Definition at line 411 of file SWGSDRPlaySettings.cpp.

References mixer_amp_on.

Referenced by SDRPlayInput::webapiSettingsPutPatch().

411  {
412  return mixer_amp_on;
413 }
+ Here is the caller graph for this function:

◆ getReverseApiAddress()

QString * SWGSDRangel::SWGSDRPlaySettings::getReverseApiAddress ( )

Definition at line 451 of file SWGSDRPlaySettings.cpp.

References reverse_api_address.

Referenced by SDRPlayInput::webapiFormatDeviceSettings(), and SDRPlayInput::webapiSettingsPutPatch().

451  {
452  return reverse_api_address;
453 }
+ Here is the caller graph for this function:

◆ getReverseApiDeviceIndex()

qint32 SWGSDRangel::SWGSDRPlaySettings::getReverseApiDeviceIndex ( )

Definition at line 471 of file SWGSDRPlaySettings.cpp.

References reverse_api_device_index.

Referenced by SDRPlayInput::webapiSettingsPutPatch().

471  {
473 }
+ Here is the caller graph for this function:

◆ getReverseApiPort()

qint32 SWGSDRangel::SWGSDRPlaySettings::getReverseApiPort ( )

Definition at line 461 of file SWGSDRPlaySettings.cpp.

References reverse_api_port.

Referenced by SDRPlayInput::webapiSettingsPutPatch().

461  {
462  return reverse_api_port;
463 }
+ Here is the caller graph for this function:

◆ getTunerGain()

qint32 SWGSDRangel::SWGSDRPlaySettings::getTunerGain ( )

Definition at line 291 of file SWGSDRPlaySettings.cpp.

References tuner_gain.

Referenced by SDRPlayInput::webapiSettingsPutPatch().

291  {
292  return tuner_gain;
293 }
+ Here is the caller graph for this function:

◆ getTunerGainMode()

qint32 SWGSDRangel::SWGSDRPlaySettings::getTunerGainMode ( )

Definition at line 391 of file SWGSDRPlaySettings.cpp.

References tuner_gain_mode.

Referenced by SDRPlayInput::webapiSettingsPutPatch().

391  {
392  return tuner_gain_mode;
393 }
+ Here is the caller graph for this function:

◆ getUseReverseApi()

qint32 SWGSDRangel::SWGSDRPlaySettings::getUseReverseApi ( )

Definition at line 441 of file SWGSDRPlaySettings.cpp.

References use_reverse_api.

Referenced by SDRPlayInput::webapiSettingsPutPatch().

441  {
442  return use_reverse_api;
443 }
+ Here is the caller graph for this function:

◆ init()

void SWGSDRangel::SWGSDRPlaySettings::init ( )

Definition at line 78 of file SWGSDRPlaySettings.cpp.

References bandwidth_index, baseband_gain, center_frequency, dc_block, dev_sample_rate_index, fc_pos, file_record_name, frequency_band_index, if_frequency_index, iq_correction, l_oppm_tenths, lna_on, log2_decim, m_bandwidth_index_isSet, m_baseband_gain_isSet, m_center_frequency_isSet, m_dc_block_isSet, m_dev_sample_rate_index_isSet, m_fc_pos_isSet, m_file_record_name_isSet, m_frequency_band_index_isSet, m_if_frequency_index_isSet, m_iq_correction_isSet, m_l_oppm_tenths_isSet, m_lna_on_isSet, m_log2_decim_isSet, m_mixer_amp_on_isSet, m_reverse_api_address_isSet, m_reverse_api_device_index_isSet, m_reverse_api_port_isSet, m_tuner_gain_isSet, m_tuner_gain_mode_isSet, m_use_reverse_api_isSet, mixer_amp_on, reverse_api_address, reverse_api_device_index, reverse_api_port, tuner_gain, tuner_gain_mode, and use_reverse_api.

Referenced by SWGSDRPlaySettings(), and SDRPlayInput::webapiSettingsGet().

78  {
79  center_frequency = 0;
81  tuner_gain = 0;
82  m_tuner_gain_isSet = false;
83  l_oppm_tenths = 0;
84  m_l_oppm_tenths_isSet = false;
89  bandwidth_index = 0;
93  log2_decim = 0;
94  m_log2_decim_isSet = false;
95  fc_pos = 0;
96  m_fc_pos_isSet = false;
97  dc_block = 0;
98  m_dc_block_isSet = false;
99  iq_correction = 0;
100  m_iq_correction_isSet = false;
101  tuner_gain_mode = 0;
102  m_tuner_gain_mode_isSet = false;
103  lna_on = 0;
104  m_lna_on_isSet = false;
105  mixer_amp_on = 0;
106  m_mixer_amp_on_isSet = false;
107  baseband_gain = 0;
108  m_baseband_gain_isSet = false;
109  file_record_name = new QString("");
110  m_file_record_name_isSet = false;
111  use_reverse_api = 0;
112  m_use_reverse_api_isSet = false;
113  reverse_api_address = new QString("");
115  reverse_api_port = 0;
116  m_reverse_api_port_isSet = false;
119 }
+ Here is the caller graph for this function:

◆ isSet()

bool SWGSDRangel::SWGSDRPlaySettings::isSet ( )
overridevirtual

Reimplemented from SWGSDRangel::SWGObject.

Definition at line 482 of file SWGSDRPlaySettings.cpp.

References file_record_name, m_bandwidth_index_isSet, m_baseband_gain_isSet, m_center_frequency_isSet, m_dc_block_isSet, m_dev_sample_rate_index_isSet, m_fc_pos_isSet, m_frequency_band_index_isSet, m_if_frequency_index_isSet, m_iq_correction_isSet, m_l_oppm_tenths_isSet, m_lna_on_isSet, m_log2_decim_isSet, m_mixer_amp_on_isSet, m_reverse_api_device_index_isSet, m_reverse_api_port_isSet, m_tuner_gain_isSet, m_tuner_gain_mode_isSet, m_use_reverse_api_isSet, and reverse_api_address.

Referenced by SWGSDRangel::SWGDeviceSettings::asJsonObject(), SWGSDRangel::SWGDeviceSettings_2::asJsonObject(), SWGSDRangel::SWGDeviceSettings_2::isSet(), and SWGSDRangel::SWGDeviceSettings::isSet().

482  {
483  bool isObjectUpdated = false;
484  do{
485  if(m_center_frequency_isSet){ isObjectUpdated = true; break;}
486  if(m_tuner_gain_isSet){ isObjectUpdated = true; break;}
487  if(m_l_oppm_tenths_isSet){ isObjectUpdated = true; break;}
488  if(m_frequency_band_index_isSet){ isObjectUpdated = true; break;}
489  if(m_if_frequency_index_isSet){ isObjectUpdated = true; break;}
490  if(m_bandwidth_index_isSet){ isObjectUpdated = true; break;}
491  if(m_dev_sample_rate_index_isSet){ isObjectUpdated = true; break;}
492  if(m_log2_decim_isSet){ isObjectUpdated = true; break;}
493  if(m_fc_pos_isSet){ isObjectUpdated = true; break;}
494  if(m_dc_block_isSet){ isObjectUpdated = true; break;}
495  if(m_iq_correction_isSet){ isObjectUpdated = true; break;}
496  if(m_tuner_gain_mode_isSet){ isObjectUpdated = true; break;}
497  if(m_lna_on_isSet){ isObjectUpdated = true; break;}
498  if(m_mixer_amp_on_isSet){ isObjectUpdated = true; break;}
499  if(m_baseband_gain_isSet){ isObjectUpdated = true; break;}
500  if(file_record_name != nullptr && *file_record_name != QString("")){ isObjectUpdated = true; break;}
501  if(m_use_reverse_api_isSet){ isObjectUpdated = true; break;}
502  if(reverse_api_address != nullptr && *reverse_api_address != QString("")){ isObjectUpdated = true; break;}
503  if(m_reverse_api_port_isSet){ isObjectUpdated = true; break;}
504  if(m_reverse_api_device_index_isSet){ isObjectUpdated = true; break;}
505  }while(false);
506  return isObjectUpdated;
507 }
+ Here is the caller graph for this function:

◆ setBandwidthIndex()

void SWGSDRangel::SWGSDRPlaySettings::setBandwidthIndex ( qint32  bandwidth_index)

Definition at line 335 of file SWGSDRPlaySettings.cpp.

References bandwidth_index, and m_bandwidth_index_isSet.

Referenced by SDRPlayInput::webapiFormatDeviceSettings(), and SDRPlayInput::webapiReverseSendSettings().

+ Here is the caller graph for this function:

◆ setBasebandGain()

void SWGSDRangel::SWGSDRPlaySettings::setBasebandGain ( qint32  baseband_gain)

Definition at line 425 of file SWGSDRPlaySettings.cpp.

References baseband_gain, and m_baseband_gain_isSet.

Referenced by SDRPlayInput::webapiFormatDeviceSettings(), and SDRPlayInput::webapiReverseSendSettings().

+ Here is the caller graph for this function:

◆ setCenterFrequency()

void SWGSDRangel::SWGSDRPlaySettings::setCenterFrequency ( qint32  center_frequency)

Definition at line 285 of file SWGSDRPlaySettings.cpp.

References center_frequency, and m_center_frequency_isSet.

Referenced by SDRPlayInput::webapiFormatDeviceSettings(), and SDRPlayInput::webapiReverseSendSettings().

+ Here is the caller graph for this function:

◆ setDcBlock()

void SWGSDRangel::SWGSDRPlaySettings::setDcBlock ( qint32  dc_block)

Definition at line 375 of file SWGSDRPlaySettings.cpp.

References dc_block, and m_dc_block_isSet.

Referenced by SDRPlayInput::webapiFormatDeviceSettings(), and SDRPlayInput::webapiReverseSendSettings().

375  {
376  this->dc_block = dc_block;
377  this->m_dc_block_isSet = true;
378 }
+ Here is the caller graph for this function:

◆ setDevSampleRateIndex()

void SWGSDRangel::SWGSDRPlaySettings::setDevSampleRateIndex ( qint32  dev_sample_rate_index)

◆ setFcPos()

void SWGSDRangel::SWGSDRPlaySettings::setFcPos ( qint32  fc_pos)

Definition at line 365 of file SWGSDRPlaySettings.cpp.

References fc_pos, and m_fc_pos_isSet.

Referenced by SDRPlayInput::webapiFormatDeviceSettings(), and SDRPlayInput::webapiReverseSendSettings().

365  {
366  this->fc_pos = fc_pos;
367  this->m_fc_pos_isSet = true;
368 }
+ Here is the caller graph for this function:

◆ setFileRecordName()

void SWGSDRangel::SWGSDRPlaySettings::setFileRecordName ( QString *  file_record_name)

Definition at line 435 of file SWGSDRPlaySettings.cpp.

References file_record_name, and m_file_record_name_isSet.

Referenced by SDRPlayInput::webapiFormatDeviceSettings(), and SDRPlayInput::webapiReverseSendSettings().

+ Here is the caller graph for this function:

◆ setFrequencyBandIndex()

void SWGSDRangel::SWGSDRPlaySettings::setFrequencyBandIndex ( qint32  frequency_band_index)

◆ setIfFrequencyIndex()

void SWGSDRangel::SWGSDRPlaySettings::setIfFrequencyIndex ( qint32  if_frequency_index)

Definition at line 325 of file SWGSDRPlaySettings.cpp.

References if_frequency_index, and m_if_frequency_index_isSet.

Referenced by SDRPlayInput::webapiFormatDeviceSettings(), and SDRPlayInput::webapiReverseSendSettings().

+ Here is the caller graph for this function:

◆ setIqCorrection()

void SWGSDRangel::SWGSDRPlaySettings::setIqCorrection ( qint32  iq_correction)

Definition at line 385 of file SWGSDRPlaySettings.cpp.

References iq_correction, and m_iq_correction_isSet.

Referenced by SDRPlayInput::webapiFormatDeviceSettings(), and SDRPlayInput::webapiReverseSendSettings().

+ Here is the caller graph for this function:

◆ setLnaOn()

void SWGSDRangel::SWGSDRPlaySettings::setLnaOn ( qint32  lna_on)

Definition at line 405 of file SWGSDRPlaySettings.cpp.

References lna_on, and m_lna_on_isSet.

Referenced by SDRPlayInput::webapiFormatDeviceSettings(), and SDRPlayInput::webapiReverseSendSettings().

405  {
406  this->lna_on = lna_on;
407  this->m_lna_on_isSet = true;
408 }
+ Here is the caller graph for this function:

◆ setLog2Decim()

void SWGSDRangel::SWGSDRPlaySettings::setLog2Decim ( qint32  log2_decim)

Definition at line 355 of file SWGSDRPlaySettings.cpp.

References log2_decim, and m_log2_decim_isSet.

Referenced by SDRPlayInput::webapiFormatDeviceSettings(), and SDRPlayInput::webapiReverseSendSettings().

+ Here is the caller graph for this function:

◆ setLOppmTenths()

void SWGSDRangel::SWGSDRPlaySettings::setLOppmTenths ( qint32  l_oppm_tenths)

Definition at line 305 of file SWGSDRPlaySettings.cpp.

References l_oppm_tenths, and m_l_oppm_tenths_isSet.

Referenced by SDRPlayInput::webapiFormatDeviceSettings(), and SDRPlayInput::webapiReverseSendSettings().

+ Here is the caller graph for this function:

◆ setMixerAmpOn()

void SWGSDRangel::SWGSDRPlaySettings::setMixerAmpOn ( qint32  mixer_amp_on)

Definition at line 415 of file SWGSDRPlaySettings.cpp.

References m_mixer_amp_on_isSet, and mixer_amp_on.

Referenced by SDRPlayInput::webapiFormatDeviceSettings(), and SDRPlayInput::webapiReverseSendSettings().

+ Here is the caller graph for this function:

◆ setReverseApiAddress()

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

Definition at line 455 of file SWGSDRPlaySettings.cpp.

References m_reverse_api_address_isSet, and reverse_api_address.

Referenced by SDRPlayInput::webapiFormatDeviceSettings().

+ Here is the caller graph for this function:

◆ setReverseApiDeviceIndex()

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

Definition at line 475 of file SWGSDRPlaySettings.cpp.

References m_reverse_api_device_index_isSet, and reverse_api_device_index.

Referenced by SDRPlayInput::webapiFormatDeviceSettings().

+ Here is the caller graph for this function:

◆ setReverseApiPort()

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

Definition at line 465 of file SWGSDRPlaySettings.cpp.

References m_reverse_api_port_isSet, and reverse_api_port.

Referenced by SDRPlayInput::webapiFormatDeviceSettings().

+ Here is the caller graph for this function:

◆ setTunerGain()

void SWGSDRangel::SWGSDRPlaySettings::setTunerGain ( qint32  tuner_gain)

Definition at line 295 of file SWGSDRPlaySettings.cpp.

References m_tuner_gain_isSet, and tuner_gain.

Referenced by SDRPlayInput::webapiFormatDeviceSettings(), and SDRPlayInput::webapiReverseSendSettings().

+ Here is the caller graph for this function:

◆ setTunerGainMode()

void SWGSDRangel::SWGSDRPlaySettings::setTunerGainMode ( qint32  tuner_gain_mode)

Definition at line 395 of file SWGSDRPlaySettings.cpp.

References m_tuner_gain_mode_isSet, and tuner_gain_mode.

Referenced by SDRPlayInput::webapiFormatDeviceSettings(), and SDRPlayInput::webapiReverseSendSettings().

+ Here is the caller graph for this function:

◆ setUseReverseApi()

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

Definition at line 445 of file SWGSDRPlaySettings.cpp.

References m_use_reverse_api_isSet, and use_reverse_api.

Referenced by SDRPlayInput::webapiFormatDeviceSettings().

+ Here is the caller graph for this function:

Member Data Documentation

◆ bandwidth_index

qint32 SWGSDRangel::SWGSDRPlaySettings::bandwidth_index
private

◆ baseband_gain

qint32 SWGSDRangel::SWGSDRPlaySettings::baseband_gain
private

◆ center_frequency

qint32 SWGSDRangel::SWGSDRPlaySettings::center_frequency
private

◆ dc_block

qint32 SWGSDRangel::SWGSDRPlaySettings::dc_block
private

◆ dev_sample_rate_index

qint32 SWGSDRangel::SWGSDRPlaySettings::dev_sample_rate_index
private

◆ fc_pos

qint32 SWGSDRangel::SWGSDRPlaySettings::fc_pos
private

◆ file_record_name

QString* SWGSDRangel::SWGSDRPlaySettings::file_record_name
private

◆ frequency_band_index

qint32 SWGSDRangel::SWGSDRPlaySettings::frequency_band_index
private

◆ if_frequency_index

qint32 SWGSDRangel::SWGSDRPlaySettings::if_frequency_index
private

◆ iq_correction

qint32 SWGSDRangel::SWGSDRPlaySettings::iq_correction
private

◆ l_oppm_tenths

qint32 SWGSDRangel::SWGSDRPlaySettings::l_oppm_tenths
private

◆ lna_on

qint32 SWGSDRangel::SWGSDRPlaySettings::lna_on
private

◆ log2_decim

qint32 SWGSDRangel::SWGSDRPlaySettings::log2_decim
private

◆ m_bandwidth_index_isSet

bool SWGSDRangel::SWGSDRPlaySettings::m_bandwidth_index_isSet
private

◆ m_baseband_gain_isSet

bool SWGSDRangel::SWGSDRPlaySettings::m_baseband_gain_isSet
private

Definition at line 152 of file SWGSDRPlaySettings.h.

Referenced by asJsonObject(), init(), isSet(), setBasebandGain(), and SWGSDRPlaySettings().

◆ m_center_frequency_isSet

bool SWGSDRangel::SWGSDRPlaySettings::m_center_frequency_isSet
private

◆ m_dc_block_isSet

bool SWGSDRangel::SWGSDRPlaySettings::m_dc_block_isSet
private

Definition at line 137 of file SWGSDRPlaySettings.h.

Referenced by asJsonObject(), init(), isSet(), setDcBlock(), and SWGSDRPlaySettings().

◆ m_dev_sample_rate_index_isSet

bool SWGSDRangel::SWGSDRPlaySettings::m_dev_sample_rate_index_isSet
private

◆ m_fc_pos_isSet

bool SWGSDRangel::SWGSDRPlaySettings::m_fc_pos_isSet
private

Definition at line 134 of file SWGSDRPlaySettings.h.

Referenced by asJsonObject(), init(), isSet(), setFcPos(), and SWGSDRPlaySettings().

◆ m_file_record_name_isSet

bool SWGSDRangel::SWGSDRPlaySettings::m_file_record_name_isSet
private

Definition at line 155 of file SWGSDRPlaySettings.h.

Referenced by init(), setFileRecordName(), and SWGSDRPlaySettings().

◆ m_frequency_band_index_isSet

bool SWGSDRangel::SWGSDRPlaySettings::m_frequency_band_index_isSet
private

◆ m_if_frequency_index_isSet

bool SWGSDRangel::SWGSDRPlaySettings::m_if_frequency_index_isSet
private

◆ m_iq_correction_isSet

bool SWGSDRangel::SWGSDRPlaySettings::m_iq_correction_isSet
private

Definition at line 140 of file SWGSDRPlaySettings.h.

Referenced by asJsonObject(), init(), isSet(), setIqCorrection(), and SWGSDRPlaySettings().

◆ m_l_oppm_tenths_isSet

bool SWGSDRangel::SWGSDRPlaySettings::m_l_oppm_tenths_isSet
private

Definition at line 116 of file SWGSDRPlaySettings.h.

Referenced by asJsonObject(), init(), isSet(), setLOppmTenths(), and SWGSDRPlaySettings().

◆ m_lna_on_isSet

bool SWGSDRangel::SWGSDRPlaySettings::m_lna_on_isSet
private

Definition at line 146 of file SWGSDRPlaySettings.h.

Referenced by asJsonObject(), init(), isSet(), setLnaOn(), and SWGSDRPlaySettings().

◆ m_log2_decim_isSet

bool SWGSDRangel::SWGSDRPlaySettings::m_log2_decim_isSet
private

Definition at line 131 of file SWGSDRPlaySettings.h.

Referenced by asJsonObject(), init(), isSet(), setLog2Decim(), and SWGSDRPlaySettings().

◆ m_mixer_amp_on_isSet

bool SWGSDRangel::SWGSDRPlaySettings::m_mixer_amp_on_isSet
private

Definition at line 149 of file SWGSDRPlaySettings.h.

Referenced by asJsonObject(), init(), isSet(), setMixerAmpOn(), and SWGSDRPlaySettings().

◆ m_reverse_api_address_isSet

bool SWGSDRangel::SWGSDRPlaySettings::m_reverse_api_address_isSet
private

Definition at line 161 of file SWGSDRPlaySettings.h.

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

◆ m_reverse_api_device_index_isSet

bool SWGSDRangel::SWGSDRPlaySettings::m_reverse_api_device_index_isSet
private

◆ m_reverse_api_port_isSet

bool SWGSDRangel::SWGSDRPlaySettings::m_reverse_api_port_isSet
private

◆ m_tuner_gain_isSet

bool SWGSDRangel::SWGSDRPlaySettings::m_tuner_gain_isSet
private

Definition at line 113 of file SWGSDRPlaySettings.h.

Referenced by asJsonObject(), init(), isSet(), setTunerGain(), and SWGSDRPlaySettings().

◆ m_tuner_gain_mode_isSet

bool SWGSDRangel::SWGSDRPlaySettings::m_tuner_gain_mode_isSet
private

Definition at line 143 of file SWGSDRPlaySettings.h.

Referenced by asJsonObject(), init(), isSet(), setTunerGainMode(), and SWGSDRPlaySettings().

◆ m_use_reverse_api_isSet

bool SWGSDRangel::SWGSDRPlaySettings::m_use_reverse_api_isSet
private

Definition at line 158 of file SWGSDRPlaySettings.h.

Referenced by asJsonObject(), init(), isSet(), setUseReverseApi(), and SWGSDRPlaySettings().

◆ mixer_amp_on

qint32 SWGSDRangel::SWGSDRPlaySettings::mixer_amp_on
private

◆ reverse_api_address

QString* SWGSDRangel::SWGSDRPlaySettings::reverse_api_address
private

◆ reverse_api_device_index

qint32 SWGSDRangel::SWGSDRPlaySettings::reverse_api_device_index
private

◆ reverse_api_port

qint32 SWGSDRangel::SWGSDRPlaySettings::reverse_api_port
private

◆ tuner_gain

qint32 SWGSDRangel::SWGSDRPlaySettings::tuner_gain
private

◆ tuner_gain_mode

qint32 SWGSDRangel::SWGSDRPlaySettings::tuner_gain_mode
private

◆ use_reverse_api

qint32 SWGSDRangel::SWGSDRPlaySettings::use_reverse_api
private

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