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