18 #include <QJsonDocument> 123 QByteArray array (json.toStdString().c_str());
124 QJsonDocument doc = QJsonDocument::fromJson(array);
125 QJsonObject jsonObject = doc.object();
167 QJsonDocument doc(*obj);
168 QByteArray bytes = doc.toJson();
170 return QString(bytes);
175 QJsonObject* obj =
new QJsonObject();
180 obj->insert(
"sampleRate", QJsonValue(
sample_rate));
183 obj->insert(
"txDelay", QJsonValue(
tx_delay));
192 obj->insert(
"apiPort", QJsonValue(
api_port));
198 obj->insert(
"dataPort", QJsonValue(
data_port));
365 bool isObjectUpdated =
false;
382 return isObjectUpdated;
void setReverseApiPort(qint32 reverse_api_port)
qint32 getReverseApiDeviceIndex()
void toJsonValue(QString name, void *value, QJsonObject *output, QString type)
bool m_reverse_api_port_isSet
QString * getDataAddress()
void setSampleRate(qint32 sample_rate)
void setCenterFrequency(qint32 center_frequency)
bool m_device_index_isSet
void setReverseApiDeviceIndex(qint32 reverse_api_device_index)
void setApiPort(qint32 api_port)
QString * reverse_api_address
void setDeviceIndex(qint32 device_index)
void setReverseApiAddress(QString *reverse_api_address)
bool m_reverse_api_address_isSet
qint32 reverse_api_device_index
void setApiAddress(QString *api_address)
bool m_center_frequency_isSet
void setChannelIndex(qint32 channel_index)
virtual QString asJson() override
QString * getReverseApiAddress()
void setTxDelay(float tx_delay)
void setValue(void *value, QJsonValue obj, QString type, QString complexType)
qint32 getUseReverseApi()
bool m_reverse_api_device_index_isSet
virtual ~SWGRemoteOutputSettings()
virtual bool isSet() override
bool m_nb_fec_blocks_isSet
qint32 getReverseApiPort()
void setNbFecBlocks(qint32 nb_fec_blocks)
virtual void fromJsonObject(QJsonObject &json) override
bool m_data_address_isSet
virtual QJsonObject * asJsonObject() override
SWGRemoteOutputSettings()
void setUseReverseApi(qint32 use_reverse_api)
bool m_channel_index_isSet
virtual SWGRemoteOutputSettings * fromJson(QString &jsonString) override
bool m_use_reverse_api_isSet
QString * getApiAddress()
void setDataPort(qint32 data_port)
void setDataAddress(QString *data_address)
qint32 getCenterFrequency()