18 #include <QJsonDocument> 93 title =
new QString(
"");
124 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();
228 obj->insert(
"playLoop", QJsonValue(
play_loop));
231 obj->insert(
"rgbColor", QJsonValue(
rgb_color));
233 if(
title !=
nullptr && *
title != QString(
"")){
447 bool isObjectUpdated =
false;
458 if(
title !=
nullptr && *
title != QString(
"")){ isObjectUpdated =
true;
break;}
468 return isObjectUpdated;
bool m_rf_bandwidth_isSet
virtual bool isSet() override
qint32 getReverseApiDeviceIndex()
bool m_volume_factor_isSet
bool m_input_frequency_offset_isSet
bool m_mod_af_input_isSet
virtual QString asJson() override
bool m_tone_frequency_isSet
void toJsonValue(QString name, void *value, QJsonObject *output, QString type)
QString * getAudioDeviceName()
bool m_channel_mute_isSet
bool m_reverse_api_device_index_isSet
QString * getReverseApiAddress()
void setRfBandwidth(float rf_bandwidth)
qint32 getReverseApiPort()
qint32 reverse_api_device_index
bool m_reverse_api_channel_index_isSet
QString * audio_device_name
void setChannelMute(qint32 channel_mute)
bool m_reverse_api_port_isSet
void setReverseApiDeviceIndex(qint32 reverse_api_device_index)
void setUseReverseApi(qint32 use_reverse_api)
SWGCWKeyerSettings * getCwKeyer()
void setReverseApiPort(qint32 reverse_api_port)
void setInputFrequencyOffset(qint64 input_frequency_offset)
void setPlayLoop(qint32 play_loop)
virtual void fromJsonObject(QJsonObject &json) override
qint32 reverse_api_channel_index
qint64 input_frequency_offset
void setAudioDeviceName(QString *audio_device_name)
void setCwKeyer(SWGCWKeyerSettings *cw_keyer)
bool m_use_reverse_api_isSet
QString * reverse_api_address
void setReverseApiChannelIndex(qint32 reverse_api_channel_index)
bool m_fm_deviation_isSet
bool m_af_bandwidth_isSet
virtual ~SWGWFMModSettings()
void setValue(void *value, QJsonValue obj, QString type, QString complexType)
void setReverseApiAddress(QString *reverse_api_address)
virtual QJsonObject * asJsonObject() override
qint64 getInputFrequencyOffset()
virtual SWGWFMModSettings * fromJson(QString &jsonString) override
bool m_audio_device_name_isSet
virtual bool isSet() override
bool m_reverse_api_address_isSet
void setFmDeviation(float fm_deviation)
void setAfBandwidth(float af_bandwidth)
qint32 getUseReverseApi()
qint32 getReverseApiChannelIndex()
SWGCWKeyerSettings * cw_keyer
void setToneFrequency(float tone_frequency)
void setModAfInput(qint32 mod_af_input)
void setVolumeFactor(float volume_factor)
void setTitle(QString *title)
void setRgbColor(qint32 rgb_color)