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(
"log2Decim", QJsonValue(
log2_decim));
283 bool isObjectUpdated =
false;
287 if(
title !=
nullptr && *
title != QString(
"")){ isObjectUpdated =
true;
break;}
296 return isObjectUpdated;
bool m_reverse_api_device_index_isSet
bool m_use_reverse_api_isSet
void setReverseApiChannelIndex(qint32 reverse_api_channel_index)
void toJsonValue(QString name, void *value, QJsonObject *output, QString type)
void setLocalDeviceIndex(qint32 local_device_index)
qint32 getReverseApiChannelIndex()
qint32 local_device_index
virtual bool isSet() override
virtual void fromJsonObject(QJsonObject &json) override
void setReverseApiDeviceIndex(qint32 reverse_api_device_index)
qint32 reverse_api_device_index
QString * getReverseApiAddress()
void setReverseApiAddress(QString *reverse_api_address)
qint32 getFilterChainHash()
bool m_reverse_api_channel_index_isSet
virtual QJsonObject * asJsonObject() override
qint32 reverse_api_channel_index
void setLog2Decim(qint32 log2_decim)
bool m_local_device_index_isSet
void setRgbColor(qint32 rgb_color)
qint32 getReverseApiDeviceIndex()
void setUseReverseApi(qint32 use_reverse_api)
qint32 getLocalDeviceIndex()
bool m_reverse_api_port_isSet
void setValue(void *value, QJsonValue obj, QString type, QString complexType)
bool m_filter_chain_hash_isSet
bool m_reverse_api_address_isSet
QString * reverse_api_address
qint32 getUseReverseApi()
virtual SWGLocalSinkSettings * fromJson(QString &jsonString) override
virtual QString asJson() override
qint32 getReverseApiPort()
void setReverseApiPort(qint32 reverse_api_port)
void setTitle(QString *title)
virtual ~SWGLocalSinkSettings()
void setFilterChainHash(qint32 filter_chain_hash)