18 #include <QJsonDocument> 113 title =
new QString(
"");
146 if(
title !=
nullptr) {
163 QByteArray array (json.toStdString().c_str());
164 QJsonDocument doc = QJsonDocument::fromJson(array);
165 QJsonObject jsonObject = doc.object();
223 QJsonDocument doc(*obj);
224 QByteArray bytes = doc.toJson();
226 return QString(bytes);
231 QJsonObject* obj =
new QJsonObject();
239 obj->insert(
"lowCutoff", QJsonValue(
low_cutoff));
242 obj->insert(
"volume", QJsonValue(
volume));
245 obj->insert(
"spanLog2", QJsonValue(
span_log2));
254 obj->insert(
"dsb", QJsonValue(
dsb));
257 obj->insert(
"audioMute", QJsonValue(
audio_mute));
260 obj->insert(
"agc", QJsonValue(
agc));
275 obj->insert(
"rgbColor", QJsonValue(
rgb_color));
277 if(
title !=
nullptr && *
title != QString(
"")){
525 bool isObjectUpdated =
false;
542 if(
title !=
nullptr && *
title != QString(
"")){ isObjectUpdated =
true;
break;}
550 return isObjectUpdated;
qint32 agc_power_threshold
QString * reverse_api_address
qint32 getAgcThresholdGate()
qint32 getAgcPowerThreshold()
void setInputFrequencyOffset(qint64 input_frequency_offset)
void setSpanLog2(qint32 span_log2)
qint64 input_frequency_offset
void setAudioBinaural(qint32 audio_binaural)
bool m_agc_threshold_gate_isSet
void toJsonValue(QString name, void *value, QJsonObject *output, QString type)
qint32 reverse_api_channel_index
virtual QString asJson() override
bool m_agc_time_log2_isSet
void setReverseApiChannelIndex(qint32 reverse_api_channel_index)
bool m_agc_power_threshold_isSet
bool m_audio_binaural_isSet
bool m_reverse_api_address_isSet
void setLowCutoff(float low_cutoff)
qint32 getAudioBinaural()
virtual SWGSSBDemodSettings * fromJson(QString &jsonString) override
bool m_input_frequency_offset_isSet
void setRgbColor(qint32 rgb_color)
bool m_agc_clamping_isSet
QString * getReverseApiAddress()
void setAgcClamping(qint32 agc_clamping)
QString * getAudioDeviceName()
qint32 getReverseApiDeviceIndex()
void setReverseApiDeviceIndex(qint32 reverse_api_device_index)
bool m_audio_device_name_isSet
bool m_audio_flip_channels_isSet
bool m_reverse_api_channel_index_isSet
virtual QJsonObject * asJsonObject() override
void setAudioDeviceName(QString *audio_device_name)
void setAgcThresholdGate(qint32 agc_threshold_gate)
qint32 audio_flip_channels
qint32 getReverseApiPort()
void setVolume(float volume)
qint64 getInputFrequencyOffset()
void setAgcPowerThreshold(qint32 agc_power_threshold)
qint32 getReverseApiChannelIndex()
void setRfBandwidth(float rf_bandwidth)
QString * audio_device_name
bool m_reverse_api_port_isSet
bool m_reverse_api_device_index_isSet
qint32 getUseReverseApi()
void setValue(void *value, QJsonValue obj, QString type, QString complexType)
qint32 getAudioFlipChannels()
qint32 agc_threshold_gate
bool m_use_reverse_api_isSet
void setUseReverseApi(qint32 use_reverse_api)
bool m_rf_bandwidth_isSet
qint32 reverse_api_device_index
void setAudioFlipChannels(qint32 audio_flip_channels)
virtual ~SWGSSBDemodSettings()
virtual bool isSet() override
void setAgcTimeLog2(qint32 agc_time_log2)
void setReverseApiAddress(QString *reverse_api_address)
void setAudioMute(qint32 audio_mute)
virtual void fromJsonObject(QJsonObject &json) override
void setReverseApiPort(qint32 reverse_api_port)
void setTitle(QString *title)