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.
SWGPreferences.h
Go to the documentation of this file.
1 
13 /*
14  * SWGPreferences.h
15  *
16  * Repreents a Prefernce object
17  */
18 
19 #ifndef SWGPreferences_H_
20 #define SWGPreferences_H_
21 
22 #include <QJsonObject>
23 
24 
25 #include <QString>
26 
27 #include "SWGObject.h"
28 #include "export.h"
29 
30 namespace SWGSDRangel {
31 
33 public:
35  SWGPreferences(QString* json);
36  virtual ~SWGPreferences();
37  void init();
38  void cleanup();
39 
40  virtual QString asJson () override;
41  virtual QJsonObject* asJsonObject() override;
42  virtual void fromJsonObject(QJsonObject &json) override;
43  virtual SWGPreferences* fromJson(QString &jsonString) override;
44 
45  QString* getSourceType();
46  void setSourceType(QString* source_type);
47 
48  QString* getSourceDevice();
49  void setSourceDevice(QString* source_device);
50 
51  QString* getAudioType();
52  void setAudioType(QString* audio_type);
53 
54  QString* getAudioDevice();
55  void setAudioDevice(QString* audio_device);
56 
57  qint32 getSourceIndex();
58  void setSourceIndex(qint32 source_index);
59 
60  float getLatitude();
61  void setLatitude(float latitude);
62 
63  float getLongitude();
64  void setLongitude(float longitude);
65 
66  qint32 getConsoleMinLogLevel();
67  void setConsoleMinLogLevel(qint32 console_min_log_level);
68 
69  qint32 getUseLogFile();
70  void setUseLogFile(qint32 use_log_file);
71 
72  QString* getLogFileName();
73  void setLogFileName(QString* log_file_name);
74 
75  qint32 getFileMinLogLevel();
76  void setFileMinLogLevel(qint32 file_min_log_level);
77 
78 
79  virtual bool isSet() override;
80 
81 private:
82  QString* source_type;
84 
85  QString* source_device;
87 
88  QString* audio_type;
90 
91  QString* audio_device;
93 
94  qint32 source_index;
96 
97  float latitude;
99 
100  float longitude;
102 
105 
106  qint32 use_log_file;
108 
109  QString* log_file_name;
111 
114 
115 };
116 
117 }
118 
119 #endif /* SWGPreferences_H_ */
#define SWG_API
Definition: export.h:124