18 #include <QJsonDocument> 91 QByteArray array (json.toStdString().c_str());
92 QJsonDocument doc = QJsonDocument::fromJson(array);
93 QJsonObject jsonObject = doc.object();
115 QJsonDocument doc(*obj);
116 QByteArray bytes = doc.toJson();
118 return QString(bytes);
123 QJsonObject* obj =
new QJsonObject();
140 QList<SWGSampleRate*>*
150 QList<SWGBandwidth*>*
160 QList<SWGFrequency*>*
170 QList<SWGFrequencyBand*>*
183 bool isObjectUpdated =
false;
185 if(
sample_rates->size() > 0){ isObjectUpdated =
true;
break;}
186 if(
bandwidths->size() > 0){ isObjectUpdated =
true;
break;}
190 return isObjectUpdated;
void setIntermediateFrequencies(QList< SWGFrequency *> *intermediate_frequencies)
void setBandwidths(QList< SWGBandwidth *> *bandwidths)
QList< SWGSampleRate * > * getSampleRates()
void setFrequencyBands(QList< SWGFrequencyBand *> *frequency_bands)
virtual QJsonObject * asJsonObject() override
virtual SWGSDRPlayReport * fromJson(QString &jsonString) override
virtual bool isSet() override
bool m_frequency_bands_isSet
virtual ~SWGSDRPlayReport()
bool m_sample_rates_isSet
QList< SWGFrequency * > * intermediate_frequencies
bool m_intermediate_frequencies_isSet
QList< SWGBandwidth * > * getBandwidths()
void setValue(void *value, QJsonValue obj, QString type, QString complexType)
void toJsonArray(QList< void *> *value, QJsonObject *output, QString innerName, QString innerType)
QList< SWGSampleRate * > * sample_rates
QList< SWGFrequency * > * getIntermediateFrequencies()
QList< SWGFrequencyBand * > * getFrequencyBands()
QList< SWGBandwidth * > * bandwidths
void setSampleRates(QList< SWGSampleRate *> *sample_rates)
virtual QString asJson() override
virtual void fromJsonObject(QJsonObject &json) override
QList< SWGFrequencyBand * > * frequency_bands