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.
SWGAMDemodSettings.h
Go to the documentation of this file.
1 
13 /*
14  * SWGAMDemodSettings.h
15  *
16  * AMDemod
17  */
18 
19 #ifndef SWGAMDemodSettings_H_
20 #define SWGAMDemodSettings_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  SWGAMDemodSettings(QString* json);
36  virtual ~SWGAMDemodSettings();
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 SWGAMDemodSettings* 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  float getSquelch();
52  void setSquelch(float squelch);
53 
54  float getVolume();
55  void setVolume(float volume);
56 
57  qint32 getAudioMute();
58  void setAudioMute(qint32 audio_mute);
59 
60  qint32 getBandpassEnable();
61  void setBandpassEnable(qint32 bandpass_enable);
62 
63  qint32 getRgbColor();
64  void setRgbColor(qint32 rgb_color);
65 
66  QString* getTitle();
67  void setTitle(QString* title);
68 
69  QString* getAudioDeviceName();
70  void setAudioDeviceName(QString* audio_device_name);
71 
72  qint32 getPll();
73  void setPll(qint32 pll);
74 
75  qint32 getSyncAmOperation();
76  void setSyncAmOperation(qint32 sync_am_operation);
77 
78  qint32 getStreamIndex();
79  void setStreamIndex(qint32 stream_index);
80 
81  qint32 getUseReverseApi();
82  void setUseReverseApi(qint32 use_reverse_api);
83 
84  QString* getReverseApiAddress();
85  void setReverseApiAddress(QString* reverse_api_address);
86 
87  qint32 getReverseApiPort();
88  void setReverseApiPort(qint32 reverse_api_port);
89 
90  qint32 getReverseApiDeviceIndex();
91  void setReverseApiDeviceIndex(qint32 reverse_api_device_index);
92 
93  qint32 getReverseApiChannelIndex();
94  void setReverseApiChannelIndex(qint32 reverse_api_channel_index);
95 
96 
97  virtual bool isSet() override;
98 
99 private:
102 
105 
106  float squelch;
108 
109  float volume;
111 
112  qint32 audio_mute;
114 
117 
118  qint32 rgb_color;
120 
121  QString* title;
123 
126 
127  qint32 pll;
129 
132 
133  qint32 stream_index;
135 
138 
141 
144 
147 
150 
151 };
152 
153 }
154 
155 #endif /* SWGAMDemodSettings_H_ */
#define SWG_API
Definition: export.h:124