18 #include <QJsonDocument> 93 title =
new QString(
"");
121 if(
title !=
nullptr) {
138 QByteArray array (json.toStdString().c_str());
139 QJsonDocument doc = QJsonDocument::fromJson(array);
140 QJsonObject jsonObject = doc.object();
188 QJsonDocument doc(*obj);
189 QByteArray bytes = doc.toJson();
191 return QString(bytes);
196 QJsonObject* obj =
new QJsonObject();
207 obj->insert(
"volume", QJsonValue(
volume));
210 obj->insert(
"squelch", QJsonValue(
squelch));
216 obj->insert(
"lsbStereo", QJsonValue(
lsb_stereo));
219 obj->insert(
"showPilot", QJsonValue(
show_pilot));
222 obj->insert(
"rdsActive", QJsonValue(
rds_active));
225 obj->insert(
"rgbColor", QJsonValue(
rgb_color));
227 if(
title !=
nullptr && *
title != QString(
"")){
425 bool isObjectUpdated =
false;
437 if(
title !=
nullptr && *
title != QString(
"")){ isObjectUpdated =
true;
break;}
445 return isObjectUpdated;
virtual QJsonObject * asJsonObject() override
void setReverseApiPort(qint32 reverse_api_port)
void setUseReverseApi(qint32 use_reverse_api)
bool m_audio_device_name_isSet
qint64 input_frequency_offset
void toJsonValue(QString name, void *value, QJsonObject *output, QString type)
QString * getAudioDeviceName()
void setLsbStereo(qint32 lsb_stereo)
bool m_reverse_api_channel_index_isSet
QString * getReverseApiAddress()
virtual void fromJsonObject(QJsonObject &json) override
qint32 reverse_api_device_index
void setAudioDeviceName(QString *audio_device_name)
bool m_rf_bandwidth_isSet
qint32 reverse_api_channel_index
QString * audio_device_name
qint32 getReverseApiChannelIndex()
void setRdsActive(qint32 rds_active)
void setReverseApiDeviceIndex(qint32 reverse_api_device_index)
bool m_reverse_api_device_index_isSet
bool m_input_frequency_offset_isSet
bool m_af_bandwidth_isSet
void setVolume(float volume)
void setSquelch(float squelch)
void setRgbColor(qint32 rgb_color)
qint32 getReverseApiPort()
QString * reverse_api_address
virtual ~SWGBFMDemodSettings()
void setTitle(QString *title)
virtual QString asJson() override
virtual bool isSet() override
bool m_reverse_api_port_isSet
qint64 getInputFrequencyOffset()
void setValue(void *value, QJsonValue obj, QString type, QString complexType)
qint32 getUseReverseApi()
void setReverseApiAddress(QString *reverse_api_address)
bool m_reverse_api_address_isSet
void setInputFrequencyOffset(qint64 input_frequency_offset)
void setShowPilot(qint32 show_pilot)
void setAudioStereo(qint32 audio_stereo)
virtual SWGBFMDemodSettings * fromJson(QString &jsonString) override
qint32 getReverseApiDeviceIndex()
void setReverseApiChannelIndex(qint32 reverse_api_channel_index)
bool m_audio_stereo_isSet
void setAfBandwidth(float af_bandwidth)
void setRfBandwidth(float rf_bandwidth)
bool m_use_reverse_api_isSet