19 #ifndef SWGPreferences_H_ 20 #define SWGPreferences_H_ 22 #include <QJsonObject> 40 virtual QString asJson ()
override;
41 virtual QJsonObject* asJsonObject()
override;
42 virtual void fromJsonObject(QJsonObject &json)
override;
45 QString* getSourceType();
46 void setSourceType(QString* source_type);
48 QString* getSourceDevice();
49 void setSourceDevice(QString* source_device);
51 QString* getAudioType();
52 void setAudioType(QString* audio_type);
54 QString* getAudioDevice();
55 void setAudioDevice(QString* audio_device);
57 qint32 getSourceIndex();
58 void setSourceIndex(qint32 source_index);
61 void setLatitude(
float latitude);
64 void setLongitude(
float longitude);
66 qint32 getConsoleMinLogLevel();
67 void setConsoleMinLogLevel(qint32 console_min_log_level);
69 qint32 getUseLogFile();
70 void setUseLogFile(qint32 use_log_file);
72 QString* getLogFileName();
73 void setLogFileName(QString* log_file_name);
75 qint32 getFileMinLogLevel();
76 void setFileMinLogLevel(qint32 file_min_log_level);
79 virtual bool isSet()
override;
bool m_file_min_log_level_isSet
bool m_log_file_name_isSet
bool m_console_min_log_level_isSet
bool m_source_index_isSet
bool m_audio_device_isSet
qint32 console_min_log_level
bool m_use_log_file_isSet
bool m_source_device_isSet
qint32 file_min_log_level