18 #include <QJsonDocument> 69 QByteArray array (json.toStdString().c_str());
70 QJsonDocument doc = QJsonDocument::fromJson(array);
71 QJsonObject jsonObject = doc.object();
93 QJsonDocument doc(*obj);
94 QByteArray bytes = doc.toJson();
96 return QString(bytes);
101 QJsonObject* obj =
new QJsonObject();
161 bool isObjectUpdated =
false;
168 return isObjectUpdated;
QString * getReverseApiAddress()
virtual QJsonObject * asJsonObject() override
virtual bool isSet() override
void toJsonValue(QString name, void *value, QJsonObject *output, QString type)
QString * reverse_api_address
virtual ~SWGLocalOutputSettings()
virtual QString asJson() override
qint32 getReverseApiDeviceIndex()
void setReverseApiPort(qint32 reverse_api_port)
void setReverseApiAddress(QString *reverse_api_address)
virtual void fromJsonObject(QJsonObject &json) override
virtual SWGLocalOutputSettings * fromJson(QString &jsonString) override
qint32 getReverseApiPort()
void setReverseApiDeviceIndex(qint32 reverse_api_device_index)
bool m_use_reverse_api_isSet
qint32 reverse_api_device_index
bool m_reverse_api_address_isSet
void setValue(void *value, QJsonValue obj, QString type, QString complexType)
void setUseReverseApi(qint32 use_reverse_api)
bool m_reverse_api_port_isSet
qint32 getUseReverseApi()
bool m_reverse_api_device_index_isSet