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();
104 obj->insert(
"squelch", QJsonValue(
squelch));
159 bool isObjectUpdated =
false;
166 return isObjectUpdated;
void setChannelSampleRate(qint32 channel_sample_rate)
void setSquelch(qint32 squelch)
float getChannelPowerDb()
bool m_channel_sample_rate_isSet
qint32 getChannelSampleRate()
bool m_channel_power_db_isSet
qint32 channel_sample_rate
virtual ~SWGWFMDemodReport()
virtual void fromJsonObject(QJsonObject &json) override
bool m_audio_sample_rate_isSet
virtual QString asJson() override
qint32 getAudioSampleRate()
virtual SWGWFMDemodReport * fromJson(QString &jsonString) override
void setValue(void *value, QJsonValue obj, QString type, QString complexType)
void setAudioSampleRate(qint32 audio_sample_rate)
virtual QJsonObject * asJsonObject() override
void setChannelPowerDb(float channel_power_db)
virtual bool isSet() override