18 #include <QJsonDocument> 72 QByteArray array (json.toStdString().c_str());
73 QJsonDocument doc = QJsonDocument::fromJson(array);
74 QJsonObject jsonObject = doc.object();
98 QJsonDocument doc(*obj);
99 QByteArray bytes = doc.toJson();
101 return QString(bytes);
106 QJsonObject* obj =
new QJsonObject();
114 obj->insert(
"squelch", QJsonValue(
squelch));
179 bool isObjectUpdated =
false;
187 return isObjectUpdated;
bool m_input_power_db_isSet
void setChannelSampleRate(qint32 channel_sample_rate)
virtual bool isSet() override
virtual void fromJsonObject(QJsonObject &json) override
virtual ~SWGUDPSourceReport()
float getChannelPowerDb()
qint32 channel_sample_rate
void setBufferGauge(qint32 buffer_gauge)
bool m_channel_sample_rate_isSet
void setInputPowerDb(float input_power_db)
virtual QJsonObject * asJsonObject() override
qint32 getChannelSampleRate()
void setValue(void *value, QJsonValue obj, QString type, QString complexType)
void setSquelch(qint32 squelch)
virtual SWGUDPSourceReport * fromJson(QString &jsonString) override
bool m_channel_power_db_isSet
void setChannelPowerDb(float channel_power_db)
virtual QString asJson() override
bool m_buffer_gauge_isSet