18 #include <QJsonDocument> 51 presets =
new QList<SWGPreset*>();
83 QByteArray array (json.toStdString().c_str());
84 QJsonDocument doc = QJsonDocument::fromJson(array);
85 QJsonObject jsonObject = doc.object();
107 QJsonDocument doc(*obj);
108 QByteArray bytes = doc.toJson();
110 return QString(bytes);
115 QJsonObject* obj =
new QJsonObject();
175 bool isObjectUpdated =
false;
179 if(
presets->size() > 0){ isObjectUpdated =
true;
break;}
180 if(
commands->size() > 0){ isObjectUpdated =
true;
break;}
182 return isObjectUpdated;
SWGPreset * working_preset
void setWorkingPreset(SWGPreset *working_preset)
void toJsonValue(QString name, void *value, QJsonObject *output, QString type)
void setPresets(QList< SWGPreset *> *presets)
virtual bool isSet() override
SWGPreferences * getPreferences()
QList< SWGPreset * > * presets
virtual QString asJson() override
void setPreferences(SWGPreferences *preferences)
QList< SWGCommand * > * commands
QList< SWGCommand * > * getCommands()
virtual ~SWGInstanceConfigResponse()
virtual void fromJsonObject(QJsonObject &json) override
QList< SWGPreset * > * getPresets()
virtual QJsonObject * asJsonObject() override
void setCommands(QList< SWGCommand *> *commands)
void setValue(void *value, QJsonValue obj, QString type, QString complexType)
void toJsonArray(QList< void *> *value, QJsonObject *output, QString innerName, QString innerType)
SWGPreferences * preferences
virtual bool isSet() override
SWGPreset * getWorkingPreset()
SWGInstanceConfigResponse()
bool m_working_preset_isSet
virtual SWGInstanceConfigResponse * fromJson(QString &jsonString) override
virtual bool isSet() override