18 #include <QJsonDocument> 75 title =
new QString(
"");
102 if(
title !=
nullptr) {
118 QByteArray array (json.toStdString().c_str());
119 QJsonDocument doc = QJsonDocument::fromJson(array);
120 QJsonObject jsonObject = doc.object();
160 QJsonDocument doc(*obj);
161 QByteArray bytes = doc.toJson();
163 return QString(bytes);
168 QJsonObject* obj =
new QJsonObject();
176 obj->insert(
"dataPort", QJsonValue(
data_port));
179 obj->insert(
"txDelay", QJsonValue(
tx_delay));
182 obj->insert(
"rgbColor", QJsonValue(
rgb_color));
184 if(
title !=
nullptr && *
title != QString(
"")){
188 obj->insert(
"log2Decim", QJsonValue(
log2_decim));
345 bool isObjectUpdated =
false;
352 if(
title !=
nullptr && *
title != QString(
"")){ isObjectUpdated =
true;
break;}
361 return isObjectUpdated;
bool m_data_address_isSet
QString * getReverseApiAddress()
qint32 getReverseApiChannelIndex()
void toJsonValue(QString name, void *value, QJsonObject *output, QString type)
qint32 getReverseApiPort()
qint32 getReverseApiDeviceIndex()
void setNbFecBlocks(qint32 nb_fec_blocks)
bool m_use_reverse_api_isSet
bool m_reverse_api_port_isSet
virtual ~SWGRemoteSinkSettings()
qint32 reverse_api_device_index
QString * reverse_api_address
void setFilterChainHash(qint32 filter_chain_hash)
void setDataAddress(QString *data_address)
bool m_reverse_api_channel_index_isSet
virtual SWGRemoteSinkSettings * fromJson(QString &jsonString) override
virtual QString asJson() override
qint32 getFilterChainHash()
void setDataPort(qint32 data_port)
void setReverseApiPort(qint32 reverse_api_port)
void setLog2Decim(qint32 log2_decim)
void setRgbColor(qint32 rgb_color)
void setValue(void *value, QJsonValue obj, QString type, QString complexType)
virtual bool isSet() override
void setTxDelay(qint32 tx_delay)
qint32 reverse_api_channel_index
void setReverseApiDeviceIndex(qint32 reverse_api_device_index)
bool m_filter_chain_hash_isSet
bool m_nb_fec_blocks_isSet
void setReverseApiChannelIndex(qint32 reverse_api_channel_index)
void setTitle(QString *title)
virtual QJsonObject * asJsonObject() override
QString * getDataAddress()
bool m_reverse_api_device_index_isSet
void setReverseApiAddress(QString *reverse_api_address)
virtual void fromJsonObject(QJsonObject &json) override
qint32 getUseReverseApi()
bool m_reverse_api_address_isSet
void setUseReverseApi(qint32 use_reverse_api)