18 #include <QJsonDocument> 206 QByteArray array (json.toStdString().c_str());
207 QJsonDocument doc = QJsonDocument::fromJson(array);
208 QJsonObject jsonObject = doc.object();
268 QJsonDocument doc(*obj);
269 QByteArray bytes = doc.toJson();
271 return QString(bytes);
276 QJsonObject* obj =
new QJsonObject();
281 obj->insert(
"direction", QJsonValue(
direction));
583 bool isObjectUpdated =
false;
609 return isObjectUpdated;
bool m_blade_rf2_output_report_isSet
SWGAirspyReport * airspy_report
void setSdrPlayReport(SWGSDRPlayReport *sdr_play_report)
void setLimeSdrOutputReport(SWGLimeSdrOutputReport *lime_sdr_output_report)
void setDeviceHwType(QString *device_hw_type)
bool m_rtl_sdr_report_isSet
virtual bool isSet() override
SWGAirspyReport * getAirspyReport()
virtual bool isSet() override
SWGFileInputReport * getFileInputReport()
void setSoapySdrInputReport(SWGSoapySDRReport *soapy_sdr_input_report)
bool m_pluto_sdr_output_report_isSet
void setPerseusReport(SWGPerseusReport *perseus_report)
void toJsonValue(QString name, void *value, QJsonObject *output, QString type)
SWGLocalOutputReport * local_output_report
SWGPerseusReport * getPerseusReport()
SWGRemoteInputReport * remote_input_report
void setRemoteInputReport(SWGRemoteInputReport *remote_input_report)
SWGBladeRF2InputReport * blade_rf2_input_report
SWGLocalInputReport * getLocalInputReport()
SWGBladeRF2InputReport * getBladeRf2InputReport()
bool m_lime_sdr_input_report_isSet
virtual bool isSet() override
SWGXtrxInputReport * xtrx_input_report
bool m_sdr_play_report_isSet
virtual bool isSet() override
SWGPerseusReport * perseus_report
void setLocalOutputReport(SWGLocalOutputReport *local_output_report)
SWGLimeSdrInputReport * lime_sdr_input_report
SWGRemoteInputReport * getRemoteInputReport()
virtual bool isSet() override
bool m_lime_sdr_output_report_isSet
SWGXtrxOutputReport * xtrx_output_report
void setKiwiSdrReport(SWGKiwiSDRReport *kiwi_sdr_report)
void setDirection(qint32 direction)
bool m_local_output_report_isSet
virtual bool isSet() override
void setAirspyReport(SWGAirspyReport *airspy_report)
virtual bool isSet() override
void setSoapySdrOutputReport(SWGSoapySDRReport *soapy_sdr_output_report)
bool m_remote_input_report_isSet
virtual bool isSet() override
bool m_device_hw_type_isSet
SWGLimeSdrOutputReport * lime_sdr_output_report
SWGSDRPlayReport * getSdrPlayReport()
bool m_local_input_report_isSet
virtual void fromJsonObject(QJsonObject &json) override
SWGRemoteOutputReport * remote_output_report
SWGLimeSdrInputReport * getLimeSdrInputReport()
SWGXtrxOutputReport * getXtrxOutputReport()
SWGSDRPlayReport * sdr_play_report
SWGKiwiSDRReport * getKiwiSdrReport()
QString * getDeviceHwType()
virtual QJsonObject * asJsonObject() override
SWGPlutoSdrOutputReport * getPlutoSdrOutputReport()
void setPlutoSdrOutputReport(SWGPlutoSdrOutputReport *pluto_sdr_output_report)
bool m_blade_rf2_input_report_isSet
SWGPlutoSdrInputReport * getPlutoSdrInputReport()
virtual bool isSet() override
virtual SWGDeviceReport * fromJson(QString &jsonString) override
void setRtlSdrReport(SWGRtlSdrReport *rtl_sdr_report)
SWGBladeRF2OutputReport * blade_rf2_output_report
void setRemoteOutputReport(SWGRemoteOutputReport *remote_output_report)
bool m_soapy_sdr_output_report_isSet
SWGSoapySDRReport * getSoapySdrOutputReport()
virtual bool isSet() override
SWGPlutoSdrOutputReport * pluto_sdr_output_report
bool m_perseus_report_isSet
virtual bool isSet() override
bool m_kiwi_sdr_report_isSet
bool m_xtrx_output_report_isSet
void setFileInputReport(SWGFileInputReport *file_input_report)
SWGLocalInputReport * local_input_report
void setBladeRf2InputReport(SWGBladeRF2InputReport *blade_rf2_input_report)
virtual bool isSet() override
void setLocalInputReport(SWGLocalInputReport *local_input_report)
void setXtrxOutputReport(SWGXtrxOutputReport *xtrx_output_report)
SWGBladeRF2OutputReport * getBladeRf2OutputReport()
void setValue(void *value, QJsonValue obj, QString type, QString complexType)
bool m_airspy_report_isSet
SWGLimeSdrOutputReport * getLimeSdrOutputReport()
SWGKiwiSDRReport * kiwi_sdr_report
bool m_xtrx_input_report_isSet
void setAirspyHfReport(SWGAirspyHFReport *airspy_hf_report)
bool m_remote_output_report_isSet
void setBladeRf2OutputReport(SWGBladeRF2OutputReport *blade_rf2_output_report)
void setXtrxInputReport(SWGXtrxInputReport *xtrx_input_report)
virtual QString asJson() override
SWGSoapySDRReport * soapy_sdr_input_report
SWGXtrxInputReport * getXtrxInputReport()
virtual ~SWGDeviceReport()
SWGSoapySDRReport * soapy_sdr_output_report
virtual bool isSet() override
bool m_soapy_sdr_input_report_isSet
SWGRtlSdrReport * getRtlSdrReport()
virtual bool isSet() override
SWGSoapySDRReport * getSoapySdrInputReport()
SWGFileInputReport * file_input_report
bool m_pluto_sdr_input_report_isSet
SWGPlutoSdrInputReport * pluto_sdr_input_report
SWGRemoteOutputReport * getRemoteOutputReport()
SWGLocalOutputReport * getLocalOutputReport()
SWGRtlSdrReport * rtl_sdr_report
void setPlutoSdrInputReport(SWGPlutoSdrInputReport *pluto_sdr_input_report)
void setLimeSdrInputReport(SWGLimeSdrInputReport *lime_sdr_input_report)
SWGAirspyHFReport * getAirspyHfReport()
bool m_airspy_hf_report_isSet
SWGAirspyHFReport * airspy_hf_report
bool m_file_input_report_isSet