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.
Public Member Functions | Private Attributes | List of all members
SWGSDRangel::SWGNFMDemodSettings Class Reference

#include <SWGNFMDemodSettings.h>

+ Inheritance diagram for SWGSDRangel::SWGNFMDemodSettings:
+ Collaboration diagram for SWGSDRangel::SWGNFMDemodSettings:

Public Member Functions

 SWGNFMDemodSettings ()
 
 SWGNFMDemodSettings (QString *json)
 
virtual ~SWGNFMDemodSettings ()
 
void init ()
 
void cleanup ()
 
virtual QString asJson () override
 
virtual QJsonObject * asJsonObject () override
 
virtual void fromJsonObject (QJsonObject &json) override
 
virtual SWGNFMDemodSettingsfromJson (QString &jsonString) override
 
qint64 getInputFrequencyOffset ()
 
void setInputFrequencyOffset (qint64 input_frequency_offset)
 
float getRfBandwidth ()
 
void setRfBandwidth (float rf_bandwidth)
 
float getAfBandwidth ()
 
void setAfBandwidth (float af_bandwidth)
 
qint32 getFmDeviation ()
 
void setFmDeviation (qint32 fm_deviation)
 
qint32 getSquelchGate ()
 
void setSquelchGate (qint32 squelch_gate)
 
qint32 getDeltaSquelch ()
 
void setDeltaSquelch (qint32 delta_squelch)
 
float getSquelch ()
 
void setSquelch (float squelch)
 
float getVolume ()
 
void setVolume (float volume)
 
qint32 getCtcssOn ()
 
void setCtcssOn (qint32 ctcss_on)
 
qint32 getHighPass ()
 
void setHighPass (qint32 high_pass)
 
qint32 getAudioMute ()
 
void setAudioMute (qint32 audio_mute)
 
qint32 getCtcssIndex ()
 
void setCtcssIndex (qint32 ctcss_index)
 
qint32 getRgbColor ()
 
void setRgbColor (qint32 rgb_color)
 
QString * getTitle ()
 
void setTitle (QString *title)
 
QString * getAudioDeviceName ()
 
void setAudioDeviceName (QString *audio_device_name)
 
qint32 getUseReverseApi ()
 
void setUseReverseApi (qint32 use_reverse_api)
 
QString * getReverseApiAddress ()
 
void setReverseApiAddress (QString *reverse_api_address)
 
qint32 getReverseApiPort ()
 
void setReverseApiPort (qint32 reverse_api_port)
 
qint32 getReverseApiDeviceIndex ()
 
void setReverseApiDeviceIndex (qint32 reverse_api_device_index)
 
qint32 getReverseApiChannelIndex ()
 
void setReverseApiChannelIndex (qint32 reverse_api_channel_index)
 
virtual bool isSet () override
 
- Public Member Functions inherited from SWGSDRangel::SWGObject
virtual ~SWGObject ()
 

Private Attributes

qint64 input_frequency_offset
 
bool m_input_frequency_offset_isSet
 
float rf_bandwidth
 
bool m_rf_bandwidth_isSet
 
float af_bandwidth
 
bool m_af_bandwidth_isSet
 
qint32 fm_deviation
 
bool m_fm_deviation_isSet
 
qint32 squelch_gate
 
bool m_squelch_gate_isSet
 
qint32 delta_squelch
 
bool m_delta_squelch_isSet
 
float squelch
 
bool m_squelch_isSet
 
float volume
 
bool m_volume_isSet
 
qint32 ctcss_on
 
bool m_ctcss_on_isSet
 
qint32 high_pass
 
bool m_high_pass_isSet
 
qint32 audio_mute
 
bool m_audio_mute_isSet
 
qint32 ctcss_index
 
bool m_ctcss_index_isSet
 
qint32 rgb_color
 
bool m_rgb_color_isSet
 
QString * title
 
bool m_title_isSet
 
QString * audio_device_name
 
bool m_audio_device_name_isSet
 
qint32 use_reverse_api
 
bool m_use_reverse_api_isSet
 
QString * reverse_api_address
 
bool m_reverse_api_address_isSet
 
qint32 reverse_api_port
 
bool m_reverse_api_port_isSet
 
qint32 reverse_api_device_index
 
bool m_reverse_api_device_index_isSet
 
qint32 reverse_api_channel_index
 
bool m_reverse_api_channel_index_isSet
 

Detailed Description

Definition at line 32 of file SWGNFMDemodSettings.h.

Constructor & Destructor Documentation

◆ SWGNFMDemodSettings() [1/2]

SWGSDRangel::SWGNFMDemodSettings::SWGNFMDemodSettings ( )

Definition at line 30 of file SWGNFMDemodSettings.cpp.

References af_bandwidth, audio_device_name, audio_mute, ctcss_index, ctcss_on, delta_squelch, fm_deviation, high_pass, input_frequency_offset, m_af_bandwidth_isSet, m_audio_device_name_isSet, m_audio_mute_isSet, m_ctcss_index_isSet, m_ctcss_on_isSet, m_delta_squelch_isSet, m_fm_deviation_isSet, m_high_pass_isSet, m_input_frequency_offset_isSet, m_reverse_api_address_isSet, m_reverse_api_channel_index_isSet, m_reverse_api_device_index_isSet, m_reverse_api_port_isSet, m_rf_bandwidth_isSet, m_rgb_color_isSet, m_squelch_gate_isSet, m_squelch_isSet, m_title_isSet, m_use_reverse_api_isSet, m_volume_isSet, reverse_api_address, reverse_api_channel_index, reverse_api_device_index, reverse_api_port, rf_bandwidth, rgb_color, squelch, squelch_gate, title, use_reverse_api, and volume.

30  {
33  rf_bandwidth = 0.0f;
34  m_rf_bandwidth_isSet = false;
35  af_bandwidth = 0.0f;
36  m_af_bandwidth_isSet = false;
37  fm_deviation = 0;
38  m_fm_deviation_isSet = false;
39  squelch_gate = 0;
40  m_squelch_gate_isSet = false;
41  delta_squelch = 0;
42  m_delta_squelch_isSet = false;
43  squelch = 0.0f;
44  m_squelch_isSet = false;
45  volume = 0.0f;
46  m_volume_isSet = false;
47  ctcss_on = 0;
48  m_ctcss_on_isSet = false;
49  high_pass = 0;
50  m_high_pass_isSet = false;
51  audio_mute = 0;
52  m_audio_mute_isSet = false;
53  ctcss_index = 0;
54  m_ctcss_index_isSet = false;
55  rgb_color = 0;
56  m_rgb_color_isSet = false;
57  title = nullptr;
58  m_title_isSet = false;
59  audio_device_name = nullptr;
61  use_reverse_api = 0;
63  reverse_api_address = nullptr;
65  reverse_api_port = 0;
71 }

◆ SWGNFMDemodSettings() [2/2]

SWGSDRangel::SWGNFMDemodSettings::SWGNFMDemodSettings ( QString *  json)

Definition at line 25 of file SWGNFMDemodSettings.cpp.

References fromJson(), and init().

25  {
26  init();
27  this->fromJson(*json);
28 }
virtual SWGNFMDemodSettings * fromJson(QString &jsonString) override
+ Here is the call graph for this function:

◆ ~SWGNFMDemodSettings()

SWGSDRangel::SWGNFMDemodSettings::~SWGNFMDemodSettings ( )
virtual

Definition at line 73 of file SWGNFMDemodSettings.cpp.

References cleanup().

73  {
74  this->cleanup();
75 }
+ Here is the call graph for this function:

Member Function Documentation

◆ asJson()

QString SWGSDRangel::SWGNFMDemodSettings::asJson ( )
overridevirtual

Reimplemented from SWGSDRangel::SWGObject.

Definition at line 205 of file SWGNFMDemodSettings.cpp.

References asJsonObject().

206 {
207  QJsonObject* obj = this->asJsonObject();
208 
209  QJsonDocument doc(*obj);
210  QByteArray bytes = doc.toJson();
211  delete obj;
212  return QString(bytes);
213 }
virtual QJsonObject * asJsonObject() override
+ Here is the call graph for this function:

◆ asJsonObject()

QJsonObject * SWGSDRangel::SWGNFMDemodSettings::asJsonObject ( )
overridevirtual

Reimplemented from SWGSDRangel::SWGObject.

Definition at line 216 of file SWGNFMDemodSettings.cpp.

References af_bandwidth, audio_device_name, audio_mute, ctcss_index, ctcss_on, delta_squelch, fm_deviation, high_pass, input_frequency_offset, m_af_bandwidth_isSet, m_audio_mute_isSet, m_ctcss_index_isSet, m_ctcss_on_isSet, m_delta_squelch_isSet, m_fm_deviation_isSet, m_high_pass_isSet, m_input_frequency_offset_isSet, m_reverse_api_channel_index_isSet, m_reverse_api_device_index_isSet, m_reverse_api_port_isSet, m_rf_bandwidth_isSet, m_rgb_color_isSet, m_squelch_gate_isSet, m_squelch_isSet, m_use_reverse_api_isSet, m_volume_isSet, reverse_api_address, reverse_api_channel_index, reverse_api_device_index, reverse_api_port, rf_bandwidth, rgb_color, squelch, squelch_gate, title, SWGSDRangel::toJsonValue(), use_reverse_api, and volume.

Referenced by asJson().

216  {
217  QJsonObject* obj = new QJsonObject();
219  obj->insert("inputFrequencyOffset", QJsonValue(input_frequency_offset));
220  }
222  obj->insert("rfBandwidth", QJsonValue(rf_bandwidth));
223  }
225  obj->insert("afBandwidth", QJsonValue(af_bandwidth));
226  }
228  obj->insert("fmDeviation", QJsonValue(fm_deviation));
229  }
231  obj->insert("squelchGate", QJsonValue(squelch_gate));
232  }
234  obj->insert("deltaSquelch", QJsonValue(delta_squelch));
235  }
236  if(m_squelch_isSet){
237  obj->insert("squelch", QJsonValue(squelch));
238  }
239  if(m_volume_isSet){
240  obj->insert("volume", QJsonValue(volume));
241  }
242  if(m_ctcss_on_isSet){
243  obj->insert("ctcssOn", QJsonValue(ctcss_on));
244  }
245  if(m_high_pass_isSet){
246  obj->insert("highPass", QJsonValue(high_pass));
247  }
248  if(m_audio_mute_isSet){
249  obj->insert("audioMute", QJsonValue(audio_mute));
250  }
252  obj->insert("ctcssIndex", QJsonValue(ctcss_index));
253  }
254  if(m_rgb_color_isSet){
255  obj->insert("rgbColor", QJsonValue(rgb_color));
256  }
257  if(title != nullptr && *title != QString("")){
258  toJsonValue(QString("title"), title, obj, QString("QString"));
259  }
260  if(audio_device_name != nullptr && *audio_device_name != QString("")){
261  toJsonValue(QString("audioDeviceName"), audio_device_name, obj, QString("QString"));
262  }
264  obj->insert("useReverseAPI", QJsonValue(use_reverse_api));
265  }
266  if(reverse_api_address != nullptr && *reverse_api_address != QString("")){
267  toJsonValue(QString("reverseAPIAddress"), reverse_api_address, obj, QString("QString"));
268  }
270  obj->insert("reverseAPIPort", QJsonValue(reverse_api_port));
271  }
273  obj->insert("reverseAPIDeviceIndex", QJsonValue(reverse_api_device_index));
274  }
276  obj->insert("reverseAPIChannelIndex", QJsonValue(reverse_api_channel_index));
277  }
278 
279  return obj;
280 }
void toJsonValue(QString name, void *value, QJsonObject *output, QString type)
Definition: SWGHelpers.cpp:383
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ cleanup()

void SWGSDRangel::SWGNFMDemodSettings::cleanup ( )

Definition at line 122 of file SWGNFMDemodSettings.cpp.

References audio_device_name, reverse_api_address, and title.

Referenced by ~SWGNFMDemodSettings().

122  {
123 
124 
125 
126 
127 
128 
129 
130 
131 
132 
133 
134 
135 
136  if(title != nullptr) {
137  delete title;
138  }
139  if(audio_device_name != nullptr) {
140  delete audio_device_name;
141  }
142 
143  if(reverse_api_address != nullptr) {
144  delete reverse_api_address;
145  }
146 
147 
148 
149 }
+ Here is the caller graph for this function:

◆ fromJson()

SWGNFMDemodSettings * SWGSDRangel::SWGNFMDemodSettings::fromJson ( QString &  jsonString)
overridevirtual

Reimplemented from SWGSDRangel::SWGObject.

Definition at line 152 of file SWGNFMDemodSettings.cpp.

References fromJsonObject().

Referenced by SWGNFMDemodSettings().

152  {
153  QByteArray array (json.toStdString().c_str());
154  QJsonDocument doc = QJsonDocument::fromJson(array);
155  QJsonObject jsonObject = doc.object();
156  this->fromJsonObject(jsonObject);
157  return this;
158 }
virtual void fromJsonObject(QJsonObject &json) override
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ fromJsonObject()

void SWGSDRangel::SWGNFMDemodSettings::fromJsonObject ( QJsonObject &  json)
overridevirtual

Reimplemented from SWGSDRangel::SWGObject.

Definition at line 161 of file SWGNFMDemodSettings.cpp.

References af_bandwidth, audio_device_name, audio_mute, ctcss_index, ctcss_on, delta_squelch, fm_deviation, high_pass, input_frequency_offset, reverse_api_address, reverse_api_channel_index, reverse_api_device_index, reverse_api_port, rf_bandwidth, rgb_color, SWGSDRangel::setValue(), squelch, squelch_gate, title, use_reverse_api, and volume.

Referenced by fromJson(), and WebAPIRequestMapper::validateChannelSettings().

161  {
162  ::SWGSDRangel::setValue(&input_frequency_offset, pJson["inputFrequencyOffset"], "qint64", "");
163 
164  ::SWGSDRangel::setValue(&rf_bandwidth, pJson["rfBandwidth"], "float", "");
165 
166  ::SWGSDRangel::setValue(&af_bandwidth, pJson["afBandwidth"], "float", "");
167 
168  ::SWGSDRangel::setValue(&fm_deviation, pJson["fmDeviation"], "qint32", "");
169 
170  ::SWGSDRangel::setValue(&squelch_gate, pJson["squelchGate"], "qint32", "");
171 
172  ::SWGSDRangel::setValue(&delta_squelch, pJson["deltaSquelch"], "qint32", "");
173 
174  ::SWGSDRangel::setValue(&squelch, pJson["squelch"], "float", "");
175 
176  ::SWGSDRangel::setValue(&volume, pJson["volume"], "float", "");
177 
178  ::SWGSDRangel::setValue(&ctcss_on, pJson["ctcssOn"], "qint32", "");
179 
180  ::SWGSDRangel::setValue(&high_pass, pJson["highPass"], "qint32", "");
181 
182  ::SWGSDRangel::setValue(&audio_mute, pJson["audioMute"], "qint32", "");
183 
184  ::SWGSDRangel::setValue(&ctcss_index, pJson["ctcssIndex"], "qint32", "");
185 
186  ::SWGSDRangel::setValue(&rgb_color, pJson["rgbColor"], "qint32", "");
187 
188  ::SWGSDRangel::setValue(&title, pJson["title"], "QString", "QString");
189 
190  ::SWGSDRangel::setValue(&audio_device_name, pJson["audioDeviceName"], "QString", "QString");
191 
192  ::SWGSDRangel::setValue(&use_reverse_api, pJson["useReverseAPI"], "qint32", "");
193 
194  ::SWGSDRangel::setValue(&reverse_api_address, pJson["reverseAPIAddress"], "QString", "QString");
195 
196  ::SWGSDRangel::setValue(&reverse_api_port, pJson["reverseAPIPort"], "qint32", "");
197 
198  ::SWGSDRangel::setValue(&reverse_api_device_index, pJson["reverseAPIDeviceIndex"], "qint32", "");
199 
200  ::SWGSDRangel::setValue(&reverse_api_channel_index, pJson["reverseAPIChannelIndex"], "qint32", "");
201 
202 }
void setValue(void *value, QJsonValue obj, QString type, QString complexType)
Definition: SWGHelpers.cpp:25
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getAfBandwidth()

float SWGSDRangel::SWGNFMDemodSettings::getAfBandwidth ( )

Definition at line 303 of file SWGNFMDemodSettings.cpp.

References af_bandwidth.

Referenced by NFMDemod::webapiSettingsPutPatch().

303  {
304  return af_bandwidth;
305 }
+ Here is the caller graph for this function:

◆ getAudioDeviceName()

QString * SWGSDRangel::SWGNFMDemodSettings::getAudioDeviceName ( )

Definition at line 423 of file SWGNFMDemodSettings.cpp.

References audio_device_name.

Referenced by NFMDemod::webapiFormatChannelSettings(), and NFMDemod::webapiSettingsPutPatch().

423  {
424  return audio_device_name;
425 }
+ Here is the caller graph for this function:

◆ getAudioMute()

qint32 SWGSDRangel::SWGNFMDemodSettings::getAudioMute ( )

Definition at line 383 of file SWGNFMDemodSettings.cpp.

References audio_mute.

Referenced by NFMDemod::webapiSettingsPutPatch().

383  {
384  return audio_mute;
385 }
+ Here is the caller graph for this function:

◆ getCtcssIndex()

qint32 SWGSDRangel::SWGNFMDemodSettings::getCtcssIndex ( )

Definition at line 393 of file SWGNFMDemodSettings.cpp.

References ctcss_index.

Referenced by NFMDemod::webapiSettingsPutPatch().

393  {
394  return ctcss_index;
395 }
+ Here is the caller graph for this function:

◆ getCtcssOn()

qint32 SWGSDRangel::SWGNFMDemodSettings::getCtcssOn ( )

Definition at line 363 of file SWGNFMDemodSettings.cpp.

References ctcss_on.

Referenced by NFMDemod::webapiSettingsPutPatch().

363  {
364  return ctcss_on;
365 }
+ Here is the caller graph for this function:

◆ getDeltaSquelch()

qint32 SWGSDRangel::SWGNFMDemodSettings::getDeltaSquelch ( )

Definition at line 333 of file SWGNFMDemodSettings.cpp.

References delta_squelch.

Referenced by NFMDemod::webapiSettingsPutPatch().

333  {
334  return delta_squelch;
335 }
+ Here is the caller graph for this function:

◆ getFmDeviation()

qint32 SWGSDRangel::SWGNFMDemodSettings::getFmDeviation ( )

Definition at line 313 of file SWGNFMDemodSettings.cpp.

References fm_deviation.

Referenced by NFMDemod::webapiSettingsPutPatch().

313  {
314  return fm_deviation;
315 }
+ Here is the caller graph for this function:

◆ getHighPass()

qint32 SWGSDRangel::SWGNFMDemodSettings::getHighPass ( )

Definition at line 373 of file SWGNFMDemodSettings.cpp.

References high_pass.

Referenced by NFMDemod::webapiSettingsPutPatch().

373  {
374  return high_pass;
375 }
+ Here is the caller graph for this function:

◆ getInputFrequencyOffset()

qint64 SWGSDRangel::SWGNFMDemodSettings::getInputFrequencyOffset ( )

Definition at line 283 of file SWGNFMDemodSettings.cpp.

References input_frequency_offset.

Referenced by NFMDemod::webapiSettingsPutPatch().

283  {
284  return input_frequency_offset;
285 }
+ Here is the caller graph for this function:

◆ getReverseApiAddress()

QString * SWGSDRangel::SWGNFMDemodSettings::getReverseApiAddress ( )

Definition at line 443 of file SWGNFMDemodSettings.cpp.

References reverse_api_address.

Referenced by NFMDemod::webapiFormatChannelSettings(), and NFMDemod::webapiSettingsPutPatch().

443  {
444  return reverse_api_address;
445 }
+ Here is the caller graph for this function:

◆ getReverseApiChannelIndex()

qint32 SWGSDRangel::SWGNFMDemodSettings::getReverseApiChannelIndex ( )

Definition at line 473 of file SWGNFMDemodSettings.cpp.

References reverse_api_channel_index.

Referenced by NFMDemod::webapiSettingsPutPatch().

473  {
475 }
+ Here is the caller graph for this function:

◆ getReverseApiDeviceIndex()

qint32 SWGSDRangel::SWGNFMDemodSettings::getReverseApiDeviceIndex ( )

Definition at line 463 of file SWGNFMDemodSettings.cpp.

References reverse_api_device_index.

Referenced by NFMDemod::webapiSettingsPutPatch().

463  {
465 }
+ Here is the caller graph for this function:

◆ getReverseApiPort()

qint32 SWGSDRangel::SWGNFMDemodSettings::getReverseApiPort ( )

Definition at line 453 of file SWGNFMDemodSettings.cpp.

References reverse_api_port.

Referenced by NFMDemod::webapiSettingsPutPatch().

453  {
454  return reverse_api_port;
455 }
+ Here is the caller graph for this function:

◆ getRfBandwidth()

float SWGSDRangel::SWGNFMDemodSettings::getRfBandwidth ( )

Definition at line 293 of file SWGNFMDemodSettings.cpp.

References rf_bandwidth.

Referenced by NFMDemod::webapiSettingsPutPatch().

293  {
294  return rf_bandwidth;
295 }
+ Here is the caller graph for this function:

◆ getRgbColor()

qint32 SWGSDRangel::SWGNFMDemodSettings::getRgbColor ( )

Definition at line 403 of file SWGNFMDemodSettings.cpp.

References rgb_color.

Referenced by NFMDemod::webapiSettingsPutPatch().

403  {
404  return rgb_color;
405 }
+ Here is the caller graph for this function:

◆ getSquelch()

float SWGSDRangel::SWGNFMDemodSettings::getSquelch ( )

Definition at line 343 of file SWGNFMDemodSettings.cpp.

References squelch.

Referenced by NFMDemod::webapiSettingsPutPatch().

343  {
344  return squelch;
345 }
+ Here is the caller graph for this function:

◆ getSquelchGate()

qint32 SWGSDRangel::SWGNFMDemodSettings::getSquelchGate ( )

Definition at line 323 of file SWGNFMDemodSettings.cpp.

References squelch_gate.

Referenced by NFMDemod::webapiSettingsPutPatch().

323  {
324  return squelch_gate;
325 }
+ Here is the caller graph for this function:

◆ getTitle()

QString * SWGSDRangel::SWGNFMDemodSettings::getTitle ( )

Definition at line 413 of file SWGNFMDemodSettings.cpp.

References title.

Referenced by NFMDemod::webapiFormatChannelSettings(), and NFMDemod::webapiSettingsPutPatch().

413  {
414  return title;
415 }
+ Here is the caller graph for this function:

◆ getUseReverseApi()

qint32 SWGSDRangel::SWGNFMDemodSettings::getUseReverseApi ( )

Definition at line 433 of file SWGNFMDemodSettings.cpp.

References use_reverse_api.

Referenced by NFMDemod::webapiSettingsPutPatch().

433  {
434  return use_reverse_api;
435 }
+ Here is the caller graph for this function:

◆ getVolume()

float SWGSDRangel::SWGNFMDemodSettings::getVolume ( )

Definition at line 353 of file SWGNFMDemodSettings.cpp.

References volume.

Referenced by NFMDemod::webapiSettingsPutPatch().

353  {
354  return volume;
355 }
+ Here is the caller graph for this function:

◆ init()

void SWGSDRangel::SWGNFMDemodSettings::init ( )

Definition at line 78 of file SWGNFMDemodSettings.cpp.

References af_bandwidth, audio_device_name, audio_mute, ctcss_index, ctcss_on, delta_squelch, fm_deviation, high_pass, input_frequency_offset, m_af_bandwidth_isSet, m_audio_device_name_isSet, m_audio_mute_isSet, m_ctcss_index_isSet, m_ctcss_on_isSet, m_delta_squelch_isSet, m_fm_deviation_isSet, m_high_pass_isSet, m_input_frequency_offset_isSet, m_reverse_api_address_isSet, m_reverse_api_channel_index_isSet, m_reverse_api_device_index_isSet, m_reverse_api_port_isSet, m_rf_bandwidth_isSet, m_rgb_color_isSet, m_squelch_gate_isSet, m_squelch_isSet, m_title_isSet, m_use_reverse_api_isSet, m_volume_isSet, reverse_api_address, reverse_api_channel_index, reverse_api_device_index, reverse_api_port, rf_bandwidth, rgb_color, squelch, squelch_gate, title, use_reverse_api, and volume.

Referenced by SWGNFMDemodSettings(), and NFMDemod::webapiSettingsGet().

78  {
81  rf_bandwidth = 0.0f;
82  m_rf_bandwidth_isSet = false;
83  af_bandwidth = 0.0f;
84  m_af_bandwidth_isSet = false;
85  fm_deviation = 0;
86  m_fm_deviation_isSet = false;
87  squelch_gate = 0;
88  m_squelch_gate_isSet = false;
89  delta_squelch = 0;
90  m_delta_squelch_isSet = false;
91  squelch = 0.0f;
92  m_squelch_isSet = false;
93  volume = 0.0f;
94  m_volume_isSet = false;
95  ctcss_on = 0;
96  m_ctcss_on_isSet = false;
97  high_pass = 0;
98  m_high_pass_isSet = false;
99  audio_mute = 0;
100  m_audio_mute_isSet = false;
101  ctcss_index = 0;
102  m_ctcss_index_isSet = false;
103  rgb_color = 0;
104  m_rgb_color_isSet = false;
105  title = new QString("");
106  m_title_isSet = false;
107  audio_device_name = new QString("");
109  use_reverse_api = 0;
110  m_use_reverse_api_isSet = false;
111  reverse_api_address = new QString("");
113  reverse_api_port = 0;
114  m_reverse_api_port_isSet = false;
119 }
+ Here is the caller graph for this function:

◆ isSet()

bool SWGSDRangel::SWGNFMDemodSettings::isSet ( )
overridevirtual

Reimplemented from SWGSDRangel::SWGObject.

Definition at line 484 of file SWGNFMDemodSettings.cpp.

References audio_device_name, m_af_bandwidth_isSet, m_audio_mute_isSet, m_ctcss_index_isSet, m_ctcss_on_isSet, m_delta_squelch_isSet, m_fm_deviation_isSet, m_high_pass_isSet, m_input_frequency_offset_isSet, m_reverse_api_channel_index_isSet, m_reverse_api_device_index_isSet, m_reverse_api_port_isSet, m_rf_bandwidth_isSet, m_rgb_color_isSet, m_squelch_gate_isSet, m_squelch_isSet, m_use_reverse_api_isSet, m_volume_isSet, reverse_api_address, and title.

Referenced by SWGSDRangel::SWGChannelSettings::asJsonObject(), SWGSDRangel::SWGChannelSettings_2::asJsonObject(), SWGSDRangel::SWGChannelSettings_2::isSet(), and SWGSDRangel::SWGChannelSettings::isSet().

484  {
485  bool isObjectUpdated = false;
486  do{
487  if(m_input_frequency_offset_isSet){ isObjectUpdated = true; break;}
488  if(m_rf_bandwidth_isSet){ isObjectUpdated = true; break;}
489  if(m_af_bandwidth_isSet){ isObjectUpdated = true; break;}
490  if(m_fm_deviation_isSet){ isObjectUpdated = true; break;}
491  if(m_squelch_gate_isSet){ isObjectUpdated = true; break;}
492  if(m_delta_squelch_isSet){ isObjectUpdated = true; break;}
493  if(m_squelch_isSet){ isObjectUpdated = true; break;}
494  if(m_volume_isSet){ isObjectUpdated = true; break;}
495  if(m_ctcss_on_isSet){ isObjectUpdated = true; break;}
496  if(m_high_pass_isSet){ isObjectUpdated = true; break;}
497  if(m_audio_mute_isSet){ isObjectUpdated = true; break;}
498  if(m_ctcss_index_isSet){ isObjectUpdated = true; break;}
499  if(m_rgb_color_isSet){ isObjectUpdated = true; break;}
500  if(title != nullptr && *title != QString("")){ isObjectUpdated = true; break;}
501  if(audio_device_name != nullptr && *audio_device_name != QString("")){ isObjectUpdated = true; break;}
502  if(m_use_reverse_api_isSet){ isObjectUpdated = true; break;}
503  if(reverse_api_address != nullptr && *reverse_api_address != QString("")){ isObjectUpdated = true; break;}
504  if(m_reverse_api_port_isSet){ isObjectUpdated = true; break;}
505  if(m_reverse_api_device_index_isSet){ isObjectUpdated = true; break;}
506  if(m_reverse_api_channel_index_isSet){ isObjectUpdated = true; break;}
507  }while(false);
508  return isObjectUpdated;
509 }
+ Here is the caller graph for this function:

◆ setAfBandwidth()

void SWGSDRangel::SWGNFMDemodSettings::setAfBandwidth ( float  af_bandwidth)

Definition at line 307 of file SWGNFMDemodSettings.cpp.

References af_bandwidth, and m_af_bandwidth_isSet.

Referenced by NFMDemod::webapiFormatChannelSettings(), and NFMDemod::webapiReverseSendSettings().

+ Here is the caller graph for this function:

◆ setAudioDeviceName()

void SWGSDRangel::SWGNFMDemodSettings::setAudioDeviceName ( QString *  audio_device_name)

Definition at line 427 of file SWGNFMDemodSettings.cpp.

References audio_device_name, and m_audio_device_name_isSet.

Referenced by NFMDemod::webapiFormatChannelSettings(), and NFMDemod::webapiReverseSendSettings().

+ Here is the caller graph for this function:

◆ setAudioMute()

void SWGSDRangel::SWGNFMDemodSettings::setAudioMute ( qint32  audio_mute)

Definition at line 387 of file SWGNFMDemodSettings.cpp.

References audio_mute, and m_audio_mute_isSet.

Referenced by NFMDemod::webapiFormatChannelSettings(), and NFMDemod::webapiReverseSendSettings().

+ Here is the caller graph for this function:

◆ setCtcssIndex()

void SWGSDRangel::SWGNFMDemodSettings::setCtcssIndex ( qint32  ctcss_index)

Definition at line 397 of file SWGNFMDemodSettings.cpp.

References ctcss_index, and m_ctcss_index_isSet.

Referenced by NFMDemod::webapiFormatChannelSettings(), and NFMDemod::webapiReverseSendSettings().

+ Here is the caller graph for this function:

◆ setCtcssOn()

void SWGSDRangel::SWGNFMDemodSettings::setCtcssOn ( qint32  ctcss_on)

Definition at line 367 of file SWGNFMDemodSettings.cpp.

References ctcss_on, and m_ctcss_on_isSet.

Referenced by NFMDemod::webapiFormatChannelSettings(), and NFMDemod::webapiReverseSendSettings().

+ Here is the caller graph for this function:

◆ setDeltaSquelch()

void SWGSDRangel::SWGNFMDemodSettings::setDeltaSquelch ( qint32  delta_squelch)

Definition at line 337 of file SWGNFMDemodSettings.cpp.

References delta_squelch, and m_delta_squelch_isSet.

Referenced by NFMDemod::webapiFormatChannelSettings(), and NFMDemod::webapiReverseSendSettings().

+ Here is the caller graph for this function:

◆ setFmDeviation()

void SWGSDRangel::SWGNFMDemodSettings::setFmDeviation ( qint32  fm_deviation)

Definition at line 317 of file SWGNFMDemodSettings.cpp.

References fm_deviation, and m_fm_deviation_isSet.

Referenced by NFMDemod::webapiFormatChannelSettings(), and NFMDemod::webapiReverseSendSettings().

+ Here is the caller graph for this function:

◆ setHighPass()

void SWGSDRangel::SWGNFMDemodSettings::setHighPass ( qint32  high_pass)

Definition at line 377 of file SWGNFMDemodSettings.cpp.

References high_pass, and m_high_pass_isSet.

Referenced by NFMDemod::webapiFormatChannelSettings().

+ Here is the caller graph for this function:

◆ setInputFrequencyOffset()

void SWGSDRangel::SWGNFMDemodSettings::setInputFrequencyOffset ( qint64  input_frequency_offset)

◆ setReverseApiAddress()

void SWGSDRangel::SWGNFMDemodSettings::setReverseApiAddress ( QString *  reverse_api_address)

Definition at line 447 of file SWGNFMDemodSettings.cpp.

References m_reverse_api_address_isSet, and reverse_api_address.

Referenced by NFMDemod::webapiFormatChannelSettings().

+ Here is the caller graph for this function:

◆ setReverseApiChannelIndex()

void SWGSDRangel::SWGNFMDemodSettings::setReverseApiChannelIndex ( qint32  reverse_api_channel_index)

Definition at line 477 of file SWGNFMDemodSettings.cpp.

References m_reverse_api_channel_index_isSet, and reverse_api_channel_index.

Referenced by NFMDemod::webapiFormatChannelSettings().

+ Here is the caller graph for this function:

◆ setReverseApiDeviceIndex()

void SWGSDRangel::SWGNFMDemodSettings::setReverseApiDeviceIndex ( qint32  reverse_api_device_index)

Definition at line 467 of file SWGNFMDemodSettings.cpp.

References m_reverse_api_device_index_isSet, and reverse_api_device_index.

Referenced by NFMDemod::webapiFormatChannelSettings().

+ Here is the caller graph for this function:

◆ setReverseApiPort()

void SWGSDRangel::SWGNFMDemodSettings::setReverseApiPort ( qint32  reverse_api_port)

Definition at line 457 of file SWGNFMDemodSettings.cpp.

References m_reverse_api_port_isSet, and reverse_api_port.

Referenced by NFMDemod::webapiFormatChannelSettings().

+ Here is the caller graph for this function:

◆ setRfBandwidth()

void SWGSDRangel::SWGNFMDemodSettings::setRfBandwidth ( float  rf_bandwidth)

Definition at line 297 of file SWGNFMDemodSettings.cpp.

References m_rf_bandwidth_isSet, and rf_bandwidth.

Referenced by NFMDemod::webapiFormatChannelSettings(), and NFMDemod::webapiReverseSendSettings().

+ Here is the caller graph for this function:

◆ setRgbColor()

void SWGSDRangel::SWGNFMDemodSettings::setRgbColor ( qint32  rgb_color)

Definition at line 407 of file SWGNFMDemodSettings.cpp.

References m_rgb_color_isSet, and rgb_color.

Referenced by NFMDemod::webapiFormatChannelSettings(), and NFMDemod::webapiReverseSendSettings().

+ Here is the caller graph for this function:

◆ setSquelch()

void SWGSDRangel::SWGNFMDemodSettings::setSquelch ( float  squelch)

Definition at line 347 of file SWGNFMDemodSettings.cpp.

References m_squelch_isSet, and squelch.

Referenced by NFMDemod::webapiFormatChannelSettings(), and NFMDemod::webapiReverseSendSettings().

+ Here is the caller graph for this function:

◆ setSquelchGate()

void SWGSDRangel::SWGNFMDemodSettings::setSquelchGate ( qint32  squelch_gate)

Definition at line 327 of file SWGNFMDemodSettings.cpp.

References m_squelch_gate_isSet, and squelch_gate.

Referenced by NFMDemod::webapiFormatChannelSettings(), and NFMDemod::webapiReverseSendSettings().

+ Here is the caller graph for this function:

◆ setTitle()

void SWGSDRangel::SWGNFMDemodSettings::setTitle ( QString *  title)

Definition at line 417 of file SWGNFMDemodSettings.cpp.

References m_title_isSet, and title.

Referenced by NFMDemod::webapiFormatChannelSettings(), and NFMDemod::webapiReverseSendSettings().

417  {
418  this->title = title;
419  this->m_title_isSet = true;
420 }
+ Here is the caller graph for this function:

◆ setUseReverseApi()

void SWGSDRangel::SWGNFMDemodSettings::setUseReverseApi ( qint32  use_reverse_api)

Definition at line 437 of file SWGNFMDemodSettings.cpp.

References m_use_reverse_api_isSet, and use_reverse_api.

Referenced by NFMDemod::webapiFormatChannelSettings().

+ Here is the caller graph for this function:

◆ setVolume()

void SWGSDRangel::SWGNFMDemodSettings::setVolume ( float  volume)

Definition at line 357 of file SWGNFMDemodSettings.cpp.

References m_volume_isSet, and volume.

Referenced by NFMDemod::webapiFormatChannelSettings(), and NFMDemod::webapiReverseSendSettings().

357  {
358  this->volume = volume;
359  this->m_volume_isSet = true;
360 }
+ Here is the caller graph for this function:

Member Data Documentation

◆ af_bandwidth

float SWGSDRangel::SWGNFMDemodSettings::af_bandwidth
private

◆ audio_device_name

QString* SWGSDRangel::SWGNFMDemodSettings::audio_device_name
private

◆ audio_mute

qint32 SWGSDRangel::SWGNFMDemodSettings::audio_mute
private

◆ ctcss_index

qint32 SWGSDRangel::SWGNFMDemodSettings::ctcss_index
private

◆ ctcss_on

qint32 SWGSDRangel::SWGNFMDemodSettings::ctcss_on
private

◆ delta_squelch

qint32 SWGSDRangel::SWGNFMDemodSettings::delta_squelch
private

◆ fm_deviation

qint32 SWGSDRangel::SWGNFMDemodSettings::fm_deviation
private

◆ high_pass

qint32 SWGSDRangel::SWGNFMDemodSettings::high_pass
private

◆ input_frequency_offset

qint64 SWGSDRangel::SWGNFMDemodSettings::input_frequency_offset
private

◆ m_af_bandwidth_isSet

bool SWGSDRangel::SWGNFMDemodSettings::m_af_bandwidth_isSet
private

Definition at line 116 of file SWGNFMDemodSettings.h.

Referenced by asJsonObject(), init(), isSet(), setAfBandwidth(), and SWGNFMDemodSettings().

◆ m_audio_device_name_isSet

bool SWGSDRangel::SWGNFMDemodSettings::m_audio_device_name_isSet
private

Definition at line 152 of file SWGNFMDemodSettings.h.

Referenced by init(), setAudioDeviceName(), and SWGNFMDemodSettings().

◆ m_audio_mute_isSet

bool SWGSDRangel::SWGNFMDemodSettings::m_audio_mute_isSet
private

Definition at line 140 of file SWGNFMDemodSettings.h.

Referenced by asJsonObject(), init(), isSet(), setAudioMute(), and SWGNFMDemodSettings().

◆ m_ctcss_index_isSet

bool SWGSDRangel::SWGNFMDemodSettings::m_ctcss_index_isSet
private

Definition at line 143 of file SWGNFMDemodSettings.h.

Referenced by asJsonObject(), init(), isSet(), setCtcssIndex(), and SWGNFMDemodSettings().

◆ m_ctcss_on_isSet

bool SWGSDRangel::SWGNFMDemodSettings::m_ctcss_on_isSet
private

Definition at line 134 of file SWGNFMDemodSettings.h.

Referenced by asJsonObject(), init(), isSet(), setCtcssOn(), and SWGNFMDemodSettings().

◆ m_delta_squelch_isSet

bool SWGSDRangel::SWGNFMDemodSettings::m_delta_squelch_isSet
private

◆ m_fm_deviation_isSet

bool SWGSDRangel::SWGNFMDemodSettings::m_fm_deviation_isSet
private

Definition at line 119 of file SWGNFMDemodSettings.h.

Referenced by asJsonObject(), init(), isSet(), setFmDeviation(), and SWGNFMDemodSettings().

◆ m_high_pass_isSet

bool SWGSDRangel::SWGNFMDemodSettings::m_high_pass_isSet
private

Definition at line 137 of file SWGNFMDemodSettings.h.

Referenced by asJsonObject(), init(), isSet(), setHighPass(), and SWGNFMDemodSettings().

◆ m_input_frequency_offset_isSet

bool SWGSDRangel::SWGNFMDemodSettings::m_input_frequency_offset_isSet
private

◆ m_reverse_api_address_isSet

bool SWGSDRangel::SWGNFMDemodSettings::m_reverse_api_address_isSet
private

Definition at line 158 of file SWGNFMDemodSettings.h.

Referenced by init(), setReverseApiAddress(), and SWGNFMDemodSettings().

◆ m_reverse_api_channel_index_isSet

bool SWGSDRangel::SWGNFMDemodSettings::m_reverse_api_channel_index_isSet
private

◆ m_reverse_api_device_index_isSet

bool SWGSDRangel::SWGNFMDemodSettings::m_reverse_api_device_index_isSet
private

◆ m_reverse_api_port_isSet

bool SWGSDRangel::SWGNFMDemodSettings::m_reverse_api_port_isSet
private

◆ m_rf_bandwidth_isSet

bool SWGSDRangel::SWGNFMDemodSettings::m_rf_bandwidth_isSet
private

Definition at line 113 of file SWGNFMDemodSettings.h.

Referenced by asJsonObject(), init(), isSet(), setRfBandwidth(), and SWGNFMDemodSettings().

◆ m_rgb_color_isSet

bool SWGSDRangel::SWGNFMDemodSettings::m_rgb_color_isSet
private

Definition at line 146 of file SWGNFMDemodSettings.h.

Referenced by asJsonObject(), init(), isSet(), setRgbColor(), and SWGNFMDemodSettings().

◆ m_squelch_gate_isSet

bool SWGSDRangel::SWGNFMDemodSettings::m_squelch_gate_isSet
private

Definition at line 122 of file SWGNFMDemodSettings.h.

Referenced by asJsonObject(), init(), isSet(), setSquelchGate(), and SWGNFMDemodSettings().

◆ m_squelch_isSet

bool SWGSDRangel::SWGNFMDemodSettings::m_squelch_isSet
private

Definition at line 128 of file SWGNFMDemodSettings.h.

Referenced by asJsonObject(), init(), isSet(), setSquelch(), and SWGNFMDemodSettings().

◆ m_title_isSet

bool SWGSDRangel::SWGNFMDemodSettings::m_title_isSet
private

Definition at line 149 of file SWGNFMDemodSettings.h.

Referenced by init(), setTitle(), and SWGNFMDemodSettings().

◆ m_use_reverse_api_isSet

bool SWGSDRangel::SWGNFMDemodSettings::m_use_reverse_api_isSet
private

◆ m_volume_isSet

bool SWGSDRangel::SWGNFMDemodSettings::m_volume_isSet
private

Definition at line 131 of file SWGNFMDemodSettings.h.

Referenced by asJsonObject(), init(), isSet(), setVolume(), and SWGNFMDemodSettings().

◆ reverse_api_address

QString* SWGSDRangel::SWGNFMDemodSettings::reverse_api_address
private

◆ reverse_api_channel_index

qint32 SWGSDRangel::SWGNFMDemodSettings::reverse_api_channel_index
private

◆ reverse_api_device_index

qint32 SWGSDRangel::SWGNFMDemodSettings::reverse_api_device_index
private

◆ reverse_api_port

qint32 SWGSDRangel::SWGNFMDemodSettings::reverse_api_port
private

◆ rf_bandwidth

float SWGSDRangel::SWGNFMDemodSettings::rf_bandwidth
private

◆ rgb_color

qint32 SWGSDRangel::SWGNFMDemodSettings::rgb_color
private

◆ squelch

float SWGSDRangel::SWGNFMDemodSettings::squelch
private

◆ squelch_gate

qint32 SWGSDRangel::SWGNFMDemodSettings::squelch_gate
private

◆ title

QString* SWGSDRangel::SWGNFMDemodSettings::title
private

◆ use_reverse_api

qint32 SWGSDRangel::SWGNFMDemodSettings::use_reverse_api
private

◆ volume

float SWGSDRangel::SWGNFMDemodSettings::volume
private

The documentation for this class was generated from the following files: