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