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

#include <SWGFreeDVModSettings.h>

+ Inheritance diagram for SWGSDRangel::SWGFreeDVModSettings:
+ Collaboration diagram for SWGSDRangel::SWGFreeDVModSettings:

Public Member Functions

 SWGFreeDVModSettings ()
 
 SWGFreeDVModSettings (QString *json)
 
virtual ~SWGFreeDVModSettings ()
 
void init ()
 
void cleanup ()
 
virtual QString asJson () override
 
virtual QJsonObject * asJsonObject () override
 
virtual void fromJsonObject (QJsonObject &json) override
 
virtual SWGFreeDVModSettingsfromJson (QString &jsonString) override
 
qint64 getInputFrequencyOffset ()
 
void setInputFrequencyOffset (qint64 input_frequency_offset)
 
float getToneFrequency ()
 
void setToneFrequency (float tone_frequency)
 
float getVolumeFactor ()
 
void setVolumeFactor (float volume_factor)
 
qint32 getSpanLog2 ()
 
void setSpanLog2 (qint32 span_log2)
 
qint32 getAudioMute ()
 
void setAudioMute (qint32 audio_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 getFreeDvMode ()
 
void setFreeDvMode (qint32 free_dv_mode)
 
qint32 getModAfInput ()
 
void setModAfInput (qint32 mod_af_input)
 
qint32 getGaugeInputElseModem ()
 
void setGaugeInputElseModem (qint32 gauge_input_else_modem)
 
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 tone_frequency
 
bool m_tone_frequency_isSet
 
float volume_factor
 
bool m_volume_factor_isSet
 
qint32 span_log2
 
bool m_span_log2_isSet
 
qint32 audio_mute
 
bool m_audio_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 free_dv_mode
 
bool m_free_dv_mode_isSet
 
qint32 mod_af_input
 
bool m_mod_af_input_isSet
 
qint32 gauge_input_else_modem
 
bool m_gauge_input_else_modem_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 SWGFreeDVModSettings.h.

Constructor & Destructor Documentation

◆ SWGFreeDVModSettings() [1/2]

SWGSDRangel::SWGFreeDVModSettings::SWGFreeDVModSettings ( )

Definition at line 30 of file SWGFreeDVModSettings.cpp.

References audio_device_name, audio_mute, cw_keyer, free_dv_mode, gauge_input_else_modem, input_frequency_offset, m_audio_device_name_isSet, m_audio_mute_isSet, m_cw_keyer_isSet, m_free_dv_mode_isSet, m_gauge_input_else_modem_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_rgb_color_isSet, m_span_log2_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, rgb_color, span_log2, title, tone_frequency, use_reverse_api, and volume_factor.

30  {
33  tone_frequency = 0.0f;
34  m_tone_frequency_isSet = false;
35  volume_factor = 0.0f;
36  m_volume_factor_isSet = false;
37  span_log2 = 0;
38  m_span_log2_isSet = false;
39  audio_mute = 0;
40  m_audio_mute_isSet = false;
41  play_loop = 0;
42  m_play_loop_isSet = false;
43  rgb_color = 0;
44  m_rgb_color_isSet = false;
45  title = nullptr;
46  m_title_isSet = false;
47  audio_device_name = nullptr;
49  free_dv_mode = 0;
50  m_free_dv_mode_isSet = false;
51  mod_af_input = 0;
52  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 }

◆ SWGFreeDVModSettings() [2/2]

SWGSDRangel::SWGFreeDVModSettings::SWGFreeDVModSettings ( QString *  json)

Definition at line 25 of file SWGFreeDVModSettings.cpp.

References fromJson(), and init().

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

◆ ~SWGFreeDVModSettings()

SWGSDRangel::SWGFreeDVModSettings::~SWGFreeDVModSettings ( )
virtual

Definition at line 69 of file SWGFreeDVModSettings.cpp.

References cleanup().

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

Member Function Documentation

◆ asJson()

QString SWGSDRangel::SWGFreeDVModSettings::asJson ( )
overridevirtual

Reimplemented from SWGSDRangel::SWGObject.

Definition at line 193 of file SWGFreeDVModSettings.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::SWGFreeDVModSettings::asJsonObject ( )
overridevirtual

Reimplemented from SWGSDRangel::SWGObject.

Definition at line 204 of file SWGFreeDVModSettings.cpp.

References audio_device_name, audio_mute, cw_keyer, free_dv_mode, gauge_input_else_modem, input_frequency_offset, SWGSDRangel::SWGCWKeyerSettings::isSet(), m_audio_mute_isSet, m_free_dv_mode_isSet, m_gauge_input_else_modem_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_rgb_color_isSet, m_span_log2_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, rgb_color, span_log2, 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("toneFrequency", QJsonValue(tone_frequency));
211  }
213  obj->insert("volumeFactor", QJsonValue(volume_factor));
214  }
215  if(m_span_log2_isSet){
216  obj->insert("spanLog2", QJsonValue(span_log2));
217  }
218  if(m_audio_mute_isSet){
219  obj->insert("audioMute", QJsonValue(audio_mute));
220  }
221  if(m_play_loop_isSet){
222  obj->insert("playLoop", QJsonValue(play_loop));
223  }
224  if(m_rgb_color_isSet){
225  obj->insert("rgbColor", QJsonValue(rgb_color));
226  }
227  if(title != nullptr && *title != QString("")){
228  toJsonValue(QString("title"), title, obj, QString("QString"));
229  }
230  if(audio_device_name != nullptr && *audio_device_name != QString("")){
231  toJsonValue(QString("audioDeviceName"), audio_device_name, obj, QString("QString"));
232  }
234  obj->insert("freeDVMode", QJsonValue(free_dv_mode));
235  }
237  obj->insert("modAFInput", QJsonValue(mod_af_input));
238  }
240  obj->insert("gaugeInputElseModem", QJsonValue(gauge_input_else_modem));
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::SWGFreeDVModSettings::cleanup ( )

Definition at line 114 of file SWGFreeDVModSettings.cpp.

References audio_device_name, cw_keyer, reverse_api_address, and title.

Referenced by ~SWGFreeDVModSettings().

114  {
115 
116 
117 
118 
119 
120 
121 
122  if(title != nullptr) {
123  delete title;
124  }
125  if(audio_device_name != nullptr) {
126  delete audio_device_name;
127  }
128 
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()

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

Reimplemented from SWGSDRangel::SWGObject.

Definition at line 144 of file SWGFreeDVModSettings.cpp.

References fromJsonObject().

Referenced by SWGFreeDVModSettings().

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::SWGFreeDVModSettings::fromJsonObject ( QJsonObject &  json)
overridevirtual

Reimplemented from SWGSDRangel::SWGObject.

Definition at line 153 of file SWGFreeDVModSettings.cpp.

References audio_device_name, audio_mute, cw_keyer, free_dv_mode, gauge_input_else_modem, input_frequency_offset, mod_af_input, play_loop, reverse_api_address, reverse_api_channel_index, reverse_api_device_index, reverse_api_port, rgb_color, SWGSDRangel::setValue(), span_log2, 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(&tone_frequency, pJson["toneFrequency"], "float", "");
157 
158  ::SWGSDRangel::setValue(&volume_factor, pJson["volumeFactor"], "float", "");
159 
160  ::SWGSDRangel::setValue(&span_log2, pJson["spanLog2"], "qint32", "");
161 
162  ::SWGSDRangel::setValue(&audio_mute, pJson["audioMute"], "qint32", "");
163 
164  ::SWGSDRangel::setValue(&play_loop, pJson["playLoop"], "qint32", "");
165 
166  ::SWGSDRangel::setValue(&rgb_color, pJson["rgbColor"], "qint32", "");
167 
168  ::SWGSDRangel::setValue(&title, pJson["title"], "QString", "QString");
169 
170  ::SWGSDRangel::setValue(&audio_device_name, pJson["audioDeviceName"], "QString", "QString");
171 
172  ::SWGSDRangel::setValue(&free_dv_mode, pJson["freeDVMode"], "qint32", "");
173 
174  ::SWGSDRangel::setValue(&mod_af_input, pJson["modAFInput"], "qint32", "");
175 
176  ::SWGSDRangel::setValue(&gauge_input_else_modem, pJson["gaugeInputElseModem"], "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:

◆ getAudioDeviceName()

QString * SWGSDRangel::SWGFreeDVModSettings::getAudioDeviceName ( )

Definition at line 345 of file SWGFreeDVModSettings.cpp.

References audio_device_name.

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

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

◆ getAudioMute()

qint32 SWGSDRangel::SWGFreeDVModSettings::getAudioMute ( )

Definition at line 305 of file SWGFreeDVModSettings.cpp.

References audio_mute.

Referenced by FreeDVMod::webapiSettingsPutPatch().

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

◆ getCwKeyer()

SWGCWKeyerSettings * SWGSDRangel::SWGFreeDVModSettings::getCwKeyer ( )

Definition at line 435 of file SWGFreeDVModSettings.cpp.

References cw_keyer.

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

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

◆ getFreeDvMode()

qint32 SWGSDRangel::SWGFreeDVModSettings::getFreeDvMode ( )

Definition at line 355 of file SWGFreeDVModSettings.cpp.

References free_dv_mode.

Referenced by FreeDVMod::webapiSettingsPutPatch().

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

◆ getGaugeInputElseModem()

qint32 SWGSDRangel::SWGFreeDVModSettings::getGaugeInputElseModem ( )

Definition at line 375 of file SWGFreeDVModSettings.cpp.

References gauge_input_else_modem.

Referenced by FreeDVMod::webapiSettingsPutPatch().

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

◆ getInputFrequencyOffset()

qint64 SWGSDRangel::SWGFreeDVModSettings::getInputFrequencyOffset ( )

Definition at line 265 of file SWGFreeDVModSettings.cpp.

References input_frequency_offset.

Referenced by FreeDVMod::webapiSettingsPutPatch().

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

◆ getModAfInput()

qint32 SWGSDRangel::SWGFreeDVModSettings::getModAfInput ( )

Definition at line 365 of file SWGFreeDVModSettings.cpp.

References mod_af_input.

Referenced by FreeDVMod::webapiSettingsPutPatch().

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

◆ getPlayLoop()

qint32 SWGSDRangel::SWGFreeDVModSettings::getPlayLoop ( )

Definition at line 315 of file SWGFreeDVModSettings.cpp.

References play_loop.

Referenced by FreeDVMod::webapiSettingsPutPatch().

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

◆ getReverseApiAddress()

QString * SWGSDRangel::SWGFreeDVModSettings::getReverseApiAddress ( )

Definition at line 395 of file SWGFreeDVModSettings.cpp.

References reverse_api_address.

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

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

◆ getReverseApiChannelIndex()

qint32 SWGSDRangel::SWGFreeDVModSettings::getReverseApiChannelIndex ( )

Definition at line 425 of file SWGFreeDVModSettings.cpp.

References reverse_api_channel_index.

Referenced by FreeDVMod::webapiSettingsPutPatch().

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

◆ getReverseApiDeviceIndex()

qint32 SWGSDRangel::SWGFreeDVModSettings::getReverseApiDeviceIndex ( )

Definition at line 415 of file SWGFreeDVModSettings.cpp.

References reverse_api_device_index.

Referenced by FreeDVMod::webapiSettingsPutPatch().

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

◆ getReverseApiPort()

qint32 SWGSDRangel::SWGFreeDVModSettings::getReverseApiPort ( )

Definition at line 405 of file SWGFreeDVModSettings.cpp.

References reverse_api_port.

Referenced by FreeDVMod::webapiSettingsPutPatch().

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

◆ getRgbColor()

qint32 SWGSDRangel::SWGFreeDVModSettings::getRgbColor ( )

Definition at line 325 of file SWGFreeDVModSettings.cpp.

References rgb_color.

Referenced by FreeDVMod::webapiSettingsPutPatch().

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

◆ getSpanLog2()

qint32 SWGSDRangel::SWGFreeDVModSettings::getSpanLog2 ( )

Definition at line 295 of file SWGFreeDVModSettings.cpp.

References span_log2.

Referenced by FreeDVMod::webapiSettingsPutPatch().

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

◆ getTitle()

QString * SWGSDRangel::SWGFreeDVModSettings::getTitle ( )

Definition at line 335 of file SWGFreeDVModSettings.cpp.

References title.

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

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

◆ getToneFrequency()

float SWGSDRangel::SWGFreeDVModSettings::getToneFrequency ( )

Definition at line 275 of file SWGFreeDVModSettings.cpp.

References tone_frequency.

Referenced by FreeDVMod::webapiSettingsPutPatch().

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

◆ getUseReverseApi()

qint32 SWGSDRangel::SWGFreeDVModSettings::getUseReverseApi ( )

Definition at line 385 of file SWGFreeDVModSettings.cpp.

References use_reverse_api.

Referenced by FreeDVMod::webapiSettingsPutPatch().

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

◆ getVolumeFactor()

float SWGSDRangel::SWGFreeDVModSettings::getVolumeFactor ( )

Definition at line 285 of file SWGFreeDVModSettings.cpp.

References volume_factor.

Referenced by FreeDVMod::webapiSettingsPutPatch().

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

◆ init()

void SWGSDRangel::SWGFreeDVModSettings::init ( )

Definition at line 74 of file SWGFreeDVModSettings.cpp.

References audio_device_name, audio_mute, cw_keyer, free_dv_mode, gauge_input_else_modem, input_frequency_offset, m_audio_device_name_isSet, m_audio_mute_isSet, m_cw_keyer_isSet, m_free_dv_mode_isSet, m_gauge_input_else_modem_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_rgb_color_isSet, m_span_log2_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, rgb_color, span_log2, title, tone_frequency, use_reverse_api, and volume_factor.

Referenced by SWGFreeDVModSettings(), and FreeDVMod::webapiSettingsGet().

74  {
77  tone_frequency = 0.0f;
78  m_tone_frequency_isSet = false;
79  volume_factor = 0.0f;
80  m_volume_factor_isSet = false;
81  span_log2 = 0;
82  m_span_log2_isSet = false;
83  audio_mute = 0;
84  m_audio_mute_isSet = false;
85  play_loop = 0;
86  m_play_loop_isSet = false;
87  rgb_color = 0;
88  m_rgb_color_isSet = false;
89  title = new QString("");
90  m_title_isSet = false;
91  audio_device_name = new QString("");
93  free_dv_mode = 0;
94  m_free_dv_mode_isSet = false;
95  mod_af_input = 0;
96  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::SWGFreeDVModSettings::isSet ( )
overridevirtual

Reimplemented from SWGSDRangel::SWGObject.

Definition at line 446 of file SWGFreeDVModSettings.cpp.

References audio_device_name, cw_keyer, SWGSDRangel::SWGCWKeyerSettings::isSet(), m_audio_mute_isSet, m_free_dv_mode_isSet, m_gauge_input_else_modem_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_rgb_color_isSet, m_span_log2_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_tone_frequency_isSet){ isObjectUpdated = true; break;}
451  if(m_volume_factor_isSet){ isObjectUpdated = true; break;}
452  if(m_span_log2_isSet){ isObjectUpdated = true; break;}
453  if(m_audio_mute_isSet){ isObjectUpdated = true; break;}
454  if(m_play_loop_isSet){ isObjectUpdated = true; break;}
455  if(m_rgb_color_isSet){ isObjectUpdated = true; break;}
456  if(title != nullptr && *title != QString("")){ isObjectUpdated = true; break;}
457  if(audio_device_name != nullptr && *audio_device_name != QString("")){ isObjectUpdated = true; break;}
458  if(m_free_dv_mode_isSet){ isObjectUpdated = true; break;}
459  if(m_mod_af_input_isSet){ isObjectUpdated = true; break;}
460  if(m_gauge_input_else_modem_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:

◆ setAudioDeviceName()

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

Definition at line 349 of file SWGFreeDVModSettings.cpp.

References audio_device_name, and m_audio_device_name_isSet.

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

+ Here is the caller graph for this function:

◆ setAudioMute()

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

Definition at line 309 of file SWGFreeDVModSettings.cpp.

References audio_mute, and m_audio_mute_isSet.

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

+ Here is the caller graph for this function:

◆ setCwKeyer()

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

Definition at line 439 of file SWGFreeDVModSettings.cpp.

References cw_keyer, and m_cw_keyer_isSet.

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

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

◆ setFreeDvMode()

void SWGSDRangel::SWGFreeDVModSettings::setFreeDvMode ( qint32  free_dv_mode)

Definition at line 359 of file SWGFreeDVModSettings.cpp.

References free_dv_mode, and m_free_dv_mode_isSet.

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

+ Here is the caller graph for this function:

◆ setGaugeInputElseModem()

void SWGSDRangel::SWGFreeDVModSettings::setGaugeInputElseModem ( qint32  gauge_input_else_modem)

Definition at line 379 of file SWGFreeDVModSettings.cpp.

References gauge_input_else_modem, and m_gauge_input_else_modem_isSet.

Referenced by FreeDVMod::webapiFormatChannelSettings().

+ Here is the caller graph for this function:

◆ setInputFrequencyOffset()

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

◆ setModAfInput()

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

Definition at line 369 of file SWGFreeDVModSettings.cpp.

References m_mod_af_input_isSet, and mod_af_input.

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

+ Here is the caller graph for this function:

◆ setPlayLoop()

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

Definition at line 319 of file SWGFreeDVModSettings.cpp.

References m_play_loop_isSet, and play_loop.

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

+ Here is the caller graph for this function:

◆ setReverseApiAddress()

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

Definition at line 399 of file SWGFreeDVModSettings.cpp.

References m_reverse_api_address_isSet, and reverse_api_address.

Referenced by FreeDVMod::webapiFormatChannelSettings().

+ Here is the caller graph for this function:

◆ setReverseApiChannelIndex()

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

◆ setReverseApiDeviceIndex()

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

Definition at line 419 of file SWGFreeDVModSettings.cpp.

References m_reverse_api_device_index_isSet, and reverse_api_device_index.

Referenced by FreeDVMod::webapiFormatChannelSettings().

+ Here is the caller graph for this function:

◆ setReverseApiPort()

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

Definition at line 409 of file SWGFreeDVModSettings.cpp.

References m_reverse_api_port_isSet, and reverse_api_port.

Referenced by FreeDVMod::webapiFormatChannelSettings().

+ Here is the caller graph for this function:

◆ setRgbColor()

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

Definition at line 329 of file SWGFreeDVModSettings.cpp.

References m_rgb_color_isSet, and rgb_color.

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

+ Here is the caller graph for this function:

◆ setSpanLog2()

void SWGSDRangel::SWGFreeDVModSettings::setSpanLog2 ( qint32  span_log2)

Definition at line 299 of file SWGFreeDVModSettings.cpp.

References m_span_log2_isSet, and span_log2.

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

+ Here is the caller graph for this function:

◆ setTitle()

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

Definition at line 339 of file SWGFreeDVModSettings.cpp.

References m_title_isSet, and title.

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

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

◆ setToneFrequency()

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

Definition at line 279 of file SWGFreeDVModSettings.cpp.

References m_tone_frequency_isSet, and tone_frequency.

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

+ Here is the caller graph for this function:

◆ setUseReverseApi()

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

Definition at line 389 of file SWGFreeDVModSettings.cpp.

References m_use_reverse_api_isSet, and use_reverse_api.

Referenced by FreeDVMod::webapiFormatChannelSettings().

+ Here is the caller graph for this function:

◆ setVolumeFactor()

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

Definition at line 289 of file SWGFreeDVModSettings.cpp.

References m_volume_factor_isSet, and volume_factor.

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

+ Here is the caller graph for this function:

Member Data Documentation

◆ audio_device_name

QString* SWGSDRangel::SWGFreeDVModSettings::audio_device_name
private

◆ audio_mute

qint32 SWGSDRangel::SWGFreeDVModSettings::audio_mute
private

◆ cw_keyer

SWGCWKeyerSettings* SWGSDRangel::SWGFreeDVModSettings::cw_keyer
private

◆ free_dv_mode

qint32 SWGSDRangel::SWGFreeDVModSettings::free_dv_mode
private

◆ gauge_input_else_modem

qint32 SWGSDRangel::SWGFreeDVModSettings::gauge_input_else_modem
private

◆ input_frequency_offset

qint64 SWGSDRangel::SWGFreeDVModSettings::input_frequency_offset
private

◆ m_audio_device_name_isSet

bool SWGSDRangel::SWGFreeDVModSettings::m_audio_device_name_isSet
private

Definition at line 129 of file SWGFreeDVModSettings.h.

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

◆ m_audio_mute_isSet

bool SWGSDRangel::SWGFreeDVModSettings::m_audio_mute_isSet
private

Definition at line 117 of file SWGFreeDVModSettings.h.

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

◆ m_cw_keyer_isSet

bool SWGSDRangel::SWGFreeDVModSettings::m_cw_keyer_isSet
private

Definition at line 156 of file SWGFreeDVModSettings.h.

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

◆ m_free_dv_mode_isSet

bool SWGSDRangel::SWGFreeDVModSettings::m_free_dv_mode_isSet
private

◆ m_gauge_input_else_modem_isSet

bool SWGSDRangel::SWGFreeDVModSettings::m_gauge_input_else_modem_isSet
private

◆ m_input_frequency_offset_isSet

bool SWGSDRangel::SWGFreeDVModSettings::m_input_frequency_offset_isSet
private

◆ m_mod_af_input_isSet

bool SWGSDRangel::SWGFreeDVModSettings::m_mod_af_input_isSet
private

◆ m_play_loop_isSet

bool SWGSDRangel::SWGFreeDVModSettings::m_play_loop_isSet
private

Definition at line 120 of file SWGFreeDVModSettings.h.

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

◆ m_reverse_api_address_isSet

bool SWGSDRangel::SWGFreeDVModSettings::m_reverse_api_address_isSet
private

Definition at line 144 of file SWGFreeDVModSettings.h.

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

◆ m_reverse_api_channel_index_isSet

bool SWGSDRangel::SWGFreeDVModSettings::m_reverse_api_channel_index_isSet
private

◆ m_reverse_api_device_index_isSet

bool SWGSDRangel::SWGFreeDVModSettings::m_reverse_api_device_index_isSet
private

◆ m_reverse_api_port_isSet

bool SWGSDRangel::SWGFreeDVModSettings::m_reverse_api_port_isSet
private

◆ m_rgb_color_isSet

bool SWGSDRangel::SWGFreeDVModSettings::m_rgb_color_isSet
private

Definition at line 123 of file SWGFreeDVModSettings.h.

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

◆ m_span_log2_isSet

bool SWGSDRangel::SWGFreeDVModSettings::m_span_log2_isSet
private

Definition at line 114 of file SWGFreeDVModSettings.h.

Referenced by asJsonObject(), init(), isSet(), setSpanLog2(), and SWGFreeDVModSettings().

◆ m_title_isSet

bool SWGSDRangel::SWGFreeDVModSettings::m_title_isSet
private

Definition at line 126 of file SWGFreeDVModSettings.h.

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

◆ m_tone_frequency_isSet

bool SWGSDRangel::SWGFreeDVModSettings::m_tone_frequency_isSet
private

◆ m_use_reverse_api_isSet

bool SWGSDRangel::SWGFreeDVModSettings::m_use_reverse_api_isSet
private

◆ m_volume_factor_isSet

bool SWGSDRangel::SWGFreeDVModSettings::m_volume_factor_isSet
private

◆ mod_af_input

qint32 SWGSDRangel::SWGFreeDVModSettings::mod_af_input
private

◆ play_loop

qint32 SWGSDRangel::SWGFreeDVModSettings::play_loop
private

◆ reverse_api_address

QString* SWGSDRangel::SWGFreeDVModSettings::reverse_api_address
private

◆ reverse_api_channel_index

qint32 SWGSDRangel::SWGFreeDVModSettings::reverse_api_channel_index
private

◆ reverse_api_device_index

qint32 SWGSDRangel::SWGFreeDVModSettings::reverse_api_device_index
private

◆ reverse_api_port

qint32 SWGSDRangel::SWGFreeDVModSettings::reverse_api_port
private

◆ rgb_color

qint32 SWGSDRangel::SWGFreeDVModSettings::rgb_color
private

◆ span_log2

qint32 SWGSDRangel::SWGFreeDVModSettings::span_log2
private

◆ title

QString* SWGSDRangel::SWGFreeDVModSettings::title
private

◆ tone_frequency

float SWGSDRangel::SWGFreeDVModSettings::tone_frequency
private

◆ use_reverse_api

qint32 SWGSDRangel::SWGFreeDVModSettings::use_reverse_api
private

◆ volume_factor

float SWGSDRangel::SWGFreeDVModSettings::volume_factor
private

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