18 #include <QJsonDocument> 73 pid =
new QString(
"");
87 time =
new QString(
"");
120 if(
time !=
nullptr) {
134 QByteArray array (json.toStdString().c_str());
135 QJsonDocument doc = QJsonDocument::fromJson(array);
136 QJsonObject jsonObject = doc.object();
176 QJsonDocument doc(*obj);
177 QByteArray bytes = doc.toJson();
179 return QString(bytes);
184 QJsonObject* obj =
new QJsonObject();
197 if(
pid !=
nullptr && *
pid != QString(
"")){
218 if(
time !=
nullptr && *
time != QString(
"")){
348 QList<SWGRDSReport_altFrequencies*>*
361 bool isObjectUpdated =
false;
367 if(
pid !=
nullptr && *
pid != QString(
"")){ isObjectUpdated =
true;
break;}
368 if(
pi_type !=
nullptr && *
pi_type != QString(
"")){ isObjectUpdated =
true;
break;}
374 if(
time !=
nullptr && *
time != QString(
"")){ isObjectUpdated =
true;
break;}
377 return isObjectUpdated;
void setAltFrequencies(QList< SWGRDSReport_altFrequencies *> *alt_frequencies)
void setRadioText(QString *radio_text)
QString * getPiCoverage()
virtual void fromJsonObject(QJsonObject &json) override
void setProgServiceName(QString *prog_service_name)
void toJsonValue(QString name, void *value, QJsonObject *output, QString type)
bool m_decod_status_isSet
QList< SWGRDSReport_altFrequencies * > * getAltFrequencies()
QString * prog_service_name
float rds_demod_frequency
QString * getMonoStereo()
float getRdsDemodFrequency()
void setDemodStatus(qint32 demod_status)
QString * getProgServiceName()
virtual QString asJson() override
float getRdsDemodAccumDb()
void setRdsDemodFrequency(float rds_demod_frequency)
bool m_rds_demod_accum_db_isSet
virtual QJsonObject * asJsonObject() override
bool m_prog_service_name_isSet
void setDecodStatus(qint32 decod_status)
void setRdsDemodAccumDb(float rds_demod_accum_db)
bool m_demod_status_isSet
bool m_rds_demod_frequency_isSet
virtual SWGRDSReport * fromJson(QString &jsonString) override
void setValue(void *value, QJsonValue obj, QString type, QString complexType)
void toJsonArray(QList< void *> *value, QJsonObject *output, QString innerName, QString innerType)
virtual bool isSet() override
bool m_alt_frequencies_isSet
void setMonoStereo(QString *mono_stereo)
void setPiCoverage(QString *pi_coverage)
QString * getMusicSpeech()
bool m_music_speech_isSet
void setPiType(QString *pi_type)
void setTime(QString *time)
void setPid(QString *pid)
QList< SWGRDSReport_altFrequencies * > * alt_frequencies
void setMusicSpeech(QString *music_speech)