18 #include <QJsonDocument> 89 title =
new QString(
"");
122 if(
title !=
nullptr) {
145 QByteArray array (json.toStdString().c_str());
146 QJsonDocument doc = QJsonDocument::fromJson(array);
147 QJsonObject jsonObject = doc.object();
197 QJsonDocument doc(*obj);
198 QByteArray bytes = doc.toJson();
200 return QString(bytes);
205 QJsonObject* obj =
new QJsonObject();
216 obj->insert(
"spanLog2", QJsonValue(
span_log2));
219 obj->insert(
"audioMute", QJsonValue(
audio_mute));
222 obj->insert(
"playLoop", QJsonValue(
play_loop));
225 obj->insert(
"rgbColor", QJsonValue(
rgb_color));
227 if(
title !=
nullptr && *
title != QString(
"")){
447 bool isObjectUpdated =
false;
456 if(
title !=
nullptr && *
title != QString(
"")){ isObjectUpdated =
true;
break;}
468 return isObjectUpdated;
void setVolumeFactor(float volume_factor)
bool m_reverse_api_address_isSet
qint32 gauge_input_else_modem
void setAudioDeviceName(QString *audio_device_name)
qint32 getReverseApiPort()
void setUseReverseApi(qint32 use_reverse_api)
void setReverseApiChannelIndex(qint32 reverse_api_channel_index)
void toJsonValue(QString name, void *value, QJsonObject *output, QString type)
bool m_reverse_api_device_index_isSet
qint64 getInputFrequencyOffset()
bool m_reverse_api_channel_index_isSet
QString * reverse_api_address
void setCwKeyer(SWGCWKeyerSettings *cw_keyer)
qint32 reverse_api_channel_index
void setReverseApiPort(qint32 reverse_api_port)
bool m_use_reverse_api_isSet
void setReverseApiDeviceIndex(qint32 reverse_api_device_index)
qint32 getUseReverseApi()
qint32 getReverseApiDeviceIndex()
void setSpanLog2(qint32 span_log2)
void setReverseApiAddress(QString *reverse_api_address)
void setGaugeInputElseModem(qint32 gauge_input_else_modem)
void setToneFrequency(float tone_frequency)
qint32 getReverseApiChannelIndex()
bool m_mod_af_input_isSet
virtual bool isSet() override
void setAudioMute(qint32 audio_mute)
virtual QJsonObject * asJsonObject() override
void setTitle(QString *title)
QString * getReverseApiAddress()
bool m_reverse_api_port_isSet
void setRgbColor(qint32 rgb_color)
bool m_free_dv_mode_isSet
bool m_volume_factor_isSet
void setInputFrequencyOffset(qint64 input_frequency_offset)
virtual QString asJson() override
bool m_gauge_input_else_modem_isSet
void setPlayLoop(qint32 play_loop)
bool m_input_frequency_offset_isSet
virtual void fromJsonObject(QJsonObject &json) override
virtual ~SWGFreeDVModSettings()
void setFreeDvMode(qint32 free_dv_mode)
void setValue(void *value, QJsonValue obj, QString type, QString complexType)
void setModAfInput(qint32 mod_af_input)
bool m_audio_device_name_isSet
QString * audio_device_name
SWGCWKeyerSettings * cw_keyer
virtual bool isSet() override
bool m_tone_frequency_isSet
qint64 input_frequency_offset
qint32 reverse_api_device_index
qint32 getGaugeInputElseModem()
SWGCWKeyerSettings * getCwKeyer()
QString * getAudioDeviceName()
virtual SWGFreeDVModSettings * fromJson(QString &jsonString) override