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.
SWGAMModSettings.h
Go to the documentation of this file.
1 
13 /*
14  * SWGAMModSettings.h
15  *
16  * AMMod
17  */
18 
19 #ifndef SWGAMModSettings_H_
20 #define SWGAMModSettings_H_
21 
22 #include <QJsonObject>
23 
24 
25 #include "SWGCWKeyerSettings.h"
26 #include <QString>
27 
28 #include "SWGObject.h"
29 #include "export.h"
30 
31 namespace SWGSDRangel {
32 
34 public:
36  SWGAMModSettings(QString* json);
37  virtual ~SWGAMModSettings();
38  void init();
39  void cleanup();
40 
41  virtual QString asJson () override;
42  virtual QJsonObject* asJsonObject() override;
43  virtual void fromJsonObject(QJsonObject &json) override;
44  virtual SWGAMModSettings* fromJson(QString &jsonString) override;
45 
46  qint64 getInputFrequencyOffset();
47  void setInputFrequencyOffset(qint64 input_frequency_offset);
48 
49  float getRfBandwidth();
50  void setRfBandwidth(float rf_bandwidth);
51 
52  float getModFactor();
53  void setModFactor(float mod_factor);
54 
55  float getToneFrequency();
56  void setToneFrequency(float tone_frequency);
57 
58  float getVolumeFactor();
59  void setVolumeFactor(float volume_factor);
60 
61  qint32 getChannelMute();
62  void setChannelMute(qint32 channel_mute);
63 
64  qint32 getPlayLoop();
65  void setPlayLoop(qint32 play_loop);
66 
67  qint32 getRgbColor();
68  void setRgbColor(qint32 rgb_color);
69 
70  QString* getTitle();
71  void setTitle(QString* title);
72 
73  QString* getAudioDeviceName();
74  void setAudioDeviceName(QString* audio_device_name);
75 
76  qint32 getModAfInput();
77  void setModAfInput(qint32 mod_af_input);
78 
79  qint32 getUseReverseApi();
80  void setUseReverseApi(qint32 use_reverse_api);
81 
82  QString* getReverseApiAddress();
83  void setReverseApiAddress(QString* reverse_api_address);
84 
85  qint32 getReverseApiPort();
86  void setReverseApiPort(qint32 reverse_api_port);
87 
88  qint32 getReverseApiDeviceIndex();
89  void setReverseApiDeviceIndex(qint32 reverse_api_device_index);
90 
91  qint32 getReverseApiChannelIndex();
92  void setReverseApiChannelIndex(qint32 reverse_api_channel_index);
93 
94  SWGCWKeyerSettings* getCwKeyer();
95  void setCwKeyer(SWGCWKeyerSettings* cw_keyer);
96 
97 
98  virtual bool isSet() override;
99 
100 private:
103 
106 
107  float mod_factor;
109 
112 
115 
116  qint32 channel_mute;
118 
119  qint32 play_loop;
121 
122  qint32 rgb_color;
124 
125  QString* title;
127 
130 
131  qint32 mod_af_input;
133 
136 
139 
142 
145 
148 
151 
152 };
153 
154 }
155 
156 #endif /* SWGAMModSettings_H_ */
#define SWG_API
Definition: export.h:124
SWGCWKeyerSettings * cw_keyer