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.
SWGChannel.h
Go to the documentation of this file.
1 
13 /*
14  * SWGChannel.h
15  *
16  * Channel summarized information
17  */
18 
19 #ifndef SWGChannel_H_
20 #define SWGChannel_H_
21 
22 #include <QJsonObject>
23 
24 
25 #include "SWGChannelReport.h"
26 #include <QString>
27 
28 #include "SWGObject.h"
29 #include "export.h"
30 
31 namespace SWGSDRangel {
32 
33 class SWG_API SWGChannel: public SWGObject {
34 public:
35  SWGChannel();
36  SWGChannel(QString* json);
37  virtual ~SWGChannel();
38  void init();
39  void cleanup();
40 
41  virtual QString asJson () override;
42  virtual QJsonObject* asJsonObject() override;
43  virtual void fromJsonObject(QJsonObject &json) override;
44  virtual SWGChannel* fromJson(QString &jsonString) override;
45 
46  qint32 getIndex();
47  void setIndex(qint32 index);
48 
49  QString* getId();
50  void setId(QString* id);
51 
52  qint64 getUid();
53  void setUid(qint64 uid);
54 
55  QString* getTitle();
56  void setTitle(QString* title);
57 
58  qint32 getDeltaFrequency();
59  void setDeltaFrequency(qint32 delta_frequency);
60 
61  SWGChannelReport* getReport();
62  void setReport(SWGChannelReport* report);
63 
64 
65  virtual bool isSet() override;
66 
67 private:
68  qint32 index;
70 
71  QString* id;
72  bool m_id_isSet;
73 
74  qint64 uid;
76 
77  QString* title;
79 
82 
85 
86 };
87 
88 }
89 
90 #endif /* SWGChannel_H_ */
SWGChannelReport * report
Definition: SWGChannel.h:83
#define SWG_API
Definition: export.h:124