SDRAngel  4.11.5
Developer docs for <a href="https://github.com/f4exb/sdrangel">SDRangel<\a>, an Open Source Qt5 / OpenGL 3.0+ SDR and signal analyzer frontend to various hardware.
preferences.h
Go to the documentation of this file.
1 #ifndef INCLUDE_PREFERENCES_H
2 #define INCLUDE_PREFERENCES_H
3 
4 #include <QString>
5 
6 #include "export.h"
7 
9 public:
10  Preferences();
11 
12  void resetToDefaults();
13  QByteArray serialize() const;
14  bool deserialize(const QByteArray& data);
15 
16  void setSourceDevice(const QString& value) { m_sourceDevice= value; }
17  const QString& getSourceDevice() const { return m_sourceDevice; }
18  void setSourceIndex(const int value) { m_sourceIndex = value; }
19  int getSourceIndex() const { return m_sourceIndex; }
20 
21  void setAudioType(const QString& value) { m_audioType = value; }
22  const QString& getAudioType() const { return m_audioType; }
23  void setAudioDevice(const QString& value) { m_audioDevice= value; }
24  const QString& getAudioDevice() const { return m_audioDevice; }
25 
26  void setLatitude(float latitude) { m_latitude = latitude; }
27  void setLongitude(float longitude) { m_longitude = longitude; }
28  float getLatitude() const { return m_latitude; }
29  float getLongitude() const { return m_longitude; }
30 
31  void setConsoleMinLogLevel(const QtMsgType& minLogLevel) { m_consoleMinLogLevel = minLogLevel; }
32  void setFileMinLogLevel(const QtMsgType& minLogLevel) { m_fileMinLogLevel = minLogLevel; }
33  void setUseLogFile(bool useLogFile) { m_useLogFile = useLogFile; }
34  void setLogFileName(const QString& value) { m_logFileName = value; }
35  QtMsgType getConsoleMinLogLevel() const { return m_consoleMinLogLevel; }
36  QtMsgType getFileMinLogLevel() const { return m_fileMinLogLevel; }
37  bool getUseLogFile() const { return m_useLogFile; }
38  const QString& getLogFileName() const { return m_logFileName; }
39 
40  friend class WebAPIAdapterBase;
41 
42 protected:
43  QString m_sourceDevice;
45 
46  QString m_audioType;
47  QString m_audioDevice;
48 
49  float m_latitude;
50  float m_longitude;
51 
53  QtMsgType m_fileMinLogLevel;
55  QString m_logFileName;
56 };
57 
58 #endif // INCLUDE_PREFERENCES_H
void setSourceIndex(const int value)
Definition: preferences.h:18
const QString & getSourceDevice() const
Definition: preferences.h:17
QtMsgType getConsoleMinLogLevel() const
Definition: preferences.h:35
float m_longitude
Definition: preferences.h:50
int getSourceIndex() const
Definition: preferences.h:19
QtMsgType m_consoleMinLogLevel
Definition: preferences.h:52
QtMsgType getFileMinLogLevel() const
Definition: preferences.h:36
bool m_useLogFile
Definition: preferences.h:54
const QString & getLogFileName() const
Definition: preferences.h:38
void setAudioType(const QString &value)
Definition: preferences.h:21
const QString & getAudioDevice() const
Definition: preferences.h:24
int m_sourceIndex
Index of the source used in R0 tab (GUI flavor) at startup.
Definition: preferences.h:44
const QString & getAudioType() const
Definition: preferences.h:22
float getLongitude() const
Definition: preferences.h:29
float getLatitude() const
Definition: preferences.h:28
bool getUseLogFile() const
Definition: preferences.h:37
void setFileMinLogLevel(const QtMsgType &minLogLevel)
Definition: preferences.h:32
QString m_audioType
Definition: preferences.h:46
QString m_sourceDevice
Identification of the source used in R0 tab (GUI flavor) at startup.
Definition: preferences.h:43
void setLongitude(float longitude)
Definition: preferences.h:27
float m_latitude
Definition: preferences.h:49
void setUseLogFile(bool useLogFile)
Definition: preferences.h:33
QString m_audioDevice
Definition: preferences.h:47
void setConsoleMinLogLevel(const QtMsgType &minLogLevel)
Definition: preferences.h:31
QtMsgType m_fileMinLogLevel
Definition: preferences.h:53
QString m_logFileName
Definition: preferences.h:55
#define SDRBASE_API
Definition: export.h:40
void setAudioDevice(const QString &value)
Definition: preferences.h:23
void setLatitude(float latitude)
Definition: preferences.h:26
void setSourceDevice(const QString &value)
Definition: preferences.h:16
void setLogFileName(const QString &value)
Definition: preferences.h:34