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.
SWGDeviceListItem.h
Go to the documentation of this file.
1 
13 /*
14  * SWGDeviceListItem.h
15  *
16  * Summarized information about attached hardware device
17  */
18 
19 #ifndef SWGDeviceListItem_H_
20 #define SWGDeviceListItem_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  SWGDeviceListItem(QString* json);
36  virtual ~SWGDeviceListItem();
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 SWGDeviceListItem* fromJson(QString &jsonString) override;
44 
45  QString* getDisplayedName();
46  void setDisplayedName(QString* displayed_name);
47 
48  QString* getHwType();
49  void setHwType(QString* hw_type);
50 
51  QString* getSerial();
52  void setSerial(QString* serial);
53 
54  qint32 getSequence();
55  void setSequence(qint32 sequence);
56 
57  qint32 getDirection();
58  void setDirection(qint32 direction);
59 
60  qint32 getDeviceNbStreams();
61  void setDeviceNbStreams(qint32 device_nb_streams);
62 
63  qint32 getDeviceStreamIndex();
64  void setDeviceStreamIndex(qint32 device_stream_index);
65 
66  qint32 getDeviceSetIndex();
67  void setDeviceSetIndex(qint32 device_set_index);
68 
69  qint32 getIndex();
70  void setIndex(qint32 index);
71 
72 
73  virtual bool isSet() override;
74 
75 private:
76  QString* displayed_name;
78 
79  QString* hw_type;
81 
82  QString* serial;
84 
85  qint32 sequence;
87 
88  qint32 direction;
90 
93 
96 
99 
100  qint32 index;
102 
103 };
104 
105 }
106 
107 #endif /* SWGDeviceListItem_H_ */
#define SWG_API
Definition: export.h:124