18 #include <QJsonDocument> 79 QByteArray array (json.toStdString().c_str());
80 QJsonDocument doc = QJsonDocument::fromJson(array);
81 QJsonObject jsonObject = doc.object();
103 QJsonDocument doc(*obj);
104 QByteArray bytes = doc.toJson();
106 return QString(bytes);
111 QJsonObject* obj =
new QJsonObject();
138 QList<SWGAudioInputDevice*>*
158 QList<SWGAudioOutputDevice*>*
171 bool isObjectUpdated =
false;
174 if(
input_devices->size() > 0){ isObjectUpdated =
true;
break;}
178 return isObjectUpdated;
qint32 getNbInputDevices()
QList< SWGAudioOutputDevice * > * output_devices
bool m_output_devices_isSet
virtual QString asJson() override
virtual bool isSet() override
bool m_input_devices_isSet
virtual QJsonObject * asJsonObject() override
void setNbOutputDevices(qint32 nb_output_devices)
QList< SWGAudioInputDevice * > * getInputDevices()
QList< SWGAudioInputDevice * > * input_devices
virtual ~SWGAudioDevices()
virtual void fromJsonObject(QJsonObject &json) override
bool m_nb_output_devices_isSet
void setNbInputDevices(qint32 nb_input_devices)
qint32 getNbOutputDevices()
void setValue(void *value, QJsonValue obj, QString type, QString complexType)
void toJsonArray(QList< void *> *value, QJsonObject *output, QString innerName, QString innerType)
QList< SWGAudioOutputDevice * > * getOutputDevices()
bool m_nb_input_devices_isSet
virtual SWGAudioDevices * fromJson(QString &jsonString) override
void setInputDevices(QList< SWGAudioInputDevice *> *input_devices)
void setOutputDevices(QList< SWGAudioOutputDevice *> *output_devices)