18 #include <QJsonDocument> 196 QByteArray array (json.toStdString().c_str());
197 QJsonDocument doc = QJsonDocument::fromJson(array);
198 QJsonObject jsonObject = doc.object();
270 QJsonDocument doc(*obj);
271 QByteArray bytes = doc.toJson();
273 return QString(bytes);
278 QJsonObject* obj =
new QJsonObject();
295 obj->insert(
"bandIndex", QJsonValue(
band_index));
307 obj->insert(
"modeIndex", QJsonValue(
mode_index));
310 obj->insert(
"gain1Index", QJsonValue(
gain1_index));
316 obj->insert(
"gain2Index", QJsonValue(
gain2_index));
319 obj->insert(
"gain3Index", QJsonValue(
gain3_index));
322 obj->insert(
"gain4Index", QJsonValue(
gain4_index));
328 obj->insert(
"gain5Index", QJsonValue(
gain5_index));
331 obj->insert(
"gain6Index", QJsonValue(
gain6_index));
334 obj->insert(
"log2Decim", QJsonValue(
log2_decim));
337 obj->insert(
"fcPos", QJsonValue(
fc_pos));
340 obj->insert(
"dcBlock", QJsonValue(
dc_block));
663 bool isObjectUpdated =
false;
695 return isObjectUpdated;
void setGain1Index(qint32 gain1_index)
qint32 getRfFilterIndex()
qint32 getLnaEnhanceIndex()
QString * getFileRecordName()
void setMixerFilterIndex(qint32 mixer_filter_index)
void setGain6Index(qint32 gain6_index)
void toJsonValue(QString name, void *value, QJsonObject *output, QString type)
qint32 bias_current_index
void setFcPos(qint32 fc_pos)
void setIqCorrection(qint32 iq_correction)
QString * file_record_name
virtual ~SWGFCDProSettings()
void setGain5Index(qint32 gain5_index)
void setLOppmTenths(qint32 l_oppm_tenths)
qint32 getReverseApiDeviceIndex()
bool m_transverter_delta_frequency_isSet
qint32 getReverseApiPort()
qint32 getRcFilterIndex()
void setTransverterDeltaFrequency(qint64 transverter_delta_frequency)
qint64 getTransverterDeltaFrequency()
qint32 reverse_api_device_index
virtual SWGFCDProSettings * fromJson(QString &jsonString) override
void setReverseApiDeviceIndex(qint32 reverse_api_device_index)
void setRfFilterIndex(qint32 rf_filter_index)
qint32 getTransverterMode()
bool m_reverse_api_port_isSet
qint32 getMixerGainIndex()
void setCenterFrequency(qint64 center_frequency)
virtual bool isSet() override
void setBandIndex(qint32 band_index)
bool m_use_reverse_api_isSet
void setGain2Index(qint32 gain2_index)
void setGain4Index(qint32 gain4_index)
void setModeIndex(qint32 mode_index)
bool m_l_oppm_tenths_isSet
void setRcFilterIndex(qint32 rc_filter_index)
void setBiasCurrentIndex(qint32 bias_current_index)
void setGain3Index(qint32 gain3_index)
bool m_mixer_filter_index_isSet
virtual void fromJsonObject(QJsonObject &json) override
qint64 getCenterFrequency()
void setLnaGainIndex(qint32 lna_gain_index)
virtual QJsonObject * asJsonObject() override
bool m_bias_current_index_isSet
void setMixerGainIndex(qint32 mixer_gain_index)
qint32 getMixerFilterIndex()
bool m_rf_filter_index_isSet
void setUseReverseApi(qint32 use_reverse_api)
void setValue(void *value, QJsonValue obj, QString type, QString complexType)
void setLnaEnhanceIndex(qint32 lna_enhance_index)
QString * reverse_api_address
bool m_iq_correction_isSet
void setFileRecordName(QString *file_record_name)
void setTransverterMode(qint32 transverter_mode)
bool m_lna_enhance_index_isSet
void setReverseApiPort(qint32 reverse_api_port)
QString * getReverseApiAddress()
bool m_rc_filter_index_isSet
bool m_center_frequency_isSet
qint32 getIfFilterIndex()
qint32 mixer_filter_index
void setReverseApiAddress(QString *reverse_api_address)
void setLog2Decim(qint32 log2_decim)
void setDcBlock(qint32 dc_block)
bool m_file_record_name_isSet
bool m_transverter_mode_isSet
bool m_mixer_gain_index_isSet
qint32 getBiasCurrentIndex()
qint64 transverter_delta_frequency
qint32 getUseReverseApi()
bool m_reverse_api_address_isSet
virtual QString asJson() override
bool m_reverse_api_device_index_isSet
bool m_lna_gain_index_isSet
void setIfFilterIndex(qint32 if_filter_index)
bool m_if_filter_index_isSet