18 #include <QJsonDocument> 63 title =
new QString(
"");
84 if(
title !=
nullptr) {
98 QByteArray array (json.toStdString().c_str());
99 QJsonDocument doc = QJsonDocument::fromJson(array);
100 QJsonObject jsonObject = doc.object();
132 QJsonDocument doc(*obj);
133 QByteArray bytes = doc.toJson();
135 return QString(bytes);
140 QJsonObject* obj =
new QJsonObject();
145 obj->insert(
"dataPort", QJsonValue(
data_port));
148 obj->insert(
"rgbColor", QJsonValue(
rgb_color));
150 if(
title !=
nullptr && *
title != QString(
"")){
265 bool isObjectUpdated =
false;
270 if(
title !=
nullptr && *
title != QString(
"")){ isObjectUpdated =
true;
break;}
277 return isObjectUpdated;
virtual void fromJsonObject(QJsonObject &json) override
void setReverseApiPort(qint32 reverse_api_port)
void toJsonValue(QString name, void *value, QJsonObject *output, QString type)
virtual QString asJson() override
void setUseReverseApi(qint32 use_reverse_api)
void setDataPort(qint32 data_port)
virtual QJsonObject * asJsonObject() override
qint32 getReverseApiPort()
qint32 getReverseApiDeviceIndex()
bool m_reverse_api_device_index_isSet
void setReverseApiAddress(QString *reverse_api_address)
QString * getDataAddress()
void setTitle(QString *title)
bool m_use_reverse_api_isSet
QString * getReverseApiAddress()
qint32 getUseReverseApi()
qint32 reverse_api_channel_index
qint32 reverse_api_device_index
void setReverseApiDeviceIndex(qint32 reverse_api_device_index)
bool m_reverse_api_port_isSet
void setValue(void *value, QJsonValue obj, QString type, QString complexType)
bool m_reverse_api_channel_index_isSet
virtual SWGRemoteSourceSettings * fromJson(QString &jsonString) override
bool m_reverse_api_address_isSet
bool m_data_address_isSet
virtual ~SWGRemoteSourceSettings()
void setReverseApiChannelIndex(qint32 reverse_api_channel_index)
void setRgbColor(qint32 rgb_color)
SWGRemoteSourceSettings()
QString * reverse_api_address
void setDataAddress(QString *data_address)
virtual bool isSet() override
qint32 getReverseApiChannelIndex()