18 #include <QJsonDocument> 126 QByteArray array (json.toStdString().c_str());
127 QJsonDocument doc = QJsonDocument::fromJson(array);
128 QJsonObject jsonObject = doc.object();
172 QJsonDocument doc(*obj);
173 QByteArray bytes = doc.toJson();
175 return QString(bytes);
180 QJsonObject* obj =
new QJsonObject();
191 obj->insert(
"log2Decim", QJsonValue(
log2_decim));
194 obj->insert(
"adcDither", QJsonValue(
adc_dither));
197 obj->insert(
"adcPreamp", QJsonValue(
adc_preamp));
200 obj->insert(
"wideBand", QJsonValue(
wide_band));
212 obj->insert(
"attenuator", QJsonValue(
attenuator));
383 bool isObjectUpdated =
false;
401 return isObjectUpdated;
void setLOppmTenths(qint32 l_oppm_tenths)
void setWideBand(qint32 wide_band)
virtual QString asJson() override
virtual SWGPerseusSettings * fromJson(QString &jsonString) override
bool m_file_record_name_isSet
bool m_reverse_api_port_isSet
bool m_reverse_api_device_index_isSet
qint32 getUseReverseApi()
void toJsonValue(QString name, void *value, QJsonObject *output, QString type)
bool m_transverter_mode_isSet
void setTransverterMode(qint32 transverter_mode)
void setUseReverseApi(qint32 use_reverse_api)
void setReverseApiPort(qint32 reverse_api_port)
void setAdcPreamp(qint32 adc_preamp)
qint64 transverter_delta_frequency
virtual ~SWGPerseusSettings()
qint32 getReverseApiPort()
void setDevSampleRateIndex(qint32 dev_sample_rate_index)
void setReverseApiAddress(QString *reverse_api_address)
virtual bool isSet() override
virtual void fromJsonObject(QJsonObject &json) override
qint64 getTransverterDeltaFrequency()
bool m_use_reverse_api_isSet
bool m_transverter_delta_frequency_isSet
void setAdcDither(qint32 adc_dither)
QString * getReverseApiAddress()
bool m_dev_sample_rate_index_isSet
qint32 dev_sample_rate_index
qint32 getTransverterMode()
void setTransverterDeltaFrequency(qint64 transverter_delta_frequency)
qint32 reverse_api_device_index
QString * getFileRecordName()
qint32 getDevSampleRateIndex()
void setReverseApiDeviceIndex(qint32 reverse_api_device_index)
QString * file_record_name
void setValue(void *value, QJsonValue obj, QString type, QString complexType)
void setCenterFrequency(qint64 center_frequency)
qint64 getCenterFrequency()
bool m_l_oppm_tenths_isSet
void setFileRecordName(QString *file_record_name)
void setLog2Decim(qint32 log2_decim)
bool m_reverse_api_address_isSet
void setAttenuator(qint32 attenuator)
qint32 getReverseApiDeviceIndex()
virtual QJsonObject * asJsonObject() override
bool m_center_frequency_isSet
QString * reverse_api_address