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.
SWGChannelSettings.h
Go to the documentation of this file.
1 
13 /*
14  * SWGChannelSettings.h
15  *
16  * Base channel settings. Only the channel settings corresponding to the channel specified in the channelType field is or should be present.
17  */
18 
19 #ifndef SWGChannelSettings_H_
20 #define SWGChannelSettings_H_
21 
22 #include <QJsonObject>
23 
24 
25 #include "SWGAMDemodSettings.h"
26 #include "SWGAMModSettings.h"
27 #include "SWGATVModSettings.h"
28 #include "SWGBFMDemodSettings.h"
29 #include "SWGDSDDemodSettings.h"
30 #include "SWGFileSourceSettings.h"
31 #include "SWGFreeDVDemodSettings.h"
32 #include "SWGFreeDVModSettings.h"
33 #include "SWGFreqTrackerSettings.h"
34 #include "SWGLocalSinkSettings.h"
35 #include "SWGLocalSourceSettings.h"
36 #include "SWGNFMDemodSettings.h"
37 #include "SWGNFMModSettings.h"
38 #include "SWGRemoteSinkSettings.h"
40 #include "SWGSSBDemodSettings.h"
41 #include "SWGSSBModSettings.h"
42 #include "SWGUDPSinkSettings.h"
43 #include "SWGUDPSourceSettings.h"
44 #include "SWGWFMDemodSettings.h"
45 #include "SWGWFMModSettings.h"
46 #include <QString>
47 
48 #include "SWGObject.h"
49 #include "export.h"
50 
51 namespace SWGSDRangel {
52 
54 public:
56  SWGChannelSettings(QString* json);
57  virtual ~SWGChannelSettings();
58  void init();
59  void cleanup();
60 
61  virtual QString asJson () override;
62  virtual QJsonObject* asJsonObject() override;
63  virtual void fromJsonObject(QJsonObject &json) override;
64  virtual SWGChannelSettings* fromJson(QString &jsonString) override;
65 
66  QString* getChannelType();
67  void setChannelType(QString* channel_type);
68 
69  qint32 getDirection();
70  void setDirection(qint32 direction);
71 
72  qint32 getOriginatorDeviceSetIndex();
73  void setOriginatorDeviceSetIndex(qint32 originator_device_set_index);
74 
75  qint32 getOriginatorChannelIndex();
76  void setOriginatorChannelIndex(qint32 originator_channel_index);
77 
78  SWGAMDemodSettings* getAmDemodSettings();
79  void setAmDemodSettings(SWGAMDemodSettings* am_demod_settings);
80 
81  SWGAMModSettings* getAmModSettings();
82  void setAmModSettings(SWGAMModSettings* am_mod_settings);
83 
84  SWGATVModSettings* getAtvModSettings();
85  void setAtvModSettings(SWGATVModSettings* atv_mod_settings);
86 
87  SWGBFMDemodSettings* getBfmDemodSettings();
88  void setBfmDemodSettings(SWGBFMDemodSettings* bfm_demod_settings);
89 
90  SWGDSDDemodSettings* getDsdDemodSettings();
91  void setDsdDemodSettings(SWGDSDDemodSettings* dsd_demod_settings);
92 
93  SWGFileSourceSettings* getFileSourceSettings();
94  void setFileSourceSettings(SWGFileSourceSettings* file_source_settings);
95 
96  SWGFreeDVDemodSettings* getFreeDvDemodSettings();
97  void setFreeDvDemodSettings(SWGFreeDVDemodSettings* free_dv_demod_settings);
98 
99  SWGFreeDVModSettings* getFreeDvModSettings();
100  void setFreeDvModSettings(SWGFreeDVModSettings* free_dv_mod_settings);
101 
102  SWGFreqTrackerSettings* getFreqTrackerSettings();
103  void setFreqTrackerSettings(SWGFreqTrackerSettings* freq_tracker_settings);
104 
105  SWGNFMDemodSettings* getNfmDemodSettings();
106  void setNfmDemodSettings(SWGNFMDemodSettings* nfm_demod_settings);
107 
108  SWGNFMModSettings* getNfmModSettings();
109  void setNfmModSettings(SWGNFMModSettings* nfm_mod_settings);
110 
111  SWGLocalSinkSettings* getLocalSinkSettings();
112  void setLocalSinkSettings(SWGLocalSinkSettings* local_sink_settings);
113 
114  SWGLocalSourceSettings* getLocalSourceSettings();
115  void setLocalSourceSettings(SWGLocalSourceSettings* local_source_settings);
116 
117  SWGRemoteSinkSettings* getRemoteSinkSettings();
118  void setRemoteSinkSettings(SWGRemoteSinkSettings* remote_sink_settings);
119 
120  SWGRemoteSourceSettings* getRemoteSourceSettings();
121  void setRemoteSourceSettings(SWGRemoteSourceSettings* remote_source_settings);
122 
123  SWGSSBModSettings* getSsbModSettings();
124  void setSsbModSettings(SWGSSBModSettings* ssb_mod_settings);
125 
126  SWGSSBDemodSettings* getSsbDemodSettings();
127  void setSsbDemodSettings(SWGSSBDemodSettings* ssb_demod_settings);
128 
129  SWGUDPSourceSettings* getUdpSourceSettings();
130  void setUdpSourceSettings(SWGUDPSourceSettings* udp_source_settings);
131 
132  SWGUDPSinkSettings* getUdpSinkSettings();
133  void setUdpSinkSettings(SWGUDPSinkSettings* udp_sink_settings);
134 
135  SWGWFMDemodSettings* getWfmDemodSettings();
136  void setWfmDemodSettings(SWGWFMDemodSettings* wfm_demod_settings);
137 
138  SWGWFMModSettings* getWfmModSettings();
139  void setWfmModSettings(SWGWFMModSettings* wfm_mod_settings);
140 
141 
142  virtual bool isSet() override;
143 
144 private:
145  QString* channel_type;
147 
148  qint32 direction;
150 
153 
156 
159 
162 
165 
168 
171 
174 
177 
180 
183 
186 
189 
192 
195 
198 
201 
204 
207 
210 
213 
216 
219 
220 };
221 
222 }
223 
224 #endif /* SWGChannelSettings_H_ */
SWGDSDDemodSettings * dsd_demod_settings
SWGSSBDemodSettings * ssb_demod_settings
SWGRemoteSinkSettings * remote_sink_settings
SWGWFMDemodSettings * wfm_demod_settings
SWGFreeDVModSettings * free_dv_mod_settings
SWGFreqTrackerSettings * freq_tracker_settings
SWGNFMDemodSettings * nfm_demod_settings
SWGUDPSourceSettings * udp_source_settings
SWGFreeDVDemodSettings * free_dv_demod_settings
SWGFileSourceSettings * file_source_settings
SWGAMDemodSettings * am_demod_settings
SWGUDPSinkSettings * udp_sink_settings
#define SWG_API
Definition: export.h:124
SWGRemoteSourceSettings * remote_source_settings
SWGLocalSinkSettings * local_sink_settings
SWGBFMDemodSettings * bfm_demod_settings
SWGLocalSourceSettings * local_source_settings