18 #include <QJsonDocument> 135 title =
new QString(
"");
177 if(
title !=
nullptr) {
197 QByteArray array (json.toStdString().c_str());
198 QJsonDocument doc = QJsonDocument::fromJson(array);
199 QJsonObject jsonObject = doc.object();
269 QJsonDocument doc(*obj);
270 QByteArray bytes = doc.toJson();
272 return QString(bytes);
277 QJsonObject* obj =
new QJsonObject();
288 obj->insert(
"atvStd", QJsonValue(
atv_std));
291 obj->insert(
"nbLines", QJsonValue(
nb_lines));
294 obj->insert(
"fps", QJsonValue(
fps));
309 obj->insert(
"videoPlay", QJsonValue(
video_play));
312 obj->insert(
"cameraPlay", QJsonValue(
camera_play));
336 obj->insert(
"rgbColor", QJsonValue(
rgb_color));
338 if(
title !=
nullptr && *
title != QString(
"")){
649 bool isObjectUpdated =
false;
671 if(
title !=
nullptr && *
title != QString(
"")){ isObjectUpdated =
true;
break;}
680 return isObjectUpdated;
qint64 input_frequency_offset
QString * image_file_name
QString * getImageFileName()
void setUseReverseApi(qint32 use_reverse_api)
void setInvertedVideo(qint32 inverted_video)
void setCameraPlay(qint32 camera_play)
bool m_image_file_name_isSet
bool m_use_reverse_api_isSet
void toJsonValue(QString name, void *value, QJsonObject *output, QString type)
qint32 getUseReverseApi()
float getRfScalingFactor()
qint32 getAtvModulation()
bool m_overlay_text_isSet
void setAtvModInput(qint32 atv_mod_input)
void setOverlayText(QString *overlay_text)
void setTitle(QString *title)
bool m_reverse_api_channel_index_isSet
void setReverseApiAddress(QString *reverse_api_address)
void setFmExcursion(float fm_excursion)
QString * getVideoFileName()
void setUniformLevel(float uniform_level)
void setVideoPlay(qint32 video_play)
void setReverseApiChannelIndex(qint32 reverse_api_channel_index)
void setShowOverlayText(qint32 show_overlay_text)
void setForceDecimator(qint32 force_decimator)
virtual void fromJsonObject(QJsonObject &json) override
void setVideoFileName(QString *video_file_name)
bool m_inverted_video_isSet
void setRfOppBandwidth(float rf_opp_bandwidth)
qint64 getInputFrequencyOffset()
void setRfBandwidth(float rf_bandwidth)
bool m_atv_modulation_isSet
bool m_video_play_loop_isSet
qint32 reverse_api_device_index
void setAtvStd(qint32 atv_std)
void setNbLines(qint32 nb_lines)
bool m_reverse_api_port_isSet
bool m_uniform_level_isSet
qint32 reverse_api_channel_index
void setImageFileName(QString *image_file_name)
void setVideoPlayLoop(qint32 video_play_loop)
qint32 getReverseApiChannelIndex()
void setRgbColor(qint32 rgb_color)
qint32 getInvertedVideo()
virtual QString asJson() override
bool m_reverse_api_address_isSet
bool m_channel_mute_isSet
void setInputFrequencyOffset(qint64 input_frequency_offset)
bool m_show_overlay_text_isSet
QString * reverse_api_address
void setChannelMute(qint32 channel_mute)
void setAtvModulation(qint32 atv_modulation)
void setValue(void *value, QJsonValue obj, QString type, QString complexType)
virtual ~SWGATVModSettings()
qint32 getVideoPlayLoop()
float getRfOppBandwidth()
bool m_input_frequency_offset_isSet
bool m_force_decimator_isSet
void setRfScalingFactor(float rf_scaling_factor)
bool m_atv_mod_input_isSet
virtual QJsonObject * asJsonObject() override
QString * getReverseApiAddress()
qint32 getForceDecimator()
bool m_rf_opp_bandwidth_isSet
void setReverseApiPort(qint32 reverse_api_port)
void setReverseApiDeviceIndex(qint32 reverse_api_device_index)
QString * getOverlayText()
bool m_rf_bandwidth_isSet
QString * video_file_name
qint32 getReverseApiDeviceIndex()
virtual SWGATVModSettings * fromJson(QString &jsonString) override
qint32 getShowOverlayText()
qint32 getReverseApiPort()
bool m_reverse_api_device_index_isSet
bool m_rf_scaling_factor_isSet
bool m_fm_excursion_isSet
virtual bool isSet() override
bool m_video_file_name_isSet