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.
SWGPresetGroup.h
Go to the documentation of this file.
1 
13 /*
14  * SWGPresetGroup.h
15  *
16  * Group of presets
17  */
18 
19 #ifndef SWGPresetGroup_H_
20 #define SWGPresetGroup_H_
21 
22 #include <QJsonObject>
23 
24 
25 #include "SWGPresetItem.h"
26 #include <QList>
27 #include <QString>
28 
29 #include "SWGObject.h"
30 #include "export.h"
31 
32 namespace SWGSDRangel {
33 
35 public:
37  SWGPresetGroup(QString* json);
38  virtual ~SWGPresetGroup();
39  void init();
40  void cleanup();
41 
42  virtual QString asJson () override;
43  virtual QJsonObject* asJsonObject() override;
44  virtual void fromJsonObject(QJsonObject &json) override;
45  virtual SWGPresetGroup* fromJson(QString &jsonString) override;
46 
47  QString* getGroupName();
48  void setGroupName(QString* group_name);
49 
50  qint32 getNbPresets();
51  void setNbPresets(qint32 nb_presets);
52 
53  QList<SWGPresetItem*>* getPresets();
54  void setPresets(QList<SWGPresetItem*>* presets);
55 
56 
57  virtual bool isSet() override;
58 
59 private:
60  QString* group_name;
62 
63  qint32 nb_presets;
65 
66  QList<SWGPresetItem*>* presets;
68 
69 };
70 
71 }
72 
73 #endif /* SWGPresetGroup_H_ */
QList< SWGPresetItem * > * presets
#define SWG_API
Definition: export.h:124