18 #include <QJsonDocument> 185 QByteArray array (json.toStdString().c_str());
186 QJsonDocument doc = QJsonDocument::fromJson(array);
187 QJsonObject jsonObject = doc.object();
241 QJsonDocument doc(*obj);
242 QByteArray bytes = doc.toJson();
244 return QString(bytes);
249 QJsonObject* obj =
new QJsonObject();
254 obj->insert(
"direction", QJsonValue(
direction));
517 bool isObjectUpdated =
false;
540 return isObjectUpdated;
void setSsbModReport(SWGSSBModReport *ssb_mod_report)
SWGAMModReport * getAmModReport()
SWGSSBDemodReport * getSsbDemodReport()
bool m_atv_mod_report_isSet
SWGSSBModReport * getSsbModReport()
void setSsbDemodReport(SWGSSBDemodReport *ssb_demod_report)
SWGBFMDemodReport * getBfmDemodReport()
void toJsonValue(QString name, void *value, QJsonObject *output, QString type)
bool m_nfm_mod_report_isSet
void setFreqTrackerReport(SWGFreqTrackerReport *freq_tracker_report)
virtual bool isSet() override
SWGBFMDemodReport * bfm_demod_report
void setFreeDvModReport(SWGFreeDVModReport *free_dv_mod_report)
SWGFileSourceReport * getFileSourceReport()
virtual bool isSet() override
void setRemoteSourceReport(SWGRemoteSourceReport *remote_source_report)
bool m_udp_source_report_isSet
SWGUDPSourceReport * udp_source_report
virtual bool isSet() override
SWGFreqTrackerReport * getFreqTrackerReport()
bool m_free_dv_mod_report_isSet
SWGWFMDemodReport * wfm_demod_report
SWGATVModReport * atv_mod_report
bool m_am_mod_report_isSet
void setDsdDemodReport(SWGDSDDemodReport *dsd_demod_report)
SWGAMDemodReport * getAmDemodReport()
bool m_free_dv_demod_report_isSet
SWGAMModReport * am_mod_report
virtual bool isSet() override
SWGNFMModReport * getNfmModReport()
SWGNFMDemodReport * getNfmDemodReport()
SWGDSDDemodReport * getDsdDemodReport()
SWGUDPSinkReport * udp_sink_report
virtual bool isSet() override
SWGSSBDemodReport * ssb_demod_report
bool m_udp_sink_report_isSet
virtual bool isSet() override
SWGFreqTrackerReport * freq_tracker_report
void setUdpSinkReport(SWGUDPSinkReport *udp_sink_report)
bool m_freq_tracker_report_isSet
virtual bool isSet() override
bool m_nfm_demod_report_isSet
virtual bool isSet() override
virtual SWGChannelReport * fromJson(QString &jsonString) override
bool m_am_demod_report_isSet
SWGFileSourceReport * file_source_report
virtual bool isSet() override
bool m_channel_type_isSet
void setChannelType(QString *channel_type)
void setAtvModReport(SWGATVModReport *atv_mod_report)
SWGWFMDemodReport * getWfmDemodReport()
virtual bool isSet() override
bool m_wfm_demod_report_isSet
virtual bool isSet() override
virtual QJsonObject * asJsonObject() override
void setWfmModReport(SWGWFMModReport *wfm_mod_report)
void setBfmDemodReport(SWGBFMDemodReport *bfm_demod_report)
void setWfmDemodReport(SWGWFMDemodReport *wfm_demod_report)
bool m_file_source_report_isSet
bool m_ssb_mod_report_isSet
SWGRemoteSourceReport * getRemoteSourceReport()
SWGFreeDVModReport * free_dv_mod_report
QString * getChannelType()
SWGSSBModReport * ssb_mod_report
SWGAMDemodReport * am_demod_report
virtual bool isSet() override
SWGWFMModReport * getWfmModReport()
void setFileSourceReport(SWGFileSourceReport *file_source_report)
SWGUDPSinkReport * getUdpSinkReport()
bool m_bfm_demod_report_isSet
virtual void fromJsonObject(QJsonObject &json) override
void setFreeDvDemodReport(SWGFreeDVDemodReport *free_dv_demod_report)
void setValue(void *value, QJsonValue obj, QString type, QString complexType)
SWGATVModReport * getAtvModReport()
SWGRemoteSourceReport * remote_source_report
SWGFreeDVDemodReport * free_dv_demod_report
SWGNFMDemodReport * nfm_demod_report
virtual QString asJson() override
SWGFreeDVModReport * getFreeDvModReport()
virtual bool isSet() override
virtual bool isSet() override
void setAmDemodReport(SWGAMDemodReport *am_demod_report)
virtual bool isSet() override
SWGUDPSourceReport * getUdpSourceReport()
bool m_dsd_demod_report_isSet
void setNfmDemodReport(SWGNFMDemodReport *nfm_demod_report)
virtual bool isSet() override
virtual ~SWGChannelReport()
SWGWFMModReport * wfm_mod_report
void setNfmModReport(SWGNFMModReport *nfm_mod_report)
virtual bool isSet() override
void setDirection(qint32 direction)
bool m_remote_source_report_isSet
void setAmModReport(SWGAMModReport *am_mod_report)
bool m_ssb_demod_report_isSet
bool m_wfm_mod_report_isSet
SWGDSDDemodReport * dsd_demod_report
void setUdpSourceReport(SWGUDPSourceReport *udp_source_report)
SWGFreeDVDemodReport * getFreeDvDemodReport()
virtual bool isSet() override
SWGNFMModReport * nfm_mod_report
virtual bool isSet() override