18 #include <QJsonDocument> 67 QByteArray array (json.toStdString().c_str());
68 QJsonDocument doc = QJsonDocument::fromJson(array);
69 QJsonObject jsonObject = doc.object();
91 QJsonDocument doc(*obj);
92 QByteArray bytes = doc.toJson();
94 return QString(bytes);
99 QJsonObject* obj =
new QJsonObject();
107 obj->insert(
"squelch", QJsonValue(
squelch));
159 bool isObjectUpdated =
false;
166 return isObjectUpdated;
bool m_output_power_db_isSet
virtual QString asJson() override
virtual QJsonObject * asJsonObject() override
virtual void fromJsonObject(QJsonObject &json) override
virtual ~SWGUDPSinkReport()
qint32 getInputSampleRate()
bool m_channel_power_db_isSet
virtual bool isSet() override
virtual SWGUDPSinkReport * fromJson(QString &jsonString) override
void setInputSampleRate(qint32 input_sample_rate)
void setOutputPowerDb(float output_power_db)
void setSquelch(qint32 squelch)
void setChannelPowerDb(float channel_power_db)
void setValue(void *value, QJsonValue obj, QString type, QString complexType)
float getChannelPowerDb()
bool m_input_sample_rate_isSet