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.
SWGPresetImport.h
Go to the documentation of this file.
1 
13 /*
14  * SWGPresetImport.h
15  *
16  * Details to import preset from file in preset list
17  */
18 
19 #ifndef SWGPresetImport_H_
20 #define SWGPresetImport_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  SWGPresetImport(QString* json);
36  virtual ~SWGPresetImport();
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 SWGPresetImport* fromJson(QString &jsonString) override;
44 
45  QString* getGroupName();
46  void setGroupName(QString* group_name);
47 
48  QString* getDescription();
49  void setDescription(QString* description);
50 
51  QString* getFilePath();
52  void setFilePath(QString* file_path);
53 
54 
55  virtual bool isSet() override;
56 
57 private:
58  QString* group_name;
60 
61  QString* description;
63 
64  QString* file_path;
66 
67 };
68 
69 }
70 
71 #endif /* SWGPresetImport_H_ */
#define SWG_API
Definition: export.h:124