18 #include <QJsonDocument> 83 title =
new QString(
"");
110 if(
title !=
nullptr) {
128 QByteArray array (json.toStdString().c_str());
129 QJsonDocument doc = QJsonDocument::fromJson(array);
130 QJsonObject jsonObject = doc.object();
174 QJsonDocument doc(*obj);
175 QByteArray bytes = doc.toJson();
177 return QString(bytes);
182 QJsonObject* obj =
new QJsonObject();
187 obj->insert(
"volume", QJsonValue(
volume));
190 obj->insert(
"volumeIn", QJsonValue(
volume_in));
193 obj->insert(
"spanLog2", QJsonValue(
span_log2));
196 obj->insert(
"audioMute", QJsonValue(
audio_mute));
199 obj->insert(
"agc", QJsonValue(
agc));
202 obj->insert(
"rgbColor", QJsonValue(
rgb_color));
204 if(
title !=
nullptr && *
title != QString(
"")){
385 bool isObjectUpdated =
false;
394 if(
title !=
nullptr && *
title != QString(
"")){ isObjectUpdated =
true;
break;}
403 return isObjectUpdated;
void setTitle(QString *title)
void setAudioDeviceName(QString *audio_device_name)
qint32 reverse_api_device_index
bool m_input_frequency_offset_isSet
QString * getReverseApiAddress()
void setAudioMute(qint32 audio_mute)
void toJsonValue(QString name, void *value, QJsonObject *output, QString type)
void setReverseApiDeviceIndex(qint32 reverse_api_device_index)
void setRgbColor(qint32 rgb_color)
QString * getAudioDeviceName()
void setVolume(float volume)
qint32 reverse_api_channel_index
qint32 getReverseApiPort()
virtual ~SWGFreeDVDemodSettings()
virtual QJsonObject * asJsonObject() override
void setFreeDvMode(qint32 free_dv_mode)
bool m_reverse_api_channel_index_isSet
void setVolumeIn(float volume_in)
QString * audio_device_name
virtual SWGFreeDVDemodSettings * fromJson(QString &jsonString) override
void setReverseApiPort(qint32 reverse_api_port)
bool m_audio_device_name_isSet
qint32 getReverseApiDeviceIndex()
void setInputFrequencyOffset(qint64 input_frequency_offset)
void setReverseApiAddress(QString *reverse_api_address)
bool m_reverse_api_port_isSet
bool m_free_dv_mode_isSet
void setSpanLog2(qint32 span_log2)
QString * reverse_api_address
void setValue(void *value, QJsonValue obj, QString type, QString complexType)
virtual void fromJsonObject(QJsonObject &json) override
virtual bool isSet() override
qint32 getUseReverseApi()
bool m_reverse_api_address_isSet
bool m_reverse_api_device_index_isSet
void setUseReverseApi(qint32 use_reverse_api)
qint32 getReverseApiChannelIndex()
bool m_use_reverse_api_isSet
virtual QString asJson() override
qint64 input_frequency_offset
void setReverseApiChannelIndex(qint32 reverse_api_channel_index)
qint64 getInputFrequencyOffset()