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.
SWGDeviceSet.h
Go to the documentation of this file.
1 
13 /*
14  * SWGDeviceSet.h
15  *
16  * Sampling device and its associated channels
17  */
18 
19 #ifndef SWGDeviceSet_H_
20 #define SWGDeviceSet_H_
21 
22 #include <QJsonObject>
23 
24 
25 #include "SWGChannel.h"
26 #include "SWGSamplingDevice.h"
27 #include <QList>
28 
29 #include "SWGObject.h"
30 #include "export.h"
31 
32 namespace SWGSDRangel {
33 
35 public:
36  SWGDeviceSet();
37  SWGDeviceSet(QString* json);
38  virtual ~SWGDeviceSet();
39  void init();
40  void cleanup();
41 
42  virtual QString asJson () override;
43  virtual QJsonObject* asJsonObject() override;
44  virtual void fromJsonObject(QJsonObject &json) override;
45  virtual SWGDeviceSet* fromJson(QString &jsonString) override;
46 
47  SWGSamplingDevice* getSamplingDevice();
48  void setSamplingDevice(SWGSamplingDevice* sampling_device);
49 
50  qint32 getChannelcount();
51  void setChannelcount(qint32 channelcount);
52 
53  QList<SWGChannel*>* getChannels();
54  void setChannels(QList<SWGChannel*>* channels);
55 
56 
57  virtual bool isSet() override;
58 
59 private:
62 
63  qint32 channelcount;
65 
66  QList<SWGChannel*>* channels;
68 
69 };
70 
71 }
72 
73 #endif /* SWGDeviceSet_H_ */
SWGSamplingDevice * sampling_device
Definition: SWGDeviceSet.h:60
#define SWG_API
Definition: export.h:124
QList< SWGChannel * > * channels
Definition: SWGDeviceSet.h:66