18 #include <QJsonDocument> 112 QByteArray array (json.toStdString().c_str());
113 QJsonDocument doc = QJsonDocument::fromJson(array);
114 QJsonObject jsonObject = doc.object();
150 QJsonDocument doc(*obj);
151 QByteArray bytes = doc.toJson();
153 return QString(bytes);
158 QJsonObject* obj =
new QJsonObject();
175 obj->insert(
"latitude", QJsonValue(
latitude));
178 obj->insert(
"longitude", QJsonValue(
longitude));
309 bool isObjectUpdated =
false;
323 return isObjectUpdated;
void toJsonValue(QString name, void *value, QJsonObject *output, QString type)
void setLongitude(float longitude)
void setUseLogFile(qint32 use_log_file)
QString * getAudioDevice()
void setFileMinLogLevel(qint32 file_min_log_level)
void setSourceDevice(QString *source_device)
bool m_file_min_log_level_isSet
QString * getSourceDevice()
bool m_log_file_name_isSet
void setSourceIndex(qint32 source_index)
QString * getLogFileName()
virtual QJsonObject * asJsonObject() override
bool m_console_min_log_level_isSet
void setLogFileName(QString *log_file_name)
bool m_source_index_isSet
void setConsoleMinLogLevel(qint32 console_min_log_level)
bool m_audio_device_isSet
virtual ~SWGPreferences()
void setValue(void *value, QJsonValue obj, QString type, QString complexType)
qint32 console_min_log_level
void setSourceType(QString *source_type)
bool m_use_log_file_isSet
qint32 getConsoleMinLogLevel()
void setAudioDevice(QString *audio_device)
void setLatitude(float latitude)
virtual void fromJsonObject(QJsonObject &json) override
void setAudioType(QString *audio_type)
bool m_source_device_isSet
QString * getSourceType()
qint32 file_min_log_level
qint32 getFileMinLogLevel()
virtual QString asJson() override
virtual SWGPreferences * fromJson(QString &jsonString) override
virtual bool isSet() override