18 #include <QJsonDocument> 267 QByteArray array (json.toStdString().c_str());
268 QJsonDocument doc = QJsonDocument::fromJson(array);
269 QJsonObject jsonObject = doc.object();
347 QJsonDocument doc(*obj);
348 QByteArray bytes = doc.toJson();
350 return QString(bytes);
355 QJsonObject* obj =
new QJsonObject();
360 obj->insert(
"direction", QJsonValue(
direction));
779 bool isObjectUpdated =
false;
814 return isObjectUpdated;
SWGBladeRF1OutputSettings * blade_rf1_output_settings
virtual bool isSet() override
virtual bool isSet() override
void setLocalInputSettings(SWGLocalInputSettings *local_input_settings)
SWGFCDProSettings * getFcdProSettings()
SWGLocalInputSettings * getLocalInputSettings()
void setBladeRf1OutputSettings(SWGBladeRF1OutputSettings *blade_rf1_output_settings)
bool m_lime_sdr_input_settings_isSet
void setBladeRf1InputSettings(SWGBladeRF1InputSettings *blade_rf1_input_settings)
virtual bool isSet() override
SWGBladeRF2OutputSettings * getBladeRf2OutputSettings()
void setPlutoSdrOutputSettings(SWGPlutoSdrOutputSettings *pluto_sdr_output_settings)
void toJsonValue(QString name, void *value, QJsonObject *output, QString type)
bool m_fcd_pro_settings_isSet
void setLimeSdrInputSettings(SWGLimeSdrInputSettings *lime_sdr_input_settings)
SWGBladeRF2InputSettings * blade_rf2_input_settings
SWGSDRPlaySettings * getSdrPlaySettings()
void setXtrxInputSettings(SWGXtrxInputSettings *xtrx_input_settings)
SWGTestSourceSettings * getTestSourceSettings()
virtual bool isSet() override
SWGBladeRF1OutputSettings * getBladeRf1OutputSettings()
virtual QString asJson() override
bool m_pluto_sdr_output_settings_isSet
SWGLimeSdrOutputSettings * getLimeSdrOutputSettings()
SWGXtrxInputSettings * xtrx_input_settings
SWGTestMISettings * test_mi_settings
virtual bool isSet() override
SWGRtlSdrSettings * getRtlSdrSettings()
SWGPerseusSettings * getPerseusSettings()
virtual bool isSet() override
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)
QString * getDeviceHwType()
bool m_perseus_settings_isSet
SWGAirspySettings * getAirspySettings()
SWGPlutoSdrOutputSettings * pluto_sdr_output_settings
SWGPlutoSdrOutputSettings * getPlutoSdrOutputSettings()
virtual bool isSet() override
SWGSDRPlaySettings * sdr_play_settings
SWGTestMISettings * getTestMiSettings()
bool m_fcd_pro_plus_settings_isSet
void setOriginatorIndex(qint32 originator_index)
bool m_soapy_sdr_input_settings_isSet
void setAirspySettings(SWGAirspySettings *airspy_settings)
virtual bool isSet() override
bool m_device_hw_type_isSet
SWGLocalInputSettings * local_input_settings
SWGPlutoSdrInputSettings * pluto_sdr_input_settings
SWGAirspyHFSettings * airspy_hf_settings
virtual bool isSet() override
bool m_originator_index_isSet
SWGBladeRF1InputSettings * getBladeRf1InputSettings()
SWGXtrxOutputSettings * xtrx_output_settings
SWGLocalOutputSettings * getLocalOutputSettings()
virtual ~SWGDeviceSettings()
bool m_kiwi_sdr_settings_isSet
SWGRemoteInputSettings * remote_input_settings
virtual bool isSet() override
SWGRemoteOutputSettings * remote_output_settings
virtual bool isSet() override
virtual bool isSet() override
bool m_remote_input_settings_isSet
SWGXtrxInputSettings * getXtrxInputSettings()
SWGFileInputSettings * file_input_settings
void setHackRfOutputSettings(SWGHackRFOutputSettings *hack_rf_output_settings)
bool m_lime_sdr_output_settings_isSet
qint32 getOriginatorIndex()
virtual bool isSet() override
bool m_airspy_settings_isSet
void setLocalOutputSettings(SWGLocalOutputSettings *local_output_settings)
SWGXtrxOutputSettings * getXtrxOutputSettings()
void setFileInputSettings(SWGFileInputSettings *file_input_settings)
bool m_hack_rf_output_settings_isSet
SWGPerseusSettings * perseus_settings
bool m_remote_output_settings_isSet
SWGAirspySettings * airspy_settings
bool m_blade_rf1_output_settings_isSet
SWGSoapySDRInputSettings * soapy_sdr_input_settings
bool m_xtrx_input_settings_isSet
void setTestSourceSettings(SWGTestSourceSettings *test_source_settings)
SWGFCDProPlusSettings * fcd_pro_plus_settings
bool m_local_output_settings_isSet
void setKiwiSdrSettings(SWGKiwiSDRSettings *kiwi_sdr_settings)
SWGLimeSdrOutputSettings * lime_sdr_output_settings
virtual void fromJsonObject(QJsonObject &json) override
bool m_file_input_settings_isSet
bool m_soapy_sdr_output_settings_isSet
SWGFCDProPlusSettings * getFcdProPlusSettings()
void setBladeRf2InputSettings(SWGBladeRF2InputSettings *blade_rf2_input_settings)
bool m_blade_rf2_output_settings_isSet
virtual bool isSet() override
virtual bool isSet() override
void setLimeSdrOutputSettings(SWGLimeSdrOutputSettings *lime_sdr_output_settings)
bool m_test_mi_settings_isSet
SWGSoapySDROutputSettings * soapy_sdr_output_settings
void setFcdProSettings(SWGFCDProSettings *fcd_pro_settings)
SWGBladeRF1InputSettings * blade_rf1_input_settings
void setRtlSdrSettings(SWGRtlSdrSettings *rtl_sdr_settings)
virtual bool isSet() override
SWGAirspyHFSettings * getAirspyHfSettings()
void setFcdProPlusSettings(SWGFCDProPlusSettings *fcd_pro_plus_settings)
bool m_blade_rf1_input_settings_isSet
bool m_xtrx_output_settings_isSet
void setValue(void *value, QJsonValue obj, QString type, QString complexType)
void setRemoteOutputSettings(SWGRemoteOutputSettings *remote_output_settings)
SWGRtlSdrSettings * rtl_sdr_settings
virtual bool isSet() override
bool m_airspy_hf_settings_isSet
void setTestMiSettings(SWGTestMISettings *test_mi_settings)
void setRemoteInputSettings(SWGRemoteInputSettings *remote_input_settings)
bool m_local_input_settings_isSet
bool m_rtl_sdr_settings_isSet
SWGFileInputSettings * getFileInputSettings()
virtual bool isSet() override
SWGBladeRF2OutputSettings * blade_rf2_output_settings
SWGLimeSdrInputSettings * lime_sdr_input_settings
SWGHackRFOutputSettings * getHackRfOutputSettings()
void setHackRfInputSettings(SWGHackRFInputSettings *hack_rf_input_settings)
virtual bool isSet() override
SWGRemoteOutputSettings * getRemoteOutputSettings()
SWGHackRFInputSettings * getHackRfInputSettings()
SWGPlutoSdrInputSettings * getPlutoSdrInputSettings()
SWGHackRFInputSettings * hack_rf_input_settings
bool m_pluto_sdr_input_settings_isSet
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
bool m_blade_rf2_input_settings_isSet
SWGKiwiSDRSettings * kiwi_sdr_settings
void setPlutoSdrInputSettings(SWGPlutoSdrInputSettings *pluto_sdr_input_settings)
void setSoapySdrInputSettings(SWGSoapySDRInputSettings *soapy_sdr_input_settings)
SWGLimeSdrInputSettings * getLimeSdrInputSettings()
void setDirection(qint32 direction)
bool m_hack_rf_input_settings_isSet
SWGFCDProSettings * fcd_pro_settings
bool m_test_source_settings_isSet
virtual bool isSet() override
void setXtrxOutputSettings(SWGXtrxOutputSettings *xtrx_output_settings)
SWGBladeRF2InputSettings * getBladeRf2InputSettings()
void setDeviceHwType(QString *device_hw_type)
bool m_sdr_play_settings_isSet
void setBladeRf2OutputSettings(SWGBladeRF2OutputSettings *blade_rf2_output_settings)
SWGKiwiSDRSettings * getKiwiSdrSettings()
SWGSoapySDRInputSettings * getSoapySdrInputSettings()