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.
SWGUDPSinkReport.h
Go to the documentation of this file.
1 
13 /*
14  * SWGUDPSinkReport.h
15  *
16  * UDPSink
17  */
18 
19 #ifndef SWGUDPSinkReport_H_
20 #define SWGUDPSinkReport_H_
21 
22 #include <QJsonObject>
23 
24 
25 
26 #include "SWGObject.h"
27 #include "export.h"
28 
29 namespace SWGSDRangel {
30 
32 public:
34  SWGUDPSinkReport(QString* json);
35  virtual ~SWGUDPSinkReport();
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 SWGUDPSinkReport* fromJson(QString &jsonString) override;
43 
44  float getOutputPowerDb();
45  void setOutputPowerDb(float output_power_db);
46 
47  float getChannelPowerDb();
48  void setChannelPowerDb(float channel_power_db);
49 
50  qint32 getSquelch();
51  void setSquelch(qint32 squelch);
52 
53  qint32 getInputSampleRate();
54  void setInputSampleRate(qint32 input_sample_rate);
55 
56 
57  virtual bool isSet() override;
58 
59 private:
62 
65 
66  qint32 squelch;
68 
71 
72 };
73 
74 }
75 
76 #endif /* SWGUDPSinkReport_H_ */
#define SWG_API
Definition: export.h:124