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.
SWGPresetIdentifier.h
Go to the documentation of this file.
1 
13 /*
14  * SWGPresetIdentifier.h
15  *
16  * Settings preset item
17  */
18 
19 #ifndef SWGPresetIdentifier_H_
20 #define SWGPresetIdentifier_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  SWGPresetIdentifier(QString* json);
36  virtual ~SWGPresetIdentifier();
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 SWGPresetIdentifier* fromJson(QString &jsonString) override;
44 
45  QString* getGroupName();
46  void setGroupName(QString* group_name);
47 
48  qint64 getCenterFrequency();
49  void setCenterFrequency(qint64 center_frequency);
50 
51  QString* getType();
52  void setType(QString* type);
53 
54  QString* getName();
55  void setName(QString* name);
56 
57 
58  virtual bool isSet() override;
59 
60 private:
61  QString* group_name;
63 
66 
67  QString* type;
69 
70  QString* name;
72 
73 };
74 
75 }
76 
77 #endif /* SWGPresetIdentifier_H_ */
#define SWG_API
Definition: export.h:124