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 bool isSet() override
bool m_nfm_mod_settings_isSet
qint32 getOriginatorDeviceSetIndex()
virtual bool isSet() override
SWGFreeDVDemodSettings * free_dv_demod_settings
SWGRemoteSinkSettings * getRemoteSinkSettings()
bool m_channel_type_isSet
bool m_udp_source_settings_isSet
void setAmDemodSettings(SWGAMDemodSettings *am_demod_settings)
SWGAMModSettings * am_mod_settings
virtual bool isSet() override
bool m_local_sink_settings_isSet
SWGLocalSourceSettings * local_source_settings
void setFreeDvDemodSettings(SWGFreeDVDemodSettings *free_dv_demod_settings)
bool m_originator_channel_index_isSet
bool m_remote_source_settings_isSet
QString * getChannelType()
virtual bool isSet() override
SWGWFMModSettings * getWfmModSettings()
void toJsonValue(QString name, void *value, QJsonObject *output, QString type)
SWGWFMDemodSettings * wfm_demod_settings
bool m_ssb_mod_settings_isSet
virtual bool isSet() override
SWGRemoteSourceSettings * getRemoteSourceSettings()
bool m_am_mod_settings_isSet
SWGNFMDemodSettings * getNfmDemodSettings()
void setChannelType(QString *channel_type)
SWGNFMDemodSettings * nfm_demod_settings
bool m_local_source_settings_isSet
void setLocalSinkSettings(SWGLocalSinkSettings *local_sink_settings)
bool m_originator_device_set_index_isSet
bool m_nfm_demod_settings_isSet
void setNfmDemodSettings(SWGNFMDemodSettings *nfm_demod_settings)
void setSsbModSettings(SWGSSBModSettings *ssb_mod_settings)
virtual bool isSet() override
qint32 originator_channel_index
void setUdpSinkSettings(SWGUDPSinkSettings *udp_sink_settings)
SWGFreeDVDemodSettings * getFreeDvDemodSettings()
void setNfmModSettings(SWGNFMModSettings *nfm_mod_settings)
SWGFreqTrackerSettings * freq_tracker_settings
virtual bool isSet() override
void setFileSourceSettings(SWGFileSourceSettings *file_source_settings)
SWGAMDemodSettings * am_demod_settings
SWGBFMDemodSettings * getBfmDemodSettings()
void setFreqTrackerSettings(SWGFreqTrackerSettings *freq_tracker_settings)
bool m_am_demod_settings_isSet
virtual void fromJsonObject(QJsonObject &json) override
SWGDSDDemodSettings * getDsdDemodSettings()
SWGRemoteSourceSettings * remote_source_settings
SWGLocalSourceSettings * getLocalSourceSettings()
bool m_atv_mod_settings_isSet
bool m_remote_sink_settings_isSet
SWGLocalSinkSettings * local_sink_settings
void setAtvModSettings(SWGATVModSettings *atv_mod_settings)
bool m_bfm_demod_settings_isSet
SWGUDPSourceSettings * udp_source_settings
void setOriginatorDeviceSetIndex(qint32 originator_device_set_index)
virtual bool isSet() override
void setRemoteSinkSettings(SWGRemoteSinkSettings *remote_sink_settings)
void setDsdDemodSettings(SWGDSDDemodSettings *dsd_demod_settings)
SWGNFMModSettings * nfm_mod_settings
bool m_dsd_demod_settings_isSet
bool m_free_dv_demod_settings_isSet
void setOriginatorChannelIndex(qint32 originator_channel_index)
qint32 originator_device_set_index
virtual bool isSet() override
void setSsbDemodSettings(SWGSSBDemodSettings *ssb_demod_settings)
bool m_free_dv_mod_settings_isSet
virtual bool isSet() override
virtual ~SWGChannelSettings_2()
SWGSSBDemodSettings * getSsbDemodSettings()
virtual QString asJson() override
SWGFreeDVModSettings * getFreeDvModSettings()
SWGWFMDemodSettings * getWfmDemodSettings()
bool m_udp_sink_settings_isSet
virtual bool isSet() override
SWGSSBModSettings * getSsbModSettings()
SWGFreeDVModSettings * free_dv_mod_settings
SWGUDPSinkSettings * udp_sink_settings
SWGLocalSinkSettings * getLocalSinkSettings()
SWGFileSourceSettings * getFileSourceSettings()
void setLocalSourceSettings(SWGLocalSourceSettings *local_source_settings)
void setUdpSourceSettings(SWGUDPSourceSettings *udp_source_settings)
void setWfmModSettings(SWGWFMModSettings *wfm_mod_settings)
virtual bool isSet() override
virtual bool isSet() override
virtual QJsonObject * asJsonObject() override
virtual SWGChannelSettings_2 * fromJson(QString &jsonString) override
void setWfmDemodSettings(SWGWFMDemodSettings *wfm_demod_settings)
SWGSSBDemodSettings * ssb_demod_settings
SWGNFMModSettings * getNfmModSettings()
bool m_file_source_settings_isSet
void setValue(void *value, QJsonValue obj, QString type, QString complexType)
void setBfmDemodSettings(SWGBFMDemodSettings *bfm_demod_settings)
bool m_wfm_mod_settings_isSet
virtual bool isSet() override
virtual bool isSet() override
SWGFreqTrackerSettings * getFreqTrackerSettings()
SWGUDPSinkSettings * getUdpSinkSettings()
virtual bool isSet() override
SWGAMModSettings * getAmModSettings()
virtual bool isSet() override
bool m_freq_tracker_settings_isSet
SWGDSDDemodSettings * dsd_demod_settings
SWGSSBModSettings * ssb_mod_settings
void setFreeDvModSettings(SWGFreeDVModSettings *free_dv_mod_settings)
SWGUDPSourceSettings * getUdpSourceSettings()
bool m_ssb_demod_settings_isSet
SWGAMDemodSettings * getAmDemodSettings()
virtual bool isSet() override
SWGWFMModSettings * wfm_mod_settings
SWGBFMDemodSettings * bfm_demod_settings
SWGRemoteSinkSettings * remote_sink_settings
void setAmModSettings(SWGAMModSettings *am_mod_settings)
bool m_wfm_demod_settings_isSet
virtual bool isSet() override
virtual bool isSet() override
SWGATVModSettings * getAtvModSettings()
qint32 getOriginatorChannelIndex()
virtual bool isSet() override
SWGATVModSettings * atv_mod_settings
void setDirection(qint32 direction)
virtual bool isSet() override
SWGFileSourceSettings * file_source_settings
void setRemoteSourceSettings(SWGRemoteSourceSettings *remote_source_settings)