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

#include <SWGAMModSettings.h>

+ Inheritance diagram for SWGSDRangel::SWGAMModSettings:
+ Collaboration diagram for SWGSDRangel::SWGAMModSettings:

Public Member Functions

 SWGAMModSettings ()
 
 SWGAMModSettings (QString *json)
 
virtual ~SWGAMModSettings ()
 
void init ()
 
void cleanup ()
 
virtual QString asJson () override
 
virtual QJsonObject * asJsonObject () override
 
virtual void fromJsonObject (QJsonObject &json) override
 
virtual SWGAMModSettingsfromJson (QString &jsonString) override
 
qint64 getInputFrequencyOffset ()
 
void setInputFrequencyOffset (qint64 input_frequency_offset)
 
float getRfBandwidth ()
 
void setRfBandwidth (float rf_bandwidth)
 
float getModFactor ()
 
void setModFactor (float mod_factor)
 
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 mod_factor
 
bool m_mod_factor_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 SWGAMModSettings.h.

Constructor & Destructor Documentation

◆ SWGAMModSettings() [1/2]

SWGSDRangel::SWGAMModSettings::SWGAMModSettings ( )

Definition at line 30 of file SWGAMModSettings.cpp.

References audio_device_name, channel_mute, cw_keyer, input_frequency_offset, m_audio_device_name_isSet, m_channel_mute_isSet, m_cw_keyer_isSet, m_input_frequency_offset_isSet, m_mod_af_input_isSet, m_mod_factor_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, mod_factor, 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  mod_factor = 0.0f;
36  m_mod_factor_isSet = false;
37  tone_frequency = 0.0f;
38  m_tone_frequency_isSet = false;
39  volume_factor = 0.0f;
40  m_volume_factor_isSet = false;
41  channel_mute = 0;
42  m_channel_mute_isSet = false;
43  play_loop = 0;
44  m_play_loop_isSet = false;
45  rgb_color = 0;
46  m_rgb_color_isSet = false;
47  title = nullptr;
48  m_title_isSet = false;
49  audio_device_name = nullptr;
51  mod_af_input = 0;
52  m_mod_af_input_isSet = false;
53  use_reverse_api = 0;
55  reverse_api_address = nullptr;
57  reverse_api_port = 0;
63  cw_keyer = nullptr;
64  m_cw_keyer_isSet = false;
65 }
SWGCWKeyerSettings * cw_keyer

◆ SWGAMModSettings() [2/2]

SWGSDRangel::SWGAMModSettings::SWGAMModSettings ( QString *  json)

Definition at line 25 of file SWGAMModSettings.cpp.

References fromJson(), and init().

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

◆ ~SWGAMModSettings()

SWGSDRangel::SWGAMModSettings::~SWGAMModSettings ( )
virtual

Definition at line 67 of file SWGAMModSettings.cpp.

References cleanup().

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

Member Function Documentation

◆ asJson()

QString SWGSDRangel::SWGAMModSettings::asJson ( )
overridevirtual

Reimplemented from SWGSDRangel::SWGObject.

Definition at line 186 of file SWGAMModSettings.cpp.

References asJsonObject().

187 {
188  QJsonObject* obj = this->asJsonObject();
189 
190  QJsonDocument doc(*obj);
191  QByteArray bytes = doc.toJson();
192  delete obj;
193  return QString(bytes);
194 }
virtual QJsonObject * asJsonObject() override
+ Here is the call graph for this function:

◆ asJsonObject()

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

Reimplemented from SWGSDRangel::SWGObject.

Definition at line 197 of file SWGAMModSettings.cpp.

References audio_device_name, channel_mute, cw_keyer, input_frequency_offset, SWGSDRangel::SWGCWKeyerSettings::isSet(), m_channel_mute_isSet, m_input_frequency_offset_isSet, m_mod_af_input_isSet, m_mod_factor_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, mod_factor, 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().

197  {
198  QJsonObject* obj = new QJsonObject();
200  obj->insert("inputFrequencyOffset", QJsonValue(input_frequency_offset));
201  }
203  obj->insert("rfBandwidth", QJsonValue(rf_bandwidth));
204  }
205  if(m_mod_factor_isSet){
206  obj->insert("modFactor", QJsonValue(mod_factor));
207  }
209  obj->insert("toneFrequency", QJsonValue(tone_frequency));
210  }
212  obj->insert("volumeFactor", QJsonValue(volume_factor));
213  }
215  obj->insert("channelMute", QJsonValue(channel_mute));
216  }
217  if(m_play_loop_isSet){
218  obj->insert("playLoop", QJsonValue(play_loop));
219  }
220  if(m_rgb_color_isSet){
221  obj->insert("rgbColor", QJsonValue(rgb_color));
222  }
223  if(title != nullptr && *title != QString("")){
224  toJsonValue(QString("title"), title, obj, QString("QString"));
225  }
226  if(audio_device_name != nullptr && *audio_device_name != QString("")){
227  toJsonValue(QString("audioDeviceName"), audio_device_name, obj, QString("QString"));
228  }
230  obj->insert("modAFInput", QJsonValue(mod_af_input));
231  }
233  obj->insert("useReverseAPI", QJsonValue(use_reverse_api));
234  }
235  if(reverse_api_address != nullptr && *reverse_api_address != QString("")){
236  toJsonValue(QString("reverseAPIAddress"), reverse_api_address, obj, QString("QString"));
237  }
239  obj->insert("reverseAPIPort", QJsonValue(reverse_api_port));
240  }
242  obj->insert("reverseAPIDeviceIndex", QJsonValue(reverse_api_device_index));
243  }
245  obj->insert("reverseAPIChannelIndex", QJsonValue(reverse_api_channel_index));
246  }
247  if((cw_keyer != nullptr) && (cw_keyer->isSet())){
248  toJsonValue(QString("cwKeyer"), cw_keyer, obj, QString("SWGCWKeyerSettings"));
249  }
250 
251  return obj;
252 }
void toJsonValue(QString name, void *value, QJsonObject *output, QString type)
Definition: SWGHelpers.cpp:383
SWGCWKeyerSettings * cw_keyer
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ cleanup()

void SWGSDRangel::SWGAMModSettings::cleanup ( )

Definition at line 110 of file SWGAMModSettings.cpp.

References audio_device_name, cw_keyer, reverse_api_address, and title.

Referenced by ~SWGAMModSettings().

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

◆ fromJson()

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

Reimplemented from SWGSDRangel::SWGObject.

Definition at line 139 of file SWGAMModSettings.cpp.

References fromJsonObject().

Referenced by SWGAMModSettings().

139  {
140  QByteArray array (json.toStdString().c_str());
141  QJsonDocument doc = QJsonDocument::fromJson(array);
142  QJsonObject jsonObject = doc.object();
143  this->fromJsonObject(jsonObject);
144  return this;
145 }
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::SWGAMModSettings::fromJsonObject ( QJsonObject &  json)
overridevirtual

Reimplemented from SWGSDRangel::SWGObject.

Definition at line 148 of file SWGAMModSettings.cpp.

References audio_device_name, channel_mute, cw_keyer, input_frequency_offset, mod_af_input, mod_factor, 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().

148  {
149  ::SWGSDRangel::setValue(&input_frequency_offset, pJson["inputFrequencyOffset"], "qint64", "");
150 
151  ::SWGSDRangel::setValue(&rf_bandwidth, pJson["rfBandwidth"], "float", "");
152 
153  ::SWGSDRangel::setValue(&mod_factor, pJson["modFactor"], "float", "");
154 
155  ::SWGSDRangel::setValue(&tone_frequency, pJson["toneFrequency"], "float", "");
156 
157  ::SWGSDRangel::setValue(&volume_factor, pJson["volumeFactor"], "float", "");
158 
159  ::SWGSDRangel::setValue(&channel_mute, pJson["channelMute"], "qint32", "");
160 
161  ::SWGSDRangel::setValue(&play_loop, pJson["playLoop"], "qint32", "");
162 
163  ::SWGSDRangel::setValue(&rgb_color, pJson["rgbColor"], "qint32", "");
164 
165  ::SWGSDRangel::setValue(&title, pJson["title"], "QString", "QString");
166 
167  ::SWGSDRangel::setValue(&audio_device_name, pJson["audioDeviceName"], "QString", "QString");
168 
169  ::SWGSDRangel::setValue(&mod_af_input, pJson["modAFInput"], "qint32", "");
170 
171  ::SWGSDRangel::setValue(&use_reverse_api, pJson["useReverseAPI"], "qint32", "");
172 
173  ::SWGSDRangel::setValue(&reverse_api_address, pJson["reverseAPIAddress"], "QString", "QString");
174 
175  ::SWGSDRangel::setValue(&reverse_api_port, pJson["reverseAPIPort"], "qint32", "");
176 
177  ::SWGSDRangel::setValue(&reverse_api_device_index, pJson["reverseAPIDeviceIndex"], "qint32", "");
178 
179  ::SWGSDRangel::setValue(&reverse_api_channel_index, pJson["reverseAPIChannelIndex"], "qint32", "");
180 
181  ::SWGSDRangel::setValue(&cw_keyer, pJson["cwKeyer"], "SWGCWKeyerSettings", "SWGCWKeyerSettings");
182 
183 }
void setValue(void *value, QJsonValue obj, QString type, QString complexType)
Definition: SWGHelpers.cpp:25
SWGCWKeyerSettings * cw_keyer
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getAudioDeviceName()

QString * SWGSDRangel::SWGAMModSettings::getAudioDeviceName ( )

Definition at line 345 of file SWGAMModSettings.cpp.

References audio_device_name.

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

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

◆ getChannelMute()

qint32 SWGSDRangel::SWGAMModSettings::getChannelMute ( )

Definition at line 305 of file SWGAMModSettings.cpp.

References channel_mute.

Referenced by AMMod::webapiSettingsPutPatch().

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

◆ getCwKeyer()

SWGCWKeyerSettings * SWGSDRangel::SWGAMModSettings::getCwKeyer ( )

Definition at line 415 of file SWGAMModSettings.cpp.

References cw_keyer.

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

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

◆ getInputFrequencyOffset()

qint64 SWGSDRangel::SWGAMModSettings::getInputFrequencyOffset ( )

Definition at line 255 of file SWGAMModSettings.cpp.

References input_frequency_offset.

Referenced by AMMod::webapiSettingsPutPatch().

255  {
256  return input_frequency_offset;
257 }
+ Here is the caller graph for this function:

◆ getModAfInput()

qint32 SWGSDRangel::SWGAMModSettings::getModAfInput ( )

Definition at line 355 of file SWGAMModSettings.cpp.

References mod_af_input.

Referenced by AMMod::webapiSettingsPutPatch().

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

◆ getModFactor()

float SWGSDRangel::SWGAMModSettings::getModFactor ( )

Definition at line 275 of file SWGAMModSettings.cpp.

References mod_factor.

Referenced by AMMod::webapiSettingsPutPatch().

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

◆ getPlayLoop()

qint32 SWGSDRangel::SWGAMModSettings::getPlayLoop ( )

Definition at line 315 of file SWGAMModSettings.cpp.

References play_loop.

Referenced by AMMod::webapiSettingsPutPatch().

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

◆ getReverseApiAddress()

QString * SWGSDRangel::SWGAMModSettings::getReverseApiAddress ( )

Definition at line 375 of file SWGAMModSettings.cpp.

References reverse_api_address.

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

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

◆ getReverseApiChannelIndex()

qint32 SWGSDRangel::SWGAMModSettings::getReverseApiChannelIndex ( )

Definition at line 405 of file SWGAMModSettings.cpp.

References reverse_api_channel_index.

Referenced by AMMod::webapiSettingsPutPatch().

405  {
407 }
+ Here is the caller graph for this function:

◆ getReverseApiDeviceIndex()

qint32 SWGSDRangel::SWGAMModSettings::getReverseApiDeviceIndex ( )

Definition at line 395 of file SWGAMModSettings.cpp.

References reverse_api_device_index.

Referenced by AMMod::webapiSettingsPutPatch().

395  {
397 }
+ Here is the caller graph for this function:

◆ getReverseApiPort()

qint32 SWGSDRangel::SWGAMModSettings::getReverseApiPort ( )

Definition at line 385 of file SWGAMModSettings.cpp.

References reverse_api_port.

Referenced by AMMod::webapiSettingsPutPatch().

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

◆ getRfBandwidth()

float SWGSDRangel::SWGAMModSettings::getRfBandwidth ( )

Definition at line 265 of file SWGAMModSettings.cpp.

References rf_bandwidth.

Referenced by AMMod::webapiSettingsPutPatch().

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

◆ getRgbColor()

qint32 SWGSDRangel::SWGAMModSettings::getRgbColor ( )

Definition at line 325 of file SWGAMModSettings.cpp.

References rgb_color.

Referenced by AMMod::webapiSettingsPutPatch().

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

◆ getTitle()

QString * SWGSDRangel::SWGAMModSettings::getTitle ( )

Definition at line 335 of file SWGAMModSettings.cpp.

References title.

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

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

◆ getToneFrequency()

float SWGSDRangel::SWGAMModSettings::getToneFrequency ( )

Definition at line 285 of file SWGAMModSettings.cpp.

References tone_frequency.

Referenced by AMMod::webapiSettingsPutPatch().

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

◆ getUseReverseApi()

qint32 SWGSDRangel::SWGAMModSettings::getUseReverseApi ( )

Definition at line 365 of file SWGAMModSettings.cpp.

References use_reverse_api.

Referenced by AMMod::webapiSettingsPutPatch().

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

◆ getVolumeFactor()

float SWGSDRangel::SWGAMModSettings::getVolumeFactor ( )

Definition at line 295 of file SWGAMModSettings.cpp.

References volume_factor.

Referenced by AMMod::webapiSettingsPutPatch().

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

◆ init()

void SWGSDRangel::SWGAMModSettings::init ( )

Definition at line 72 of file SWGAMModSettings.cpp.

References audio_device_name, channel_mute, cw_keyer, input_frequency_offset, m_audio_device_name_isSet, m_channel_mute_isSet, m_cw_keyer_isSet, m_input_frequency_offset_isSet, m_mod_af_input_isSet, m_mod_factor_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, mod_factor, 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 SWGAMModSettings(), and AMMod::webapiSettingsGet().

72  {
75  rf_bandwidth = 0.0f;
76  m_rf_bandwidth_isSet = false;
77  mod_factor = 0.0f;
78  m_mod_factor_isSet = false;
79  tone_frequency = 0.0f;
80  m_tone_frequency_isSet = false;
81  volume_factor = 0.0f;
82  m_volume_factor_isSet = false;
83  channel_mute = 0;
84  m_channel_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  mod_af_input = 0;
94  m_mod_af_input_isSet = false;
95  use_reverse_api = 0;
97  reverse_api_address = new QString("");
99  reverse_api_port = 0;
100  m_reverse_api_port_isSet = false;
105  cw_keyer = new SWGCWKeyerSettings();
106  m_cw_keyer_isSet = false;
107 }
SWGCWKeyerSettings * cw_keyer
+ Here is the caller graph for this function:

◆ isSet()

bool SWGSDRangel::SWGAMModSettings::isSet ( )
overridevirtual

Reimplemented from SWGSDRangel::SWGObject.

Definition at line 426 of file SWGAMModSettings.cpp.

References audio_device_name, cw_keyer, SWGSDRangel::SWGCWKeyerSettings::isSet(), m_channel_mute_isSet, m_input_frequency_offset_isSet, m_mod_af_input_isSet, m_mod_factor_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().

426  {
427  bool isObjectUpdated = false;
428  do{
429  if(m_input_frequency_offset_isSet){ isObjectUpdated = true; break;}
430  if(m_rf_bandwidth_isSet){ isObjectUpdated = true; break;}
431  if(m_mod_factor_isSet){ isObjectUpdated = true; break;}
432  if(m_tone_frequency_isSet){ isObjectUpdated = true; break;}
433  if(m_volume_factor_isSet){ isObjectUpdated = true; break;}
434  if(m_channel_mute_isSet){ isObjectUpdated = true; break;}
435  if(m_play_loop_isSet){ isObjectUpdated = true; break;}
436  if(m_rgb_color_isSet){ isObjectUpdated = true; break;}
437  if(title != nullptr && *title != QString("")){ isObjectUpdated = true; break;}
438  if(audio_device_name != nullptr && *audio_device_name != QString("")){ isObjectUpdated = true; break;}
439  if(m_mod_af_input_isSet){ isObjectUpdated = true; break;}
440  if(m_use_reverse_api_isSet){ isObjectUpdated = true; break;}
441  if(reverse_api_address != nullptr && *reverse_api_address != QString("")){ isObjectUpdated = true; break;}
442  if(m_reverse_api_port_isSet){ isObjectUpdated = true; break;}
443  if(m_reverse_api_device_index_isSet){ isObjectUpdated = true; break;}
444  if(m_reverse_api_channel_index_isSet){ isObjectUpdated = true; break;}
445  if(cw_keyer != nullptr && cw_keyer->isSet()){ isObjectUpdated = true; break;}
446  }while(false);
447  return isObjectUpdated;
448 }
SWGCWKeyerSettings * cw_keyer
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ setAudioDeviceName()

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

Definition at line 349 of file SWGAMModSettings.cpp.

References audio_device_name, and m_audio_device_name_isSet.

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

+ Here is the caller graph for this function:

◆ setChannelMute()

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

Definition at line 309 of file SWGAMModSettings.cpp.

References channel_mute, and m_channel_mute_isSet.

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

309  {
310  this->channel_mute = channel_mute;
311  this->m_channel_mute_isSet = true;
312 }
+ Here is the caller graph for this function:

◆ setCwKeyer()

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

Definition at line 419 of file SWGAMModSettings.cpp.

References cw_keyer, and m_cw_keyer_isSet.

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

419  {
420  this->cw_keyer = cw_keyer;
421  this->m_cw_keyer_isSet = true;
422 }
SWGCWKeyerSettings * cw_keyer
+ Here is the caller graph for this function:

◆ setInputFrequencyOffset()

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

Definition at line 259 of file SWGAMModSettings.cpp.

References input_frequency_offset, and m_input_frequency_offset_isSet.

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

+ Here is the caller graph for this function:

◆ setModAfInput()

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

Definition at line 359 of file SWGAMModSettings.cpp.

References m_mod_af_input_isSet, and mod_af_input.

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

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

◆ setModFactor()

void SWGSDRangel::SWGAMModSettings::setModFactor ( float  mod_factor)

Definition at line 279 of file SWGAMModSettings.cpp.

References m_mod_factor_isSet, and mod_factor.

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

279  {
280  this->mod_factor = mod_factor;
281  this->m_mod_factor_isSet = true;
282 }
+ Here is the caller graph for this function:

◆ setPlayLoop()

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

Definition at line 319 of file SWGAMModSettings.cpp.

References m_play_loop_isSet, and play_loop.

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

319  {
320  this->play_loop = play_loop;
321  this->m_play_loop_isSet = true;
322 }
+ Here is the caller graph for this function:

◆ setReverseApiAddress()

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

Definition at line 379 of file SWGAMModSettings.cpp.

References m_reverse_api_address_isSet, and reverse_api_address.

Referenced by AMMod::webapiFormatChannelSettings().

+ Here is the caller graph for this function:

◆ setReverseApiChannelIndex()

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

Definition at line 409 of file SWGAMModSettings.cpp.

References m_reverse_api_channel_index_isSet, and reverse_api_channel_index.

Referenced by AMMod::webapiFormatChannelSettings().

+ Here is the caller graph for this function:

◆ setReverseApiDeviceIndex()

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

Definition at line 399 of file SWGAMModSettings.cpp.

References m_reverse_api_device_index_isSet, and reverse_api_device_index.

Referenced by AMMod::webapiFormatChannelSettings().

+ Here is the caller graph for this function:

◆ setReverseApiPort()

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

Definition at line 389 of file SWGAMModSettings.cpp.

References m_reverse_api_port_isSet, and reverse_api_port.

Referenced by AMMod::webapiFormatChannelSettings().

+ Here is the caller graph for this function:

◆ setRfBandwidth()

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

Definition at line 269 of file SWGAMModSettings.cpp.

References m_rf_bandwidth_isSet, and rf_bandwidth.

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

269  {
270  this->rf_bandwidth = rf_bandwidth;
271  this->m_rf_bandwidth_isSet = true;
272 }
+ Here is the caller graph for this function:

◆ setRgbColor()

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

Definition at line 329 of file SWGAMModSettings.cpp.

References m_rgb_color_isSet, and rgb_color.

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

329  {
330  this->rgb_color = rgb_color;
331  this->m_rgb_color_isSet = true;
332 }
+ Here is the caller graph for this function:

◆ setTitle()

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

Definition at line 339 of file SWGAMModSettings.cpp.

References m_title_isSet, and title.

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

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

◆ setToneFrequency()

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

Definition at line 289 of file SWGAMModSettings.cpp.

References m_tone_frequency_isSet, and tone_frequency.

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

+ Here is the caller graph for this function:

◆ setUseReverseApi()

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

Definition at line 369 of file SWGAMModSettings.cpp.

References m_use_reverse_api_isSet, and use_reverse_api.

Referenced by AMMod::webapiFormatChannelSettings().

+ Here is the caller graph for this function:

◆ setVolumeFactor()

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

Definition at line 299 of file SWGAMModSettings.cpp.

References m_volume_factor_isSet, and volume_factor.

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

+ Here is the caller graph for this function:

Member Data Documentation

◆ audio_device_name

QString* SWGSDRangel::SWGAMModSettings::audio_device_name
private

◆ channel_mute

qint32 SWGSDRangel::SWGAMModSettings::channel_mute
private

◆ cw_keyer

SWGCWKeyerSettings* SWGSDRangel::SWGAMModSettings::cw_keyer
private

◆ input_frequency_offset

qint64 SWGSDRangel::SWGAMModSettings::input_frequency_offset
private

◆ m_audio_device_name_isSet

bool SWGSDRangel::SWGAMModSettings::m_audio_device_name_isSet
private

Definition at line 129 of file SWGAMModSettings.h.

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

◆ m_channel_mute_isSet

bool SWGSDRangel::SWGAMModSettings::m_channel_mute_isSet
private

Definition at line 117 of file SWGAMModSettings.h.

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

◆ m_cw_keyer_isSet

bool SWGSDRangel::SWGAMModSettings::m_cw_keyer_isSet
private

Definition at line 150 of file SWGAMModSettings.h.

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

◆ m_input_frequency_offset_isSet

bool SWGSDRangel::SWGAMModSettings::m_input_frequency_offset_isSet
private

◆ m_mod_af_input_isSet

bool SWGSDRangel::SWGAMModSettings::m_mod_af_input_isSet
private

Definition at line 132 of file SWGAMModSettings.h.

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

◆ m_mod_factor_isSet

bool SWGSDRangel::SWGAMModSettings::m_mod_factor_isSet
private

Definition at line 108 of file SWGAMModSettings.h.

Referenced by asJsonObject(), init(), isSet(), setModFactor(), and SWGAMModSettings().

◆ m_play_loop_isSet

bool SWGSDRangel::SWGAMModSettings::m_play_loop_isSet
private

Definition at line 120 of file SWGAMModSettings.h.

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

◆ m_reverse_api_address_isSet

bool SWGSDRangel::SWGAMModSettings::m_reverse_api_address_isSet
private

Definition at line 138 of file SWGAMModSettings.h.

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

◆ m_reverse_api_channel_index_isSet

bool SWGSDRangel::SWGAMModSettings::m_reverse_api_channel_index_isSet
private

◆ m_reverse_api_device_index_isSet

bool SWGSDRangel::SWGAMModSettings::m_reverse_api_device_index_isSet
private

◆ m_reverse_api_port_isSet

bool SWGSDRangel::SWGAMModSettings::m_reverse_api_port_isSet
private

Definition at line 141 of file SWGAMModSettings.h.

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

◆ m_rf_bandwidth_isSet

bool SWGSDRangel::SWGAMModSettings::m_rf_bandwidth_isSet
private

Definition at line 105 of file SWGAMModSettings.h.

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

◆ m_rgb_color_isSet

bool SWGSDRangel::SWGAMModSettings::m_rgb_color_isSet
private

Definition at line 123 of file SWGAMModSettings.h.

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

◆ m_title_isSet

bool SWGSDRangel::SWGAMModSettings::m_title_isSet
private

Definition at line 126 of file SWGAMModSettings.h.

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

◆ m_tone_frequency_isSet

bool SWGSDRangel::SWGAMModSettings::m_tone_frequency_isSet
private

Definition at line 111 of file SWGAMModSettings.h.

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

◆ m_use_reverse_api_isSet

bool SWGSDRangel::SWGAMModSettings::m_use_reverse_api_isSet
private

Definition at line 135 of file SWGAMModSettings.h.

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

◆ m_volume_factor_isSet

bool SWGSDRangel::SWGAMModSettings::m_volume_factor_isSet
private

Definition at line 114 of file SWGAMModSettings.h.

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

◆ mod_af_input

qint32 SWGSDRangel::SWGAMModSettings::mod_af_input
private

◆ mod_factor

float SWGSDRangel::SWGAMModSettings::mod_factor
private

◆ play_loop

qint32 SWGSDRangel::SWGAMModSettings::play_loop
private

◆ reverse_api_address

QString* SWGSDRangel::SWGAMModSettings::reverse_api_address
private

◆ reverse_api_channel_index

qint32 SWGSDRangel::SWGAMModSettings::reverse_api_channel_index
private

◆ reverse_api_device_index

qint32 SWGSDRangel::SWGAMModSettings::reverse_api_device_index
private

◆ reverse_api_port

qint32 SWGSDRangel::SWGAMModSettings::reverse_api_port
private

◆ rf_bandwidth

float SWGSDRangel::SWGAMModSettings::rf_bandwidth
private

◆ rgb_color

qint32 SWGSDRangel::SWGAMModSettings::rgb_color
private

◆ title

QString* SWGSDRangel::SWGAMModSettings::title
private

◆ tone_frequency

float SWGSDRangel::SWGAMModSettings::tone_frequency
private

◆ use_reverse_api

qint32 SWGSDRangel::SWGAMModSettings::use_reverse_api
private

◆ volume_factor

float SWGSDRangel::SWGAMModSettings::volume_factor
private

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