18 #include <QJsonDocument> 63 title =
new QString(
"");
85 if(
title !=
nullptr) {
101 QByteArray array (json.toStdString().c_str());
102 QJsonDocument doc = QJsonDocument::fromJson(array);
103 QJsonObject jsonObject = doc.object();
137 QJsonDocument doc(*obj);
138 QByteArray bytes = doc.toJson();
140 return QString(bytes);
145 QJsonObject* obj =
new QJsonObject();
150 obj->insert(
"rgbColor", QJsonValue(
rgb_color));
152 if(
title !=
nullptr && *
title != QString(
"")){
156 obj->insert(
"log2Interp", QJsonValue(
log2_interp));
283 bool isObjectUpdated =
false;
287 if(
title !=
nullptr && *
title != QString(
"")){ isObjectUpdated =
true;
break;}
296 return isObjectUpdated;
qint32 getUseReverseApi()
void setLog2Interp(qint32 log2_interp)
void setReverseApiChannelIndex(qint32 reverse_api_channel_index)
void setRgbColor(qint32 rgb_color)
virtual SWGLocalSourceSettings * fromJson(QString &jsonString) override
void toJsonValue(QString name, void *value, QJsonObject *output, QString type)
void setTitle(QString *title)
bool m_filter_chain_hash_isSet
qint32 getFilterChainHash()
void setLocalDeviceIndex(qint32 local_device_index)
void setUseReverseApi(qint32 use_reverse_api)
virtual bool isSet() override
virtual ~SWGLocalSourceSettings()
qint32 reverse_api_channel_index
QString * reverse_api_address
bool m_use_reverse_api_isSet
qint32 getReverseApiPort()
void setReverseApiDeviceIndex(qint32 reverse_api_device_index)
qint32 getReverseApiDeviceIndex()
void setReverseApiPort(qint32 reverse_api_port)
virtual QString asJson() override
qint32 local_device_index
qint32 getReverseApiChannelIndex()
bool m_reverse_api_port_isSet
virtual void fromJsonObject(QJsonObject &json) override
bool m_reverse_api_device_index_isSet
void setValue(void *value, QJsonValue obj, QString type, QString complexType)
QString * getReverseApiAddress()
qint32 getLocalDeviceIndex()
void setReverseApiAddress(QString *reverse_api_address)
void setFilterChainHash(qint32 filter_chain_hash)
qint32 reverse_api_device_index
bool m_local_device_index_isSet
virtual QJsonObject * asJsonObject() override
bool m_reverse_api_channel_index_isSet
bool m_reverse_api_address_isSet