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();
226 obj->insert(
"lnaGain", QJsonValue(
lna_gain));
229 obj->insert(
"mixerGain", QJsonValue(
mixer_gain));
232 obj->insert(
"vgaGain", QJsonValue(
vga_gain));
235 obj->insert(
"lnaAGC", QJsonValue(
lna_agc));
238 obj->insert(
"mixerAGC", QJsonValue(
mixer_agc));
241 obj->insert(
"log2Decim", QJsonValue(
log2_decim));
244 obj->insert(
"fcPos", QJsonValue(
fc_pos));
247 obj->insert(
"biasT", QJsonValue(
bias_t));
250 obj->insert(
"dcBlock", QJsonValue(
dc_block));
483 bool isObjectUpdated =
false;
506 return isObjectUpdated;
bool m_dev_sample_rate_index_isSet
qint32 getReverseApiPort()
qint32 reverse_api_device_index
qint64 transverter_delta_frequency
void setLOppmTenths(qint32 l_oppm_tenths)
void toJsonValue(QString name, void *value, QJsonObject *output, QString type)
bool m_l_oppm_tenths_isSet
bool m_reverse_api_address_isSet
bool m_file_record_name_isSet
bool m_iq_correction_isSet
qint32 getDevSampleRateIndex()
void setFcPos(qint32 fc_pos)
void setDcBlock(qint32 dc_block)
void setMixerAgc(qint32 mixer_agc)
bool m_use_reverse_api_isSet
qint64 getTransverterDeltaFrequency()
void setTransverterDeltaFrequency(qint64 transverter_delta_frequency)
void setLog2Decim(qint32 log2_decim)
bool m_reverse_api_port_isSet
void setCenterFrequency(qint64 center_frequency)
void setTransverterMode(qint32 transverter_mode)
qint32 getTransverterMode()
QString * getFileRecordName()
void setBiasT(qint32 bias_t)
void setIqCorrection(qint32 iq_correction)
bool m_transverter_mode_isSet
void setReverseApiAddress(QString *reverse_api_address)
qint64 getCenterFrequency()
virtual SWGAirspySettings * fromJson(QString &jsonString) override
void setLnaGain(qint32 lna_gain)
void setReverseApiDeviceIndex(qint32 reverse_api_device_index)
void setDevSampleRateIndex(qint32 dev_sample_rate_index)
qint32 getReverseApiDeviceIndex()
virtual QString asJson() override
virtual bool isSet() override
void setValue(void *value, QJsonValue obj, QString type, QString complexType)
bool m_center_frequency_isSet
QString * getReverseApiAddress()
QString * file_record_name
bool m_transverter_delta_frequency_isSet
void setFileRecordName(QString *file_record_name)
QString * reverse_api_address
bool m_reverse_api_device_index_isSet
qint32 getUseReverseApi()
qint32 dev_sample_rate_index
void setVgaGain(qint32 vga_gain)
virtual void fromJsonObject(QJsonObject &json) override
void setUseReverseApi(qint32 use_reverse_api)
void setMixerGain(qint32 mixer_gain)
virtual QJsonObject * asJsonObject() override
virtual ~SWGAirspySettings()
void setLnaAgc(qint32 lna_agc)
void setReverseApiPort(qint32 reverse_api_port)