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

#include <SWGWFMModSettings.h>

+ Inheritance diagram for SWGSDRangel::SWGWFMModSettings:
+ Collaboration diagram for SWGSDRangel::SWGWFMModSettings:

Public Member Functions

 SWGWFMModSettings ()
 
 SWGWFMModSettings (QString *json)
 
virtual ~SWGWFMModSettings ()
 
void init ()
 
void cleanup ()
 
virtual QString asJson () override
 
virtual QJsonObject * asJsonObject () override
 
virtual void fromJsonObject (QJsonObject &json) override
 
virtual SWGWFMModSettingsfromJson (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 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 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 SWGWFMModSettings.h.

Constructor & Destructor Documentation

◆ SWGWFMModSettings() [1/2]

SWGSDRangel::SWGWFMModSettings::SWGWFMModSettings ( )

Definition at line 30 of file SWGWFMModSettings.cpp.

References af_bandwidth, audio_device_name, channel_mute, cw_keyer, fm_deviation, input_frequency_offset, m_af_bandwidth_isSet, m_audio_device_name_isSet, m_channel_mute_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  rgb_color = 0;
48  m_rgb_color_isSet = false;
49  title = nullptr;
50  m_title_isSet = false;
51  audio_device_name = nullptr;
53  mod_af_input = 0;
54  m_mod_af_input_isSet = false;
55  use_reverse_api = 0;
57  reverse_api_address = nullptr;
59  reverse_api_port = 0;
65  cw_keyer = nullptr;
66  m_cw_keyer_isSet = false;
67 }

◆ SWGWFMModSettings() [2/2]

SWGSDRangel::SWGWFMModSettings::SWGWFMModSettings ( QString *  json)

Definition at line 25 of file SWGWFMModSettings.cpp.

References fromJson(), and init().

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

◆ ~SWGWFMModSettings()

SWGSDRangel::SWGWFMModSettings::~SWGWFMModSettings ( )
virtual

Definition at line 69 of file SWGWFMModSettings.cpp.

References cleanup().

69  {
70  this->cleanup();
71 }
+ Here is the call graph for this function:

Member Function Documentation

◆ asJson()

QString SWGSDRangel::SWGWFMModSettings::asJson ( )
overridevirtual

Reimplemented from SWGSDRangel::SWGObject.

Definition at line 193 of file SWGWFMModSettings.cpp.

References asJsonObject().

194 {
195  QJsonObject* obj = this->asJsonObject();
196 
197  QJsonDocument doc(*obj);
198  QByteArray bytes = doc.toJson();
199  delete obj;
200  return QString(bytes);
201 }
virtual QJsonObject * asJsonObject() override
+ Here is the call graph for this function:

◆ asJsonObject()

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

Reimplemented from SWGSDRangel::SWGObject.

Definition at line 204 of file SWGWFMModSettings.cpp.

References af_bandwidth, audio_device_name, channel_mute, cw_keyer, fm_deviation, input_frequency_offset, SWGSDRangel::SWGCWKeyerSettings::isSet(), m_af_bandwidth_isSet, m_channel_mute_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().

204  {
205  QJsonObject* obj = new QJsonObject();
207  obj->insert("inputFrequencyOffset", QJsonValue(input_frequency_offset));
208  }
210  obj->insert("rfBandwidth", QJsonValue(rf_bandwidth));
211  }
213  obj->insert("afBandwidth", QJsonValue(af_bandwidth));
214  }
216  obj->insert("fmDeviation", QJsonValue(fm_deviation));
217  }
219  obj->insert("toneFrequency", QJsonValue(tone_frequency));
220  }
222  obj->insert("volumeFactor", QJsonValue(volume_factor));
223  }
225  obj->insert("channelMute", QJsonValue(channel_mute));
226  }
227  if(m_play_loop_isSet){
228  obj->insert("playLoop", QJsonValue(play_loop));
229  }
230  if(m_rgb_color_isSet){
231  obj->insert("rgbColor", QJsonValue(rgb_color));
232  }
233  if(title != nullptr && *title != QString("")){
234  toJsonValue(QString("title"), title, obj, QString("QString"));
235  }
236  if(audio_device_name != nullptr && *audio_device_name != QString("")){
237  toJsonValue(QString("audioDeviceName"), audio_device_name, obj, QString("QString"));
238  }
240  obj->insert("modAFInput", QJsonValue(mod_af_input));
241  }
243  obj->insert("useReverseAPI", QJsonValue(use_reverse_api));
244  }
245  if(reverse_api_address != nullptr && *reverse_api_address != QString("")){
246  toJsonValue(QString("reverseAPIAddress"), reverse_api_address, obj, QString("QString"));
247  }
249  obj->insert("reverseAPIPort", QJsonValue(reverse_api_port));
250  }
252  obj->insert("reverseAPIDeviceIndex", QJsonValue(reverse_api_device_index));
253  }
255  obj->insert("reverseAPIChannelIndex", QJsonValue(reverse_api_channel_index));
256  }
257  if((cw_keyer != nullptr) && (cw_keyer->isSet())){
258  toJsonValue(QString("cwKeyer"), cw_keyer, obj, QString("SWGCWKeyerSettings"));
259  }
260 
261  return obj;
262 }
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::SWGWFMModSettings::cleanup ( )

Definition at line 114 of file SWGWFMModSettings.cpp.

References audio_device_name, cw_keyer, reverse_api_address, and title.

Referenced by ~SWGWFMModSettings().

114  {
115 
116 
117 
118 
119 
120 
121 
122 
123 
124  if(title != nullptr) {
125  delete title;
126  }
127  if(audio_device_name != nullptr) {
128  delete audio_device_name;
129  }
130 
131 
132  if(reverse_api_address != nullptr) {
133  delete reverse_api_address;
134  }
135 
136 
137 
138  if(cw_keyer != nullptr) {
139  delete cw_keyer;
140  }
141 }
+ Here is the caller graph for this function:

◆ fromJson()

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

Reimplemented from SWGSDRangel::SWGObject.

Definition at line 144 of file SWGWFMModSettings.cpp.

References fromJsonObject().

Referenced by SWGWFMModSettings().

144  {
145  QByteArray array (json.toStdString().c_str());
146  QJsonDocument doc = QJsonDocument::fromJson(array);
147  QJsonObject jsonObject = doc.object();
148  this->fromJsonObject(jsonObject);
149  return this;
150 }
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::SWGWFMModSettings::fromJsonObject ( QJsonObject &  json)
overridevirtual

Reimplemented from SWGSDRangel::SWGObject.

Definition at line 153 of file SWGWFMModSettings.cpp.

References af_bandwidth, audio_device_name, channel_mute, 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().

153  {
154  ::SWGSDRangel::setValue(&input_frequency_offset, pJson["inputFrequencyOffset"], "qint64", "");
155 
156  ::SWGSDRangel::setValue(&rf_bandwidth, pJson["rfBandwidth"], "float", "");
157 
158  ::SWGSDRangel::setValue(&af_bandwidth, pJson["afBandwidth"], "float", "");
159 
160  ::SWGSDRangel::setValue(&fm_deviation, pJson["fmDeviation"], "float", "");
161 
162  ::SWGSDRangel::setValue(&tone_frequency, pJson["toneFrequency"], "float", "");
163 
164  ::SWGSDRangel::setValue(&volume_factor, pJson["volumeFactor"], "float", "");
165 
166  ::SWGSDRangel::setValue(&channel_mute, pJson["channelMute"], "qint32", "");
167 
168  ::SWGSDRangel::setValue(&play_loop, pJson["playLoop"], "qint32", "");
169 
170  ::SWGSDRangel::setValue(&rgb_color, pJson["rgbColor"], "qint32", "");
171 
172  ::SWGSDRangel::setValue(&title, pJson["title"], "QString", "QString");
173 
174  ::SWGSDRangel::setValue(&audio_device_name, pJson["audioDeviceName"], "QString", "QString");
175 
176  ::SWGSDRangel::setValue(&mod_af_input, pJson["modAFInput"], "qint32", "");
177 
178  ::SWGSDRangel::setValue(&use_reverse_api, pJson["useReverseAPI"], "qint32", "");
179 
180  ::SWGSDRangel::setValue(&reverse_api_address, pJson["reverseAPIAddress"], "QString", "QString");
181 
182  ::SWGSDRangel::setValue(&reverse_api_port, pJson["reverseAPIPort"], "qint32", "");
183 
184  ::SWGSDRangel::setValue(&reverse_api_device_index, pJson["reverseAPIDeviceIndex"], "qint32", "");
185 
186  ::SWGSDRangel::setValue(&reverse_api_channel_index, pJson["reverseAPIChannelIndex"], "qint32", "");
187 
188  ::SWGSDRangel::setValue(&cw_keyer, pJson["cwKeyer"], "SWGCWKeyerSettings", "SWGCWKeyerSettings");
189 
190 }
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::SWGWFMModSettings::getAfBandwidth ( )

Definition at line 285 of file SWGWFMModSettings.cpp.

References af_bandwidth.

Referenced by WFMMod::webapiSettingsPutPatch().

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

◆ getAudioDeviceName()

QString * SWGSDRangel::SWGWFMModSettings::getAudioDeviceName ( )

Definition at line 365 of file SWGWFMModSettings.cpp.

References audio_device_name.

Referenced by WFMMod::webapiFormatChannelSettings().

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

◆ getChannelMute()

qint32 SWGSDRangel::SWGWFMModSettings::getChannelMute ( )

Definition at line 325 of file SWGWFMModSettings.cpp.

References channel_mute.

Referenced by WFMMod::webapiSettingsPutPatch().

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

◆ getCwKeyer()

SWGCWKeyerSettings * SWGSDRangel::SWGWFMModSettings::getCwKeyer ( )

Definition at line 435 of file SWGWFMModSettings.cpp.

References cw_keyer.

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

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

◆ getFmDeviation()

float SWGSDRangel::SWGWFMModSettings::getFmDeviation ( )

Definition at line 295 of file SWGWFMModSettings.cpp.

References fm_deviation.

Referenced by WFMMod::webapiSettingsPutPatch().

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

◆ getInputFrequencyOffset()

qint64 SWGSDRangel::SWGWFMModSettings::getInputFrequencyOffset ( )

Definition at line 265 of file SWGWFMModSettings.cpp.

References input_frequency_offset.

Referenced by WFMMod::webapiSettingsPutPatch().

265  {
266  return input_frequency_offset;
267 }
+ Here is the caller graph for this function:

◆ getModAfInput()

qint32 SWGSDRangel::SWGWFMModSettings::getModAfInput ( )

Definition at line 375 of file SWGWFMModSettings.cpp.

References mod_af_input.

Referenced by WFMMod::webapiSettingsPutPatch().

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

◆ getPlayLoop()

qint32 SWGSDRangel::SWGWFMModSettings::getPlayLoop ( )

Definition at line 335 of file SWGWFMModSettings.cpp.

References play_loop.

Referenced by WFMMod::webapiSettingsPutPatch().

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

◆ getReverseApiAddress()

QString * SWGSDRangel::SWGWFMModSettings::getReverseApiAddress ( )

Definition at line 395 of file SWGWFMModSettings.cpp.

References reverse_api_address.

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

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

◆ getReverseApiChannelIndex()

qint32 SWGSDRangel::SWGWFMModSettings::getReverseApiChannelIndex ( )

Definition at line 425 of file SWGWFMModSettings.cpp.

References reverse_api_channel_index.

Referenced by WFMMod::webapiSettingsPutPatch().

425  {
427 }
+ Here is the caller graph for this function:

◆ getReverseApiDeviceIndex()

qint32 SWGSDRangel::SWGWFMModSettings::getReverseApiDeviceIndex ( )

Definition at line 415 of file SWGWFMModSettings.cpp.

References reverse_api_device_index.

Referenced by WFMMod::webapiSettingsPutPatch().

415  {
417 }
+ Here is the caller graph for this function:

◆ getReverseApiPort()

qint32 SWGSDRangel::SWGWFMModSettings::getReverseApiPort ( )

Definition at line 405 of file SWGWFMModSettings.cpp.

References reverse_api_port.

Referenced by WFMMod::webapiSettingsPutPatch().

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

◆ getRfBandwidth()

float SWGSDRangel::SWGWFMModSettings::getRfBandwidth ( )

Definition at line 275 of file SWGWFMModSettings.cpp.

References rf_bandwidth.

Referenced by WFMMod::webapiSettingsPutPatch().

275  {
276  return rf_bandwidth;
277 }
+ Here is the caller graph for this function:

◆ getRgbColor()

qint32 SWGSDRangel::SWGWFMModSettings::getRgbColor ( )

Definition at line 345 of file SWGWFMModSettings.cpp.

References rgb_color.

Referenced by WFMMod::webapiSettingsPutPatch().

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

◆ getTitle()

QString * SWGSDRangel::SWGWFMModSettings::getTitle ( )

Definition at line 355 of file SWGWFMModSettings.cpp.

References title.

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

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

◆ getToneFrequency()

float SWGSDRangel::SWGWFMModSettings::getToneFrequency ( )

Definition at line 305 of file SWGWFMModSettings.cpp.

References tone_frequency.

Referenced by WFMMod::webapiSettingsPutPatch().

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

◆ getUseReverseApi()

qint32 SWGSDRangel::SWGWFMModSettings::getUseReverseApi ( )

Definition at line 385 of file SWGWFMModSettings.cpp.

References use_reverse_api.

Referenced by WFMMod::webapiSettingsPutPatch().

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

◆ getVolumeFactor()

float SWGSDRangel::SWGWFMModSettings::getVolumeFactor ( )

Definition at line 315 of file SWGWFMModSettings.cpp.

References volume_factor.

Referenced by WFMMod::webapiSettingsPutPatch().

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

◆ init()

void SWGSDRangel::SWGWFMModSettings::init ( )

Definition at line 74 of file SWGWFMModSettings.cpp.

References af_bandwidth, audio_device_name, channel_mute, cw_keyer, fm_deviation, input_frequency_offset, m_af_bandwidth_isSet, m_audio_device_name_isSet, m_channel_mute_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 SWGWFMModSettings(), and WFMMod::webapiSettingsGet().

74  {
77  rf_bandwidth = 0.0f;
78  m_rf_bandwidth_isSet = false;
79  af_bandwidth = 0.0f;
80  m_af_bandwidth_isSet = false;
81  fm_deviation = 0.0f;
82  m_fm_deviation_isSet = false;
83  tone_frequency = 0.0f;
84  m_tone_frequency_isSet = false;
85  volume_factor = 0.0f;
86  m_volume_factor_isSet = false;
87  channel_mute = 0;
88  m_channel_mute_isSet = false;
89  play_loop = 0;
90  m_play_loop_isSet = false;
91  rgb_color = 0;
92  m_rgb_color_isSet = false;
93  title = new QString("");
94  m_title_isSet = false;
95  audio_device_name = new QString("");
97  mod_af_input = 0;
98  m_mod_af_input_isSet = false;
99  use_reverse_api = 0;
100  m_use_reverse_api_isSet = false;
101  reverse_api_address = new QString("");
103  reverse_api_port = 0;
104  m_reverse_api_port_isSet = false;
109  cw_keyer = new SWGCWKeyerSettings();
110  m_cw_keyer_isSet = false;
111 }
+ Here is the caller graph for this function:

◆ isSet()

bool SWGSDRangel::SWGWFMModSettings::isSet ( )
overridevirtual

Reimplemented from SWGSDRangel::SWGObject.

Definition at line 446 of file SWGWFMModSettings.cpp.

References audio_device_name, cw_keyer, SWGSDRangel::SWGCWKeyerSettings::isSet(), m_af_bandwidth_isSet, m_channel_mute_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().

446  {
447  bool isObjectUpdated = false;
448  do{
449  if(m_input_frequency_offset_isSet){ isObjectUpdated = true; break;}
450  if(m_rf_bandwidth_isSet){ isObjectUpdated = true; break;}
451  if(m_af_bandwidth_isSet){ isObjectUpdated = true; break;}
452  if(m_fm_deviation_isSet){ isObjectUpdated = true; break;}
453  if(m_tone_frequency_isSet){ isObjectUpdated = true; break;}
454  if(m_volume_factor_isSet){ isObjectUpdated = true; break;}
455  if(m_channel_mute_isSet){ isObjectUpdated = true; break;}
456  if(m_play_loop_isSet){ isObjectUpdated = true; break;}
457  if(m_rgb_color_isSet){ isObjectUpdated = true; break;}
458  if(title != nullptr && *title != QString("")){ isObjectUpdated = true; break;}
459  if(audio_device_name != nullptr && *audio_device_name != QString("")){ isObjectUpdated = true; break;}
460  if(m_mod_af_input_isSet){ isObjectUpdated = true; break;}
461  if(m_use_reverse_api_isSet){ isObjectUpdated = true; break;}
462  if(reverse_api_address != nullptr && *reverse_api_address != QString("")){ isObjectUpdated = true; break;}
463  if(m_reverse_api_port_isSet){ isObjectUpdated = true; break;}
464  if(m_reverse_api_device_index_isSet){ isObjectUpdated = true; break;}
465  if(m_reverse_api_channel_index_isSet){ isObjectUpdated = true; break;}
466  if(cw_keyer != nullptr && cw_keyer->isSet()){ isObjectUpdated = true; break;}
467  }while(false);
468  return isObjectUpdated;
469 }
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ setAfBandwidth()

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

Definition at line 289 of file SWGWFMModSettings.cpp.

References af_bandwidth, and m_af_bandwidth_isSet.

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

+ Here is the caller graph for this function:

◆ setAudioDeviceName()

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

Definition at line 369 of file SWGWFMModSettings.cpp.

References audio_device_name, and m_audio_device_name_isSet.

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

+ Here is the caller graph for this function:

◆ setChannelMute()

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

Definition at line 329 of file SWGWFMModSettings.cpp.

References channel_mute, and m_channel_mute_isSet.

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

+ Here is the caller graph for this function:

◆ setCwKeyer()

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

Definition at line 439 of file SWGWFMModSettings.cpp.

References cw_keyer, and m_cw_keyer_isSet.

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

439  {
440  this->cw_keyer = cw_keyer;
441  this->m_cw_keyer_isSet = true;
442 }
+ Here is the caller graph for this function:

◆ setFmDeviation()

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

Definition at line 299 of file SWGWFMModSettings.cpp.

References fm_deviation, and m_fm_deviation_isSet.

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

+ Here is the caller graph for this function:

◆ setInputFrequencyOffset()

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

Definition at line 269 of file SWGWFMModSettings.cpp.

References input_frequency_offset, and m_input_frequency_offset_isSet.

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

+ Here is the caller graph for this function:

◆ setModAfInput()

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

Definition at line 379 of file SWGWFMModSettings.cpp.

References m_mod_af_input_isSet, and mod_af_input.

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

+ Here is the caller graph for this function:

◆ setPlayLoop()

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

Definition at line 339 of file SWGWFMModSettings.cpp.

References m_play_loop_isSet, and play_loop.

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

339  {
340  this->play_loop = play_loop;
341  this->m_play_loop_isSet = true;
342 }
+ Here is the caller graph for this function:

◆ setReverseApiAddress()

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

Definition at line 399 of file SWGWFMModSettings.cpp.

References m_reverse_api_address_isSet, and reverse_api_address.

Referenced by WFMMod::webapiFormatChannelSettings().

+ Here is the caller graph for this function:

◆ setReverseApiChannelIndex()

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

Definition at line 429 of file SWGWFMModSettings.cpp.

References m_reverse_api_channel_index_isSet, and reverse_api_channel_index.

Referenced by WFMMod::webapiFormatChannelSettings().

+ Here is the caller graph for this function:

◆ setReverseApiDeviceIndex()

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

Definition at line 419 of file SWGWFMModSettings.cpp.

References m_reverse_api_device_index_isSet, and reverse_api_device_index.

Referenced by WFMMod::webapiFormatChannelSettings().

+ Here is the caller graph for this function:

◆ setReverseApiPort()

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

Definition at line 409 of file SWGWFMModSettings.cpp.

References m_reverse_api_port_isSet, and reverse_api_port.

Referenced by WFMMod::webapiFormatChannelSettings().

+ Here is the caller graph for this function:

◆ setRfBandwidth()

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

Definition at line 279 of file SWGWFMModSettings.cpp.

References m_rf_bandwidth_isSet, and rf_bandwidth.

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

+ Here is the caller graph for this function:

◆ setRgbColor()

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

Definition at line 349 of file SWGWFMModSettings.cpp.

References m_rgb_color_isSet, and rgb_color.

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

349  {
350  this->rgb_color = rgb_color;
351  this->m_rgb_color_isSet = true;
352 }
+ Here is the caller graph for this function:

◆ setTitle()

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

Definition at line 359 of file SWGWFMModSettings.cpp.

References m_title_isSet, and title.

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

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

◆ setToneFrequency()

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

Definition at line 309 of file SWGWFMModSettings.cpp.

References m_tone_frequency_isSet, and tone_frequency.

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

+ Here is the caller graph for this function:

◆ setUseReverseApi()

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

Definition at line 389 of file SWGWFMModSettings.cpp.

References m_use_reverse_api_isSet, and use_reverse_api.

Referenced by WFMMod::webapiFormatChannelSettings().

+ Here is the caller graph for this function:

◆ setVolumeFactor()

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

Definition at line 319 of file SWGWFMModSettings.cpp.

References m_volume_factor_isSet, and volume_factor.

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

+ Here is the caller graph for this function:

Member Data Documentation

◆ af_bandwidth

float SWGSDRangel::SWGWFMModSettings::af_bandwidth
private

◆ audio_device_name

QString* SWGSDRangel::SWGWFMModSettings::audio_device_name
private

◆ channel_mute

qint32 SWGSDRangel::SWGWFMModSettings::channel_mute
private

◆ cw_keyer

SWGCWKeyerSettings* SWGSDRangel::SWGWFMModSettings::cw_keyer
private

◆ fm_deviation

float SWGSDRangel::SWGWFMModSettings::fm_deviation
private

◆ input_frequency_offset

qint64 SWGSDRangel::SWGWFMModSettings::input_frequency_offset
private

◆ m_af_bandwidth_isSet

bool SWGSDRangel::SWGWFMModSettings::m_af_bandwidth_isSet
private

Definition at line 111 of file SWGWFMModSettings.h.

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

◆ m_audio_device_name_isSet

bool SWGSDRangel::SWGWFMModSettings::m_audio_device_name_isSet
private

Definition at line 135 of file SWGWFMModSettings.h.

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

◆ m_channel_mute_isSet

bool SWGSDRangel::SWGWFMModSettings::m_channel_mute_isSet
private

Definition at line 123 of file SWGWFMModSettings.h.

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

◆ m_cw_keyer_isSet

bool SWGSDRangel::SWGWFMModSettings::m_cw_keyer_isSet
private

Definition at line 156 of file SWGWFMModSettings.h.

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

◆ m_fm_deviation_isSet

bool SWGSDRangel::SWGWFMModSettings::m_fm_deviation_isSet
private

Definition at line 114 of file SWGWFMModSettings.h.

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

◆ m_input_frequency_offset_isSet

bool SWGSDRangel::SWGWFMModSettings::m_input_frequency_offset_isSet
private

◆ m_mod_af_input_isSet

bool SWGSDRangel::SWGWFMModSettings::m_mod_af_input_isSet
private

Definition at line 138 of file SWGWFMModSettings.h.

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

◆ m_play_loop_isSet

bool SWGSDRangel::SWGWFMModSettings::m_play_loop_isSet
private

Definition at line 126 of file SWGWFMModSettings.h.

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

◆ m_reverse_api_address_isSet

bool SWGSDRangel::SWGWFMModSettings::m_reverse_api_address_isSet
private

Definition at line 144 of file SWGWFMModSettings.h.

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

◆ m_reverse_api_channel_index_isSet

bool SWGSDRangel::SWGWFMModSettings::m_reverse_api_channel_index_isSet
private

◆ m_reverse_api_device_index_isSet

bool SWGSDRangel::SWGWFMModSettings::m_reverse_api_device_index_isSet
private

◆ m_reverse_api_port_isSet

bool SWGSDRangel::SWGWFMModSettings::m_reverse_api_port_isSet
private

Definition at line 147 of file SWGWFMModSettings.h.

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

◆ m_rf_bandwidth_isSet

bool SWGSDRangel::SWGWFMModSettings::m_rf_bandwidth_isSet
private

Definition at line 108 of file SWGWFMModSettings.h.

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

◆ m_rgb_color_isSet

bool SWGSDRangel::SWGWFMModSettings::m_rgb_color_isSet
private

Definition at line 129 of file SWGWFMModSettings.h.

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

◆ m_title_isSet

bool SWGSDRangel::SWGWFMModSettings::m_title_isSet
private

Definition at line 132 of file SWGWFMModSettings.h.

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

◆ m_tone_frequency_isSet

bool SWGSDRangel::SWGWFMModSettings::m_tone_frequency_isSet
private

Definition at line 117 of file SWGWFMModSettings.h.

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

◆ m_use_reverse_api_isSet

bool SWGSDRangel::SWGWFMModSettings::m_use_reverse_api_isSet
private

Definition at line 141 of file SWGWFMModSettings.h.

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

◆ m_volume_factor_isSet

bool SWGSDRangel::SWGWFMModSettings::m_volume_factor_isSet
private

Definition at line 120 of file SWGWFMModSettings.h.

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

◆ mod_af_input

qint32 SWGSDRangel::SWGWFMModSettings::mod_af_input
private

◆ play_loop

qint32 SWGSDRangel::SWGWFMModSettings::play_loop
private

◆ reverse_api_address

QString* SWGSDRangel::SWGWFMModSettings::reverse_api_address
private

◆ reverse_api_channel_index

qint32 SWGSDRangel::SWGWFMModSettings::reverse_api_channel_index
private

◆ reverse_api_device_index

qint32 SWGSDRangel::SWGWFMModSettings::reverse_api_device_index
private

◆ reverse_api_port

qint32 SWGSDRangel::SWGWFMModSettings::reverse_api_port
private

◆ rf_bandwidth

float SWGSDRangel::SWGWFMModSettings::rf_bandwidth
private

◆ rgb_color

qint32 SWGSDRangel::SWGWFMModSettings::rgb_color
private

◆ title

QString* SWGSDRangel::SWGWFMModSettings::title
private

◆ tone_frequency

float SWGSDRangel::SWGWFMModSettings::tone_frequency
private

◆ use_reverse_api

qint32 SWGSDRangel::SWGWFMModSettings::use_reverse_api
private

◆ volume_factor

float SWGSDRangel::SWGWFMModSettings::volume_factor
private

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