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