18 #include <QJsonDocument> 75 title =
new QString(
"");
99 if(
title !=
nullptr) {
113 QByteArray array (json.toStdString().c_str());
114 QJsonDocument doc = QJsonDocument::fromJson(array);
115 QJsonObject jsonObject = doc.object();
153 QJsonDocument doc(*obj);
154 QByteArray bytes = doc.toJson();
156 return QString(bytes);
161 QJsonObject* obj =
new QJsonObject();
166 obj->insert(
"loop", QJsonValue(
loop));
169 obj->insert(
"log2Interp", QJsonValue(
log2_interp));
175 obj->insert(
"gainDB", QJsonValue(
gain_db));
178 obj->insert(
"rgbColor", QJsonValue(
rgb_color));
180 if(
title !=
nullptr && *
title != QString(
"")){
325 bool isObjectUpdated =
false;
327 if(
file_name !=
nullptr && *
file_name != QString(
"")){ isObjectUpdated =
true;
break;}
333 if(
title !=
nullptr && *
title != QString(
"")){ isObjectUpdated =
true;
break;}
340 return isObjectUpdated;
bool m_use_reverse_api_isSet
virtual bool isSet() override
void toJsonValue(QString name, void *value, QJsonObject *output, QString type)
void setFileName(QString *file_name)
virtual QJsonObject * asJsonObject() override
qint32 getReverseApiChannelIndex()
bool m_reverse_api_address_isSet
bool m_reverse_api_port_isSet
void setLog2Interp(qint32 log2_interp)
bool m_reverse_api_channel_index_isSet
QString * reverse_api_address
bool m_reverse_api_device_index_isSet
qint32 getReverseApiPort()
void setFilterChainHash(qint32 filter_chain_hash)
qint32 getUseReverseApi()
qint32 reverse_api_device_index
void setReverseApiPort(qint32 reverse_api_port)
virtual SWGFileSourceSettings * fromJson(QString &jsonString) override
virtual ~SWGFileSourceSettings()
void setRgbColor(qint32 rgb_color)
void setGainDb(qint32 gain_db)
bool m_filter_chain_hash_isSet
void setReverseApiAddress(QString *reverse_api_address)
QString * getReverseApiAddress()
void setValue(void *value, QJsonValue obj, QString type, QString complexType)
void setLoop(qint32 loop)
void setUseReverseApi(qint32 use_reverse_api)
qint32 getReverseApiDeviceIndex()
qint32 getFilterChainHash()
void setReverseApiDeviceIndex(qint32 reverse_api_device_index)
virtual void fromJsonObject(QJsonObject &json) override
qint32 reverse_api_channel_index
void setReverseApiChannelIndex(qint32 reverse_api_channel_index)
virtual QString asJson() override
void setTitle(QString *title)