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