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.
SWGChannelSettings_2.cpp
Go to the documentation of this file.
1 
14 #include "SWGChannelSettings_2.h"
15 
16 #include "SWGHelpers.h"
17 
18 #include <QJsonDocument>
19 #include <QJsonArray>
20 #include <QObject>
21 #include <QDebug>
22 
23 namespace SWGSDRangel {
24 
26  init();
27  this->fromJson(*json);
28 }
29 
31  channel_type = nullptr;
32  m_channel_type_isSet = false;
33  direction = 0;
34  m_direction_isSet = false;
39  am_demod_settings = nullptr;
41  am_mod_settings = nullptr;
43  atv_mod_settings = nullptr;
45  bfm_demod_settings = nullptr;
47  dsd_demod_settings = nullptr;
49  file_source_settings = nullptr;
51  free_dv_demod_settings = nullptr;
53  free_dv_mod_settings = nullptr;
55  freq_tracker_settings = nullptr;
57  nfm_demod_settings = nullptr;
59  nfm_mod_settings = nullptr;
61  local_sink_settings = nullptr;
63  local_source_settings = nullptr;
65  remote_sink_settings = nullptr;
67  remote_source_settings = nullptr;
69  ssb_mod_settings = nullptr;
71  ssb_demod_settings = nullptr;
73  udp_source_settings = nullptr;
75  udp_sink_settings = nullptr;
77  wfm_demod_settings = nullptr;
79  wfm_mod_settings = nullptr;
81 }
82 
84  this->cleanup();
85 }
86 
87 void
89  channel_type = new QString("");
90  m_channel_type_isSet = false;
91  direction = 0;
92  m_direction_isSet = false;
100  m_am_mod_settings_isSet = false;
102  m_atv_mod_settings_isSet = false;
118  m_nfm_mod_settings_isSet = false;
128  m_ssb_mod_settings_isSet = false;
138  m_wfm_mod_settings_isSet = false;
139 }
140 
141 void
143  if(channel_type != nullptr) {
144  delete channel_type;
145  }
146 
147 
148 
149  if(am_demod_settings != nullptr) {
150  delete am_demod_settings;
151  }
152  if(am_mod_settings != nullptr) {
153  delete am_mod_settings;
154  }
155  if(atv_mod_settings != nullptr) {
156  delete atv_mod_settings;
157  }
158  if(bfm_demod_settings != nullptr) {
159  delete bfm_demod_settings;
160  }
161  if(dsd_demod_settings != nullptr) {
162  delete dsd_demod_settings;
163  }
164  if(file_source_settings != nullptr) {
165  delete file_source_settings;
166  }
167  if(free_dv_demod_settings != nullptr) {
168  delete free_dv_demod_settings;
169  }
170  if(free_dv_mod_settings != nullptr) {
171  delete free_dv_mod_settings;
172  }
173  if(freq_tracker_settings != nullptr) {
174  delete freq_tracker_settings;
175  }
176  if(nfm_demod_settings != nullptr) {
177  delete nfm_demod_settings;
178  }
179  if(nfm_mod_settings != nullptr) {
180  delete nfm_mod_settings;
181  }
182  if(local_sink_settings != nullptr) {
183  delete local_sink_settings;
184  }
185  if(local_source_settings != nullptr) {
186  delete local_source_settings;
187  }
188  if(remote_sink_settings != nullptr) {
189  delete remote_sink_settings;
190  }
191  if(remote_source_settings != nullptr) {
192  delete remote_source_settings;
193  }
194  if(ssb_mod_settings != nullptr) {
195  delete ssb_mod_settings;
196  }
197  if(ssb_demod_settings != nullptr) {
198  delete ssb_demod_settings;
199  }
200  if(udp_source_settings != nullptr) {
201  delete udp_source_settings;
202  }
203  if(udp_sink_settings != nullptr) {
204  delete udp_sink_settings;
205  }
206  if(wfm_demod_settings != nullptr) {
207  delete wfm_demod_settings;
208  }
209  if(wfm_mod_settings != nullptr) {
210  delete wfm_mod_settings;
211  }
212 }
213 
216  QByteArray array (json.toStdString().c_str());
217  QJsonDocument doc = QJsonDocument::fromJson(array);
218  QJsonObject jsonObject = doc.object();
219  this->fromJsonObject(jsonObject);
220  return this;
221 }
222 
223 void
225  ::SWGSDRangel::setValue(&channel_type, pJson["channelType"], "QString", "QString");
226 
227  ::SWGSDRangel::setValue(&direction, pJson["direction"], "qint32", "");
228 
229  ::SWGSDRangel::setValue(&originator_device_set_index, pJson["originatorDeviceSetIndex"], "qint32", "");
230 
231  ::SWGSDRangel::setValue(&originator_channel_index, pJson["originatorChannelIndex"], "qint32", "");
232 
233  ::SWGSDRangel::setValue(&am_demod_settings, pJson["AMDemodSettings"], "SWGAMDemodSettings", "SWGAMDemodSettings");
234 
235  ::SWGSDRangel::setValue(&am_mod_settings, pJson["AMModSettings"], "SWGAMModSettings", "SWGAMModSettings");
236 
237  ::SWGSDRangel::setValue(&atv_mod_settings, pJson["ATVModSettings"], "SWGATVModSettings", "SWGATVModSettings");
238 
239  ::SWGSDRangel::setValue(&bfm_demod_settings, pJson["BFMDemodSettings"], "SWGBFMDemodSettings", "SWGBFMDemodSettings");
240 
241  ::SWGSDRangel::setValue(&dsd_demod_settings, pJson["DSDDemodSettings"], "SWGDSDDemodSettings", "SWGDSDDemodSettings");
242 
243  ::SWGSDRangel::setValue(&file_source_settings, pJson["FileSourceSettings"], "SWGFileSourceSettings", "SWGFileSourceSettings");
244 
245  ::SWGSDRangel::setValue(&free_dv_demod_settings, pJson["FreeDVDemodSettings"], "SWGFreeDVDemodSettings", "SWGFreeDVDemodSettings");
246 
247  ::SWGSDRangel::setValue(&free_dv_mod_settings, pJson["FreeDVModSettings"], "SWGFreeDVModSettings", "SWGFreeDVModSettings");
248 
249  ::SWGSDRangel::setValue(&freq_tracker_settings, pJson["FreqTrackerSettings"], "SWGFreqTrackerSettings", "SWGFreqTrackerSettings");
250 
251  ::SWGSDRangel::setValue(&nfm_demod_settings, pJson["NFMDemodSettings"], "SWGNFMDemodSettings", "SWGNFMDemodSettings");
252 
253  ::SWGSDRangel::setValue(&nfm_mod_settings, pJson["NFMModSettings"], "SWGNFMModSettings", "SWGNFMModSettings");
254 
255  ::SWGSDRangel::setValue(&local_sink_settings, pJson["LocalSinkSettings"], "SWGLocalSinkSettings", "SWGLocalSinkSettings");
256 
257  ::SWGSDRangel::setValue(&local_source_settings, pJson["LocalSourceSettings"], "SWGLocalSourceSettings", "SWGLocalSourceSettings");
258 
259  ::SWGSDRangel::setValue(&remote_sink_settings, pJson["RemoteSinkSettings"], "SWGRemoteSinkSettings", "SWGRemoteSinkSettings");
260 
261  ::SWGSDRangel::setValue(&remote_source_settings, pJson["RemoteSourceSettings"], "SWGRemoteSourceSettings", "SWGRemoteSourceSettings");
262 
263  ::SWGSDRangel::setValue(&ssb_mod_settings, pJson["SSBModSettings"], "SWGSSBModSettings", "SWGSSBModSettings");
264 
265  ::SWGSDRangel::setValue(&ssb_demod_settings, pJson["SSBDemodSettings"], "SWGSSBDemodSettings", "SWGSSBDemodSettings");
266 
267  ::SWGSDRangel::setValue(&udp_source_settings, pJson["UDPSourceSettings"], "SWGUDPSourceSettings", "SWGUDPSourceSettings");
268 
269  ::SWGSDRangel::setValue(&udp_sink_settings, pJson["UDPSinkSettings"], "SWGUDPSinkSettings", "SWGUDPSinkSettings");
270 
271  ::SWGSDRangel::setValue(&wfm_demod_settings, pJson["WFMDemodSettings"], "SWGWFMDemodSettings", "SWGWFMDemodSettings");
272 
273  ::SWGSDRangel::setValue(&wfm_mod_settings, pJson["WFMModSettings"], "SWGWFMModSettings", "SWGWFMModSettings");
274 
275 }
276 
277 QString
279 {
280  QJsonObject* obj = this->asJsonObject();
281 
282  QJsonDocument doc(*obj);
283  QByteArray bytes = doc.toJson();
284  delete obj;
285  return QString(bytes);
286 }
287 
288 QJsonObject*
290  QJsonObject* obj = new QJsonObject();
291  if(channel_type != nullptr && *channel_type != QString("")){
292  toJsonValue(QString("channelType"), channel_type, obj, QString("QString"));
293  }
294  if(m_direction_isSet){
295  obj->insert("direction", QJsonValue(direction));
296  }
298  obj->insert("originatorDeviceSetIndex", QJsonValue(originator_device_set_index));
299  }
301  obj->insert("originatorChannelIndex", QJsonValue(originator_channel_index));
302  }
303  if((am_demod_settings != nullptr) && (am_demod_settings->isSet())){
304  toJsonValue(QString("AMDemodSettings"), am_demod_settings, obj, QString("SWGAMDemodSettings"));
305  }
306  if((am_mod_settings != nullptr) && (am_mod_settings->isSet())){
307  toJsonValue(QString("AMModSettings"), am_mod_settings, obj, QString("SWGAMModSettings"));
308  }
309  if((atv_mod_settings != nullptr) && (atv_mod_settings->isSet())){
310  toJsonValue(QString("ATVModSettings"), atv_mod_settings, obj, QString("SWGATVModSettings"));
311  }
312  if((bfm_demod_settings != nullptr) && (bfm_demod_settings->isSet())){
313  toJsonValue(QString("BFMDemodSettings"), bfm_demod_settings, obj, QString("SWGBFMDemodSettings"));
314  }
315  if((dsd_demod_settings != nullptr) && (dsd_demod_settings->isSet())){
316  toJsonValue(QString("DSDDemodSettings"), dsd_demod_settings, obj, QString("SWGDSDDemodSettings"));
317  }
318  if((file_source_settings != nullptr) && (file_source_settings->isSet())){
319  toJsonValue(QString("FileSourceSettings"), file_source_settings, obj, QString("SWGFileSourceSettings"));
320  }
321  if((free_dv_demod_settings != nullptr) && (free_dv_demod_settings->isSet())){
322  toJsonValue(QString("FreeDVDemodSettings"), free_dv_demod_settings, obj, QString("SWGFreeDVDemodSettings"));
323  }
324  if((free_dv_mod_settings != nullptr) && (free_dv_mod_settings->isSet())){
325  toJsonValue(QString("FreeDVModSettings"), free_dv_mod_settings, obj, QString("SWGFreeDVModSettings"));
326  }
327  if((freq_tracker_settings != nullptr) && (freq_tracker_settings->isSet())){
328  toJsonValue(QString("FreqTrackerSettings"), freq_tracker_settings, obj, QString("SWGFreqTrackerSettings"));
329  }
330  if((nfm_demod_settings != nullptr) && (nfm_demod_settings->isSet())){
331  toJsonValue(QString("NFMDemodSettings"), nfm_demod_settings, obj, QString("SWGNFMDemodSettings"));
332  }
333  if((nfm_mod_settings != nullptr) && (nfm_mod_settings->isSet())){
334  toJsonValue(QString("NFMModSettings"), nfm_mod_settings, obj, QString("SWGNFMModSettings"));
335  }
336  if((local_sink_settings != nullptr) && (local_sink_settings->isSet())){
337  toJsonValue(QString("LocalSinkSettings"), local_sink_settings, obj, QString("SWGLocalSinkSettings"));
338  }
339  if((local_source_settings != nullptr) && (local_source_settings->isSet())){
340  toJsonValue(QString("LocalSourceSettings"), local_source_settings, obj, QString("SWGLocalSourceSettings"));
341  }
342  if((remote_sink_settings != nullptr) && (remote_sink_settings->isSet())){
343  toJsonValue(QString("RemoteSinkSettings"), remote_sink_settings, obj, QString("SWGRemoteSinkSettings"));
344  }
345  if((remote_source_settings != nullptr) && (remote_source_settings->isSet())){
346  toJsonValue(QString("RemoteSourceSettings"), remote_source_settings, obj, QString("SWGRemoteSourceSettings"));
347  }
348  if((ssb_mod_settings != nullptr) && (ssb_mod_settings->isSet())){
349  toJsonValue(QString("SSBModSettings"), ssb_mod_settings, obj, QString("SWGSSBModSettings"));
350  }
351  if((ssb_demod_settings != nullptr) && (ssb_demod_settings->isSet())){
352  toJsonValue(QString("SSBDemodSettings"), ssb_demod_settings, obj, QString("SWGSSBDemodSettings"));
353  }
354  if((udp_source_settings != nullptr) && (udp_source_settings->isSet())){
355  toJsonValue(QString("UDPSourceSettings"), udp_source_settings, obj, QString("SWGUDPSourceSettings"));
356  }
357  if((udp_sink_settings != nullptr) && (udp_sink_settings->isSet())){
358  toJsonValue(QString("UDPSinkSettings"), udp_sink_settings, obj, QString("SWGUDPSinkSettings"));
359  }
360  if((wfm_demod_settings != nullptr) && (wfm_demod_settings->isSet())){
361  toJsonValue(QString("WFMDemodSettings"), wfm_demod_settings, obj, QString("SWGWFMDemodSettings"));
362  }
363  if((wfm_mod_settings != nullptr) && (wfm_mod_settings->isSet())){
364  toJsonValue(QString("WFMModSettings"), wfm_mod_settings, obj, QString("SWGWFMModSettings"));
365  }
366 
367  return obj;
368 }
369 
370 QString*
372  return channel_type;
373 }
374 void
376  this->channel_type = channel_type;
377  this->m_channel_type_isSet = true;
378 }
379 
380 qint32
382  return direction;
383 }
384 void
386  this->direction = direction;
387  this->m_direction_isSet = true;
388 }
389 
390 qint32
393 }
394 void
396  this->originator_device_set_index = originator_device_set_index;
398 }
399 
400 qint32
403 }
404 void
406  this->originator_channel_index = originator_channel_index;
408 }
409 
412  return am_demod_settings;
413 }
414 void
416  this->am_demod_settings = am_demod_settings;
417  this->m_am_demod_settings_isSet = true;
418 }
419 
422  return am_mod_settings;
423 }
424 void
426  this->am_mod_settings = am_mod_settings;
427  this->m_am_mod_settings_isSet = true;
428 }
429 
432  return atv_mod_settings;
433 }
434 void
436  this->atv_mod_settings = atv_mod_settings;
437  this->m_atv_mod_settings_isSet = true;
438 }
439 
442  return bfm_demod_settings;
443 }
444 void
446  this->bfm_demod_settings = bfm_demod_settings;
447  this->m_bfm_demod_settings_isSet = true;
448 }
449 
452  return dsd_demod_settings;
453 }
454 void
456  this->dsd_demod_settings = dsd_demod_settings;
457  this->m_dsd_demod_settings_isSet = true;
458 }
459 
462  return file_source_settings;
463 }
464 void
466  this->file_source_settings = file_source_settings;
467  this->m_file_source_settings_isSet = true;
468 }
469 
472  return free_dv_demod_settings;
473 }
474 void
476  this->free_dv_demod_settings = free_dv_demod_settings;
477  this->m_free_dv_demod_settings_isSet = true;
478 }
479 
482  return free_dv_mod_settings;
483 }
484 void
486  this->free_dv_mod_settings = free_dv_mod_settings;
487  this->m_free_dv_mod_settings_isSet = true;
488 }
489 
492  return freq_tracker_settings;
493 }
494 void
496  this->freq_tracker_settings = freq_tracker_settings;
497  this->m_freq_tracker_settings_isSet = true;
498 }
499 
502  return nfm_demod_settings;
503 }
504 void
506  this->nfm_demod_settings = nfm_demod_settings;
507  this->m_nfm_demod_settings_isSet = true;
508 }
509 
512  return nfm_mod_settings;
513 }
514 void
516  this->nfm_mod_settings = nfm_mod_settings;
517  this->m_nfm_mod_settings_isSet = true;
518 }
519 
522  return local_sink_settings;
523 }
524 void
526  this->local_sink_settings = local_sink_settings;
527  this->m_local_sink_settings_isSet = true;
528 }
529 
532  return local_source_settings;
533 }
534 void
536  this->local_source_settings = local_source_settings;
537  this->m_local_source_settings_isSet = true;
538 }
539 
542  return remote_sink_settings;
543 }
544 void
546  this->remote_sink_settings = remote_sink_settings;
547  this->m_remote_sink_settings_isSet = true;
548 }
549 
552  return remote_source_settings;
553 }
554 void
556  this->remote_source_settings = remote_source_settings;
557  this->m_remote_source_settings_isSet = true;
558 }
559 
562  return ssb_mod_settings;
563 }
564 void
566  this->ssb_mod_settings = ssb_mod_settings;
567  this->m_ssb_mod_settings_isSet = true;
568 }
569 
572  return ssb_demod_settings;
573 }
574 void
576  this->ssb_demod_settings = ssb_demod_settings;
577  this->m_ssb_demod_settings_isSet = true;
578 }
579 
582  return udp_source_settings;
583 }
584 void
586  this->udp_source_settings = udp_source_settings;
587  this->m_udp_source_settings_isSet = true;
588 }
589 
592  return udp_sink_settings;
593 }
594 void
596  this->udp_sink_settings = udp_sink_settings;
597  this->m_udp_sink_settings_isSet = true;
598 }
599 
602  return wfm_demod_settings;
603 }
604 void
606  this->wfm_demod_settings = wfm_demod_settings;
607  this->m_wfm_demod_settings_isSet = true;
608 }
609 
612  return wfm_mod_settings;
613 }
614 void
616  this->wfm_mod_settings = wfm_mod_settings;
617  this->m_wfm_mod_settings_isSet = true;
618 }
619 
620 
621 bool
623  bool isObjectUpdated = false;
624  do{
625  if(channel_type != nullptr && *channel_type != QString("")){ isObjectUpdated = true; break;}
626  if(m_direction_isSet){ isObjectUpdated = true; break;}
627  if(m_originator_device_set_index_isSet){ isObjectUpdated = true; break;}
628  if(m_originator_channel_index_isSet){ isObjectUpdated = true; break;}
629  if(am_demod_settings != nullptr && am_demod_settings->isSet()){ isObjectUpdated = true; break;}
630  if(am_mod_settings != nullptr && am_mod_settings->isSet()){ isObjectUpdated = true; break;}
631  if(atv_mod_settings != nullptr && atv_mod_settings->isSet()){ isObjectUpdated = true; break;}
632  if(bfm_demod_settings != nullptr && bfm_demod_settings->isSet()){ isObjectUpdated = true; break;}
633  if(dsd_demod_settings != nullptr && dsd_demod_settings->isSet()){ isObjectUpdated = true; break;}
634  if(file_source_settings != nullptr && file_source_settings->isSet()){ isObjectUpdated = true; break;}
635  if(free_dv_demod_settings != nullptr && free_dv_demod_settings->isSet()){ isObjectUpdated = true; break;}
636  if(free_dv_mod_settings != nullptr && free_dv_mod_settings->isSet()){ isObjectUpdated = true; break;}
637  if(freq_tracker_settings != nullptr && freq_tracker_settings->isSet()){ isObjectUpdated = true; break;}
638  if(nfm_demod_settings != nullptr && nfm_demod_settings->isSet()){ isObjectUpdated = true; break;}
639  if(nfm_mod_settings != nullptr && nfm_mod_settings->isSet()){ isObjectUpdated = true; break;}
640  if(local_sink_settings != nullptr && local_sink_settings->isSet()){ isObjectUpdated = true; break;}
641  if(local_source_settings != nullptr && local_source_settings->isSet()){ isObjectUpdated = true; break;}
642  if(remote_sink_settings != nullptr && remote_sink_settings->isSet()){ isObjectUpdated = true; break;}
643  if(remote_source_settings != nullptr && remote_source_settings->isSet()){ isObjectUpdated = true; break;}
644  if(ssb_mod_settings != nullptr && ssb_mod_settings->isSet()){ isObjectUpdated = true; break;}
645  if(ssb_demod_settings != nullptr && ssb_demod_settings->isSet()){ isObjectUpdated = true; break;}
646  if(udp_source_settings != nullptr && udp_source_settings->isSet()){ isObjectUpdated = true; break;}
647  if(udp_sink_settings != nullptr && udp_sink_settings->isSet()){ isObjectUpdated = true; break;}
648  if(wfm_demod_settings != nullptr && wfm_demod_settings->isSet()){ isObjectUpdated = true; break;}
649  if(wfm_mod_settings != nullptr && wfm_mod_settings->isSet()){ isObjectUpdated = true; break;}
650  }while(false);
651  return isObjectUpdated;
652 }
653 }
654 
SWGFreeDVDemodSettings * free_dv_demod_settings
SWGRemoteSinkSettings * getRemoteSinkSettings()
void setAmDemodSettings(SWGAMDemodSettings *am_demod_settings)
SWGLocalSourceSettings * local_source_settings
void setFreeDvDemodSettings(SWGFreeDVDemodSettings *free_dv_demod_settings)
void toJsonValue(QString name, void *value, QJsonObject *output, QString type)
Definition: SWGHelpers.cpp:383
SWGRemoteSourceSettings * getRemoteSourceSettings()
SWGNFMDemodSettings * getNfmDemodSettings()
void setChannelType(QString *channel_type)
void setLocalSinkSettings(SWGLocalSinkSettings *local_sink_settings)
void setNfmDemodSettings(SWGNFMDemodSettings *nfm_demod_settings)
void setSsbModSettings(SWGSSBModSettings *ssb_mod_settings)
void setUdpSinkSettings(SWGUDPSinkSettings *udp_sink_settings)
SWGFreeDVDemodSettings * getFreeDvDemodSettings()
void setNfmModSettings(SWGNFMModSettings *nfm_mod_settings)
SWGFreqTrackerSettings * freq_tracker_settings
void setFileSourceSettings(SWGFileSourceSettings *file_source_settings)
SWGBFMDemodSettings * getBfmDemodSettings()
void setFreqTrackerSettings(SWGFreqTrackerSettings *freq_tracker_settings)
virtual void fromJsonObject(QJsonObject &json) override
SWGDSDDemodSettings * getDsdDemodSettings()
SWGRemoteSourceSettings * remote_source_settings
SWGLocalSourceSettings * getLocalSourceSettings()
SWGLocalSinkSettings * local_sink_settings
void setAtvModSettings(SWGATVModSettings *atv_mod_settings)
SWGUDPSourceSettings * udp_source_settings
void setOriginatorDeviceSetIndex(qint32 originator_device_set_index)
void setRemoteSinkSettings(SWGRemoteSinkSettings *remote_sink_settings)
void setDsdDemodSettings(SWGDSDDemodSettings *dsd_demod_settings)
void setOriginatorChannelIndex(qint32 originator_channel_index)
void setSsbDemodSettings(SWGSSBDemodSettings *ssb_demod_settings)
SWGSSBDemodSettings * getSsbDemodSettings()
SWGFreeDVModSettings * getFreeDvModSettings()
SWGWFMDemodSettings * getWfmDemodSettings()
SWGFreeDVModSettings * free_dv_mod_settings
SWGLocalSinkSettings * getLocalSinkSettings()
SWGFileSourceSettings * getFileSourceSettings()
void setLocalSourceSettings(SWGLocalSourceSettings *local_source_settings)
void setUdpSourceSettings(SWGUDPSourceSettings *udp_source_settings)
void setWfmModSettings(SWGWFMModSettings *wfm_mod_settings)
virtual bool isSet() override
virtual QJsonObject * asJsonObject() override
virtual SWGChannelSettings_2 * fromJson(QString &jsonString) override
void setWfmDemodSettings(SWGWFMDemodSettings *wfm_demod_settings)
void setValue(void *value, QJsonValue obj, QString type, QString complexType)
Definition: SWGHelpers.cpp:25
void setBfmDemodSettings(SWGBFMDemodSettings *bfm_demod_settings)
SWGFreqTrackerSettings * getFreqTrackerSettings()
void setFreeDvModSettings(SWGFreeDVModSettings *free_dv_mod_settings)
SWGUDPSourceSettings * getUdpSourceSettings()
SWGRemoteSinkSettings * remote_sink_settings
void setAmModSettings(SWGAMModSettings *am_mod_settings)
SWGFileSourceSettings * file_source_settings
void setRemoteSourceSettings(SWGRemoteSourceSettings *remote_source_settings)