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.
SWGChannelListItem.h
Go to the documentation of this file.
1 
13 /*
14  * SWGChannelListItem.h
15  *
16  * Summarized information about channel plugin
17  */
18 
19 #ifndef SWGChannelListItem_H_
20 #define SWGChannelListItem_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  SWGChannelListItem(QString* json);
36  virtual ~SWGChannelListItem();
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 SWGChannelListItem* fromJson(QString &jsonString) override;
44 
45  QString* getName();
46  void setName(QString* name);
47 
48  QString* getIdUri();
49  void setIdUri(QString* id_uri);
50 
51  QString* getId();
52  void setId(QString* id);
53 
54  qint32 getDirection();
55  void setDirection(qint32 direction);
56 
57  QString* getVersion();
58  void setVersion(QString* version);
59 
60  qint32 getIndex();
61  void setIndex(qint32 index);
62 
63 
64  virtual bool isSet() override;
65 
66 private:
67  QString* name;
69 
70  QString* id_uri;
72 
73  QString* id;
74  bool m_id_isSet;
75 
76  qint32 direction;
78 
79  QString* version;
81 
82  qint32 index;
84 
85 };
86 
87 }
88 
89 #endif /* SWGChannelListItem_H_ */
#define SWG_API
Definition: export.h:124