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