18 #include <QJsonDocument> 101 title =
new QString(
"");
134 if(
title !=
nullptr) {
155 QByteArray array (json.toStdString().c_str());
156 QJsonDocument doc = QJsonDocument::fromJson(array);
157 QJsonObject jsonObject = doc.object();
211 QJsonDocument doc(*obj);
212 QByteArray bytes = doc.toJson();
214 return QString(bytes);
219 QJsonObject* obj =
new QJsonObject();
242 obj->insert(
"playLoop", QJsonValue(
play_loop));
245 obj->insert(
"ctcssOn", QJsonValue(
ctcss_on));
248 obj->insert(
"ctcssIndex", QJsonValue(
ctcss_index));
251 obj->insert(
"rgbColor", QJsonValue(
rgb_color));
253 if(
title !=
nullptr && *
title != QString(
"")){
487 bool isObjectUpdated =
false;
500 if(
title !=
nullptr && *
title != QString(
"")){ isObjectUpdated =
true;
break;}
510 return isObjectUpdated;
void setFmDeviation(float fm_deviation)
virtual ~SWGNFMModSettings()
bool m_af_bandwidth_isSet
void setVolumeFactor(float volume_factor)
SWGCWKeyerSettings * getCwKeyer()
void setChannelMute(qint32 channel_mute)
void toJsonValue(QString name, void *value, QJsonObject *output, QString type)
virtual void fromJsonObject(QJsonObject &json) override
void setRgbColor(qint32 rgb_color)
bool m_channel_mute_isSet
void setReverseApiAddress(QString *reverse_api_address)
void setReverseApiChannelIndex(qint32 reverse_api_channel_index)
bool m_reverse_api_address_isSet
void setInputFrequencyOffset(qint64 input_frequency_offset)
qint64 getInputFrequencyOffset()
bool m_volume_factor_isSet
bool m_mod_af_input_isSet
bool m_use_reverse_api_isSet
virtual SWGNFMModSettings * fromJson(QString &jsonString) override
bool m_fm_deviation_isSet
void setToneFrequency(float tone_frequency)
bool m_reverse_api_channel_index_isSet
void setReverseApiPort(qint32 reverse_api_port)
QString * getAudioDeviceName()
void setCwKeyer(SWGCWKeyerSettings *cw_keyer)
void setTitle(QString *title)
bool m_tone_frequency_isSet
qint64 input_frequency_offset
bool m_reverse_api_device_index_isSet
bool m_input_frequency_offset_isSet
bool m_reverse_api_port_isSet
qint32 reverse_api_device_index
void setReverseApiDeviceIndex(qint32 reverse_api_device_index)
void setCtcssIndex(qint32 ctcss_index)
SWGCWKeyerSettings * cw_keyer
QString * getReverseApiAddress()
void setValue(void *value, QJsonValue obj, QString type, QString complexType)
void setUseReverseApi(qint32 use_reverse_api)
void setCtcssOn(qint32 ctcss_on)
void setRfBandwidth(float rf_bandwidth)
qint32 getUseReverseApi()
qint32 reverse_api_channel_index
virtual bool isSet() override
virtual QJsonObject * asJsonObject() override
bool m_audio_device_name_isSet
QString * reverse_api_address
qint32 getReverseApiPort()
virtual bool isSet() override
void setAudioDeviceName(QString *audio_device_name)
void setPlayLoop(qint32 play_loop)
void setModAfInput(qint32 mod_af_input)
QString * audio_device_name
void setAfBandwidth(float af_bandwidth)
bool m_rf_bandwidth_isSet
qint32 getReverseApiChannelIndex()
qint32 getReverseApiDeviceIndex()
virtual QString asJson() override