18 #include <QJsonDocument> 84 QByteArray array (json.toStdString().c_str());
85 QJsonDocument doc = QJsonDocument::fromJson(array);
86 QJsonObject jsonObject = doc.object();
114 QJsonDocument doc(*obj);
115 QByteArray bytes = doc.toJson();
117 return QString(bytes);
122 QJsonObject* obj =
new QJsonObject();
127 obj->insert(
"squelch", QJsonValue(
squelch));
221 bool isObjectUpdated =
false;
231 return isObjectUpdated;
virtual QString asJson() override
void toJsonValue(QString name, void *value, QJsonObject *output, QString type)
virtual SWGBFMDemodReport * fromJson(QString &jsonString) override
void setChannelSampleRate(qint32 channel_sample_rate)
virtual void fromJsonObject(QJsonObject &json) override
bool m_audio_sample_rate_isSet
qint32 channel_sample_rate
void setSquelch(qint32 squelch)
bool m_channel_power_db_isSet
qint32 getAudioSampleRate()
virtual QJsonObject * asJsonObject() override
void setAudioSampleRate(qint32 audio_sample_rate)
bool m_pilot_power_db_isSet
SWGRDSReport * rds_report
void setPilotPowerDb(float pilot_power_db)
float getChannelPowerDb()
bool m_channel_sample_rate_isSet
void setValue(void *value, QJsonValue obj, QString type, QString complexType)
void setChannelPowerDb(float channel_power_db)
virtual bool isSet() override
void setPilotLocked(qint32 pilot_locked)
virtual bool isSet() override
void setRdsReport(SWGRDSReport *rds_report)
bool m_pilot_locked_isSet
SWGRDSReport * getRdsReport()
virtual ~SWGBFMDemodReport()
qint32 getChannelSampleRate()