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.
SWGDeviceSettings.cpp
Go to the documentation of this file.
1 
14 #include "SWGDeviceSettings.h"
15 
16 #include "SWGHelpers.h"
17 
18 #include <QJsonDocument>
19 #include <QJsonArray>
20 #include <QObject>
21 #include <QDebug>
22 
23 namespace SWGSDRangel {
24 
26  init();
27  this->fromJson(*json);
28 }
29 
31  device_hw_type = nullptr;
32  m_device_hw_type_isSet = false;
33  direction = 0;
34  m_direction_isSet = false;
35  originator_index = 0;
37  airspy_settings = nullptr;
39  airspy_hf_settings = nullptr;
41  blade_rf1_input_settings = nullptr;
43  blade_rf2_input_settings = nullptr;
45  blade_rf1_output_settings = nullptr;
47  blade_rf2_output_settings = nullptr;
49  fcd_pro_settings = nullptr;
51  fcd_pro_plus_settings = nullptr;
53  file_input_settings = nullptr;
55  hack_rf_input_settings = nullptr;
57  hack_rf_output_settings = nullptr;
59  kiwi_sdr_settings = nullptr;
61  lime_sdr_input_settings = nullptr;
63  lime_sdr_output_settings = nullptr;
65  local_input_settings = nullptr;
67  local_output_settings = nullptr;
69  perseus_settings = nullptr;
71  pluto_sdr_input_settings = nullptr;
73  pluto_sdr_output_settings = nullptr;
75  rtl_sdr_settings = nullptr;
77  remote_output_settings = nullptr;
79  remote_input_settings = nullptr;
81  sdr_play_settings = nullptr;
83  soapy_sdr_input_settings = nullptr;
85  soapy_sdr_output_settings = nullptr;
87  test_source_settings = nullptr;
89  test_mi_settings = nullptr;
91  xtrx_input_settings = nullptr;
93  xtrx_output_settings = nullptr;
95 }
96 
98  this->cleanup();
99 }
100 
101 void
103  device_hw_type = new QString("");
104  m_device_hw_type_isSet = false;
105  direction = 0;
106  m_direction_isSet = false;
107  originator_index = 0;
108  m_originator_index_isSet = false;
110  m_airspy_settings_isSet = false;
122  m_fcd_pro_settings_isSet = false;
142  m_perseus_settings_isSet = false;
148  m_rtl_sdr_settings_isSet = false;
162  m_test_mi_settings_isSet = false;
167 }
168 
169 void
171  if(device_hw_type != nullptr) {
172  delete device_hw_type;
173  }
174 
175 
176  if(airspy_settings != nullptr) {
177  delete airspy_settings;
178  }
179  if(airspy_hf_settings != nullptr) {
180  delete airspy_hf_settings;
181  }
182  if(blade_rf1_input_settings != nullptr) {
184  }
185  if(blade_rf2_input_settings != nullptr) {
187  }
188  if(blade_rf1_output_settings != nullptr) {
190  }
191  if(blade_rf2_output_settings != nullptr) {
193  }
194  if(fcd_pro_settings != nullptr) {
195  delete fcd_pro_settings;
196  }
197  if(fcd_pro_plus_settings != nullptr) {
198  delete fcd_pro_plus_settings;
199  }
200  if(file_input_settings != nullptr) {
201  delete file_input_settings;
202  }
203  if(hack_rf_input_settings != nullptr) {
204  delete hack_rf_input_settings;
205  }
206  if(hack_rf_output_settings != nullptr) {
208  }
209  if(kiwi_sdr_settings != nullptr) {
210  delete kiwi_sdr_settings;
211  }
212  if(lime_sdr_input_settings != nullptr) {
214  }
215  if(lime_sdr_output_settings != nullptr) {
217  }
218  if(local_input_settings != nullptr) {
219  delete local_input_settings;
220  }
221  if(local_output_settings != nullptr) {
222  delete local_output_settings;
223  }
224  if(perseus_settings != nullptr) {
225  delete perseus_settings;
226  }
227  if(pluto_sdr_input_settings != nullptr) {
229  }
230  if(pluto_sdr_output_settings != nullptr) {
232  }
233  if(rtl_sdr_settings != nullptr) {
234  delete rtl_sdr_settings;
235  }
236  if(remote_output_settings != nullptr) {
237  delete remote_output_settings;
238  }
239  if(remote_input_settings != nullptr) {
240  delete remote_input_settings;
241  }
242  if(sdr_play_settings != nullptr) {
243  delete sdr_play_settings;
244  }
245  if(soapy_sdr_input_settings != nullptr) {
247  }
248  if(soapy_sdr_output_settings != nullptr) {
250  }
251  if(test_source_settings != nullptr) {
252  delete test_source_settings;
253  }
254  if(test_mi_settings != nullptr) {
255  delete test_mi_settings;
256  }
257  if(xtrx_input_settings != nullptr) {
258  delete xtrx_input_settings;
259  }
260  if(xtrx_output_settings != nullptr) {
261  delete xtrx_output_settings;
262  }
263 }
264 
267  QByteArray array (json.toStdString().c_str());
268  QJsonDocument doc = QJsonDocument::fromJson(array);
269  QJsonObject jsonObject = doc.object();
270  this->fromJsonObject(jsonObject);
271  return this;
272 }
273 
274 void
276  ::SWGSDRangel::setValue(&device_hw_type, pJson["deviceHwType"], "QString", "QString");
277 
278  ::SWGSDRangel::setValue(&direction, pJson["direction"], "qint32", "");
279 
280  ::SWGSDRangel::setValue(&originator_index, pJson["originatorIndex"], "qint32", "");
281 
282  ::SWGSDRangel::setValue(&airspy_settings, pJson["airspySettings"], "SWGAirspySettings", "SWGAirspySettings");
283 
284  ::SWGSDRangel::setValue(&airspy_hf_settings, pJson["airspyHFSettings"], "SWGAirspyHFSettings", "SWGAirspyHFSettings");
285 
286  ::SWGSDRangel::setValue(&blade_rf1_input_settings, pJson["bladeRF1InputSettings"], "SWGBladeRF1InputSettings", "SWGBladeRF1InputSettings");
287 
288  ::SWGSDRangel::setValue(&blade_rf2_input_settings, pJson["bladeRF2InputSettings"], "SWGBladeRF2InputSettings", "SWGBladeRF2InputSettings");
289 
290  ::SWGSDRangel::setValue(&blade_rf1_output_settings, pJson["bladeRF1OutputSettings"], "SWGBladeRF1OutputSettings", "SWGBladeRF1OutputSettings");
291 
292  ::SWGSDRangel::setValue(&blade_rf2_output_settings, pJson["bladeRF2OutputSettings"], "SWGBladeRF2OutputSettings", "SWGBladeRF2OutputSettings");
293 
294  ::SWGSDRangel::setValue(&fcd_pro_settings, pJson["fcdProSettings"], "SWGFCDProSettings", "SWGFCDProSettings");
295 
296  ::SWGSDRangel::setValue(&fcd_pro_plus_settings, pJson["fcdProPlusSettings"], "SWGFCDProPlusSettings", "SWGFCDProPlusSettings");
297 
298  ::SWGSDRangel::setValue(&file_input_settings, pJson["fileInputSettings"], "SWGFileInputSettings", "SWGFileInputSettings");
299 
300  ::SWGSDRangel::setValue(&hack_rf_input_settings, pJson["hackRFInputSettings"], "SWGHackRFInputSettings", "SWGHackRFInputSettings");
301 
302  ::SWGSDRangel::setValue(&hack_rf_output_settings, pJson["hackRFOutputSettings"], "SWGHackRFOutputSettings", "SWGHackRFOutputSettings");
303 
304  ::SWGSDRangel::setValue(&kiwi_sdr_settings, pJson["kiwiSDRSettings"], "SWGKiwiSDRSettings", "SWGKiwiSDRSettings");
305 
306  ::SWGSDRangel::setValue(&lime_sdr_input_settings, pJson["limeSdrInputSettings"], "SWGLimeSdrInputSettings", "SWGLimeSdrInputSettings");
307 
308  ::SWGSDRangel::setValue(&lime_sdr_output_settings, pJson["limeSdrOutputSettings"], "SWGLimeSdrOutputSettings", "SWGLimeSdrOutputSettings");
309 
310  ::SWGSDRangel::setValue(&local_input_settings, pJson["localInputSettings"], "SWGLocalInputSettings", "SWGLocalInputSettings");
311 
312  ::SWGSDRangel::setValue(&local_output_settings, pJson["localOutputSettings"], "SWGLocalOutputSettings", "SWGLocalOutputSettings");
313 
314  ::SWGSDRangel::setValue(&perseus_settings, pJson["perseusSettings"], "SWGPerseusSettings", "SWGPerseusSettings");
315 
316  ::SWGSDRangel::setValue(&pluto_sdr_input_settings, pJson["plutoSdrInputSettings"], "SWGPlutoSdrInputSettings", "SWGPlutoSdrInputSettings");
317 
318  ::SWGSDRangel::setValue(&pluto_sdr_output_settings, pJson["plutoSdrOutputSettings"], "SWGPlutoSdrOutputSettings", "SWGPlutoSdrOutputSettings");
319 
320  ::SWGSDRangel::setValue(&rtl_sdr_settings, pJson["rtlSdrSettings"], "SWGRtlSdrSettings", "SWGRtlSdrSettings");
321 
322  ::SWGSDRangel::setValue(&remote_output_settings, pJson["remoteOutputSettings"], "SWGRemoteOutputSettings", "SWGRemoteOutputSettings");
323 
324  ::SWGSDRangel::setValue(&remote_input_settings, pJson["remoteInputSettings"], "SWGRemoteInputSettings", "SWGRemoteInputSettings");
325 
326  ::SWGSDRangel::setValue(&sdr_play_settings, pJson["sdrPlaySettings"], "SWGSDRPlaySettings", "SWGSDRPlaySettings");
327 
328  ::SWGSDRangel::setValue(&soapy_sdr_input_settings, pJson["soapySDRInputSettings"], "SWGSoapySDRInputSettings", "SWGSoapySDRInputSettings");
329 
330  ::SWGSDRangel::setValue(&soapy_sdr_output_settings, pJson["soapySDROutputSettings"], "SWGSoapySDROutputSettings", "SWGSoapySDROutputSettings");
331 
332  ::SWGSDRangel::setValue(&test_source_settings, pJson["testSourceSettings"], "SWGTestSourceSettings", "SWGTestSourceSettings");
333 
334  ::SWGSDRangel::setValue(&test_mi_settings, pJson["testMISettings"], "SWGTestMISettings", "SWGTestMISettings");
335 
336  ::SWGSDRangel::setValue(&xtrx_input_settings, pJson["xtrxInputSettings"], "SWGXtrxInputSettings", "SWGXtrxInputSettings");
337 
338  ::SWGSDRangel::setValue(&xtrx_output_settings, pJson["xtrxOutputSettings"], "SWGXtrxOutputSettings", "SWGXtrxOutputSettings");
339 
340 }
341 
342 QString
344 {
345  QJsonObject* obj = this->asJsonObject();
346 
347  QJsonDocument doc(*obj);
348  QByteArray bytes = doc.toJson();
349  delete obj;
350  return QString(bytes);
351 }
352 
353 QJsonObject*
355  QJsonObject* obj = new QJsonObject();
356  if(device_hw_type != nullptr && *device_hw_type != QString("")){
357  toJsonValue(QString("deviceHwType"), device_hw_type, obj, QString("QString"));
358  }
359  if(m_direction_isSet){
360  obj->insert("direction", QJsonValue(direction));
361  }
363  obj->insert("originatorIndex", QJsonValue(originator_index));
364  }
365  if((airspy_settings != nullptr) && (airspy_settings->isSet())){
366  toJsonValue(QString("airspySettings"), airspy_settings, obj, QString("SWGAirspySettings"));
367  }
368  if((airspy_hf_settings != nullptr) && (airspy_hf_settings->isSet())){
369  toJsonValue(QString("airspyHFSettings"), airspy_hf_settings, obj, QString("SWGAirspyHFSettings"));
370  }
372  toJsonValue(QString("bladeRF1InputSettings"), blade_rf1_input_settings, obj, QString("SWGBladeRF1InputSettings"));
373  }
375  toJsonValue(QString("bladeRF2InputSettings"), blade_rf2_input_settings, obj, QString("SWGBladeRF2InputSettings"));
376  }
378  toJsonValue(QString("bladeRF1OutputSettings"), blade_rf1_output_settings, obj, QString("SWGBladeRF1OutputSettings"));
379  }
381  toJsonValue(QString("bladeRF2OutputSettings"), blade_rf2_output_settings, obj, QString("SWGBladeRF2OutputSettings"));
382  }
383  if((fcd_pro_settings != nullptr) && (fcd_pro_settings->isSet())){
384  toJsonValue(QString("fcdProSettings"), fcd_pro_settings, obj, QString("SWGFCDProSettings"));
385  }
386  if((fcd_pro_plus_settings != nullptr) && (fcd_pro_plus_settings->isSet())){
387  toJsonValue(QString("fcdProPlusSettings"), fcd_pro_plus_settings, obj, QString("SWGFCDProPlusSettings"));
388  }
389  if((file_input_settings != nullptr) && (file_input_settings->isSet())){
390  toJsonValue(QString("fileInputSettings"), file_input_settings, obj, QString("SWGFileInputSettings"));
391  }
392  if((hack_rf_input_settings != nullptr) && (hack_rf_input_settings->isSet())){
393  toJsonValue(QString("hackRFInputSettings"), hack_rf_input_settings, obj, QString("SWGHackRFInputSettings"));
394  }
395  if((hack_rf_output_settings != nullptr) && (hack_rf_output_settings->isSet())){
396  toJsonValue(QString("hackRFOutputSettings"), hack_rf_output_settings, obj, QString("SWGHackRFOutputSettings"));
397  }
398  if((kiwi_sdr_settings != nullptr) && (kiwi_sdr_settings->isSet())){
399  toJsonValue(QString("kiwiSDRSettings"), kiwi_sdr_settings, obj, QString("SWGKiwiSDRSettings"));
400  }
401  if((lime_sdr_input_settings != nullptr) && (lime_sdr_input_settings->isSet())){
402  toJsonValue(QString("limeSdrInputSettings"), lime_sdr_input_settings, obj, QString("SWGLimeSdrInputSettings"));
403  }
405  toJsonValue(QString("limeSdrOutputSettings"), lime_sdr_output_settings, obj, QString("SWGLimeSdrOutputSettings"));
406  }
407  if((local_input_settings != nullptr) && (local_input_settings->isSet())){
408  toJsonValue(QString("localInputSettings"), local_input_settings, obj, QString("SWGLocalInputSettings"));
409  }
410  if((local_output_settings != nullptr) && (local_output_settings->isSet())){
411  toJsonValue(QString("localOutputSettings"), local_output_settings, obj, QString("SWGLocalOutputSettings"));
412  }
413  if((perseus_settings != nullptr) && (perseus_settings->isSet())){
414  toJsonValue(QString("perseusSettings"), perseus_settings, obj, QString("SWGPerseusSettings"));
415  }
417  toJsonValue(QString("plutoSdrInputSettings"), pluto_sdr_input_settings, obj, QString("SWGPlutoSdrInputSettings"));
418  }
420  toJsonValue(QString("plutoSdrOutputSettings"), pluto_sdr_output_settings, obj, QString("SWGPlutoSdrOutputSettings"));
421  }
422  if((rtl_sdr_settings != nullptr) && (rtl_sdr_settings->isSet())){
423  toJsonValue(QString("rtlSdrSettings"), rtl_sdr_settings, obj, QString("SWGRtlSdrSettings"));
424  }
425  if((remote_output_settings != nullptr) && (remote_output_settings->isSet())){
426  toJsonValue(QString("remoteOutputSettings"), remote_output_settings, obj, QString("SWGRemoteOutputSettings"));
427  }
428  if((remote_input_settings != nullptr) && (remote_input_settings->isSet())){
429  toJsonValue(QString("remoteInputSettings"), remote_input_settings, obj, QString("SWGRemoteInputSettings"));
430  }
431  if((sdr_play_settings != nullptr) && (sdr_play_settings->isSet())){
432  toJsonValue(QString("sdrPlaySettings"), sdr_play_settings, obj, QString("SWGSDRPlaySettings"));
433  }
435  toJsonValue(QString("soapySDRInputSettings"), soapy_sdr_input_settings, obj, QString("SWGSoapySDRInputSettings"));
436  }
438  toJsonValue(QString("soapySDROutputSettings"), soapy_sdr_output_settings, obj, QString("SWGSoapySDROutputSettings"));
439  }
440  if((test_source_settings != nullptr) && (test_source_settings->isSet())){
441  toJsonValue(QString("testSourceSettings"), test_source_settings, obj, QString("SWGTestSourceSettings"));
442  }
443  if((test_mi_settings != nullptr) && (test_mi_settings->isSet())){
444  toJsonValue(QString("testMISettings"), test_mi_settings, obj, QString("SWGTestMISettings"));
445  }
446  if((xtrx_input_settings != nullptr) && (xtrx_input_settings->isSet())){
447  toJsonValue(QString("xtrxInputSettings"), xtrx_input_settings, obj, QString("SWGXtrxInputSettings"));
448  }
449  if((xtrx_output_settings != nullptr) && (xtrx_output_settings->isSet())){
450  toJsonValue(QString("xtrxOutputSettings"), xtrx_output_settings, obj, QString("SWGXtrxOutputSettings"));
451  }
452 
453  return obj;
454 }
455 
456 QString*
458  return device_hw_type;
459 }
460 void
462  this->device_hw_type = device_hw_type;
463  this->m_device_hw_type_isSet = true;
464 }
465 
466 qint32
468  return direction;
469 }
470 void
472  this->direction = direction;
473  this->m_direction_isSet = true;
474 }
475 
476 qint32
478  return originator_index;
479 }
480 void
482  this->originator_index = originator_index;
483  this->m_originator_index_isSet = true;
484 }
485 
488  return airspy_settings;
489 }
490 void
492  this->airspy_settings = airspy_settings;
493  this->m_airspy_settings_isSet = true;
494 }
495 
498  return airspy_hf_settings;
499 }
500 void
502  this->airspy_hf_settings = airspy_hf_settings;
503  this->m_airspy_hf_settings_isSet = true;
504 }
505 
509 }
510 void
512  this->blade_rf1_input_settings = blade_rf1_input_settings;
514 }
515 
519 }
520 void
522  this->blade_rf2_input_settings = blade_rf2_input_settings;
524 }
525 
529 }
530 void
532  this->blade_rf1_output_settings = blade_rf1_output_settings;
534 }
535 
539 }
540 void
542  this->blade_rf2_output_settings = blade_rf2_output_settings;
544 }
545 
548  return fcd_pro_settings;
549 }
550 void
552  this->fcd_pro_settings = fcd_pro_settings;
553  this->m_fcd_pro_settings_isSet = true;
554 }
555 
558  return fcd_pro_plus_settings;
559 }
560 void
562  this->fcd_pro_plus_settings = fcd_pro_plus_settings;
563  this->m_fcd_pro_plus_settings_isSet = true;
564 }
565 
568  return file_input_settings;
569 }
570 void
572  this->file_input_settings = file_input_settings;
573  this->m_file_input_settings_isSet = true;
574 }
575 
578  return hack_rf_input_settings;
579 }
580 void
582  this->hack_rf_input_settings = hack_rf_input_settings;
583  this->m_hack_rf_input_settings_isSet = true;
584 }
585 
589 }
590 void
592  this->hack_rf_output_settings = hack_rf_output_settings;
593  this->m_hack_rf_output_settings_isSet = true;
594 }
595 
598  return kiwi_sdr_settings;
599 }
600 void
602  this->kiwi_sdr_settings = kiwi_sdr_settings;
603  this->m_kiwi_sdr_settings_isSet = true;
604 }
605 
609 }
610 void
612  this->lime_sdr_input_settings = lime_sdr_input_settings;
613  this->m_lime_sdr_input_settings_isSet = true;
614 }
615 
619 }
620 void
622  this->lime_sdr_output_settings = lime_sdr_output_settings;
624 }
625 
628  return local_input_settings;
629 }
630 void
632  this->local_input_settings = local_input_settings;
633  this->m_local_input_settings_isSet = true;
634 }
635 
638  return local_output_settings;
639 }
640 void
642  this->local_output_settings = local_output_settings;
643  this->m_local_output_settings_isSet = true;
644 }
645 
648  return perseus_settings;
649 }
650 void
652  this->perseus_settings = perseus_settings;
653  this->m_perseus_settings_isSet = true;
654 }
655 
659 }
660 void
662  this->pluto_sdr_input_settings = pluto_sdr_input_settings;
664 }
665 
669 }
670 void
672  this->pluto_sdr_output_settings = pluto_sdr_output_settings;
674 }
675 
678  return rtl_sdr_settings;
679 }
680 void
682  this->rtl_sdr_settings = rtl_sdr_settings;
683  this->m_rtl_sdr_settings_isSet = true;
684 }
685 
688  return remote_output_settings;
689 }
690 void
692  this->remote_output_settings = remote_output_settings;
693  this->m_remote_output_settings_isSet = true;
694 }
695 
698  return remote_input_settings;
699 }
700 void
702  this->remote_input_settings = remote_input_settings;
703  this->m_remote_input_settings_isSet = true;
704 }
705 
708  return sdr_play_settings;
709 }
710 void
712  this->sdr_play_settings = sdr_play_settings;
713  this->m_sdr_play_settings_isSet = true;
714 }
715 
719 }
720 void
722  this->soapy_sdr_input_settings = soapy_sdr_input_settings;
724 }
725 
729 }
730 void
732  this->soapy_sdr_output_settings = soapy_sdr_output_settings;
734 }
735 
738  return test_source_settings;
739 }
740 void
742  this->test_source_settings = test_source_settings;
743  this->m_test_source_settings_isSet = true;
744 }
745 
748  return test_mi_settings;
749 }
750 void
752  this->test_mi_settings = test_mi_settings;
753  this->m_test_mi_settings_isSet = true;
754 }
755 
758  return xtrx_input_settings;
759 }
760 void
762  this->xtrx_input_settings = xtrx_input_settings;
763  this->m_xtrx_input_settings_isSet = true;
764 }
765 
768  return xtrx_output_settings;
769 }
770 void
772  this->xtrx_output_settings = xtrx_output_settings;
773  this->m_xtrx_output_settings_isSet = true;
774 }
775 
776 
777 bool
779  bool isObjectUpdated = false;
780  do{
781  if(device_hw_type != nullptr && *device_hw_type != QString("")){ isObjectUpdated = true; break;}
782  if(m_direction_isSet){ isObjectUpdated = true; break;}
783  if(m_originator_index_isSet){ isObjectUpdated = true; break;}
784  if(airspy_settings != nullptr && airspy_settings->isSet()){ isObjectUpdated = true; break;}
785  if(airspy_hf_settings != nullptr && airspy_hf_settings->isSet()){ isObjectUpdated = true; break;}
786  if(blade_rf1_input_settings != nullptr && blade_rf1_input_settings->isSet()){ isObjectUpdated = true; break;}
787  if(blade_rf2_input_settings != nullptr && blade_rf2_input_settings->isSet()){ isObjectUpdated = true; break;}
788  if(blade_rf1_output_settings != nullptr && blade_rf1_output_settings->isSet()){ isObjectUpdated = true; break;}
789  if(blade_rf2_output_settings != nullptr && blade_rf2_output_settings->isSet()){ isObjectUpdated = true; break;}
790  if(fcd_pro_settings != nullptr && fcd_pro_settings->isSet()){ isObjectUpdated = true; break;}
791  if(fcd_pro_plus_settings != nullptr && fcd_pro_plus_settings->isSet()){ isObjectUpdated = true; break;}
792  if(file_input_settings != nullptr && file_input_settings->isSet()){ isObjectUpdated = true; break;}
793  if(hack_rf_input_settings != nullptr && hack_rf_input_settings->isSet()){ isObjectUpdated = true; break;}
794  if(hack_rf_output_settings != nullptr && hack_rf_output_settings->isSet()){ isObjectUpdated = true; break;}
795  if(kiwi_sdr_settings != nullptr && kiwi_sdr_settings->isSet()){ isObjectUpdated = true; break;}
796  if(lime_sdr_input_settings != nullptr && lime_sdr_input_settings->isSet()){ isObjectUpdated = true; break;}
797  if(lime_sdr_output_settings != nullptr && lime_sdr_output_settings->isSet()){ isObjectUpdated = true; break;}
798  if(local_input_settings != nullptr && local_input_settings->isSet()){ isObjectUpdated = true; break;}
799  if(local_output_settings != nullptr && local_output_settings->isSet()){ isObjectUpdated = true; break;}
800  if(perseus_settings != nullptr && perseus_settings->isSet()){ isObjectUpdated = true; break;}
801  if(pluto_sdr_input_settings != nullptr && pluto_sdr_input_settings->isSet()){ isObjectUpdated = true; break;}
802  if(pluto_sdr_output_settings != nullptr && pluto_sdr_output_settings->isSet()){ isObjectUpdated = true; break;}
803  if(rtl_sdr_settings != nullptr && rtl_sdr_settings->isSet()){ isObjectUpdated = true; break;}
804  if(remote_output_settings != nullptr && remote_output_settings->isSet()){ isObjectUpdated = true; break;}
805  if(remote_input_settings != nullptr && remote_input_settings->isSet()){ isObjectUpdated = true; break;}
806  if(sdr_play_settings != nullptr && sdr_play_settings->isSet()){ isObjectUpdated = true; break;}
807  if(soapy_sdr_input_settings != nullptr && soapy_sdr_input_settings->isSet()){ isObjectUpdated = true; break;}
808  if(soapy_sdr_output_settings != nullptr && soapy_sdr_output_settings->isSet()){ isObjectUpdated = true; break;}
809  if(test_source_settings != nullptr && test_source_settings->isSet()){ isObjectUpdated = true; break;}
810  if(test_mi_settings != nullptr && test_mi_settings->isSet()){ isObjectUpdated = true; break;}
811  if(xtrx_input_settings != nullptr && xtrx_input_settings->isSet()){ isObjectUpdated = true; break;}
812  if(xtrx_output_settings != nullptr && xtrx_output_settings->isSet()){ isObjectUpdated = true; break;}
813  }while(false);
814  return isObjectUpdated;
815 }
816 }
817 
SWGBladeRF1OutputSettings * blade_rf1_output_settings
void setLocalInputSettings(SWGLocalInputSettings *local_input_settings)
SWGFCDProSettings * getFcdProSettings()
SWGLocalInputSettings * getLocalInputSettings()
void setBladeRf1OutputSettings(SWGBladeRF1OutputSettings *blade_rf1_output_settings)
void setBladeRf1InputSettings(SWGBladeRF1InputSettings *blade_rf1_input_settings)
SWGBladeRF2OutputSettings * getBladeRf2OutputSettings()
void setPlutoSdrOutputSettings(SWGPlutoSdrOutputSettings *pluto_sdr_output_settings)
void toJsonValue(QString name, void *value, QJsonObject *output, QString type)
Definition: SWGHelpers.cpp:383
void setLimeSdrInputSettings(SWGLimeSdrInputSettings *lime_sdr_input_settings)
SWGBladeRF2InputSettings * blade_rf2_input_settings
SWGSDRPlaySettings * getSdrPlaySettings()
void setXtrxInputSettings(SWGXtrxInputSettings *xtrx_input_settings)
SWGTestSourceSettings * getTestSourceSettings()
SWGBladeRF1OutputSettings * getBladeRf1OutputSettings()
virtual QString asJson() override
SWGLimeSdrOutputSettings * getLimeSdrOutputSettings()
SWGXtrxInputSettings * xtrx_input_settings
SWGTestMISettings * test_mi_settings
SWGRtlSdrSettings * getRtlSdrSettings()
SWGPerseusSettings * getPerseusSettings()
void setSoapySdrOutputSettings(SWGSoapySDROutputSettings *soapy_sdr_output_settings)
void setSdrPlaySettings(SWGSDRPlaySettings *sdr_play_settings)
SWGHackRFOutputSettings * hack_rf_output_settings
SWGSoapySDROutputSettings * getSoapySdrOutputSettings()
void setPerseusSettings(SWGPerseusSettings *perseus_settings)
SWGAirspySettings * getAirspySettings()
SWGPlutoSdrOutputSettings * pluto_sdr_output_settings
SWGPlutoSdrOutputSettings * getPlutoSdrOutputSettings()
SWGSDRPlaySettings * sdr_play_settings
SWGTestMISettings * getTestMiSettings()
void setOriginatorIndex(qint32 originator_index)
void setAirspySettings(SWGAirspySettings *airspy_settings)
SWGLocalInputSettings * local_input_settings
SWGPlutoSdrInputSettings * pluto_sdr_input_settings
SWGAirspyHFSettings * airspy_hf_settings
SWGBladeRF1InputSettings * getBladeRf1InputSettings()
SWGXtrxOutputSettings * xtrx_output_settings
SWGLocalOutputSettings * getLocalOutputSettings()
SWGRemoteInputSettings * remote_input_settings
SWGRemoteOutputSettings * remote_output_settings
SWGXtrxInputSettings * getXtrxInputSettings()
SWGFileInputSettings * file_input_settings
void setHackRfOutputSettings(SWGHackRFOutputSettings *hack_rf_output_settings)
void setLocalOutputSettings(SWGLocalOutputSettings *local_output_settings)
SWGXtrxOutputSettings * getXtrxOutputSettings()
void setFileInputSettings(SWGFileInputSettings *file_input_settings)
SWGPerseusSettings * perseus_settings
SWGAirspySettings * airspy_settings
SWGSoapySDRInputSettings * soapy_sdr_input_settings
void setTestSourceSettings(SWGTestSourceSettings *test_source_settings)
SWGFCDProPlusSettings * fcd_pro_plus_settings
void setKiwiSdrSettings(SWGKiwiSDRSettings *kiwi_sdr_settings)
SWGLimeSdrOutputSettings * lime_sdr_output_settings
virtual void fromJsonObject(QJsonObject &json) override
SWGFCDProPlusSettings * getFcdProPlusSettings()
void setBladeRf2InputSettings(SWGBladeRF2InputSettings *blade_rf2_input_settings)
void setLimeSdrOutputSettings(SWGLimeSdrOutputSettings *lime_sdr_output_settings)
SWGSoapySDROutputSettings * soapy_sdr_output_settings
void setFcdProSettings(SWGFCDProSettings *fcd_pro_settings)
SWGBladeRF1InputSettings * blade_rf1_input_settings
void setRtlSdrSettings(SWGRtlSdrSettings *rtl_sdr_settings)
SWGAirspyHFSettings * getAirspyHfSettings()
void setFcdProPlusSettings(SWGFCDProPlusSettings *fcd_pro_plus_settings)
void setValue(void *value, QJsonValue obj, QString type, QString complexType)
Definition: SWGHelpers.cpp:25
void setRemoteOutputSettings(SWGRemoteOutputSettings *remote_output_settings)
SWGRtlSdrSettings * rtl_sdr_settings
void setTestMiSettings(SWGTestMISettings *test_mi_settings)
void setRemoteInputSettings(SWGRemoteInputSettings *remote_input_settings)
SWGFileInputSettings * getFileInputSettings()
SWGBladeRF2OutputSettings * blade_rf2_output_settings
SWGLimeSdrInputSettings * lime_sdr_input_settings
SWGHackRFOutputSettings * getHackRfOutputSettings()
void setHackRfInputSettings(SWGHackRFInputSettings *hack_rf_input_settings)
SWGRemoteOutputSettings * getRemoteOutputSettings()
SWGHackRFInputSettings * getHackRfInputSettings()
SWGPlutoSdrInputSettings * getPlutoSdrInputSettings()
SWGHackRFInputSettings * hack_rf_input_settings
virtual SWGDeviceSettings * fromJson(QString &jsonString) override
void setAirspyHfSettings(SWGAirspyHFSettings *airspy_hf_settings)
SWGTestSourceSettings * test_source_settings
SWGRemoteInputSettings * getRemoteInputSettings()
SWGLocalOutputSettings * local_output_settings
virtual QJsonObject * asJsonObject() override
SWGKiwiSDRSettings * kiwi_sdr_settings
void setPlutoSdrInputSettings(SWGPlutoSdrInputSettings *pluto_sdr_input_settings)
void setSoapySdrInputSettings(SWGSoapySDRInputSettings *soapy_sdr_input_settings)
SWGLimeSdrInputSettings * getLimeSdrInputSettings()
void setDirection(qint32 direction)
SWGFCDProSettings * fcd_pro_settings
void setXtrxOutputSettings(SWGXtrxOutputSettings *xtrx_output_settings)
SWGBladeRF2InputSettings * getBladeRf2InputSettings()
void setDeviceHwType(QString *device_hw_type)
void setBladeRf2OutputSettings(SWGBladeRF2OutputSettings *blade_rf2_output_settings)
SWGKiwiSDRSettings * getKiwiSdrSettings()
SWGSoapySDRInputSettings * getSoapySdrInputSettings()