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.
SWGUDPSourceReport.h
Go to the documentation of this file.
1 
13 /*
14  * SWGUDPSourceReport.h
15  *
16  * UDPSource
17  */
18 
19 #ifndef SWGUDPSourceReport_H_
20 #define SWGUDPSourceReport_H_
21 
22 #include <QJsonObject>
23 
24 
25 
26 #include "SWGObject.h"
27 #include "export.h"
28 
29 namespace SWGSDRangel {
30 
32 public:
34  SWGUDPSourceReport(QString* json);
35  virtual ~SWGUDPSourceReport();
36  void init();
37  void cleanup();
38 
39  virtual QString asJson () override;
40  virtual QJsonObject* asJsonObject() override;
41  virtual void fromJsonObject(QJsonObject &json) override;
42  virtual SWGUDPSourceReport* fromJson(QString &jsonString) override;
43 
44  float getChannelPowerDb();
45  void setChannelPowerDb(float channel_power_db);
46 
47  float getInputPowerDb();
48  void setInputPowerDb(float input_power_db);
49 
50  qint32 getSquelch();
51  void setSquelch(qint32 squelch);
52 
53  qint32 getBufferGauge();
54  void setBufferGauge(qint32 buffer_gauge);
55 
56  qint32 getChannelSampleRate();
57  void setChannelSampleRate(qint32 channel_sample_rate);
58 
59 
60  virtual bool isSet() override;
61 
62 private:
65 
68 
69  qint32 squelch;
71 
72  qint32 buffer_gauge;
74 
77 
78 };
79 
80 }
81 
82 #endif /* SWGUDPSourceReport_H_ */
#define SWG_API
Definition: export.h:124