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::SWGNFMModSettings Class Reference

#include <SWGNFMModSettings.h>

+ Inheritance diagram for SWGSDRangel::SWGNFMModSettings:
+ Collaboration diagram for SWGSDRangel::SWGNFMModSettings:

Public Member Functions

 SWGNFMModSettings ()
 
 SWGNFMModSettings (QString *json)
 
virtual ~SWGNFMModSettings ()
 
void init ()
 
void cleanup ()
 
virtual QString asJson () override
 
virtual QJsonObject * asJsonObject () override
 
virtual void fromJsonObject (QJsonObject &json) override
 
virtual SWGNFMModSettingsfromJson (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)
 
float getFmDeviation ()
 
void setFmDeviation (float fm_deviation)
 
float getToneFrequency ()
 
void setToneFrequency (float tone_frequency)
 
float getVolumeFactor ()
 
void setVolumeFactor (float volume_factor)
 
qint32 getChannelMute ()
 
void setChannelMute (qint32 channel_mute)
 
qint32 getPlayLoop ()
 
void setPlayLoop (qint32 play_loop)
 
qint32 getCtcssOn ()
 
void setCtcssOn (qint32 ctcss_on)
 
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 getModAfInput ()
 
void setModAfInput (qint32 mod_af_input)
 
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)
 
SWGCWKeyerSettingsgetCwKeyer ()
 
void setCwKeyer (SWGCWKeyerSettings *cw_keyer)
 
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
 
float fm_deviation
 
bool m_fm_deviation_isSet
 
float tone_frequency
 
bool m_tone_frequency_isSet
 
float volume_factor
 
bool m_volume_factor_isSet
 
qint32 channel_mute
 
bool m_channel_mute_isSet
 
qint32 play_loop
 
bool m_play_loop_isSet
 
qint32 ctcss_on
 
bool m_ctcss_on_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 mod_af_input
 
bool m_mod_af_input_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
 
SWGCWKeyerSettingscw_keyer
 
bool m_cw_keyer_isSet
 

Detailed Description

Definition at line 33 of file SWGNFMModSettings.h.

Constructor & Destructor Documentation

◆ SWGNFMModSettings() [1/2]

SWGSDRangel::SWGNFMModSettings::SWGNFMModSettings ( )

Definition at line 30 of file SWGNFMModSettings.cpp.

References af_bandwidth, audio_device_name, channel_mute, ctcss_index, ctcss_on, cw_keyer, fm_deviation, input_frequency_offset, m_af_bandwidth_isSet, m_audio_device_name_isSet, m_channel_mute_isSet, m_ctcss_index_isSet, m_ctcss_on_isSet, m_cw_keyer_isSet, m_fm_deviation_isSet, m_input_frequency_offset_isSet, m_mod_af_input_isSet, m_play_loop_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_title_isSet, m_tone_frequency_isSet, m_use_reverse_api_isSet, m_volume_factor_isSet, mod_af_input, play_loop, reverse_api_address, reverse_api_channel_index, reverse_api_device_index, reverse_api_port, rf_bandwidth, rgb_color, title, tone_frequency, use_reverse_api, and volume_factor.

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.0f;
38  m_fm_deviation_isSet = false;
39  tone_frequency = 0.0f;
40  m_tone_frequency_isSet = false;
41  volume_factor = 0.0f;
42  m_volume_factor_isSet = false;
43  channel_mute = 0;
44  m_channel_mute_isSet = false;
45  play_loop = 0;
46  m_play_loop_isSet = false;
47  ctcss_on = 0;
48  m_ctcss_on_isSet = false;
49  ctcss_index = 0;
50  m_ctcss_index_isSet = false;
51  rgb_color = 0;
52  m_rgb_color_isSet = false;
53  title = nullptr;
54  m_title_isSet = false;
55  audio_device_name = nullptr;
57  mod_af_input = 0;
58  m_mod_af_input_isSet = false;
59  use_reverse_api = 0;
61  reverse_api_address = nullptr;
63  reverse_api_port = 0;
69  cw_keyer = nullptr;
70  m_cw_keyer_isSet = false;
71 }

◆ SWGNFMModSettings() [2/2]

SWGSDRangel::SWGNFMModSettings::SWGNFMModSettings ( QString *  json)

Definition at line 25 of file SWGNFMModSettings.cpp.

References fromJson(), and init().

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

◆ ~SWGNFMModSettings()

SWGSDRangel::SWGNFMModSettings::~SWGNFMModSettings ( )
virtual

Definition at line 73 of file SWGNFMModSettings.cpp.

References cleanup().

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

Member Function Documentation

◆ asJson()

QString SWGSDRangel::SWGNFMModSettings::asJson ( )
overridevirtual

Reimplemented from SWGSDRangel::SWGObject.

Definition at line 207 of file SWGNFMModSettings.cpp.

References asJsonObject().

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

◆ asJsonObject()

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

Reimplemented from SWGSDRangel::SWGObject.

Definition at line 218 of file SWGNFMModSettings.cpp.

References af_bandwidth, audio_device_name, channel_mute, ctcss_index, ctcss_on, cw_keyer, fm_deviation, input_frequency_offset, SWGSDRangel::SWGCWKeyerSettings::isSet(), m_af_bandwidth_isSet, m_channel_mute_isSet, m_ctcss_index_isSet, m_ctcss_on_isSet, m_fm_deviation_isSet, m_input_frequency_offset_isSet, m_mod_af_input_isSet, m_play_loop_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_tone_frequency_isSet, m_use_reverse_api_isSet, m_volume_factor_isSet, mod_af_input, play_loop, reverse_api_address, reverse_api_channel_index, reverse_api_device_index, reverse_api_port, rf_bandwidth, rgb_color, title, SWGSDRangel::toJsonValue(), tone_frequency, use_reverse_api, and volume_factor.

Referenced by asJson().

218  {
219  QJsonObject* obj = new QJsonObject();
221  obj->insert("inputFrequencyOffset", QJsonValue(input_frequency_offset));
222  }
224  obj->insert("rfBandwidth", QJsonValue(rf_bandwidth));
225  }
227  obj->insert("afBandwidth", QJsonValue(af_bandwidth));
228  }
230  obj->insert("fmDeviation", QJsonValue(fm_deviation));
231  }
233  obj->insert("toneFrequency", QJsonValue(tone_frequency));
234  }
236  obj->insert("volumeFactor", QJsonValue(volume_factor));
237  }
239  obj->insert("channelMute", QJsonValue(channel_mute));
240  }
241  if(m_play_loop_isSet){
242  obj->insert("playLoop", QJsonValue(play_loop));
243  }
244  if(m_ctcss_on_isSet){
245  obj->insert("ctcssOn", QJsonValue(ctcss_on));
246  }
248  obj->insert("ctcssIndex", QJsonValue(ctcss_index));
249  }
250  if(m_rgb_color_isSet){
251  obj->insert("rgbColor", QJsonValue(rgb_color));
252  }
253  if(title != nullptr && *title != QString("")){
254  toJsonValue(QString("title"), title, obj, QString("QString"));
255  }
256  if(audio_device_name != nullptr && *audio_device_name != QString("")){
257  toJsonValue(QString("audioDeviceName"), audio_device_name, obj, QString("QString"));
258  }
260  obj->insert("modAFInput", QJsonValue(mod_af_input));
261  }
263  obj->insert("useReverseAPI", QJsonValue(use_reverse_api));
264  }
265  if(reverse_api_address != nullptr && *reverse_api_address != QString("")){
266  toJsonValue(QString("reverseAPIAddress"), reverse_api_address, obj, QString("QString"));
267  }
269  obj->insert("reverseAPIPort", QJsonValue(reverse_api_port));
270  }
272  obj->insert("reverseAPIDeviceIndex", QJsonValue(reverse_api_device_index));
273  }
275  obj->insert("reverseAPIChannelIndex", QJsonValue(reverse_api_channel_index));
276  }
277  if((cw_keyer != nullptr) && (cw_keyer->isSet())){
278  toJsonValue(QString("cwKeyer"), cw_keyer, obj, QString("SWGCWKeyerSettings"));
279  }
280 
281  return obj;
282 }
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::SWGNFMModSettings::cleanup ( )

Definition at line 122 of file SWGNFMModSettings.cpp.

References audio_device_name, cw_keyer, reverse_api_address, and title.

Referenced by ~SWGNFMModSettings().

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

◆ fromJson()

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

Reimplemented from SWGSDRangel::SWGObject.

Definition at line 154 of file SWGNFMModSettings.cpp.

References fromJsonObject().

Referenced by SWGNFMModSettings().

154  {
155  QByteArray array (json.toStdString().c_str());
156  QJsonDocument doc = QJsonDocument::fromJson(array);
157  QJsonObject jsonObject = doc.object();
158  this->fromJsonObject(jsonObject);
159  return this;
160 }
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::SWGNFMModSettings::fromJsonObject ( QJsonObject &  json)
overridevirtual

Reimplemented from SWGSDRangel::SWGObject.

Definition at line 163 of file SWGNFMModSettings.cpp.

References af_bandwidth, audio_device_name, channel_mute, ctcss_index, ctcss_on, cw_keyer, fm_deviation, input_frequency_offset, mod_af_input, play_loop, reverse_api_address, reverse_api_channel_index, reverse_api_device_index, reverse_api_port, rf_bandwidth, rgb_color, SWGSDRangel::setValue(), title, tone_frequency, use_reverse_api, and volume_factor.

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

163  {
164  ::SWGSDRangel::setValue(&input_frequency_offset, pJson["inputFrequencyOffset"], "qint64", "");
165 
166  ::SWGSDRangel::setValue(&rf_bandwidth, pJson["rfBandwidth"], "float", "");
167 
168  ::SWGSDRangel::setValue(&af_bandwidth, pJson["afBandwidth"], "float", "");
169 
170  ::SWGSDRangel::setValue(&fm_deviation, pJson["fmDeviation"], "float", "");
171 
172  ::SWGSDRangel::setValue(&tone_frequency, pJson["toneFrequency"], "float", "");
173 
174  ::SWGSDRangel::setValue(&volume_factor, pJson["volumeFactor"], "float", "");
175 
176  ::SWGSDRangel::setValue(&channel_mute, pJson["channelMute"], "qint32", "");
177 
178  ::SWGSDRangel::setValue(&play_loop, pJson["playLoop"], "qint32", "");
179 
180  ::SWGSDRangel::setValue(&ctcss_on, pJson["ctcssOn"], "qint32", "");
181 
182  ::SWGSDRangel::setValue(&ctcss_index, pJson["ctcssIndex"], "qint32", "");
183 
184  ::SWGSDRangel::setValue(&rgb_color, pJson["rgbColor"], "qint32", "");
185 
186  ::SWGSDRangel::setValue(&title, pJson["title"], "QString", "QString");
187 
188  ::SWGSDRangel::setValue(&audio_device_name, pJson["audioDeviceName"], "QString", "QString");
189 
190  ::SWGSDRangel::setValue(&mod_af_input, pJson["modAFInput"], "qint32", "");
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  ::SWGSDRangel::setValue(&cw_keyer, pJson["cwKeyer"], "SWGCWKeyerSettings", "SWGCWKeyerSettings");
203 
204 }
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::SWGNFMModSettings::getAfBandwidth ( )

Definition at line 305 of file SWGNFMModSettings.cpp.

References af_bandwidth.

Referenced by NFMMod::webapiSettingsPutPatch().

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

◆ getAudioDeviceName()

QString * SWGSDRangel::SWGNFMModSettings::getAudioDeviceName ( )

Definition at line 405 of file SWGNFMModSettings.cpp.

References audio_device_name.

Referenced by NFMMod::webapiFormatChannelSettings().

405  {
406  return audio_device_name;
407 }
+ Here is the caller graph for this function:

◆ getChannelMute()

qint32 SWGSDRangel::SWGNFMModSettings::getChannelMute ( )

Definition at line 345 of file SWGNFMModSettings.cpp.

References channel_mute.

Referenced by NFMMod::webapiSettingsPutPatch().

345  {
346  return channel_mute;
347 }
+ Here is the caller graph for this function:

◆ getCtcssIndex()

qint32 SWGSDRangel::SWGNFMModSettings::getCtcssIndex ( )

Definition at line 375 of file SWGNFMModSettings.cpp.

References ctcss_index.

Referenced by NFMMod::webapiSettingsPutPatch().

375  {
376  return ctcss_index;
377 }
+ Here is the caller graph for this function:

◆ getCtcssOn()

qint32 SWGSDRangel::SWGNFMModSettings::getCtcssOn ( )

Definition at line 365 of file SWGNFMModSettings.cpp.

References ctcss_on.

Referenced by NFMMod::webapiSettingsPutPatch().

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

◆ getCwKeyer()

SWGCWKeyerSettings * SWGSDRangel::SWGNFMModSettings::getCwKeyer ( )

Definition at line 475 of file SWGNFMModSettings.cpp.

References cw_keyer.

Referenced by NFMMod::webapiFormatChannelSettings(), NFMMod::webapiReverseSendCWSettings(), NFMMod::webapiReverseSendSettings(), and NFMMod::webapiSettingsPutPatch().

475  {
476  return cw_keyer;
477 }
+ Here is the caller graph for this function:

◆ getFmDeviation()

float SWGSDRangel::SWGNFMModSettings::getFmDeviation ( )

Definition at line 315 of file SWGNFMModSettings.cpp.

References fm_deviation.

Referenced by NFMMod::webapiSettingsPutPatch().

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

◆ getInputFrequencyOffset()

qint64 SWGSDRangel::SWGNFMModSettings::getInputFrequencyOffset ( )

Definition at line 285 of file SWGNFMModSettings.cpp.

References input_frequency_offset.

Referenced by NFMMod::webapiSettingsPutPatch().

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

◆ getModAfInput()

qint32 SWGSDRangel::SWGNFMModSettings::getModAfInput ( )

Definition at line 415 of file SWGNFMModSettings.cpp.

References mod_af_input.

Referenced by NFMMod::webapiSettingsPutPatch().

415  {
416  return mod_af_input;
417 }
+ Here is the caller graph for this function:

◆ getPlayLoop()

qint32 SWGSDRangel::SWGNFMModSettings::getPlayLoop ( )

Definition at line 355 of file SWGNFMModSettings.cpp.

References play_loop.

Referenced by NFMMod::webapiSettingsPutPatch().

355  {
356  return play_loop;
357 }
+ Here is the caller graph for this function:

◆ getReverseApiAddress()

QString * SWGSDRangel::SWGNFMModSettings::getReverseApiAddress ( )

Definition at line 435 of file SWGNFMModSettings.cpp.

References reverse_api_address.

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

435  {
436  return reverse_api_address;
437 }
+ Here is the caller graph for this function:

◆ getReverseApiChannelIndex()

qint32 SWGSDRangel::SWGNFMModSettings::getReverseApiChannelIndex ( )

Definition at line 465 of file SWGNFMModSettings.cpp.

References reverse_api_channel_index.

Referenced by NFMMod::webapiSettingsPutPatch().

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

◆ getReverseApiDeviceIndex()

qint32 SWGSDRangel::SWGNFMModSettings::getReverseApiDeviceIndex ( )

Definition at line 455 of file SWGNFMModSettings.cpp.

References reverse_api_device_index.

Referenced by NFMMod::webapiSettingsPutPatch().

455  {
457 }
+ Here is the caller graph for this function:

◆ getReverseApiPort()

qint32 SWGSDRangel::SWGNFMModSettings::getReverseApiPort ( )

Definition at line 445 of file SWGNFMModSettings.cpp.

References reverse_api_port.

Referenced by NFMMod::webapiSettingsPutPatch().

445  {
446  return reverse_api_port;
447 }
+ Here is the caller graph for this function:

◆ getRfBandwidth()

float SWGSDRangel::SWGNFMModSettings::getRfBandwidth ( )

Definition at line 295 of file SWGNFMModSettings.cpp.

References rf_bandwidth.

Referenced by NFMMod::webapiSettingsPutPatch().

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

◆ getRgbColor()

qint32 SWGSDRangel::SWGNFMModSettings::getRgbColor ( )

Definition at line 385 of file SWGNFMModSettings.cpp.

References rgb_color.

Referenced by NFMMod::webapiSettingsPutPatch().

385  {
386  return rgb_color;
387 }
+ Here is the caller graph for this function:

◆ getTitle()

QString * SWGSDRangel::SWGNFMModSettings::getTitle ( )

Definition at line 395 of file SWGNFMModSettings.cpp.

References title.

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

395  {
396  return title;
397 }
+ Here is the caller graph for this function:

◆ getToneFrequency()

float SWGSDRangel::SWGNFMModSettings::getToneFrequency ( )

Definition at line 325 of file SWGNFMModSettings.cpp.

References tone_frequency.

Referenced by NFMMod::webapiSettingsPutPatch().

325  {
326  return tone_frequency;
327 }
+ Here is the caller graph for this function:

◆ getUseReverseApi()

qint32 SWGSDRangel::SWGNFMModSettings::getUseReverseApi ( )

Definition at line 425 of file SWGNFMModSettings.cpp.

References use_reverse_api.

Referenced by NFMMod::webapiSettingsPutPatch().

425  {
426  return use_reverse_api;
427 }
+ Here is the caller graph for this function:

◆ getVolumeFactor()

float SWGSDRangel::SWGNFMModSettings::getVolumeFactor ( )

Definition at line 335 of file SWGNFMModSettings.cpp.

References volume_factor.

Referenced by NFMMod::webapiSettingsPutPatch().

335  {
336  return volume_factor;
337 }
+ Here is the caller graph for this function:

◆ init()

void SWGSDRangel::SWGNFMModSettings::init ( )

Definition at line 78 of file SWGNFMModSettings.cpp.

References af_bandwidth, audio_device_name, channel_mute, ctcss_index, ctcss_on, cw_keyer, fm_deviation, input_frequency_offset, m_af_bandwidth_isSet, m_audio_device_name_isSet, m_channel_mute_isSet, m_ctcss_index_isSet, m_ctcss_on_isSet, m_cw_keyer_isSet, m_fm_deviation_isSet, m_input_frequency_offset_isSet, m_mod_af_input_isSet, m_play_loop_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_title_isSet, m_tone_frequency_isSet, m_use_reverse_api_isSet, m_volume_factor_isSet, mod_af_input, play_loop, reverse_api_address, reverse_api_channel_index, reverse_api_device_index, reverse_api_port, rf_bandwidth, rgb_color, title, tone_frequency, use_reverse_api, and volume_factor.

Referenced by SWGNFMModSettings(), and NFMMod::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.0f;
86  m_fm_deviation_isSet = false;
87  tone_frequency = 0.0f;
88  m_tone_frequency_isSet = false;
89  volume_factor = 0.0f;
90  m_volume_factor_isSet = false;
91  channel_mute = 0;
92  m_channel_mute_isSet = false;
93  play_loop = 0;
94  m_play_loop_isSet = false;
95  ctcss_on = 0;
96  m_ctcss_on_isSet = false;
97  ctcss_index = 0;
98  m_ctcss_index_isSet = false;
99  rgb_color = 0;
100  m_rgb_color_isSet = false;
101  title = new QString("");
102  m_title_isSet = false;
103  audio_device_name = new QString("");
105  mod_af_input = 0;
106  m_mod_af_input_isSet = false;
107  use_reverse_api = 0;
108  m_use_reverse_api_isSet = false;
109  reverse_api_address = new QString("");
111  reverse_api_port = 0;
112  m_reverse_api_port_isSet = false;
117  cw_keyer = new SWGCWKeyerSettings();
118  m_cw_keyer_isSet = false;
119 }
+ Here is the caller graph for this function:

◆ isSet()

bool SWGSDRangel::SWGNFMModSettings::isSet ( )
overridevirtual

Reimplemented from SWGSDRangel::SWGObject.

Definition at line 486 of file SWGNFMModSettings.cpp.

References audio_device_name, cw_keyer, SWGSDRangel::SWGCWKeyerSettings::isSet(), m_af_bandwidth_isSet, m_channel_mute_isSet, m_ctcss_index_isSet, m_ctcss_on_isSet, m_fm_deviation_isSet, m_input_frequency_offset_isSet, m_mod_af_input_isSet, m_play_loop_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_tone_frequency_isSet, m_use_reverse_api_isSet, m_volume_factor_isSet, reverse_api_address, and title.

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

486  {
487  bool isObjectUpdated = false;
488  do{
489  if(m_input_frequency_offset_isSet){ isObjectUpdated = true; break;}
490  if(m_rf_bandwidth_isSet){ isObjectUpdated = true; break;}
491  if(m_af_bandwidth_isSet){ isObjectUpdated = true; break;}
492  if(m_fm_deviation_isSet){ isObjectUpdated = true; break;}
493  if(m_tone_frequency_isSet){ isObjectUpdated = true; break;}
494  if(m_volume_factor_isSet){ isObjectUpdated = true; break;}
495  if(m_channel_mute_isSet){ isObjectUpdated = true; break;}
496  if(m_play_loop_isSet){ isObjectUpdated = true; break;}
497  if(m_ctcss_on_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_mod_af_input_isSet){ isObjectUpdated = true; break;}
503  if(m_use_reverse_api_isSet){ isObjectUpdated = true; break;}
504  if(reverse_api_address != nullptr && *reverse_api_address != QString("")){ isObjectUpdated = true; break;}
505  if(m_reverse_api_port_isSet){ isObjectUpdated = true; break;}
506  if(m_reverse_api_device_index_isSet){ isObjectUpdated = true; break;}
507  if(m_reverse_api_channel_index_isSet){ isObjectUpdated = true; break;}
508  if(cw_keyer != nullptr && cw_keyer->isSet()){ isObjectUpdated = true; break;}
509  }while(false);
510  return isObjectUpdated;
511 }
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ setAfBandwidth()

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

Definition at line 309 of file SWGNFMModSettings.cpp.

References af_bandwidth, and m_af_bandwidth_isSet.

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

+ Here is the caller graph for this function:

◆ setAudioDeviceName()

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

Definition at line 409 of file SWGNFMModSettings.cpp.

References audio_device_name, and m_audio_device_name_isSet.

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

+ Here is the caller graph for this function:

◆ setChannelMute()

void SWGSDRangel::SWGNFMModSettings::setChannelMute ( qint32  channel_mute)

Definition at line 349 of file SWGNFMModSettings.cpp.

References channel_mute, and m_channel_mute_isSet.

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

+ Here is the caller graph for this function:

◆ setCtcssIndex()

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

Definition at line 379 of file SWGNFMModSettings.cpp.

References ctcss_index, and m_ctcss_index_isSet.

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

379  {
380  this->ctcss_index = ctcss_index;
381  this->m_ctcss_index_isSet = true;
382 }
+ Here is the caller graph for this function:

◆ setCtcssOn()

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

Definition at line 369 of file SWGNFMModSettings.cpp.

References ctcss_on, and m_ctcss_on_isSet.

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

369  {
370  this->ctcss_on = ctcss_on;
371  this->m_ctcss_on_isSet = true;
372 }
+ Here is the caller graph for this function:

◆ setCwKeyer()

void SWGSDRangel::SWGNFMModSettings::setCwKeyer ( SWGCWKeyerSettings cw_keyer)

Definition at line 479 of file SWGNFMModSettings.cpp.

References cw_keyer, and m_cw_keyer_isSet.

Referenced by NFMMod::webapiFormatChannelSettings(), NFMMod::webapiReverseSendCWSettings(), and NFMMod::webapiReverseSendSettings().

479  {
480  this->cw_keyer = cw_keyer;
481  this->m_cw_keyer_isSet = true;
482 }
+ Here is the caller graph for this function:

◆ setFmDeviation()

void SWGSDRangel::SWGNFMModSettings::setFmDeviation ( float  fm_deviation)

Definition at line 319 of file SWGNFMModSettings.cpp.

References fm_deviation, and m_fm_deviation_isSet.

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

+ Here is the caller graph for this function:

◆ setInputFrequencyOffset()

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

Definition at line 289 of file SWGNFMModSettings.cpp.

References input_frequency_offset, and m_input_frequency_offset_isSet.

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

+ Here is the caller graph for this function:

◆ setModAfInput()

void SWGSDRangel::SWGNFMModSettings::setModAfInput ( qint32  mod_af_input)

Definition at line 419 of file SWGNFMModSettings.cpp.

References m_mod_af_input_isSet, and mod_af_input.

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

+ Here is the caller graph for this function:

◆ setPlayLoop()

void SWGSDRangel::SWGNFMModSettings::setPlayLoop ( qint32  play_loop)

Definition at line 359 of file SWGNFMModSettings.cpp.

References m_play_loop_isSet, and play_loop.

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

359  {
360  this->play_loop = play_loop;
361  this->m_play_loop_isSet = true;
362 }
+ Here is the caller graph for this function:

◆ setReverseApiAddress()

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

Definition at line 439 of file SWGNFMModSettings.cpp.

References m_reverse_api_address_isSet, and reverse_api_address.

Referenced by NFMMod::webapiFormatChannelSettings().

+ Here is the caller graph for this function:

◆ setReverseApiChannelIndex()

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

Definition at line 469 of file SWGNFMModSettings.cpp.

References m_reverse_api_channel_index_isSet, and reverse_api_channel_index.

Referenced by NFMMod::webapiFormatChannelSettings().

+ Here is the caller graph for this function:

◆ setReverseApiDeviceIndex()

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

Definition at line 459 of file SWGNFMModSettings.cpp.

References m_reverse_api_device_index_isSet, and reverse_api_device_index.

Referenced by NFMMod::webapiFormatChannelSettings().

+ Here is the caller graph for this function:

◆ setReverseApiPort()

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

Definition at line 449 of file SWGNFMModSettings.cpp.

References m_reverse_api_port_isSet, and reverse_api_port.

Referenced by NFMMod::webapiFormatChannelSettings().

+ Here is the caller graph for this function:

◆ setRfBandwidth()

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

Definition at line 299 of file SWGNFMModSettings.cpp.

References m_rf_bandwidth_isSet, and rf_bandwidth.

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

+ Here is the caller graph for this function:

◆ setRgbColor()

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

Definition at line 389 of file SWGNFMModSettings.cpp.

References m_rgb_color_isSet, and rgb_color.

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

389  {
390  this->rgb_color = rgb_color;
391  this->m_rgb_color_isSet = true;
392 }
+ Here is the caller graph for this function:

◆ setTitle()

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

Definition at line 399 of file SWGNFMModSettings.cpp.

References m_title_isSet, and title.

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

399  {
400  this->title = title;
401  this->m_title_isSet = true;
402 }
+ Here is the caller graph for this function:

◆ setToneFrequency()

void SWGSDRangel::SWGNFMModSettings::setToneFrequency ( float  tone_frequency)

Definition at line 329 of file SWGNFMModSettings.cpp.

References m_tone_frequency_isSet, and tone_frequency.

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

+ Here is the caller graph for this function:

◆ setUseReverseApi()

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

Definition at line 429 of file SWGNFMModSettings.cpp.

References m_use_reverse_api_isSet, and use_reverse_api.

Referenced by NFMMod::webapiFormatChannelSettings().

+ Here is the caller graph for this function:

◆ setVolumeFactor()

void SWGSDRangel::SWGNFMModSettings::setVolumeFactor ( float  volume_factor)

Definition at line 339 of file SWGNFMModSettings.cpp.

References m_volume_factor_isSet, and volume_factor.

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

+ Here is the caller graph for this function:

Member Data Documentation

◆ af_bandwidth

float SWGSDRangel::SWGNFMModSettings::af_bandwidth
private

◆ audio_device_name

QString* SWGSDRangel::SWGNFMModSettings::audio_device_name
private

◆ channel_mute

qint32 SWGSDRangel::SWGNFMModSettings::channel_mute
private

◆ ctcss_index

qint32 SWGSDRangel::SWGNFMModSettings::ctcss_index
private

◆ ctcss_on

qint32 SWGSDRangel::SWGNFMModSettings::ctcss_on
private

◆ cw_keyer

SWGCWKeyerSettings* SWGSDRangel::SWGNFMModSettings::cw_keyer
private

◆ fm_deviation

float SWGSDRangel::SWGNFMModSettings::fm_deviation
private

◆ input_frequency_offset

qint64 SWGSDRangel::SWGNFMModSettings::input_frequency_offset
private

◆ m_af_bandwidth_isSet

bool SWGSDRangel::SWGNFMModSettings::m_af_bandwidth_isSet
private

Definition at line 117 of file SWGNFMModSettings.h.

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

◆ m_audio_device_name_isSet

bool SWGSDRangel::SWGNFMModSettings::m_audio_device_name_isSet
private

Definition at line 147 of file SWGNFMModSettings.h.

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

◆ m_channel_mute_isSet

bool SWGSDRangel::SWGNFMModSettings::m_channel_mute_isSet
private

Definition at line 129 of file SWGNFMModSettings.h.

Referenced by asJsonObject(), init(), isSet(), setChannelMute(), and SWGNFMModSettings().

◆ m_ctcss_index_isSet

bool SWGSDRangel::SWGNFMModSettings::m_ctcss_index_isSet
private

Definition at line 138 of file SWGNFMModSettings.h.

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

◆ m_ctcss_on_isSet

bool SWGSDRangel::SWGNFMModSettings::m_ctcss_on_isSet
private

Definition at line 135 of file SWGNFMModSettings.h.

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

◆ m_cw_keyer_isSet

bool SWGSDRangel::SWGNFMModSettings::m_cw_keyer_isSet
private

Definition at line 168 of file SWGNFMModSettings.h.

Referenced by init(), setCwKeyer(), and SWGNFMModSettings().

◆ m_fm_deviation_isSet

bool SWGSDRangel::SWGNFMModSettings::m_fm_deviation_isSet
private

Definition at line 120 of file SWGNFMModSettings.h.

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

◆ m_input_frequency_offset_isSet

bool SWGSDRangel::SWGNFMModSettings::m_input_frequency_offset_isSet
private

◆ m_mod_af_input_isSet

bool SWGSDRangel::SWGNFMModSettings::m_mod_af_input_isSet
private

Definition at line 150 of file SWGNFMModSettings.h.

Referenced by asJsonObject(), init(), isSet(), setModAfInput(), and SWGNFMModSettings().

◆ m_play_loop_isSet

bool SWGSDRangel::SWGNFMModSettings::m_play_loop_isSet
private

Definition at line 132 of file SWGNFMModSettings.h.

Referenced by asJsonObject(), init(), isSet(), setPlayLoop(), and SWGNFMModSettings().

◆ m_reverse_api_address_isSet

bool SWGSDRangel::SWGNFMModSettings::m_reverse_api_address_isSet
private

Definition at line 156 of file SWGNFMModSettings.h.

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

◆ m_reverse_api_channel_index_isSet

bool SWGSDRangel::SWGNFMModSettings::m_reverse_api_channel_index_isSet
private

◆ m_reverse_api_device_index_isSet

bool SWGSDRangel::SWGNFMModSettings::m_reverse_api_device_index_isSet
private

◆ m_reverse_api_port_isSet

bool SWGSDRangel::SWGNFMModSettings::m_reverse_api_port_isSet
private

Definition at line 159 of file SWGNFMModSettings.h.

Referenced by asJsonObject(), init(), isSet(), setReverseApiPort(), and SWGNFMModSettings().

◆ m_rf_bandwidth_isSet

bool SWGSDRangel::SWGNFMModSettings::m_rf_bandwidth_isSet
private

Definition at line 114 of file SWGNFMModSettings.h.

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

◆ m_rgb_color_isSet

bool SWGSDRangel::SWGNFMModSettings::m_rgb_color_isSet
private

Definition at line 141 of file SWGNFMModSettings.h.

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

◆ m_title_isSet

bool SWGSDRangel::SWGNFMModSettings::m_title_isSet
private

Definition at line 144 of file SWGNFMModSettings.h.

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

◆ m_tone_frequency_isSet

bool SWGSDRangel::SWGNFMModSettings::m_tone_frequency_isSet
private

Definition at line 123 of file SWGNFMModSettings.h.

Referenced by asJsonObject(), init(), isSet(), setToneFrequency(), and SWGNFMModSettings().

◆ m_use_reverse_api_isSet

bool SWGSDRangel::SWGNFMModSettings::m_use_reverse_api_isSet
private

Definition at line 153 of file SWGNFMModSettings.h.

Referenced by asJsonObject(), init(), isSet(), setUseReverseApi(), and SWGNFMModSettings().

◆ m_volume_factor_isSet

bool SWGSDRangel::SWGNFMModSettings::m_volume_factor_isSet
private

Definition at line 126 of file SWGNFMModSettings.h.

Referenced by asJsonObject(), init(), isSet(), setVolumeFactor(), and SWGNFMModSettings().

◆ mod_af_input

qint32 SWGSDRangel::SWGNFMModSettings::mod_af_input
private

◆ play_loop

qint32 SWGSDRangel::SWGNFMModSettings::play_loop
private

◆ reverse_api_address

QString* SWGSDRangel::SWGNFMModSettings::reverse_api_address
private

◆ reverse_api_channel_index

qint32 SWGSDRangel::SWGNFMModSettings::reverse_api_channel_index
private

◆ reverse_api_device_index

qint32 SWGSDRangel::SWGNFMModSettings::reverse_api_device_index
private

◆ reverse_api_port

qint32 SWGSDRangel::SWGNFMModSettings::reverse_api_port
private

◆ rf_bandwidth

float SWGSDRangel::SWGNFMModSettings::rf_bandwidth
private

◆ rgb_color

qint32 SWGSDRangel::SWGNFMModSettings::rgb_color
private

◆ title

QString* SWGSDRangel::SWGNFMModSettings::title
private

◆ tone_frequency

float SWGSDRangel::SWGNFMModSettings::tone_frequency
private

◆ use_reverse_api

qint32 SWGSDRangel::SWGNFMModSettings::use_reverse_api
private

◆ volume_factor

float SWGSDRangel::SWGNFMModSettings::volume_factor
private

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