18 #include <QJsonDocument> 112 QByteArray array (json.toStdString().c_str());
113 QJsonDocument doc = QJsonDocument::fromJson(array);
114 QJsonObject jsonObject = doc.object();
154 QJsonDocument doc(*obj);
155 QByteArray bytes = doc.toJson();
157 return QString(bytes);
162 QJsonObject* obj =
new QJsonObject();
167 obj->insert(
"queueSize", QJsonValue(
queue_size));
179 obj->insert(
"tvSec", QJsonValue(
tv_sec));
182 obj->insert(
"tvUSec", QJsonValue(
tv_u_sec));
191 obj->insert(
"centerFreq", QJsonValue(
center_freq));
194 obj->insert(
"sampleRate", QJsonValue(
sample_rate));
339 bool isObjectUpdated =
false;
355 return isObjectUpdated;
void setQueueLength(qint32 queue_length)
void setDeviceCenterFreq(qint32 device_center_freq)
void setSamplesCount(qint32 samples_count)
bool m_nb_fec_blocks_isSet
bool m_samples_count_isSet
void setQueueSize(qint32 queue_size)
void setCorrectableErrorsCount(qint32 correctable_errors_count)
bool m_correctable_errors_count_isSet
qint32 getNbOriginalBlocks()
bool m_nb_original_blocks_isSet
virtual SWGRemoteSourceReport * fromJson(QString &jsonString) override
qint32 device_center_freq
bool m_queue_length_isSet
qint32 uncorrectable_errors_count
bool m_device_center_freq_isSet
void setCenterFreq(qint32 center_freq)
bool m_uncorrectable_errors_count_isSet
qint32 getCorrectableErrorsCount()
virtual bool isSet() override
bool m_device_sample_rate_isSet
virtual ~SWGRemoteSourceReport()
void setUncorrectableErrorsCount(qint32 uncorrectable_errors_count)
qint32 getUncorrectableErrorsCount()
void setTvSec(qint32 tv_sec)
qint32 nb_original_blocks
void setValue(void *value, QJsonValue obj, QString type, QString complexType)
void setNbOriginalBlocks(qint32 nb_original_blocks)
virtual void fromJsonObject(QJsonObject &json) override
qint32 getDeviceSampleRate()
qint32 device_sample_rate
void setNbFecBlocks(qint32 nb_fec_blocks)
virtual QJsonObject * asJsonObject() override
qint32 correctable_errors_count
qint32 getDeviceCenterFreq()
void setDeviceSampleRate(qint32 device_sample_rate)
void setTvUSec(qint32 tv_u_sec)
void setSampleRate(qint32 sample_rate)
virtual QString asJson() override