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.
SWGInstanceConfigResponse.h
Go to the documentation of this file.
1 
13 /*
14  * SWGInstanceConfigResponse.h
15  *
16  * Preferences, Presets and Commands of the MainSettings saved by Qt
17  */
18 
19 #ifndef SWGInstanceConfigResponse_H_
20 #define SWGInstanceConfigResponse_H_
21 
22 #include <QJsonObject>
23 
24 
25 #include "SWGCommand.h"
26 #include "SWGPreferences.h"
27 #include "SWGPreset.h"
28 #include <QList>
29 
30 #include "SWGObject.h"
31 #include "export.h"
32 
33 namespace SWGSDRangel {
34 
36 public:
38  SWGInstanceConfigResponse(QString* json);
39  virtual ~SWGInstanceConfigResponse();
40  void init();
41  void cleanup();
42 
43  virtual QString asJson () override;
44  virtual QJsonObject* asJsonObject() override;
45  virtual void fromJsonObject(QJsonObject &json) override;
46  virtual SWGInstanceConfigResponse* fromJson(QString &jsonString) override;
47 
48  SWGPreferences* getPreferences();
49  void setPreferences(SWGPreferences* preferences);
50 
51  SWGPreset* getWorkingPreset();
52  void setWorkingPreset(SWGPreset* working_preset);
53 
54  QList<SWGPreset*>* getPresets();
55  void setPresets(QList<SWGPreset*>* presets);
56 
57  QList<SWGCommand*>* getCommands();
58  void setCommands(QList<SWGCommand*>* commands);
59 
60 
61  virtual bool isSet() override;
62 
63 private:
66 
69 
70  QList<SWGPreset*>* presets;
72 
73  QList<SWGCommand*>* commands;
75 
76 };
77 
78 }
79 
80 #endif /* SWGInstanceConfigResponse_H_ */
#define SWG_API
Definition: export.h:124