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.
SWGBFMDemodReport.h
Go to the documentation of this file.
1 
13 /*
14  * SWGBFMDemodReport.h
15  *
16  * BFMDemod
17  */
18 
19 #ifndef SWGBFMDemodReport_H_
20 #define SWGBFMDemodReport_H_
21 
22 #include <QJsonObject>
23 
24 
25 #include "SWGRDSReport.h"
26 
27 #include "SWGObject.h"
28 #include "export.h"
29 
30 namespace SWGSDRangel {
31 
33 public:
35  SWGBFMDemodReport(QString* json);
36  virtual ~SWGBFMDemodReport();
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 SWGBFMDemodReport* fromJson(QString &jsonString) override;
44 
45  float getChannelPowerDb();
46  void setChannelPowerDb(float channel_power_db);
47 
48  qint32 getSquelch();
49  void setSquelch(qint32 squelch);
50 
51  qint32 getAudioSampleRate();
52  void setAudioSampleRate(qint32 audio_sample_rate);
53 
54  qint32 getChannelSampleRate();
55  void setChannelSampleRate(qint32 channel_sample_rate);
56 
57  qint32 getPilotLocked();
58  void setPilotLocked(qint32 pilot_locked);
59 
60  float getPilotPowerDb();
61  void setPilotPowerDb(float pilot_power_db);
62 
63  SWGRDSReport* getRdsReport();
64  void setRdsReport(SWGRDSReport* rds_report);
65 
66 
67  virtual bool isSet() override;
68 
69 private:
72 
73  qint32 squelch;
75 
78 
81 
82  qint32 pilot_locked;
84 
87 
90 
91 };
92 
93 }
94 
95 #endif /* SWGBFMDemodReport_H_ */
#define SWG_API
Definition: export.h:124