2017-12-10 14:27:08 -05:00
|
|
|
/**
|
|
|
|
* SDRangel
|
2020-10-02 17:45:28 -04:00
|
|
|
* This is the web REST/JSON API of SDRangel SDR software. SDRangel is an Open Source Qt5/OpenGL 3.0+ (4.3+ in Windows) GUI and server Software Defined Radio and signal analyzer in software. It supports Airspy, BladeRF, HackRF, LimeSDR, PlutoSDR, RTL-SDR, SDRplay RSP1, USRP and FunCube --- Limitations and specifcities: * In SDRangel GUI the first Rx device set cannot be deleted. Conversely the server starts with no device sets and its number of device sets can be reduced to zero by as many calls as necessary to /sdrangel/deviceset with DELETE method. * Preset import and export from/to file is a server only feature. * Device set focus is a GUI only feature. * The following channels are not implemented (status 501 is returned): ATV and DATV demodulators, Channel Analyzer NG, LoRa demodulator * The device settings and report structures contains only the sub-structure corresponding to the device type. The DeviceSettings and DeviceReport structures documented here shows all of them but only one will be or should be present at a time * The channel settings and report structures contains only the sub-structure corresponding to the channel type. The ChannelSettings and ChannelReport structures documented here shows all of them but only one will be or should be present at a time ---
|
2017-12-10 14:27:08 -05:00
|
|
|
*
|
2020-08-09 00:46:27 -04:00
|
|
|
* OpenAPI spec version: 4.15.0
|
2017-12-10 14:27:08 -05:00
|
|
|
* Contact: f4exb06@gmail.com
|
|
|
|
*
|
|
|
|
* NOTE: This class is auto generated by the swagger code generator program.
|
|
|
|
* https://github.com/swagger-api/swagger-codegen.git
|
|
|
|
* Do not edit the class manually.
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
#include "SWGChannelSettings.h"
|
|
|
|
|
|
|
|
#include "SWGHelpers.h"
|
|
|
|
|
|
|
|
#include <QJsonDocument>
|
|
|
|
#include <QJsonArray>
|
|
|
|
#include <QObject>
|
|
|
|
#include <QDebug>
|
|
|
|
|
|
|
|
namespace SWGSDRangel {
|
|
|
|
|
2018-02-13 19:42:35 -05:00
|
|
|
SWGChannelSettings::SWGChannelSettings(QString* json) {
|
2017-12-10 14:27:08 -05:00
|
|
|
init();
|
2018-02-13 19:42:35 -05:00
|
|
|
this->fromJson(*json);
|
2017-12-10 14:27:08 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
SWGChannelSettings::SWGChannelSettings() {
|
2018-02-13 19:42:35 -05:00
|
|
|
channel_type = nullptr;
|
|
|
|
m_channel_type_isSet = false;
|
2019-05-07 08:43:38 -04:00
|
|
|
direction = 0;
|
|
|
|
m_direction_isSet = false;
|
2019-03-24 20:15:27 -04:00
|
|
|
originator_device_set_index = 0;
|
|
|
|
m_originator_device_set_index_isSet = false;
|
|
|
|
originator_channel_index = 0;
|
|
|
|
m_originator_channel_index_isSet = false;
|
2018-03-21 18:49:16 -04:00
|
|
|
am_demod_settings = nullptr;
|
|
|
|
m_am_demod_settings_isSet = false;
|
2018-04-05 18:54:18 -04:00
|
|
|
am_mod_settings = nullptr;
|
|
|
|
m_am_mod_settings_isSet = false;
|
2019-08-11 05:35:53 -04:00
|
|
|
atv_demod_settings = nullptr;
|
|
|
|
m_atv_demod_settings_isSet = false;
|
2018-04-14 18:52:39 -04:00
|
|
|
atv_mod_settings = nullptr;
|
|
|
|
m_atv_mod_settings_isSet = false;
|
2018-05-23 08:56:29 -04:00
|
|
|
bfm_demod_settings = nullptr;
|
|
|
|
m_bfm_demod_settings_isSet = false;
|
2019-08-08 03:25:34 -04:00
|
|
|
channel_analyzer_settings = nullptr;
|
|
|
|
m_channel_analyzer_settings_isSet = false;
|
2019-08-11 05:35:53 -04:00
|
|
|
datv_demod_settings = nullptr;
|
|
|
|
m_datv_demod_settings_isSet = false;
|
2018-05-24 06:17:29 -04:00
|
|
|
dsd_demod_settings = nullptr;
|
|
|
|
m_dsd_demod_settings_isSet = false;
|
2020-08-08 17:42:36 -04:00
|
|
|
file_sink_settings = nullptr;
|
|
|
|
m_file_sink_settings_isSet = false;
|
2019-07-07 18:59:04 -04:00
|
|
|
file_source_settings = nullptr;
|
|
|
|
m_file_source_settings_isSet = false;
|
2019-02-24 20:06:15 -05:00
|
|
|
free_dv_demod_settings = nullptr;
|
|
|
|
m_free_dv_demod_settings_isSet = false;
|
2019-02-22 01:17:27 -05:00
|
|
|
free_dv_mod_settings = nullptr;
|
|
|
|
m_free_dv_mod_settings_isSet = false;
|
2019-05-03 19:55:58 -04:00
|
|
|
freq_tracker_settings = nullptr;
|
|
|
|
m_freq_tracker_settings_isSet = false;
|
2020-10-08 10:13:06 -04:00
|
|
|
ieee_802_15_4_mod_settings = nullptr;
|
|
|
|
m_ieee_802_15_4_mod_settings_isSet = false;
|
2018-02-13 19:42:35 -05:00
|
|
|
nfm_demod_settings = nullptr;
|
|
|
|
m_nfm_demod_settings_isSet = false;
|
|
|
|
nfm_mod_settings = nullptr;
|
|
|
|
m_nfm_mod_settings_isSet = false;
|
2019-05-01 22:02:40 -04:00
|
|
|
local_sink_settings = nullptr;
|
|
|
|
m_local_sink_settings_isSet = false;
|
2019-05-09 18:34:35 -04:00
|
|
|
local_source_settings = nullptr;
|
|
|
|
m_local_source_settings_isSet = false;
|
2020-09-18 11:36:27 -04:00
|
|
|
packet_mod_settings = nullptr;
|
|
|
|
m_packet_mod_settings_isSet = false;
|
2019-01-22 17:39:12 -05:00
|
|
|
remote_sink_settings = nullptr;
|
|
|
|
m_remote_sink_settings_isSet = false;
|
2019-01-22 18:44:13 -05:00
|
|
|
remote_source_settings = nullptr;
|
|
|
|
m_remote_source_settings_isSet = false;
|
2018-04-12 17:49:29 -04:00
|
|
|
ssb_mod_settings = nullptr;
|
|
|
|
m_ssb_mod_settings_isSet = false;
|
2018-05-26 09:53:22 -04:00
|
|
|
ssb_demod_settings = nullptr;
|
|
|
|
m_ssb_demod_settings_isSet = false;
|
2018-09-11 17:22:59 -04:00
|
|
|
udp_source_settings = nullptr;
|
|
|
|
m_udp_source_settings_isSet = false;
|
2018-09-11 18:36:30 -04:00
|
|
|
udp_sink_settings = nullptr;
|
|
|
|
m_udp_sink_settings_isSet = false;
|
2018-05-25 04:08:47 -04:00
|
|
|
wfm_demod_settings = nullptr;
|
|
|
|
m_wfm_demod_settings_isSet = false;
|
2018-04-08 18:37:17 -04:00
|
|
|
wfm_mod_settings = nullptr;
|
|
|
|
m_wfm_mod_settings_isSet = false;
|
2017-12-10 14:27:08 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
SWGChannelSettings::~SWGChannelSettings() {
|
|
|
|
this->cleanup();
|
|
|
|
}
|
|
|
|
|
|
|
|
void
|
|
|
|
SWGChannelSettings::init() {
|
|
|
|
channel_type = new QString("");
|
2018-02-12 12:20:27 -05:00
|
|
|
m_channel_type_isSet = false;
|
2019-05-07 08:43:38 -04:00
|
|
|
direction = 0;
|
|
|
|
m_direction_isSet = false;
|
2019-03-24 20:15:27 -04:00
|
|
|
originator_device_set_index = 0;
|
|
|
|
m_originator_device_set_index_isSet = false;
|
|
|
|
originator_channel_index = 0;
|
|
|
|
m_originator_channel_index_isSet = false;
|
2018-03-21 18:49:16 -04:00
|
|
|
am_demod_settings = new SWGAMDemodSettings();
|
|
|
|
m_am_demod_settings_isSet = false;
|
2018-04-05 18:54:18 -04:00
|
|
|
am_mod_settings = new SWGAMModSettings();
|
|
|
|
m_am_mod_settings_isSet = false;
|
2019-08-11 05:35:53 -04:00
|
|
|
atv_demod_settings = new SWGATVDemodSettings();
|
|
|
|
m_atv_demod_settings_isSet = false;
|
2018-04-14 18:52:39 -04:00
|
|
|
atv_mod_settings = new SWGATVModSettings();
|
|
|
|
m_atv_mod_settings_isSet = false;
|
2018-05-23 08:56:29 -04:00
|
|
|
bfm_demod_settings = new SWGBFMDemodSettings();
|
|
|
|
m_bfm_demod_settings_isSet = false;
|
2019-08-08 03:25:34 -04:00
|
|
|
channel_analyzer_settings = new SWGChannelAnalyzerSettings();
|
|
|
|
m_channel_analyzer_settings_isSet = false;
|
2019-08-11 05:35:53 -04:00
|
|
|
datv_demod_settings = new SWGDATVDemodSettings();
|
|
|
|
m_datv_demod_settings_isSet = false;
|
2018-05-24 06:17:29 -04:00
|
|
|
dsd_demod_settings = new SWGDSDDemodSettings();
|
|
|
|
m_dsd_demod_settings_isSet = false;
|
2020-08-08 17:42:36 -04:00
|
|
|
file_sink_settings = new SWGFileSinkSettings();
|
|
|
|
m_file_sink_settings_isSet = false;
|
2019-07-07 18:59:04 -04:00
|
|
|
file_source_settings = new SWGFileSourceSettings();
|
|
|
|
m_file_source_settings_isSet = false;
|
2019-02-24 20:06:15 -05:00
|
|
|
free_dv_demod_settings = new SWGFreeDVDemodSettings();
|
|
|
|
m_free_dv_demod_settings_isSet = false;
|
2019-02-22 01:17:27 -05:00
|
|
|
free_dv_mod_settings = new SWGFreeDVModSettings();
|
|
|
|
m_free_dv_mod_settings_isSet = false;
|
2019-05-03 19:55:58 -04:00
|
|
|
freq_tracker_settings = new SWGFreqTrackerSettings();
|
|
|
|
m_freq_tracker_settings_isSet = false;
|
2020-10-08 10:13:06 -04:00
|
|
|
ieee_802_15_4_mod_settings = new SWGIEEE_802_15_4_ModSettings();
|
|
|
|
m_ieee_802_15_4_mod_settings_isSet = false;
|
2017-12-10 14:27:08 -05:00
|
|
|
nfm_demod_settings = new SWGNFMDemodSettings();
|
2018-02-12 12:20:27 -05:00
|
|
|
m_nfm_demod_settings_isSet = false;
|
2017-12-10 14:27:08 -05:00
|
|
|
nfm_mod_settings = new SWGNFMModSettings();
|
2018-02-12 12:20:27 -05:00
|
|
|
m_nfm_mod_settings_isSet = false;
|
2019-05-01 22:02:40 -04:00
|
|
|
local_sink_settings = new SWGLocalSinkSettings();
|
|
|
|
m_local_sink_settings_isSet = false;
|
2019-05-09 18:34:35 -04:00
|
|
|
local_source_settings = new SWGLocalSourceSettings();
|
|
|
|
m_local_source_settings_isSet = false;
|
2020-09-18 11:36:27 -04:00
|
|
|
packet_mod_settings = new SWGPacketModSettings();
|
|
|
|
m_packet_mod_settings_isSet = false;
|
2019-01-22 17:39:12 -05:00
|
|
|
remote_sink_settings = new SWGRemoteSinkSettings();
|
|
|
|
m_remote_sink_settings_isSet = false;
|
2019-01-22 18:44:13 -05:00
|
|
|
remote_source_settings = new SWGRemoteSourceSettings();
|
|
|
|
m_remote_source_settings_isSet = false;
|
2018-04-12 17:49:29 -04:00
|
|
|
ssb_mod_settings = new SWGSSBModSettings();
|
|
|
|
m_ssb_mod_settings_isSet = false;
|
2018-05-26 09:53:22 -04:00
|
|
|
ssb_demod_settings = new SWGSSBDemodSettings();
|
|
|
|
m_ssb_demod_settings_isSet = false;
|
2018-09-11 17:22:59 -04:00
|
|
|
udp_source_settings = new SWGUDPSourceSettings();
|
|
|
|
m_udp_source_settings_isSet = false;
|
2018-09-11 18:36:30 -04:00
|
|
|
udp_sink_settings = new SWGUDPSinkSettings();
|
|
|
|
m_udp_sink_settings_isSet = false;
|
2018-05-25 04:08:47 -04:00
|
|
|
wfm_demod_settings = new SWGWFMDemodSettings();
|
|
|
|
m_wfm_demod_settings_isSet = false;
|
2018-04-08 18:37:17 -04:00
|
|
|
wfm_mod_settings = new SWGWFMModSettings();
|
|
|
|
m_wfm_mod_settings_isSet = false;
|
2017-12-10 14:27:08 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
void
|
|
|
|
SWGChannelSettings::cleanup() {
|
2018-02-12 12:20:27 -05:00
|
|
|
if(channel_type != nullptr) {
|
2017-12-10 14:27:08 -05:00
|
|
|
delete channel_type;
|
|
|
|
}
|
|
|
|
|
2019-03-24 20:15:27 -04:00
|
|
|
|
|
|
|
|
2018-03-21 18:49:16 -04:00
|
|
|
if(am_demod_settings != nullptr) {
|
|
|
|
delete am_demod_settings;
|
|
|
|
}
|
2018-04-05 18:54:18 -04:00
|
|
|
if(am_mod_settings != nullptr) {
|
|
|
|
delete am_mod_settings;
|
|
|
|
}
|
2019-08-11 05:35:53 -04:00
|
|
|
if(atv_demod_settings != nullptr) {
|
|
|
|
delete atv_demod_settings;
|
|
|
|
}
|
2018-04-14 18:52:39 -04:00
|
|
|
if(atv_mod_settings != nullptr) {
|
|
|
|
delete atv_mod_settings;
|
|
|
|
}
|
2018-05-23 08:56:29 -04:00
|
|
|
if(bfm_demod_settings != nullptr) {
|
|
|
|
delete bfm_demod_settings;
|
|
|
|
}
|
2019-08-08 03:25:34 -04:00
|
|
|
if(channel_analyzer_settings != nullptr) {
|
|
|
|
delete channel_analyzer_settings;
|
|
|
|
}
|
2019-08-11 05:35:53 -04:00
|
|
|
if(datv_demod_settings != nullptr) {
|
|
|
|
delete datv_demod_settings;
|
|
|
|
}
|
2018-05-24 06:17:29 -04:00
|
|
|
if(dsd_demod_settings != nullptr) {
|
|
|
|
delete dsd_demod_settings;
|
|
|
|
}
|
2020-08-08 17:42:36 -04:00
|
|
|
if(file_sink_settings != nullptr) {
|
|
|
|
delete file_sink_settings;
|
|
|
|
}
|
2019-07-07 18:59:04 -04:00
|
|
|
if(file_source_settings != nullptr) {
|
|
|
|
delete file_source_settings;
|
|
|
|
}
|
2019-02-24 20:06:15 -05:00
|
|
|
if(free_dv_demod_settings != nullptr) {
|
|
|
|
delete free_dv_demod_settings;
|
|
|
|
}
|
2019-02-22 01:17:27 -05:00
|
|
|
if(free_dv_mod_settings != nullptr) {
|
|
|
|
delete free_dv_mod_settings;
|
|
|
|
}
|
2019-05-03 19:55:58 -04:00
|
|
|
if(freq_tracker_settings != nullptr) {
|
|
|
|
delete freq_tracker_settings;
|
|
|
|
}
|
2020-10-08 10:13:06 -04:00
|
|
|
if(ieee_802_15_4_mod_settings != nullptr) {
|
|
|
|
delete ieee_802_15_4_mod_settings;
|
|
|
|
}
|
2018-02-12 12:20:27 -05:00
|
|
|
if(nfm_demod_settings != nullptr) {
|
2017-12-10 14:27:08 -05:00
|
|
|
delete nfm_demod_settings;
|
|
|
|
}
|
2018-02-12 12:20:27 -05:00
|
|
|
if(nfm_mod_settings != nullptr) {
|
2017-12-10 14:27:08 -05:00
|
|
|
delete nfm_mod_settings;
|
|
|
|
}
|
2019-05-01 22:02:40 -04:00
|
|
|
if(local_sink_settings != nullptr) {
|
|
|
|
delete local_sink_settings;
|
|
|
|
}
|
2019-05-09 18:34:35 -04:00
|
|
|
if(local_source_settings != nullptr) {
|
|
|
|
delete local_source_settings;
|
|
|
|
}
|
2020-09-18 11:36:27 -04:00
|
|
|
if(packet_mod_settings != nullptr) {
|
|
|
|
delete packet_mod_settings;
|
|
|
|
}
|
2019-01-22 17:39:12 -05:00
|
|
|
if(remote_sink_settings != nullptr) {
|
|
|
|
delete remote_sink_settings;
|
2018-08-23 10:06:47 -04:00
|
|
|
}
|
2019-01-22 18:44:13 -05:00
|
|
|
if(remote_source_settings != nullptr) {
|
|
|
|
delete remote_source_settings;
|
2018-08-29 19:56:53 -04:00
|
|
|
}
|
2018-04-12 17:49:29 -04:00
|
|
|
if(ssb_mod_settings != nullptr) {
|
|
|
|
delete ssb_mod_settings;
|
|
|
|
}
|
2018-05-26 09:53:22 -04:00
|
|
|
if(ssb_demod_settings != nullptr) {
|
|
|
|
delete ssb_demod_settings;
|
|
|
|
}
|
2018-09-11 17:22:59 -04:00
|
|
|
if(udp_source_settings != nullptr) {
|
|
|
|
delete udp_source_settings;
|
2018-04-15 12:25:22 -04:00
|
|
|
}
|
2018-09-11 18:36:30 -04:00
|
|
|
if(udp_sink_settings != nullptr) {
|
|
|
|
delete udp_sink_settings;
|
2018-05-25 04:45:40 -04:00
|
|
|
}
|
2018-05-25 04:08:47 -04:00
|
|
|
if(wfm_demod_settings != nullptr) {
|
|
|
|
delete wfm_demod_settings;
|
|
|
|
}
|
2018-04-08 18:37:17 -04:00
|
|
|
if(wfm_mod_settings != nullptr) {
|
|
|
|
delete wfm_mod_settings;
|
|
|
|
}
|
2017-12-10 14:27:08 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
SWGChannelSettings*
|
2018-02-13 19:42:35 -05:00
|
|
|
SWGChannelSettings::fromJson(QString &json) {
|
2017-12-10 14:27:08 -05:00
|
|
|
QByteArray array (json.toStdString().c_str());
|
|
|
|
QJsonDocument doc = QJsonDocument::fromJson(array);
|
|
|
|
QJsonObject jsonObject = doc.object();
|
|
|
|
this->fromJsonObject(jsonObject);
|
|
|
|
return this;
|
|
|
|
}
|
|
|
|
|
|
|
|
void
|
2018-02-13 19:42:35 -05:00
|
|
|
SWGChannelSettings::fromJsonObject(QJsonObject &pJson) {
|
2017-12-10 14:27:08 -05:00
|
|
|
::SWGSDRangel::setValue(&channel_type, pJson["channelType"], "QString", "QString");
|
2018-02-12 12:20:27 -05:00
|
|
|
|
2019-05-07 08:43:38 -04:00
|
|
|
::SWGSDRangel::setValue(&direction, pJson["direction"], "qint32", "");
|
2018-02-12 12:20:27 -05:00
|
|
|
|
2019-03-24 20:15:27 -04:00
|
|
|
::SWGSDRangel::setValue(&originator_device_set_index, pJson["originatorDeviceSetIndex"], "qint32", "");
|
|
|
|
|
|
|
|
::SWGSDRangel::setValue(&originator_channel_index, pJson["originatorChannelIndex"], "qint32", "");
|
|
|
|
|
2018-03-21 18:49:16 -04:00
|
|
|
::SWGSDRangel::setValue(&am_demod_settings, pJson["AMDemodSettings"], "SWGAMDemodSettings", "SWGAMDemodSettings");
|
|
|
|
|
2018-04-05 18:54:18 -04:00
|
|
|
::SWGSDRangel::setValue(&am_mod_settings, pJson["AMModSettings"], "SWGAMModSettings", "SWGAMModSettings");
|
|
|
|
|
2019-08-11 05:35:53 -04:00
|
|
|
::SWGSDRangel::setValue(&atv_demod_settings, pJson["ATVDemodSettings"], "SWGATVDemodSettings", "SWGATVDemodSettings");
|
|
|
|
|
2018-04-14 18:52:39 -04:00
|
|
|
::SWGSDRangel::setValue(&atv_mod_settings, pJson["ATVModSettings"], "SWGATVModSettings", "SWGATVModSettings");
|
|
|
|
|
2018-05-23 08:56:29 -04:00
|
|
|
::SWGSDRangel::setValue(&bfm_demod_settings, pJson["BFMDemodSettings"], "SWGBFMDemodSettings", "SWGBFMDemodSettings");
|
|
|
|
|
2019-08-08 03:25:34 -04:00
|
|
|
::SWGSDRangel::setValue(&channel_analyzer_settings, pJson["ChannelAnalyzerSettings"], "SWGChannelAnalyzerSettings", "SWGChannelAnalyzerSettings");
|
|
|
|
|
2019-08-11 05:35:53 -04:00
|
|
|
::SWGSDRangel::setValue(&datv_demod_settings, pJson["DATVDemodSettings"], "SWGDATVDemodSettings", "SWGDATVDemodSettings");
|
|
|
|
|
2018-05-24 06:17:29 -04:00
|
|
|
::SWGSDRangel::setValue(&dsd_demod_settings, pJson["DSDDemodSettings"], "SWGDSDDemodSettings", "SWGDSDDemodSettings");
|
|
|
|
|
2020-08-08 17:42:36 -04:00
|
|
|
::SWGSDRangel::setValue(&file_sink_settings, pJson["FileSinkSettings"], "SWGFileSinkSettings", "SWGFileSinkSettings");
|
|
|
|
|
2019-07-07 18:59:04 -04:00
|
|
|
::SWGSDRangel::setValue(&file_source_settings, pJson["FileSourceSettings"], "SWGFileSourceSettings", "SWGFileSourceSettings");
|
|
|
|
|
2019-02-24 20:06:15 -05:00
|
|
|
::SWGSDRangel::setValue(&free_dv_demod_settings, pJson["FreeDVDemodSettings"], "SWGFreeDVDemodSettings", "SWGFreeDVDemodSettings");
|
|
|
|
|
2019-02-22 01:17:27 -05:00
|
|
|
::SWGSDRangel::setValue(&free_dv_mod_settings, pJson["FreeDVModSettings"], "SWGFreeDVModSettings", "SWGFreeDVModSettings");
|
|
|
|
|
2019-05-03 19:55:58 -04:00
|
|
|
::SWGSDRangel::setValue(&freq_tracker_settings, pJson["FreqTrackerSettings"], "SWGFreqTrackerSettings", "SWGFreqTrackerSettings");
|
|
|
|
|
2020-10-08 10:13:06 -04:00
|
|
|
::SWGSDRangel::setValue(&ieee_802_15_4_mod_settings, pJson["IEEE_802_15_4_ModSettings"], "SWGIEEE_802_15_4_ModSettings", "SWGIEEE_802_15_4_ModSettings");
|
|
|
|
|
2017-12-10 14:27:08 -05:00
|
|
|
::SWGSDRangel::setValue(&nfm_demod_settings, pJson["NFMDemodSettings"], "SWGNFMDemodSettings", "SWGNFMDemodSettings");
|
2018-02-12 12:20:27 -05:00
|
|
|
|
2017-12-10 14:27:08 -05:00
|
|
|
::SWGSDRangel::setValue(&nfm_mod_settings, pJson["NFMModSettings"], "SWGNFMModSettings", "SWGNFMModSettings");
|
2018-02-12 12:20:27 -05:00
|
|
|
|
2019-05-01 22:02:40 -04:00
|
|
|
::SWGSDRangel::setValue(&local_sink_settings, pJson["LocalSinkSettings"], "SWGLocalSinkSettings", "SWGLocalSinkSettings");
|
|
|
|
|
2019-05-09 18:34:35 -04:00
|
|
|
::SWGSDRangel::setValue(&local_source_settings, pJson["LocalSourceSettings"], "SWGLocalSourceSettings", "SWGLocalSourceSettings");
|
|
|
|
|
2020-09-18 11:36:27 -04:00
|
|
|
::SWGSDRangel::setValue(&packet_mod_settings, pJson["PacketModSettings"], "SWGPacketModSettings", "SWGPacketModSettings");
|
|
|
|
|
2019-01-22 17:39:12 -05:00
|
|
|
::SWGSDRangel::setValue(&remote_sink_settings, pJson["RemoteSinkSettings"], "SWGRemoteSinkSettings", "SWGRemoteSinkSettings");
|
2018-08-23 10:06:47 -04:00
|
|
|
|
2019-01-22 18:44:13 -05:00
|
|
|
::SWGSDRangel::setValue(&remote_source_settings, pJson["RemoteSourceSettings"], "SWGRemoteSourceSettings", "SWGRemoteSourceSettings");
|
2018-08-29 19:56:53 -04:00
|
|
|
|
2018-04-12 17:49:29 -04:00
|
|
|
::SWGSDRangel::setValue(&ssb_mod_settings, pJson["SSBModSettings"], "SWGSSBModSettings", "SWGSSBModSettings");
|
|
|
|
|
2018-05-26 09:53:22 -04:00
|
|
|
::SWGSDRangel::setValue(&ssb_demod_settings, pJson["SSBDemodSettings"], "SWGSSBDemodSettings", "SWGSSBDemodSettings");
|
|
|
|
|
2018-09-11 17:22:59 -04:00
|
|
|
::SWGSDRangel::setValue(&udp_source_settings, pJson["UDPSourceSettings"], "SWGUDPSourceSettings", "SWGUDPSourceSettings");
|
2018-04-15 12:25:22 -04:00
|
|
|
|
2018-09-11 18:36:30 -04:00
|
|
|
::SWGSDRangel::setValue(&udp_sink_settings, pJson["UDPSinkSettings"], "SWGUDPSinkSettings", "SWGUDPSinkSettings");
|
2018-05-25 04:45:40 -04:00
|
|
|
|
2018-05-25 04:08:47 -04:00
|
|
|
::SWGSDRangel::setValue(&wfm_demod_settings, pJson["WFMDemodSettings"], "SWGWFMDemodSettings", "SWGWFMDemodSettings");
|
|
|
|
|
2018-04-08 18:37:17 -04:00
|
|
|
::SWGSDRangel::setValue(&wfm_mod_settings, pJson["WFMModSettings"], "SWGWFMModSettings", "SWGWFMModSettings");
|
|
|
|
|
2017-12-10 14:27:08 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
QString
|
|
|
|
SWGChannelSettings::asJson ()
|
|
|
|
{
|
2018-02-13 19:42:35 -05:00
|
|
|
QJsonObject* obj = this->asJsonObject();
|
|
|
|
|
|
|
|
QJsonDocument doc(*obj);
|
2017-12-10 14:27:08 -05:00
|
|
|
QByteArray bytes = doc.toJson();
|
2018-02-13 19:42:35 -05:00
|
|
|
delete obj;
|
2017-12-10 14:27:08 -05:00
|
|
|
return QString(bytes);
|
|
|
|
}
|
|
|
|
|
2018-02-13 19:42:35 -05:00
|
|
|
QJsonObject*
|
2017-12-10 14:27:08 -05:00
|
|
|
SWGChannelSettings::asJsonObject() {
|
2018-02-13 19:42:35 -05:00
|
|
|
QJsonObject* obj = new QJsonObject();
|
2018-02-12 12:20:27 -05:00
|
|
|
if(channel_type != nullptr && *channel_type != QString("")){
|
|
|
|
toJsonValue(QString("channelType"), channel_type, obj, QString("QString"));
|
|
|
|
}
|
2019-05-07 08:43:38 -04:00
|
|
|
if(m_direction_isSet){
|
|
|
|
obj->insert("direction", QJsonValue(direction));
|
2018-02-12 12:20:27 -05:00
|
|
|
}
|
2019-03-24 20:15:27 -04:00
|
|
|
if(m_originator_device_set_index_isSet){
|
|
|
|
obj->insert("originatorDeviceSetIndex", QJsonValue(originator_device_set_index));
|
|
|
|
}
|
|
|
|
if(m_originator_channel_index_isSet){
|
|
|
|
obj->insert("originatorChannelIndex", QJsonValue(originator_channel_index));
|
|
|
|
}
|
2018-03-21 18:49:16 -04:00
|
|
|
if((am_demod_settings != nullptr) && (am_demod_settings->isSet())){
|
|
|
|
toJsonValue(QString("AMDemodSettings"), am_demod_settings, obj, QString("SWGAMDemodSettings"));
|
|
|
|
}
|
2018-04-05 18:54:18 -04:00
|
|
|
if((am_mod_settings != nullptr) && (am_mod_settings->isSet())){
|
|
|
|
toJsonValue(QString("AMModSettings"), am_mod_settings, obj, QString("SWGAMModSettings"));
|
|
|
|
}
|
2019-08-11 05:35:53 -04:00
|
|
|
if((atv_demod_settings != nullptr) && (atv_demod_settings->isSet())){
|
|
|
|
toJsonValue(QString("ATVDemodSettings"), atv_demod_settings, obj, QString("SWGATVDemodSettings"));
|
|
|
|
}
|
2018-04-14 18:52:39 -04:00
|
|
|
if((atv_mod_settings != nullptr) && (atv_mod_settings->isSet())){
|
|
|
|
toJsonValue(QString("ATVModSettings"), atv_mod_settings, obj, QString("SWGATVModSettings"));
|
|
|
|
}
|
2018-05-23 08:56:29 -04:00
|
|
|
if((bfm_demod_settings != nullptr) && (bfm_demod_settings->isSet())){
|
|
|
|
toJsonValue(QString("BFMDemodSettings"), bfm_demod_settings, obj, QString("SWGBFMDemodSettings"));
|
|
|
|
}
|
2019-08-08 03:25:34 -04:00
|
|
|
if((channel_analyzer_settings != nullptr) && (channel_analyzer_settings->isSet())){
|
|
|
|
toJsonValue(QString("ChannelAnalyzerSettings"), channel_analyzer_settings, obj, QString("SWGChannelAnalyzerSettings"));
|
|
|
|
}
|
2019-08-11 05:35:53 -04:00
|
|
|
if((datv_demod_settings != nullptr) && (datv_demod_settings->isSet())){
|
|
|
|
toJsonValue(QString("DATVDemodSettings"), datv_demod_settings, obj, QString("SWGDATVDemodSettings"));
|
|
|
|
}
|
2018-05-24 06:17:29 -04:00
|
|
|
if((dsd_demod_settings != nullptr) && (dsd_demod_settings->isSet())){
|
|
|
|
toJsonValue(QString("DSDDemodSettings"), dsd_demod_settings, obj, QString("SWGDSDDemodSettings"));
|
|
|
|
}
|
2020-08-08 17:42:36 -04:00
|
|
|
if((file_sink_settings != nullptr) && (file_sink_settings->isSet())){
|
|
|
|
toJsonValue(QString("FileSinkSettings"), file_sink_settings, obj, QString("SWGFileSinkSettings"));
|
|
|
|
}
|
2019-07-07 18:59:04 -04:00
|
|
|
if((file_source_settings != nullptr) && (file_source_settings->isSet())){
|
|
|
|
toJsonValue(QString("FileSourceSettings"), file_source_settings, obj, QString("SWGFileSourceSettings"));
|
|
|
|
}
|
2019-02-24 20:06:15 -05:00
|
|
|
if((free_dv_demod_settings != nullptr) && (free_dv_demod_settings->isSet())){
|
|
|
|
toJsonValue(QString("FreeDVDemodSettings"), free_dv_demod_settings, obj, QString("SWGFreeDVDemodSettings"));
|
|
|
|
}
|
2019-02-22 01:17:27 -05:00
|
|
|
if((free_dv_mod_settings != nullptr) && (free_dv_mod_settings->isSet())){
|
|
|
|
toJsonValue(QString("FreeDVModSettings"), free_dv_mod_settings, obj, QString("SWGFreeDVModSettings"));
|
|
|
|
}
|
2019-05-03 19:55:58 -04:00
|
|
|
if((freq_tracker_settings != nullptr) && (freq_tracker_settings->isSet())){
|
|
|
|
toJsonValue(QString("FreqTrackerSettings"), freq_tracker_settings, obj, QString("SWGFreqTrackerSettings"));
|
|
|
|
}
|
2020-10-08 10:13:06 -04:00
|
|
|
if((ieee_802_15_4_mod_settings != nullptr) && (ieee_802_15_4_mod_settings->isSet())){
|
|
|
|
toJsonValue(QString("IEEE_802_15_4_ModSettings"), ieee_802_15_4_mod_settings, obj, QString("SWGIEEE_802_15_4_ModSettings"));
|
|
|
|
}
|
2018-02-12 12:20:27 -05:00
|
|
|
if((nfm_demod_settings != nullptr) && (nfm_demod_settings->isSet())){
|
|
|
|
toJsonValue(QString("NFMDemodSettings"), nfm_demod_settings, obj, QString("SWGNFMDemodSettings"));
|
|
|
|
}
|
|
|
|
if((nfm_mod_settings != nullptr) && (nfm_mod_settings->isSet())){
|
|
|
|
toJsonValue(QString("NFMModSettings"), nfm_mod_settings, obj, QString("SWGNFMModSettings"));
|
|
|
|
}
|
2019-05-01 22:02:40 -04:00
|
|
|
if((local_sink_settings != nullptr) && (local_sink_settings->isSet())){
|
|
|
|
toJsonValue(QString("LocalSinkSettings"), local_sink_settings, obj, QString("SWGLocalSinkSettings"));
|
|
|
|
}
|
2019-05-09 18:34:35 -04:00
|
|
|
if((local_source_settings != nullptr) && (local_source_settings->isSet())){
|
|
|
|
toJsonValue(QString("LocalSourceSettings"), local_source_settings, obj, QString("SWGLocalSourceSettings"));
|
|
|
|
}
|
2020-09-18 11:36:27 -04:00
|
|
|
if((packet_mod_settings != nullptr) && (packet_mod_settings->isSet())){
|
|
|
|
toJsonValue(QString("PacketModSettings"), packet_mod_settings, obj, QString("SWGPacketModSettings"));
|
|
|
|
}
|
2019-01-22 17:39:12 -05:00
|
|
|
if((remote_sink_settings != nullptr) && (remote_sink_settings->isSet())){
|
|
|
|
toJsonValue(QString("RemoteSinkSettings"), remote_sink_settings, obj, QString("SWGRemoteSinkSettings"));
|
2018-08-23 10:06:47 -04:00
|
|
|
}
|
2019-01-22 18:44:13 -05:00
|
|
|
if((remote_source_settings != nullptr) && (remote_source_settings->isSet())){
|
|
|
|
toJsonValue(QString("RemoteSourceSettings"), remote_source_settings, obj, QString("SWGRemoteSourceSettings"));
|
2018-08-29 19:56:53 -04:00
|
|
|
}
|
2018-04-12 17:49:29 -04:00
|
|
|
if((ssb_mod_settings != nullptr) && (ssb_mod_settings->isSet())){
|
|
|
|
toJsonValue(QString("SSBModSettings"), ssb_mod_settings, obj, QString("SWGSSBModSettings"));
|
|
|
|
}
|
2018-05-26 09:53:22 -04:00
|
|
|
if((ssb_demod_settings != nullptr) && (ssb_demod_settings->isSet())){
|
|
|
|
toJsonValue(QString("SSBDemodSettings"), ssb_demod_settings, obj, QString("SWGSSBDemodSettings"));
|
|
|
|
}
|
2018-09-11 17:22:59 -04:00
|
|
|
if((udp_source_settings != nullptr) && (udp_source_settings->isSet())){
|
|
|
|
toJsonValue(QString("UDPSourceSettings"), udp_source_settings, obj, QString("SWGUDPSourceSettings"));
|
2018-04-15 12:25:22 -04:00
|
|
|
}
|
2018-09-11 18:36:30 -04:00
|
|
|
if((udp_sink_settings != nullptr) && (udp_sink_settings->isSet())){
|
|
|
|
toJsonValue(QString("UDPSinkSettings"), udp_sink_settings, obj, QString("SWGUDPSinkSettings"));
|
2018-05-25 04:45:40 -04:00
|
|
|
}
|
2018-05-25 04:08:47 -04:00
|
|
|
if((wfm_demod_settings != nullptr) && (wfm_demod_settings->isSet())){
|
|
|
|
toJsonValue(QString("WFMDemodSettings"), wfm_demod_settings, obj, QString("SWGWFMDemodSettings"));
|
|
|
|
}
|
2018-04-08 18:37:17 -04:00
|
|
|
if((wfm_mod_settings != nullptr) && (wfm_mod_settings->isSet())){
|
|
|
|
toJsonValue(QString("WFMModSettings"), wfm_mod_settings, obj, QString("SWGWFMModSettings"));
|
|
|
|
}
|
2017-12-10 14:27:08 -05:00
|
|
|
|
|
|
|
return obj;
|
|
|
|
}
|
|
|
|
|
|
|
|
QString*
|
|
|
|
SWGChannelSettings::getChannelType() {
|
|
|
|
return channel_type;
|
|
|
|
}
|
|
|
|
void
|
|
|
|
SWGChannelSettings::setChannelType(QString* channel_type) {
|
|
|
|
this->channel_type = channel_type;
|
2018-02-12 12:20:27 -05:00
|
|
|
this->m_channel_type_isSet = true;
|
2017-12-10 14:27:08 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
qint32
|
2019-05-07 08:43:38 -04:00
|
|
|
SWGChannelSettings::getDirection() {
|
|
|
|
return direction;
|
2017-12-10 14:27:08 -05:00
|
|
|
}
|
|
|
|
void
|
2019-05-07 08:43:38 -04:00
|
|
|
SWGChannelSettings::setDirection(qint32 direction) {
|
|
|
|
this->direction = direction;
|
|
|
|
this->m_direction_isSet = true;
|
2017-12-10 14:27:08 -05:00
|
|
|
}
|
|
|
|
|
2019-03-24 20:15:27 -04:00
|
|
|
qint32
|
|
|
|
SWGChannelSettings::getOriginatorDeviceSetIndex() {
|
|
|
|
return originator_device_set_index;
|
|
|
|
}
|
|
|
|
void
|
|
|
|
SWGChannelSettings::setOriginatorDeviceSetIndex(qint32 originator_device_set_index) {
|
|
|
|
this->originator_device_set_index = originator_device_set_index;
|
|
|
|
this->m_originator_device_set_index_isSet = true;
|
|
|
|
}
|
|
|
|
|
|
|
|
qint32
|
|
|
|
SWGChannelSettings::getOriginatorChannelIndex() {
|
|
|
|
return originator_channel_index;
|
|
|
|
}
|
|
|
|
void
|
|
|
|
SWGChannelSettings::setOriginatorChannelIndex(qint32 originator_channel_index) {
|
|
|
|
this->originator_channel_index = originator_channel_index;
|
|
|
|
this->m_originator_channel_index_isSet = true;
|
|
|
|
}
|
|
|
|
|
2018-03-21 18:49:16 -04:00
|
|
|
SWGAMDemodSettings*
|
|
|
|
SWGChannelSettings::getAmDemodSettings() {
|
|
|
|
return am_demod_settings;
|
|
|
|
}
|
|
|
|
void
|
|
|
|
SWGChannelSettings::setAmDemodSettings(SWGAMDemodSettings* am_demod_settings) {
|
|
|
|
this->am_demod_settings = am_demod_settings;
|
|
|
|
this->m_am_demod_settings_isSet = true;
|
|
|
|
}
|
|
|
|
|
2018-04-05 18:54:18 -04:00
|
|
|
SWGAMModSettings*
|
|
|
|
SWGChannelSettings::getAmModSettings() {
|
|
|
|
return am_mod_settings;
|
|
|
|
}
|
|
|
|
void
|
|
|
|
SWGChannelSettings::setAmModSettings(SWGAMModSettings* am_mod_settings) {
|
|
|
|
this->am_mod_settings = am_mod_settings;
|
|
|
|
this->m_am_mod_settings_isSet = true;
|
|
|
|
}
|
|
|
|
|
2019-08-11 05:35:53 -04:00
|
|
|
SWGATVDemodSettings*
|
|
|
|
SWGChannelSettings::getAtvDemodSettings() {
|
|
|
|
return atv_demod_settings;
|
|
|
|
}
|
|
|
|
void
|
|
|
|
SWGChannelSettings::setAtvDemodSettings(SWGATVDemodSettings* atv_demod_settings) {
|
|
|
|
this->atv_demod_settings = atv_demod_settings;
|
|
|
|
this->m_atv_demod_settings_isSet = true;
|
|
|
|
}
|
|
|
|
|
2018-04-14 18:52:39 -04:00
|
|
|
SWGATVModSettings*
|
|
|
|
SWGChannelSettings::getAtvModSettings() {
|
|
|
|
return atv_mod_settings;
|
|
|
|
}
|
|
|
|
void
|
|
|
|
SWGChannelSettings::setAtvModSettings(SWGATVModSettings* atv_mod_settings) {
|
|
|
|
this->atv_mod_settings = atv_mod_settings;
|
|
|
|
this->m_atv_mod_settings_isSet = true;
|
|
|
|
}
|
|
|
|
|
2018-05-23 08:56:29 -04:00
|
|
|
SWGBFMDemodSettings*
|
|
|
|
SWGChannelSettings::getBfmDemodSettings() {
|
|
|
|
return bfm_demod_settings;
|
|
|
|
}
|
|
|
|
void
|
|
|
|
SWGChannelSettings::setBfmDemodSettings(SWGBFMDemodSettings* bfm_demod_settings) {
|
|
|
|
this->bfm_demod_settings = bfm_demod_settings;
|
|
|
|
this->m_bfm_demod_settings_isSet = true;
|
|
|
|
}
|
|
|
|
|
2019-08-08 03:25:34 -04:00
|
|
|
SWGChannelAnalyzerSettings*
|
|
|
|
SWGChannelSettings::getChannelAnalyzerSettings() {
|
|
|
|
return channel_analyzer_settings;
|
|
|
|
}
|
|
|
|
void
|
|
|
|
SWGChannelSettings::setChannelAnalyzerSettings(SWGChannelAnalyzerSettings* channel_analyzer_settings) {
|
|
|
|
this->channel_analyzer_settings = channel_analyzer_settings;
|
|
|
|
this->m_channel_analyzer_settings_isSet = true;
|
|
|
|
}
|
|
|
|
|
2019-08-11 05:35:53 -04:00
|
|
|
SWGDATVDemodSettings*
|
|
|
|
SWGChannelSettings::getDatvDemodSettings() {
|
|
|
|
return datv_demod_settings;
|
|
|
|
}
|
|
|
|
void
|
|
|
|
SWGChannelSettings::setDatvDemodSettings(SWGDATVDemodSettings* datv_demod_settings) {
|
|
|
|
this->datv_demod_settings = datv_demod_settings;
|
|
|
|
this->m_datv_demod_settings_isSet = true;
|
|
|
|
}
|
|
|
|
|
2018-05-24 06:17:29 -04:00
|
|
|
SWGDSDDemodSettings*
|
|
|
|
SWGChannelSettings::getDsdDemodSettings() {
|
|
|
|
return dsd_demod_settings;
|
|
|
|
}
|
|
|
|
void
|
|
|
|
SWGChannelSettings::setDsdDemodSettings(SWGDSDDemodSettings* dsd_demod_settings) {
|
|
|
|
this->dsd_demod_settings = dsd_demod_settings;
|
|
|
|
this->m_dsd_demod_settings_isSet = true;
|
|
|
|
}
|
|
|
|
|
2020-08-08 17:42:36 -04:00
|
|
|
SWGFileSinkSettings*
|
|
|
|
SWGChannelSettings::getFileSinkSettings() {
|
|
|
|
return file_sink_settings;
|
|
|
|
}
|
|
|
|
void
|
|
|
|
SWGChannelSettings::setFileSinkSettings(SWGFileSinkSettings* file_sink_settings) {
|
|
|
|
this->file_sink_settings = file_sink_settings;
|
|
|
|
this->m_file_sink_settings_isSet = true;
|
|
|
|
}
|
|
|
|
|
2019-07-07 18:59:04 -04:00
|
|
|
SWGFileSourceSettings*
|
|
|
|
SWGChannelSettings::getFileSourceSettings() {
|
|
|
|
return file_source_settings;
|
|
|
|
}
|
|
|
|
void
|
|
|
|
SWGChannelSettings::setFileSourceSettings(SWGFileSourceSettings* file_source_settings) {
|
|
|
|
this->file_source_settings = file_source_settings;
|
|
|
|
this->m_file_source_settings_isSet = true;
|
|
|
|
}
|
|
|
|
|
2019-02-24 20:06:15 -05:00
|
|
|
SWGFreeDVDemodSettings*
|
|
|
|
SWGChannelSettings::getFreeDvDemodSettings() {
|
|
|
|
return free_dv_demod_settings;
|
|
|
|
}
|
|
|
|
void
|
|
|
|
SWGChannelSettings::setFreeDvDemodSettings(SWGFreeDVDemodSettings* free_dv_demod_settings) {
|
|
|
|
this->free_dv_demod_settings = free_dv_demod_settings;
|
|
|
|
this->m_free_dv_demod_settings_isSet = true;
|
|
|
|
}
|
|
|
|
|
2019-02-22 01:17:27 -05:00
|
|
|
SWGFreeDVModSettings*
|
|
|
|
SWGChannelSettings::getFreeDvModSettings() {
|
|
|
|
return free_dv_mod_settings;
|
|
|
|
}
|
|
|
|
void
|
|
|
|
SWGChannelSettings::setFreeDvModSettings(SWGFreeDVModSettings* free_dv_mod_settings) {
|
|
|
|
this->free_dv_mod_settings = free_dv_mod_settings;
|
|
|
|
this->m_free_dv_mod_settings_isSet = true;
|
|
|
|
}
|
|
|
|
|
2019-05-03 19:55:58 -04:00
|
|
|
SWGFreqTrackerSettings*
|
|
|
|
SWGChannelSettings::getFreqTrackerSettings() {
|
|
|
|
return freq_tracker_settings;
|
|
|
|
}
|
|
|
|
void
|
|
|
|
SWGChannelSettings::setFreqTrackerSettings(SWGFreqTrackerSettings* freq_tracker_settings) {
|
|
|
|
this->freq_tracker_settings = freq_tracker_settings;
|
|
|
|
this->m_freq_tracker_settings_isSet = true;
|
|
|
|
}
|
|
|
|
|
2020-10-08 10:13:06 -04:00
|
|
|
SWGIEEE_802_15_4_ModSettings*
|
|
|
|
SWGChannelSettings::getIeee802154ModSettings() {
|
|
|
|
return ieee_802_15_4_mod_settings;
|
|
|
|
}
|
|
|
|
void
|
|
|
|
SWGChannelSettings::setIeee802154ModSettings(SWGIEEE_802_15_4_ModSettings* ieee_802_15_4_mod_settings) {
|
|
|
|
this->ieee_802_15_4_mod_settings = ieee_802_15_4_mod_settings;
|
|
|
|
this->m_ieee_802_15_4_mod_settings_isSet = true;
|
|
|
|
}
|
|
|
|
|
2017-12-10 14:27:08 -05:00
|
|
|
SWGNFMDemodSettings*
|
|
|
|
SWGChannelSettings::getNfmDemodSettings() {
|
|
|
|
return nfm_demod_settings;
|
|
|
|
}
|
|
|
|
void
|
|
|
|
SWGChannelSettings::setNfmDemodSettings(SWGNFMDemodSettings* nfm_demod_settings) {
|
|
|
|
this->nfm_demod_settings = nfm_demod_settings;
|
2018-02-12 12:20:27 -05:00
|
|
|
this->m_nfm_demod_settings_isSet = true;
|
2017-12-10 14:27:08 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
SWGNFMModSettings*
|
|
|
|
SWGChannelSettings::getNfmModSettings() {
|
|
|
|
return nfm_mod_settings;
|
|
|
|
}
|
|
|
|
void
|
|
|
|
SWGChannelSettings::setNfmModSettings(SWGNFMModSettings* nfm_mod_settings) {
|
|
|
|
this->nfm_mod_settings = nfm_mod_settings;
|
2018-02-12 12:20:27 -05:00
|
|
|
this->m_nfm_mod_settings_isSet = true;
|
2017-12-10 14:27:08 -05:00
|
|
|
}
|
|
|
|
|
2019-05-01 22:02:40 -04:00
|
|
|
SWGLocalSinkSettings*
|
|
|
|
SWGChannelSettings::getLocalSinkSettings() {
|
|
|
|
return local_sink_settings;
|
|
|
|
}
|
|
|
|
void
|
|
|
|
SWGChannelSettings::setLocalSinkSettings(SWGLocalSinkSettings* local_sink_settings) {
|
|
|
|
this->local_sink_settings = local_sink_settings;
|
|
|
|
this->m_local_sink_settings_isSet = true;
|
|
|
|
}
|
|
|
|
|
2019-05-09 18:34:35 -04:00
|
|
|
SWGLocalSourceSettings*
|
|
|
|
SWGChannelSettings::getLocalSourceSettings() {
|
|
|
|
return local_source_settings;
|
|
|
|
}
|
|
|
|
void
|
|
|
|
SWGChannelSettings::setLocalSourceSettings(SWGLocalSourceSettings* local_source_settings) {
|
|
|
|
this->local_source_settings = local_source_settings;
|
|
|
|
this->m_local_source_settings_isSet = true;
|
|
|
|
}
|
|
|
|
|
2020-09-18 11:36:27 -04:00
|
|
|
SWGPacketModSettings*
|
|
|
|
SWGChannelSettings::getPacketModSettings() {
|
|
|
|
return packet_mod_settings;
|
|
|
|
}
|
|
|
|
void
|
|
|
|
SWGChannelSettings::setPacketModSettings(SWGPacketModSettings* packet_mod_settings) {
|
|
|
|
this->packet_mod_settings = packet_mod_settings;
|
|
|
|
this->m_packet_mod_settings_isSet = true;
|
|
|
|
}
|
|
|
|
|
2019-01-22 17:39:12 -05:00
|
|
|
SWGRemoteSinkSettings*
|
|
|
|
SWGChannelSettings::getRemoteSinkSettings() {
|
|
|
|
return remote_sink_settings;
|
2018-08-23 10:06:47 -04:00
|
|
|
}
|
|
|
|
void
|
2019-01-22 17:39:12 -05:00
|
|
|
SWGChannelSettings::setRemoteSinkSettings(SWGRemoteSinkSettings* remote_sink_settings) {
|
|
|
|
this->remote_sink_settings = remote_sink_settings;
|
|
|
|
this->m_remote_sink_settings_isSet = true;
|
2018-08-23 10:06:47 -04:00
|
|
|
}
|
|
|
|
|
2019-01-22 18:44:13 -05:00
|
|
|
SWGRemoteSourceSettings*
|
|
|
|
SWGChannelSettings::getRemoteSourceSettings() {
|
|
|
|
return remote_source_settings;
|
2018-08-29 19:56:53 -04:00
|
|
|
}
|
|
|
|
void
|
2019-01-22 18:44:13 -05:00
|
|
|
SWGChannelSettings::setRemoteSourceSettings(SWGRemoteSourceSettings* remote_source_settings) {
|
|
|
|
this->remote_source_settings = remote_source_settings;
|
|
|
|
this->m_remote_source_settings_isSet = true;
|
2018-08-29 19:56:53 -04:00
|
|
|
}
|
|
|
|
|
2018-04-12 17:49:29 -04:00
|
|
|
SWGSSBModSettings*
|
|
|
|
SWGChannelSettings::getSsbModSettings() {
|
|
|
|
return ssb_mod_settings;
|
|
|
|
}
|
|
|
|
void
|
|
|
|
SWGChannelSettings::setSsbModSettings(SWGSSBModSettings* ssb_mod_settings) {
|
|
|
|
this->ssb_mod_settings = ssb_mod_settings;
|
|
|
|
this->m_ssb_mod_settings_isSet = true;
|
|
|
|
}
|
|
|
|
|
2018-05-26 09:53:22 -04:00
|
|
|
SWGSSBDemodSettings*
|
|
|
|
SWGChannelSettings::getSsbDemodSettings() {
|
|
|
|
return ssb_demod_settings;
|
|
|
|
}
|
|
|
|
void
|
|
|
|
SWGChannelSettings::setSsbDemodSettings(SWGSSBDemodSettings* ssb_demod_settings) {
|
|
|
|
this->ssb_demod_settings = ssb_demod_settings;
|
|
|
|
this->m_ssb_demod_settings_isSet = true;
|
|
|
|
}
|
|
|
|
|
2018-09-11 17:22:59 -04:00
|
|
|
SWGUDPSourceSettings*
|
|
|
|
SWGChannelSettings::getUdpSourceSettings() {
|
|
|
|
return udp_source_settings;
|
2018-04-15 12:25:22 -04:00
|
|
|
}
|
|
|
|
void
|
2018-09-11 17:22:59 -04:00
|
|
|
SWGChannelSettings::setUdpSourceSettings(SWGUDPSourceSettings* udp_source_settings) {
|
|
|
|
this->udp_source_settings = udp_source_settings;
|
|
|
|
this->m_udp_source_settings_isSet = true;
|
2018-04-15 12:25:22 -04:00
|
|
|
}
|
|
|
|
|
2018-09-11 18:36:30 -04:00
|
|
|
SWGUDPSinkSettings*
|
|
|
|
SWGChannelSettings::getUdpSinkSettings() {
|
|
|
|
return udp_sink_settings;
|
2018-05-25 04:45:40 -04:00
|
|
|
}
|
|
|
|
void
|
2018-09-11 18:36:30 -04:00
|
|
|
SWGChannelSettings::setUdpSinkSettings(SWGUDPSinkSettings* udp_sink_settings) {
|
|
|
|
this->udp_sink_settings = udp_sink_settings;
|
|
|
|
this->m_udp_sink_settings_isSet = true;
|
2018-05-25 04:45:40 -04:00
|
|
|
}
|
|
|
|
|
2018-05-25 04:08:47 -04:00
|
|
|
SWGWFMDemodSettings*
|
|
|
|
SWGChannelSettings::getWfmDemodSettings() {
|
|
|
|
return wfm_demod_settings;
|
|
|
|
}
|
|
|
|
void
|
|
|
|
SWGChannelSettings::setWfmDemodSettings(SWGWFMDemodSettings* wfm_demod_settings) {
|
|
|
|
this->wfm_demod_settings = wfm_demod_settings;
|
|
|
|
this->m_wfm_demod_settings_isSet = true;
|
|
|
|
}
|
|
|
|
|
2018-04-08 18:37:17 -04:00
|
|
|
SWGWFMModSettings*
|
|
|
|
SWGChannelSettings::getWfmModSettings() {
|
|
|
|
return wfm_mod_settings;
|
|
|
|
}
|
|
|
|
void
|
|
|
|
SWGChannelSettings::setWfmModSettings(SWGWFMModSettings* wfm_mod_settings) {
|
|
|
|
this->wfm_mod_settings = wfm_mod_settings;
|
|
|
|
this->m_wfm_mod_settings_isSet = true;
|
|
|
|
}
|
|
|
|
|
2017-12-10 14:27:08 -05:00
|
|
|
|
2018-02-12 12:20:27 -05:00
|
|
|
bool
|
|
|
|
SWGChannelSettings::isSet(){
|
|
|
|
bool isObjectUpdated = false;
|
|
|
|
do{
|
2019-08-03 20:50:32 -04:00
|
|
|
if(channel_type && *channel_type != QString("")){
|
|
|
|
isObjectUpdated = true; break;
|
|
|
|
}
|
|
|
|
if(m_direction_isSet){
|
|
|
|
isObjectUpdated = true; break;
|
|
|
|
}
|
|
|
|
if(m_originator_device_set_index_isSet){
|
|
|
|
isObjectUpdated = true; break;
|
|
|
|
}
|
|
|
|
if(m_originator_channel_index_isSet){
|
|
|
|
isObjectUpdated = true; break;
|
|
|
|
}
|
|
|
|
if(am_demod_settings && am_demod_settings->isSet()){
|
|
|
|
isObjectUpdated = true; break;
|
|
|
|
}
|
|
|
|
if(am_mod_settings && am_mod_settings->isSet()){
|
|
|
|
isObjectUpdated = true; break;
|
|
|
|
}
|
2019-08-11 05:35:53 -04:00
|
|
|
if(atv_demod_settings && atv_demod_settings->isSet()){
|
|
|
|
isObjectUpdated = true; break;
|
|
|
|
}
|
2019-08-03 20:50:32 -04:00
|
|
|
if(atv_mod_settings && atv_mod_settings->isSet()){
|
|
|
|
isObjectUpdated = true; break;
|
|
|
|
}
|
|
|
|
if(bfm_demod_settings && bfm_demod_settings->isSet()){
|
|
|
|
isObjectUpdated = true; break;
|
|
|
|
}
|
2019-08-08 03:25:34 -04:00
|
|
|
if(channel_analyzer_settings && channel_analyzer_settings->isSet()){
|
|
|
|
isObjectUpdated = true; break;
|
|
|
|
}
|
2019-08-11 05:35:53 -04:00
|
|
|
if(datv_demod_settings && datv_demod_settings->isSet()){
|
|
|
|
isObjectUpdated = true; break;
|
|
|
|
}
|
2019-08-03 20:50:32 -04:00
|
|
|
if(dsd_demod_settings && dsd_demod_settings->isSet()){
|
|
|
|
isObjectUpdated = true; break;
|
|
|
|
}
|
2020-08-08 17:42:36 -04:00
|
|
|
if(file_sink_settings && file_sink_settings->isSet()){
|
|
|
|
isObjectUpdated = true; break;
|
|
|
|
}
|
2019-08-03 20:50:32 -04:00
|
|
|
if(file_source_settings && file_source_settings->isSet()){
|
|
|
|
isObjectUpdated = true; break;
|
|
|
|
}
|
|
|
|
if(free_dv_demod_settings && free_dv_demod_settings->isSet()){
|
|
|
|
isObjectUpdated = true; break;
|
|
|
|
}
|
|
|
|
if(free_dv_mod_settings && free_dv_mod_settings->isSet()){
|
|
|
|
isObjectUpdated = true; break;
|
|
|
|
}
|
|
|
|
if(freq_tracker_settings && freq_tracker_settings->isSet()){
|
|
|
|
isObjectUpdated = true; break;
|
|
|
|
}
|
2020-10-08 10:13:06 -04:00
|
|
|
if(ieee_802_15_4_mod_settings && ieee_802_15_4_mod_settings->isSet()){
|
|
|
|
isObjectUpdated = true; break;
|
|
|
|
}
|
2019-08-03 20:50:32 -04:00
|
|
|
if(nfm_demod_settings && nfm_demod_settings->isSet()){
|
|
|
|
isObjectUpdated = true; break;
|
|
|
|
}
|
|
|
|
if(nfm_mod_settings && nfm_mod_settings->isSet()){
|
|
|
|
isObjectUpdated = true; break;
|
|
|
|
}
|
|
|
|
if(local_sink_settings && local_sink_settings->isSet()){
|
|
|
|
isObjectUpdated = true; break;
|
|
|
|
}
|
|
|
|
if(local_source_settings && local_source_settings->isSet()){
|
|
|
|
isObjectUpdated = true; break;
|
2020-09-18 11:36:27 -04:00
|
|
|
}
|
|
|
|
if(packet_mod_settings && packet_mod_settings->isSet()){
|
|
|
|
isObjectUpdated = true; break;
|
2019-08-03 20:50:32 -04:00
|
|
|
}
|
|
|
|
if(remote_sink_settings && remote_sink_settings->isSet()){
|
|
|
|
isObjectUpdated = true; break;
|
|
|
|
}
|
|
|
|
if(remote_source_settings && remote_source_settings->isSet()){
|
|
|
|
isObjectUpdated = true; break;
|
|
|
|
}
|
|
|
|
if(ssb_mod_settings && ssb_mod_settings->isSet()){
|
|
|
|
isObjectUpdated = true; break;
|
|
|
|
}
|
|
|
|
if(ssb_demod_settings && ssb_demod_settings->isSet()){
|
|
|
|
isObjectUpdated = true; break;
|
|
|
|
}
|
|
|
|
if(udp_source_settings && udp_source_settings->isSet()){
|
|
|
|
isObjectUpdated = true; break;
|
|
|
|
}
|
|
|
|
if(udp_sink_settings && udp_sink_settings->isSet()){
|
|
|
|
isObjectUpdated = true; break;
|
|
|
|
}
|
|
|
|
if(wfm_demod_settings && wfm_demod_settings->isSet()){
|
|
|
|
isObjectUpdated = true; break;
|
|
|
|
}
|
|
|
|
if(wfm_mod_settings && wfm_mod_settings->isSet()){
|
|
|
|
isObjectUpdated = true; break;
|
|
|
|
}
|
2018-02-12 12:20:27 -05:00
|
|
|
}while(false);
|
|
|
|
return isObjectUpdated;
|
|
|
|
}
|
2017-12-10 14:27:08 -05:00
|
|
|
}
|
|
|
|
|