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