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.
SWGFreqTrackerSettings.h
Go to the documentation of this file.
1 
13 /*
14  * SWGFreqTrackerSettings.h
15  *
16  * FreqTracker
17  */
18 
19 #ifndef SWGFreqTrackerSettings_H_
20 #define SWGFreqTrackerSettings_H_
21 
22 #include <QJsonObject>
23 
24 
25 #include <QString>
26 
27 #include "SWGObject.h"
28 #include "export.h"
29 
30 namespace SWGSDRangel {
31 
33 public:
35  SWGFreqTrackerSettings(QString* json);
36  virtual ~SWGFreqTrackerSettings();
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 SWGFreqTrackerSettings* fromJson(QString &jsonString) override;
44 
45  qint64 getInputFrequencyOffset();
46  void setInputFrequencyOffset(qint64 input_frequency_offset);
47 
48  float getRfBandwidth();
49  void setRfBandwidth(float rf_bandwidth);
50 
51  qint32 getLog2Decim();
52  void setLog2Decim(qint32 log2_decim);
53 
54  float getSquelch();
55  void setSquelch(float squelch);
56 
57  qint32 getRgbColor();
58  void setRgbColor(qint32 rgb_color);
59 
60  QString* getTitle();
61  void setTitle(QString* title);
62 
63  float getAlphaEma();
64  void setAlphaEma(float alpha_ema);
65 
66  qint32 getTracking();
67  void setTracking(qint32 tracking);
68 
69  qint32 getTrackerType();
70  void setTrackerType(qint32 tracker_type);
71 
72  qint32 getPllPskOrder();
73  void setPllPskOrder(qint32 pll_psk_order);
74 
75  qint32 getRrc();
76  void setRrc(qint32 rrc);
77 
78  qint32 getRrcRolloff();
79  void setRrcRolloff(qint32 rrc_rolloff);
80 
81  qint32 getSquelchGate();
82  void setSquelchGate(qint32 squelch_gate);
83 
84  qint32 getUseReverseApi();
85  void setUseReverseApi(qint32 use_reverse_api);
86 
87  QString* getReverseApiAddress();
88  void setReverseApiAddress(QString* reverse_api_address);
89 
90  qint32 getReverseApiPort();
91  void setReverseApiPort(qint32 reverse_api_port);
92 
93  qint32 getReverseApiDeviceIndex();
94  void setReverseApiDeviceIndex(qint32 reverse_api_device_index);
95 
96  qint32 getReverseApiChannelIndex();
97  void setReverseApiChannelIndex(qint32 reverse_api_channel_index);
98 
99 
100  virtual bool isSet() override;
101 
102 private:
105 
108 
109  qint32 log2_decim;
111 
112  float squelch;
114 
115  qint32 rgb_color;
117 
118  QString* title;
120 
121  float alpha_ema;
123 
124  qint32 tracking;
126 
127  qint32 tracker_type;
129 
132 
133  qint32 rrc;
135 
136  qint32 rrc_rolloff;
138 
139  qint32 squelch_gate;
141 
144 
147 
150 
153 
156 
157 };
158 
159 }
160 
161 #endif /* SWGFreqTrackerSettings_H_ */
#define SWG_API
Definition: export.h:124