18 #include <QJsonDocument> 216 QByteArray array (json.toStdString().c_str());
217 QJsonDocument doc = QJsonDocument::fromJson(array);
218 QJsonObject jsonObject = doc.object();
282 QJsonDocument doc(*obj);
283 QByteArray bytes = doc.toJson();
285 return QString(bytes);
290 QJsonObject* obj =
new QJsonObject();
295 obj->insert(
"direction", QJsonValue(
direction));
623 bool isObjectUpdated =
false;
651 return isObjectUpdated;
virtual QJsonObject * asJsonObject() override
virtual bool isSet() override
bool m_originator_device_set_index_isSet
void setOriginatorChannelIndex(qint32 originator_channel_index)
virtual bool isSet() override
void setSsbDemodSettings(SWGSSBDemodSettings *ssb_demod_settings)
bool m_udp_sink_settings_isSet
virtual bool isSet() override
SWGLocalSourceSettings * getLocalSourceSettings()
void setBfmDemodSettings(SWGBFMDemodSettings *bfm_demod_settings)
SWGDSDDemodSettings * dsd_demod_settings
bool m_udp_source_settings_isSet
bool m_freq_tracker_settings_isSet
SWGNFMDemodSettings * getNfmDemodSettings()
virtual bool isSet() override
SWGSSBDemodSettings * ssb_demod_settings
void toJsonValue(QString name, void *value, QJsonObject *output, QString type)
virtual bool isSet() override
bool m_remote_sink_settings_isSet
SWGRemoteSinkSettings * remote_sink_settings
void setWfmDemodSettings(SWGWFMDemodSettings *wfm_demod_settings)
void setNfmModSettings(SWGNFMModSettings *nfm_mod_settings)
SWGFileSourceSettings * getFileSourceSettings()
bool m_nfm_demod_settings_isSet
bool m_bfm_demod_settings_isSet
SWGWFMDemodSettings * wfm_demod_settings
void setWfmModSettings(SWGWFMModSettings *wfm_mod_settings)
bool m_file_source_settings_isSet
SWGFreeDVModSettings * free_dv_mod_settings
virtual bool isSet() override
SWGSSBModSettings * ssb_mod_settings
bool m_remote_source_settings_isSet
SWGFreqTrackerSettings * freq_tracker_settings
virtual bool isSet() override
qint32 originator_device_set_index
SWGAMModSettings * am_mod_settings
void setNfmDemodSettings(SWGNFMDemodSettings *nfm_demod_settings)
SWGUDPSourceSettings * getUdpSourceSettings()
SWGFreqTrackerSettings * getFreqTrackerSettings()
virtual bool isSet() override
SWGNFMDemodSettings * nfm_demod_settings
virtual SWGChannelSettings * fromJson(QString &jsonString) override
void setChannelType(QString *channel_type)
void setLocalSinkSettings(SWGLocalSinkSettings *local_sink_settings)
void setOriginatorDeviceSetIndex(qint32 originator_device_set_index)
bool m_nfm_mod_settings_isSet
bool m_wfm_mod_settings_isSet
bool m_ssb_mod_settings_isSet
void setFileSourceSettings(SWGFileSourceSettings *file_source_settings)
virtual bool isSet() override
bool m_am_mod_settings_isSet
bool m_wfm_demod_settings_isSet
void setRemoteSourceSettings(SWGRemoteSourceSettings *remote_source_settings)
bool m_free_dv_mod_settings_isSet
qint32 getOriginatorChannelIndex()
bool m_originator_channel_index_isSet
virtual bool isSet() override
SWGWFMDemodSettings * getWfmDemodSettings()
SWGBFMDemodSettings * getBfmDemodSettings()
SWGFreeDVModSettings * getFreeDvModSettings()
bool m_ssb_demod_settings_isSet
SWGDSDDemodSettings * getDsdDemodSettings()
SWGAMDemodSettings * getAmDemodSettings()
virtual bool isSet() override
void setAmDemodSettings(SWGAMDemodSettings *am_demod_settings)
SWGUDPSourceSettings * udp_source_settings
SWGFreeDVDemodSettings * free_dv_demod_settings
void setSsbModSettings(SWGSSBModSettings *ssb_mod_settings)
virtual bool isSet() override
SWGATVModSettings * getAtvModSettings()
qint32 originator_channel_index
void setUdpSinkSettings(SWGUDPSinkSettings *udp_sink_settings)
SWGSSBModSettings * getSsbModSettings()
SWGFileSourceSettings * file_source_settings
SWGAMDemodSettings * am_demod_settings
void setDirection(qint32 direction)
SWGUDPSinkSettings * udp_sink_settings
bool m_free_dv_demod_settings_isSet
SWGRemoteSourceSettings * remote_source_settings
virtual QString asJson() override
virtual bool isSet() override
virtual bool isSet() override
QString * getChannelType()
void setAmModSettings(SWGAMModSettings *am_mod_settings)
void setValue(void *value, QJsonValue obj, QString type, QString complexType)
SWGWFMModSettings * getWfmModSettings()
virtual bool isSet() override
SWGSSBDemodSettings * getSsbDemodSettings()
virtual bool isSet() override
virtual ~SWGChannelSettings()
void setFreqTrackerSettings(SWGFreqTrackerSettings *freq_tracker_settings)
void setFreeDvDemodSettings(SWGFreeDVDemodSettings *free_dv_demod_settings)
virtual bool isSet() override
SWGFreeDVDemodSettings * getFreeDvDemodSettings()
void setDsdDemodSettings(SWGDSDDemodSettings *dsd_demod_settings)
virtual void fromJsonObject(QJsonObject &json) override
virtual bool isSet() override
void setRemoteSinkSettings(SWGRemoteSinkSettings *remote_sink_settings)
SWGLocalSinkSettings * getLocalSinkSettings()
SWGAMModSettings * getAmModSettings()
void setAtvModSettings(SWGATVModSettings *atv_mod_settings)
SWGATVModSettings * atv_mod_settings
bool m_dsd_demod_settings_isSet
SWGNFMModSettings * getNfmModSettings()
virtual bool isSet() override
SWGLocalSinkSettings * local_sink_settings
SWGUDPSinkSettings * getUdpSinkSettings()
bool m_channel_type_isSet
SWGRemoteSinkSettings * getRemoteSinkSettings()
virtual bool isSet() override
SWGBFMDemodSettings * bfm_demod_settings
void setLocalSourceSettings(SWGLocalSourceSettings *local_source_settings)
SWGNFMModSettings * nfm_mod_settings
qint32 getOriginatorDeviceSetIndex()
SWGRemoteSourceSettings * getRemoteSourceSettings()
bool m_am_demod_settings_isSet
SWGWFMModSettings * wfm_mod_settings
bool m_local_sink_settings_isSet
virtual bool isSet() override
void setUdpSourceSettings(SWGUDPSourceSettings *udp_source_settings)
bool m_atv_mod_settings_isSet
SWGLocalSourceSettings * local_source_settings
virtual bool isSet() override
void setFreeDvModSettings(SWGFreeDVModSettings *free_dv_mod_settings)
bool m_local_source_settings_isSet