| 
									
										
										
										
											2014-05-18 16:52:39 +01:00
										 |  |  | #ifndef INCLUDE_PREFERENCES_H
 | 
					
						
							|  |  |  | #define INCLUDE_PREFERENCES_H
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | #include <QString>
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-03-20 13:49:21 +01:00
										 |  |  | #include "export.h"
 | 
					
						
							| 
									
										
										
										
											2018-03-03 20:23:38 +01:00
										 |  |  | 
 | 
					
						
							|  |  |  | class SDRBASE_API Preferences { | 
					
						
							| 
									
										
										
										
											2014-05-18 16:52:39 +01:00
										 |  |  | public: | 
					
						
							|  |  |  | 	Preferences(); | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 	void resetToDefaults(); | 
					
						
							|  |  |  | 	QByteArray serialize() const; | 
					
						
							|  |  |  | 	bool deserialize(const QByteArray& data); | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 	void setSourceType(const QString& value) { m_sourceType = value; } | 
					
						
							|  |  |  | 	const QString& getSourceType() const { return m_sourceType; } | 
					
						
							|  |  |  | 	void setSourceDevice(const QString& value) { m_sourceDevice= value; } | 
					
						
							|  |  |  | 	const QString& getSourceDevice() const { return m_sourceDevice; } | 
					
						
							| 
									
										
										
										
											2015-10-02 02:22:56 +02:00
										 |  |  | 	void setSourceIndex(const int value) { m_sourceIndex = value; } | 
					
						
							|  |  |  | 	int getSourceIndex() const { return m_sourceIndex; } | 
					
						
							| 
									
										
										
										
											2014-05-18 16:52:39 +01:00
										 |  |  | 
 | 
					
						
							|  |  |  | 	void setAudioType(const QString& value) { m_audioType = value; } | 
					
						
							|  |  |  | 	const QString& getAudioType() const { return m_audioType; } | 
					
						
							|  |  |  | 	void setAudioDevice(const QString& value) { m_audioDevice= value; } | 
					
						
							|  |  |  | 	const QString& getAudioDevice() const { return m_audioDevice; } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2016-09-28 13:38:38 +02:00
										 |  |  | 	void setLatitude(float latitude) { m_latitude = latitude; } | 
					
						
							|  |  |  | 	void setLongitude(float longitude) { m_longitude = longitude; } | 
					
						
							|  |  |  | 	float getLatitude() const { return m_latitude; } | 
					
						
							|  |  |  | 	float getLongitude() const { return m_longitude; } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-11-12 02:23:55 +01:00
										 |  |  | 	void setConsoleMinLogLevel(const QtMsgType& minLogLevel) { m_consoleMinLogLevel = minLogLevel; } | 
					
						
							|  |  |  |     void setFileMinLogLevel(const QtMsgType& minLogLevel) { m_fileMinLogLevel = minLogLevel; } | 
					
						
							| 
									
										
										
										
											2017-11-11 19:26:23 +01:00
										 |  |  | 	void setUseLogFile(bool useLogFile) { m_useLogFile = useLogFile; } | 
					
						
							|  |  |  | 	void setLogFileName(const QString& value) { m_logFileName = value; } | 
					
						
							| 
									
										
										
										
											2017-11-12 02:23:55 +01:00
										 |  |  | 	QtMsgType getConsoleMinLogLevel() const { return m_consoleMinLogLevel; } | 
					
						
							|  |  |  |     QtMsgType getFileMinLogLevel() const { return m_fileMinLogLevel; } | 
					
						
							| 
									
										
										
										
											2017-11-11 19:26:23 +01:00
										 |  |  | 	bool getUseLogFile() const { return m_useLogFile; } | 
					
						
							|  |  |  | 	const QString& getLogFileName() const { return m_logFileName; } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2014-05-18 16:52:39 +01:00
										 |  |  | protected: | 
					
						
							|  |  |  | 	QString m_sourceType; | 
					
						
							|  |  |  | 	QString m_sourceDevice; | 
					
						
							| 
									
										
										
										
											2015-10-02 02:22:56 +02:00
										 |  |  | 	int m_sourceIndex; | 
					
						
							| 
									
										
										
										
											2014-05-18 16:52:39 +01:00
										 |  |  | 
 | 
					
						
							|  |  |  | 	QString m_audioType; | 
					
						
							|  |  |  | 	QString m_audioDevice; | 
					
						
							| 
									
										
										
										
											2016-09-28 13:38:38 +02:00
										 |  |  | 
 | 
					
						
							|  |  |  | 	float m_latitude; | 
					
						
							|  |  |  | 	float m_longitude; | 
					
						
							| 
									
										
										
										
											2017-11-11 19:26:23 +01:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-11-12 02:23:55 +01:00
										 |  |  | 	QtMsgType m_consoleMinLogLevel; | 
					
						
							|  |  |  |     QtMsgType m_fileMinLogLevel; | 
					
						
							| 
									
										
										
										
											2017-11-11 19:26:23 +01:00
										 |  |  | 	bool m_useLogFile; | 
					
						
							|  |  |  | 	QString m_logFileName; | 
					
						
							| 
									
										
										
										
											2014-05-18 16:52:39 +01:00
										 |  |  | }; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | #endif // INCLUDE_PREFERENCES_H
 |