18 #include <QJsonDocument> 151 QByteArray array (json.toStdString().c_str());
152 QJsonDocument doc = QJsonDocument::fromJson(array);
153 QJsonObject jsonObject = doc.object();
207 QJsonDocument doc(*obj);
208 QByteArray bytes = doc.toJson();
210 return QString(bytes);
215 QJsonObject* obj =
new QJsonObject();
220 obj->insert(
"log2Decim", QJsonValue(
log2_decim));
223 obj->insert(
"fcPos", QJsonValue(
fc_pos));
226 obj->insert(
"rangeLow", QJsonValue(
range_low));
229 obj->insert(
"lnaGain", QJsonValue(
lna_gain));
232 obj->insert(
"mixGain", QJsonValue(
mix_gain));
235 obj->insert(
"biasT", QJsonValue(
bias_t));
238 obj->insert(
"ifGain", QJsonValue(
if_gain));
250 obj->insert(
"dcBlock", QJsonValue(
dc_block));
483 bool isObjectUpdated =
false;
506 return isObjectUpdated;
bool m_center_frequency_isSet
bool m_if_filter_index_isSet
void setRangeLow(qint32 range_low)
bool m_file_record_name_isSet
qint64 getCenterFrequency()
void setRfFilterIndex(qint32 rf_filter_index)
void toJsonValue(QString name, void *value, QJsonObject *output, QString type)
QString * reverse_api_address
virtual bool isSet() override
qint64 getTransverterDeltaFrequency()
qint32 reverse_api_device_index
void setDcBlock(qint32 dc_block)
qint32 getReverseApiDeviceIndex()
QString * file_record_name
void setIfGain(qint32 if_gain)
void setReverseApiPort(qint32 reverse_api_port)
bool m_l_oppm_tenths_isSet
bool m_reverse_api_port_isSet
void setCenterFrequency(qint64 center_frequency)
bool m_reverse_api_address_isSet
void setIfFilterIndex(qint32 if_filter_index)
void setLog2Decim(qint32 log2_decim)
void setTransverterMode(qint32 transverter_mode)
qint32 getIfFilterIndex()
QString * getFileRecordName()
QString * getReverseApiAddress()
void setFileRecordName(QString *file_record_name)
virtual void fromJsonObject(QJsonObject &json) override
void setIqImbalance(qint32 iq_imbalance)
void setLOppmTenths(qint32 l_oppm_tenths)
void setReverseApiDeviceIndex(qint32 reverse_api_device_index)
virtual QString asJson() override
bool m_use_reverse_api_isSet
void setBiasT(qint32 bias_t)
qint32 getUseReverseApi()
bool m_transverter_delta_frequency_isSet
void setLnaGain(qint32 lna_gain)
bool m_reverse_api_device_index_isSet
void setTransverterDeltaFrequency(qint64 transverter_delta_frequency)
bool m_rf_filter_index_isSet
void setValue(void *value, QJsonValue obj, QString type, QString complexType)
bool m_iq_imbalance_isSet
virtual QJsonObject * asJsonObject() override
bool m_transverter_mode_isSet
virtual SWGFCDProPlusSettings * fromJson(QString &jsonString) override
qint32 getTransverterMode()
void setUseReverseApi(qint32 use_reverse_api)
void setFcPos(qint32 fc_pos)
qint64 transverter_delta_frequency
qint32 getRfFilterIndex()
void setMixGain(qint32 mix_gain)
qint32 getReverseApiPort()
virtual ~SWGFCDProPlusSettings()
void setReverseApiAddress(QString *reverse_api_address)