18 #include <QJsonDocument> 81 title =
new QString(
"");
106 if(
title !=
nullptr) {
123 QByteArray array (json.toStdString().c_str());
124 QJsonDocument doc = QJsonDocument::fromJson(array);
125 QJsonObject jsonObject = doc.object();
167 QJsonDocument doc(*obj);
168 QByteArray bytes = doc.toJson();
170 return QString(bytes);
175 QJsonObject* obj =
new QJsonObject();
186 obj->insert(
"volume", QJsonValue(
volume));
189 obj->insert(
"squelch", QJsonValue(
squelch));
192 obj->insert(
"audioMute", QJsonValue(
audio_mute));
195 obj->insert(
"rgbColor", QJsonValue(
rgb_color));
197 if(
title !=
nullptr && *
title != QString(
"")){
365 bool isObjectUpdated =
false;
374 if(
title !=
nullptr && *
title != QString(
"")){ isObjectUpdated =
true;
break;}
382 return isObjectUpdated;
void setReverseApiAddress(QString *reverse_api_address)
bool m_af_bandwidth_isSet
void toJsonValue(QString name, void *value, QJsonObject *output, QString type)
void setRgbColor(qint32 rgb_color)
void setReverseApiDeviceIndex(qint32 reverse_api_device_index)
virtual bool isSet() override
void setSquelch(float squelch)
qint32 getUseReverseApi()
bool m_audio_device_name_isSet
void setVolume(float volume)
virtual ~SWGWFMDemodSettings()
qint32 reverse_api_device_index
qint64 input_frequency_offset
void setReverseApiChannelIndex(qint32 reverse_api_channel_index)
void setAudioMute(qint32 audio_mute)
qint32 getReverseApiPort()
QString * audio_device_name
void setReverseApiPort(qint32 reverse_api_port)
bool m_input_frequency_offset_isSet
bool m_rf_bandwidth_isSet
void setInputFrequencyOffset(qint64 input_frequency_offset)
void setAfBandwidth(float af_bandwidth)
virtual QString asJson() override
qint32 reverse_api_channel_index
void setRfBandwidth(float rf_bandwidth)
void setValue(void *value, QJsonValue obj, QString type, QString complexType)
QString * reverse_api_address
QString * getReverseApiAddress()
virtual void fromJsonObject(QJsonObject &json) override
qint32 getReverseApiChannelIndex()
bool m_reverse_api_port_isSet
QString * getAudioDeviceName()
virtual QJsonObject * asJsonObject() override
qint32 getReverseApiDeviceIndex()
qint64 getInputFrequencyOffset()
void setUseReverseApi(qint32 use_reverse_api)
bool m_reverse_api_device_index_isSet
bool m_use_reverse_api_isSet
void setTitle(QString *title)
virtual SWGWFMDemodSettings * fromJson(QString &jsonString) override
bool m_reverse_api_channel_index_isSet
bool m_reverse_api_address_isSet
void setAudioDeviceName(QString *audio_device_name)