18 #include <QJsonDocument> 63 name =
new QString(
"");
111 QByteArray array (json.toStdString().c_str());
112 QJsonDocument doc = QJsonDocument::fromJson(array);
113 QJsonObject jsonObject = doc.object();
151 QJsonDocument doc(*obj);
152 QByteArray bytes = doc.toJson();
154 return QString(bytes);
159 QJsonObject* obj =
new QJsonObject();
160 if(
name !=
nullptr && *
name != QString(
"")){
164 obj->insert(
"index", QJsonValue(
index));
167 obj->insert(
"sampleRate", QJsonValue(
sample_rate));
194 obj->insert(
"udpPort", QJsonValue(
udp_port));
323 bool isObjectUpdated =
false;
325 if(
name !=
nullptr && *
name != QString(
"")){ isObjectUpdated =
true;
break;}
338 return isObjectUpdated;
virtual ~SWGAudioOutputDevice()
qint32 default_unregistered
virtual void fromJsonObject(QJsonObject &json) override
void toJsonValue(QString name, void *value, QJsonObject *output, QString type)
bool m_udp_channel_mode_isSet
bool m_udp_uses_rtp_isSet
void setUdpPort(qint32 udp_port)
bool m_udp_decimation_factor_isSet
bool m_default_unregistered_isSet
qint32 getDefaultUnregistered()
void setIsSystemDefault(qint32 is_system_default)
void setUdpAddress(QString *udp_address)
bool m_udp_channel_codec_isSet
void setSampleRate(qint32 sample_rate)
void setName(QString *name)
QString * getUdpAddress()
void setUdpDecimationFactor(qint32 udp_decimation_factor)
void setIndex(qint32 index)
bool m_is_system_default_isSet
virtual SWGAudioOutputDevice * fromJson(QString &jsonString) override
void setUdpChannelCodec(qint32 udp_channel_codec)
qint32 getUdpChannelCodec()
qint32 getUdpDecimationFactor()
void setValue(void *value, QJsonValue obj, QString type, QString complexType)
void setDefaultUnregistered(qint32 default_unregistered)
qint32 getUdpChannelMode()
virtual QString asJson() override
qint32 udp_decimation_factor
void setUdpUsesRtp(qint32 udp_uses_rtp)
qint32 getIsSystemDefault()
virtual QJsonObject * asJsonObject() override
virtual bool isSet() override
void setCopyToUdp(qint32 copy_to_udp)
void setUdpChannelMode(qint32 udp_channel_mode)