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.
SWGLoggingInfo.h
Go to the documentation of this file.
1 
13 /*
14  * SWGLoggingInfo.h
15  *
16  * Logging parameters setting
17  */
18 
19 #ifndef SWGLoggingInfo_H_
20 #define SWGLoggingInfo_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  SWGLoggingInfo(QString* json);
36  virtual ~SWGLoggingInfo();
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 SWGLoggingInfo* fromJson(QString &jsonString) override;
44 
45  QString* getConsoleLevel();
46  void setConsoleLevel(QString* console_level);
47 
48  QString* getFileLevel();
49  void setFileLevel(QString* file_level);
50 
51  qint32 getDumpToFile();
52  void setDumpToFile(qint32 dump_to_file);
53 
54  QString* getFileName();
55  void setFileName(QString* file_name);
56 
57 
58  virtual bool isSet() override;
59 
60 private:
61  QString* console_level;
63 
64  QString* file_level;
66 
67  qint32 dump_to_file;
69 
70  QString* file_name;
72 
73 };
74 
75 }
76 
77 #endif /* SWGLoggingInfo_H_ */
#define SWG_API
Definition: export.h:124