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.
SWGSamplingDevice.h
Go to the documentation of this file.
1 
13 /*
14  * SWGSamplingDevice.h
15  *
16  * Information about a logical device available from an attached hardware device that can be used as a sampling device
17  */
18 
19 #ifndef SWGSamplingDevice_H_
20 #define SWGSamplingDevice_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  SWGSamplingDevice(QString* json);
36  virtual ~SWGSamplingDevice();
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 SWGSamplingDevice* fromJson(QString &jsonString) override;
44 
45  qint32 getIndex();
46  void setIndex(qint32 index);
47 
48  QString* getHwType();
49  void setHwType(QString* hw_type);
50 
51  qint32 getDirection();
52  void setDirection(qint32 direction);
53 
54  qint32 getDeviceNbStreams();
55  void setDeviceNbStreams(qint32 device_nb_streams);
56 
57  qint32 getDeviceStreamIndex();
58  void setDeviceStreamIndex(qint32 device_stream_index);
59 
60  qint32 getSequence();
61  void setSequence(qint32 sequence);
62 
63  QString* getSerial();
64  void setSerial(QString* serial);
65 
66  qint64 getCenterFrequency();
67  void setCenterFrequency(qint64 center_frequency);
68 
69  qint32 getBandwidth();
70  void setBandwidth(qint32 bandwidth);
71 
72  QString* getState();
73  void setState(QString* state);
74 
75 
76  virtual bool isSet() override;
77 
78 private:
79  qint32 index;
81 
82  QString* hw_type;
84 
85  qint32 direction;
87 
90 
93 
94  qint32 sequence;
96 
97  QString* serial;
99 
102 
103  qint32 bandwidth;
105 
106  QString* state;
108 
109 };
110 
111 }
112 
113 #endif /* SWGSamplingDevice_H_ */
#define SWG_API
Definition: export.h:124