2017-12-10 14:27:08 -05:00
|
|
|
/**
|
|
|
|
* SDRangel
|
2020-11-11 06:26:56 -05: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 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-11-11 06:26:56 -05:00
|
|
|
* OpenAPI spec version: 6.0.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;
|
2020-10-27 12:22:10 -04:00
|
|
|
adsb_demod_settings = nullptr;
|
|
|
|
m_adsb_demod_settings_isSet = false;
|
2021-05-07 16:50:27 -04:00
|
|
|
ais_demod_settings = nullptr;
|
|
|
|
m_ais_demod_settings_isSet = false;
|
|
|
|
ais_mod_settings = nullptr;
|
|
|
|
m_ais_mod_settings_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;
|
2021-02-26 15:47:24 -05:00
|
|
|
apt_demod_settings = nullptr;
|
|
|
|
m_apt_demod_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;
|
2020-11-10 15:49:43 -05:00
|
|
|
beam_steering_cw_mod_settings = nullptr;
|
|
|
|
m_beam_steering_cw_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;
|
2020-11-09 05:35:18 -05:00
|
|
|
chirp_chat_demod_settings = nullptr;
|
|
|
|
m_chirp_chat_demod_settings_isSet = false;
|
2020-11-09 12:15:52 -05:00
|
|
|
chirp_chat_mod_settings = nullptr;
|
|
|
|
m_chirp_chat_mod_settings_isSet = false;
|
2021-03-18 13:17:58 -04:00
|
|
|
datv_mod_settings = nullptr;
|
|
|
|
m_datv_mod_settings_isSet = false;
|
2019-08-11 05:35:53 -04:00
|
|
|
datv_demod_settings = nullptr;
|
|
|
|
m_datv_demod_settings_isSet = false;
|
2021-04-16 17:56:15 -04:00
|
|
|
dab_demod_settings = nullptr;
|
|
|
|
m_dab_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-11-10 09:56:27 -05:00
|
|
|
interferometer_settings = nullptr;
|
|
|
|
m_interferometer_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;
|
2021-06-09 11:17:59 -04:00
|
|
|
noise_figure_settings = nullptr;
|
|
|
|
m_noise_figure_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;
|
2021-01-13 15:56:45 -05:00
|
|
|
packet_demod_settings = nullptr;
|
|
|
|
m_packet_demod_settings_isSet = false;
|
2020-09-18 11:36:27 -04:00
|
|
|
packet_mod_settings = nullptr;
|
|
|
|
m_packet_mod_settings_isSet = false;
|
2021-07-09 07:06:23 -04:00
|
|
|
pager_demod_settings = nullptr;
|
|
|
|
m_pager_demod_settings_isSet = false;
|
2021-10-12 06:31:14 -04:00
|
|
|
radio_astronomy_settings = nullptr;
|
|
|
|
m_radio_astronomy_settings_isSet = false;
|
2021-06-22 12:38:56 -04:00
|
|
|
radio_clock_settings = nullptr;
|
|
|
|
m_radio_clock_settings_isSet = false;
|
2022-03-01 12:17:56 -05:00
|
|
|
radiosonde_demod_settings = nullptr;
|
|
|
|
m_radiosonde_demod_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;
|
2020-11-10 04:13:34 -05:00
|
|
|
sig_mf_file_sink_settings = nullptr;
|
|
|
|
m_sig_mf_file_sink_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;
|
2022-05-01 06:15:03 -04:00
|
|
|
vor_demod_settings = nullptr;
|
|
|
|
m_vor_demod_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;
|
2020-10-27 12:22:10 -04:00
|
|
|
adsb_demod_settings = new SWGADSBDemodSettings();
|
|
|
|
m_adsb_demod_settings_isSet = false;
|
2021-05-07 16:50:27 -04:00
|
|
|
ais_demod_settings = new SWGAISDemodSettings();
|
|
|
|
m_ais_demod_settings_isSet = false;
|
|
|
|
ais_mod_settings = new SWGAISModSettings();
|
|
|
|
m_ais_mod_settings_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;
|
2021-02-26 15:47:24 -05:00
|
|
|
apt_demod_settings = new SWGAPTDemodSettings();
|
|
|
|
m_apt_demod_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;
|
2020-11-10 15:49:43 -05:00
|
|
|
beam_steering_cw_mod_settings = new SWGBeamSteeringCWModSettings();
|
|
|
|
m_beam_steering_cw_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;
|
2020-11-09 05:35:18 -05:00
|
|
|
chirp_chat_demod_settings = new SWGChirpChatDemodSettings();
|
|
|
|
m_chirp_chat_demod_settings_isSet = false;
|
2020-11-09 12:15:52 -05:00
|
|
|
chirp_chat_mod_settings = new SWGChirpChatModSettings();
|
|
|
|
m_chirp_chat_mod_settings_isSet = false;
|
2021-03-18 13:17:58 -04:00
|
|
|
datv_mod_settings = new SWGDATVModSettings();
|
|
|
|
m_datv_mod_settings_isSet = false;
|
2019-08-11 05:35:53 -04:00
|
|
|
datv_demod_settings = new SWGDATVDemodSettings();
|
|
|
|
m_datv_demod_settings_isSet = false;
|
2021-04-16 17:56:15 -04:00
|
|
|
dab_demod_settings = new SWGDABDemodSettings();
|
|
|
|
m_dab_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-11-10 09:56:27 -05:00
|
|
|
interferometer_settings = new SWGInterferometerSettings();
|
|
|
|
m_interferometer_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;
|
2021-06-09 11:17:59 -04:00
|
|
|
noise_figure_settings = new SWGNoiseFigureSettings();
|
|
|
|
m_noise_figure_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;
|
2021-01-13 15:56:45 -05:00
|
|
|
packet_demod_settings = new SWGPacketDemodSettings();
|
|
|
|
m_packet_demod_settings_isSet = false;
|
2020-09-18 11:36:27 -04:00
|
|
|
packet_mod_settings = new SWGPacketModSettings();
|
|
|
|
m_packet_mod_settings_isSet = false;
|
2021-07-09 07:06:23 -04:00
|
|
|
pager_demod_settings = new SWGPagerDemodSettings();
|
|
|
|
m_pager_demod_settings_isSet = false;
|
2021-10-12 06:31:14 -04:00
|
|
|
radio_astronomy_settings = new SWGRadioAstronomySettings();
|
|
|
|
m_radio_astronomy_settings_isSet = false;
|
2021-06-22 12:38:56 -04:00
|
|
|
radio_clock_settings = new SWGRadioClockSettings();
|
|
|
|
m_radio_clock_settings_isSet = false;
|
2022-03-01 12:17:56 -05:00
|
|
|
radiosonde_demod_settings = new SWGRadiosondeDemodSettings();
|
|
|
|
m_radiosonde_demod_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;
|
2020-11-10 04:13:34 -05:00
|
|
|
sig_mf_file_sink_settings = new SWGSigMFFileSinkSettings();
|
|
|
|
m_sig_mf_file_sink_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;
|
2022-05-01 06:15:03 -04:00
|
|
|
vor_demod_settings = new SWGVORDemodSettings();
|
|
|
|
m_vor_demod_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
|
|
|
|
|
|
|
|
2020-10-27 12:22:10 -04:00
|
|
|
if(adsb_demod_settings != nullptr) {
|
|
|
|
delete adsb_demod_settings;
|
|
|
|
}
|
2021-05-07 16:50:27 -04:00
|
|
|
if(ais_demod_settings != nullptr) {
|
|
|
|
delete ais_demod_settings;
|
|
|
|
}
|
|
|
|
if(ais_mod_settings != nullptr) {
|
|
|
|
delete ais_mod_settings;
|
|
|
|
}
|
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;
|
|
|
|
}
|
2021-02-26 15:47:24 -05:00
|
|
|
if(apt_demod_settings != nullptr) {
|
|
|
|
delete apt_demod_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;
|
|
|
|
}
|
2020-11-10 15:49:43 -05:00
|
|
|
if(beam_steering_cw_mod_settings != nullptr) {
|
|
|
|
delete beam_steering_cw_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;
|
|
|
|
}
|
2020-11-09 05:35:18 -05:00
|
|
|
if(chirp_chat_demod_settings != nullptr) {
|
|
|
|
delete chirp_chat_demod_settings;
|
|
|
|
}
|
2020-11-09 12:15:52 -05:00
|
|
|
if(chirp_chat_mod_settings != nullptr) {
|
|
|
|
delete chirp_chat_mod_settings;
|
|
|
|
}
|
2021-03-18 13:17:58 -04:00
|
|
|
if(datv_mod_settings != nullptr) {
|
|
|
|
delete datv_mod_settings;
|
|
|
|
}
|
2019-08-11 05:35:53 -04:00
|
|
|
if(datv_demod_settings != nullptr) {
|
|
|
|
delete datv_demod_settings;
|
|
|
|
}
|
2021-04-16 17:56:15 -04:00
|
|
|
if(dab_demod_settings != nullptr) {
|
|
|
|
delete dab_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-11-10 09:56:27 -05:00
|
|
|
if(interferometer_settings != nullptr) {
|
|
|
|
delete interferometer_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;
|
|
|
|
}
|
2021-06-09 11:17:59 -04:00
|
|
|
if(noise_figure_settings != nullptr) {
|
|
|
|
delete noise_figure_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;
|
|
|
|
}
|
2021-01-13 15:56:45 -05:00
|
|
|
if(packet_demod_settings != nullptr) {
|
|
|
|
delete packet_demod_settings;
|
|
|
|
}
|
2020-09-18 11:36:27 -04:00
|
|
|
if(packet_mod_settings != nullptr) {
|
|
|
|
delete packet_mod_settings;
|
|
|
|
}
|
2021-07-09 07:06:23 -04:00
|
|
|
if(pager_demod_settings != nullptr) {
|
|
|
|
delete pager_demod_settings;
|
|
|
|
}
|
2021-10-12 06:31:14 -04:00
|
|
|
if(radio_astronomy_settings != nullptr) {
|
|
|
|
delete radio_astronomy_settings;
|
|
|
|
}
|
2021-06-22 12:38:56 -04:00
|
|
|
if(radio_clock_settings != nullptr) {
|
|
|
|
delete radio_clock_settings;
|
|
|
|
}
|
2022-03-01 12:17:56 -05:00
|
|
|
if(radiosonde_demod_settings != nullptr) {
|
|
|
|
delete radiosonde_demod_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
|
|
|
}
|
2020-11-10 04:13:34 -05:00
|
|
|
if(sig_mf_file_sink_settings != nullptr) {
|
|
|
|
delete sig_mf_file_sink_settings;
|
|
|
|
}
|
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
|
|
|
}
|
2022-05-01 06:15:03 -04:00
|
|
|
if(vor_demod_settings != nullptr) {
|
|
|
|
delete vor_demod_settings;
|
2020-11-29 03:26:32 -05: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", "");
|
|
|
|
|
2020-10-27 12:22:10 -04:00
|
|
|
::SWGSDRangel::setValue(&adsb_demod_settings, pJson["ADSBDemodSettings"], "SWGADSBDemodSettings", "SWGADSBDemodSettings");
|
|
|
|
|
2021-05-07 16:50:27 -04:00
|
|
|
::SWGSDRangel::setValue(&ais_demod_settings, pJson["AISDemodSettings"], "SWGAISDemodSettings", "SWGAISDemodSettings");
|
|
|
|
|
|
|
|
::SWGSDRangel::setValue(&ais_mod_settings, pJson["AISModSettings"], "SWGAISModSettings", "SWGAISModSettings");
|
|
|
|
|
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");
|
|
|
|
|
2021-02-26 15:47:24 -05:00
|
|
|
::SWGSDRangel::setValue(&apt_demod_settings, pJson["APTDemodSettings"], "SWGAPTDemodSettings", "SWGAPTDemodSettings");
|
|
|
|
|
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");
|
|
|
|
|
2020-11-10 15:49:43 -05:00
|
|
|
::SWGSDRangel::setValue(&beam_steering_cw_mod_settings, pJson["BeamSteeringCWModSettings"], "SWGBeamSteeringCWModSettings", "SWGBeamSteeringCWModSettings");
|
|
|
|
|
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");
|
|
|
|
|
2020-11-09 05:35:18 -05:00
|
|
|
::SWGSDRangel::setValue(&chirp_chat_demod_settings, pJson["ChirpChatDemodSettings"], "SWGChirpChatDemodSettings", "SWGChirpChatDemodSettings");
|
|
|
|
|
2020-11-09 12:15:52 -05:00
|
|
|
::SWGSDRangel::setValue(&chirp_chat_mod_settings, pJson["ChirpChatModSettings"], "SWGChirpChatModSettings", "SWGChirpChatModSettings");
|
|
|
|
|
2021-03-18 13:17:58 -04:00
|
|
|
::SWGSDRangel::setValue(&datv_mod_settings, pJson["DATVModSettings"], "SWGDATVModSettings", "SWGDATVModSettings");
|
|
|
|
|
2019-08-11 05:35:53 -04:00
|
|
|
::SWGSDRangel::setValue(&datv_demod_settings, pJson["DATVDemodSettings"], "SWGDATVDemodSettings", "SWGDATVDemodSettings");
|
|
|
|
|
2021-04-16 17:56:15 -04:00
|
|
|
::SWGSDRangel::setValue(&dab_demod_settings, pJson["DABDemodSettings"], "SWGDABDemodSettings", "SWGDABDemodSettings");
|
|
|
|
|
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-11-10 09:56:27 -05:00
|
|
|
::SWGSDRangel::setValue(&interferometer_settings, pJson["InterferometerSettings"], "SWGInterferometerSettings", "SWGInterferometerSettings");
|
|
|
|
|
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
|
|
|
|
2021-06-09 11:17:59 -04:00
|
|
|
::SWGSDRangel::setValue(&noise_figure_settings, pJson["NoiseFigureSettings"], "SWGNoiseFigureSettings", "SWGNoiseFigureSettings");
|
|
|
|
|
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");
|
|
|
|
|
2021-01-13 15:56:45 -05:00
|
|
|
::SWGSDRangel::setValue(&packet_demod_settings, pJson["PacketDemodSettings"], "SWGPacketDemodSettings", "SWGPacketDemodSettings");
|
|
|
|
|
2020-09-18 11:36:27 -04:00
|
|
|
::SWGSDRangel::setValue(&packet_mod_settings, pJson["PacketModSettings"], "SWGPacketModSettings", "SWGPacketModSettings");
|
|
|
|
|
2021-07-09 07:06:23 -04:00
|
|
|
::SWGSDRangel::setValue(&pager_demod_settings, pJson["PagerDemodSettings"], "SWGPagerDemodSettings", "SWGPagerDemodSettings");
|
|
|
|
|
2021-10-12 06:31:14 -04:00
|
|
|
::SWGSDRangel::setValue(&radio_astronomy_settings, pJson["RadioAstronomySettings"], "SWGRadioAstronomySettings", "SWGRadioAstronomySettings");
|
|
|
|
|
2021-06-22 12:38:56 -04:00
|
|
|
::SWGSDRangel::setValue(&radio_clock_settings, pJson["RadioClockSettings"], "SWGRadioClockSettings", "SWGRadioClockSettings");
|
|
|
|
|
2022-03-01 12:17:56 -05:00
|
|
|
::SWGSDRangel::setValue(&radiosonde_demod_settings, pJson["RadiosondeDemodSettings"], "SWGRadiosondeDemodSettings", "SWGRadiosondeDemodSettings");
|
|
|
|
|
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
|
|
|
|
2020-11-10 04:13:34 -05:00
|
|
|
::SWGSDRangel::setValue(&sig_mf_file_sink_settings, pJson["SigMFFileSinkSettings"], "SWGSigMFFileSinkSettings", "SWGSigMFFileSinkSettings");
|
|
|
|
|
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
|
|
|
|
2022-05-01 06:15:03 -04:00
|
|
|
::SWGSDRangel::setValue(&vor_demod_settings, pJson["VORDemodSettings"], "SWGVORDemodSettings", "SWGVORDemodSettings");
|
2020-11-29 03:26:32 -05: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));
|
|
|
|
}
|
2020-10-27 12:22:10 -04:00
|
|
|
if((adsb_demod_settings != nullptr) && (adsb_demod_settings->isSet())){
|
|
|
|
toJsonValue(QString("ADSBDemodSettings"), adsb_demod_settings, obj, QString("SWGADSBDemodSettings"));
|
|
|
|
}
|
2021-05-07 16:50:27 -04:00
|
|
|
if((ais_demod_settings != nullptr) && (ais_demod_settings->isSet())){
|
|
|
|
toJsonValue(QString("AISDemodSettings"), ais_demod_settings, obj, QString("SWGAISDemodSettings"));
|
|
|
|
}
|
|
|
|
if((ais_mod_settings != nullptr) && (ais_mod_settings->isSet())){
|
|
|
|
toJsonValue(QString("AISModSettings"), ais_mod_settings, obj, QString("SWGAISModSettings"));
|
|
|
|
}
|
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"));
|
|
|
|
}
|
2021-02-26 15:47:24 -05:00
|
|
|
if((apt_demod_settings != nullptr) && (apt_demod_settings->isSet())){
|
|
|
|
toJsonValue(QString("APTDemodSettings"), apt_demod_settings, obj, QString("SWGAPTDemodSettings"));
|
|
|
|
}
|
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"));
|
|
|
|
}
|
2020-11-10 15:49:43 -05:00
|
|
|
if((beam_steering_cw_mod_settings != nullptr) && (beam_steering_cw_mod_settings->isSet())){
|
|
|
|
toJsonValue(QString("BeamSteeringCWModSettings"), beam_steering_cw_mod_settings, obj, QString("SWGBeamSteeringCWModSettings"));
|
|
|
|
}
|
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"));
|
|
|
|
}
|
2020-11-09 05:35:18 -05:00
|
|
|
if((chirp_chat_demod_settings != nullptr) && (chirp_chat_demod_settings->isSet())){
|
|
|
|
toJsonValue(QString("ChirpChatDemodSettings"), chirp_chat_demod_settings, obj, QString("SWGChirpChatDemodSettings"));
|
|
|
|
}
|
2020-11-09 12:15:52 -05:00
|
|
|
if((chirp_chat_mod_settings != nullptr) && (chirp_chat_mod_settings->isSet())){
|
|
|
|
toJsonValue(QString("ChirpChatModSettings"), chirp_chat_mod_settings, obj, QString("SWGChirpChatModSettings"));
|
|
|
|
}
|
2021-03-18 13:17:58 -04:00
|
|
|
if((datv_mod_settings != nullptr) && (datv_mod_settings->isSet())){
|
|
|
|
toJsonValue(QString("DATVModSettings"), datv_mod_settings, obj, QString("SWGDATVModSettings"));
|
|
|
|
}
|
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"));
|
|
|
|
}
|
2021-04-16 17:56:15 -04:00
|
|
|
if((dab_demod_settings != nullptr) && (dab_demod_settings->isSet())){
|
|
|
|
toJsonValue(QString("DABDemodSettings"), dab_demod_settings, obj, QString("SWGDABDemodSettings"));
|
|
|
|
}
|
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-11-10 09:56:27 -05:00
|
|
|
if((interferometer_settings != nullptr) && (interferometer_settings->isSet())){
|
|
|
|
toJsonValue(QString("InterferometerSettings"), interferometer_settings, obj, QString("SWGInterferometerSettings"));
|
|
|
|
}
|
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"));
|
|
|
|
}
|
2021-06-09 11:17:59 -04:00
|
|
|
if((noise_figure_settings != nullptr) && (noise_figure_settings->isSet())){
|
|
|
|
toJsonValue(QString("NoiseFigureSettings"), noise_figure_settings, obj, QString("SWGNoiseFigureSettings"));
|
|
|
|
}
|
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"));
|
|
|
|
}
|
2021-01-13 15:56:45 -05:00
|
|
|
if((packet_demod_settings != nullptr) && (packet_demod_settings->isSet())){
|
|
|
|
toJsonValue(QString("PacketDemodSettings"), packet_demod_settings, obj, QString("SWGPacketDemodSettings"));
|
|
|
|
}
|
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"));
|
|
|
|
}
|
2021-07-09 07:06:23 -04:00
|
|
|
if((pager_demod_settings != nullptr) && (pager_demod_settings->isSet())){
|
|
|
|
toJsonValue(QString("PagerDemodSettings"), pager_demod_settings, obj, QString("SWGPagerDemodSettings"));
|
|
|
|
}
|
2021-10-12 06:31:14 -04:00
|
|
|
if((radio_astronomy_settings != nullptr) && (radio_astronomy_settings->isSet())){
|
|
|
|
toJsonValue(QString("RadioAstronomySettings"), radio_astronomy_settings, obj, QString("SWGRadioAstronomySettings"));
|
|
|
|
}
|
2021-06-22 12:38:56 -04:00
|
|
|
if((radio_clock_settings != nullptr) && (radio_clock_settings->isSet())){
|
|
|
|
toJsonValue(QString("RadioClockSettings"), radio_clock_settings, obj, QString("SWGRadioClockSettings"));
|
|
|
|
}
|
2022-03-01 12:17:56 -05:00
|
|
|
if((radiosonde_demod_settings != nullptr) && (radiosonde_demod_settings->isSet())){
|
|
|
|
toJsonValue(QString("RadiosondeDemodSettings"), radiosonde_demod_settings, obj, QString("SWGRadiosondeDemodSettings"));
|
|
|
|
}
|
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
|
|
|
}
|
2020-11-10 04:13:34 -05:00
|
|
|
if((sig_mf_file_sink_settings != nullptr) && (sig_mf_file_sink_settings->isSet())){
|
|
|
|
toJsonValue(QString("SigMFFileSinkSettings"), sig_mf_file_sink_settings, obj, QString("SWGSigMFFileSinkSettings"));
|
|
|
|
}
|
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
|
|
|
}
|
2022-05-01 06:15:03 -04:00
|
|
|
if((vor_demod_settings != nullptr) && (vor_demod_settings->isSet())){
|
|
|
|
toJsonValue(QString("VORDemodSettings"), vor_demod_settings, obj, QString("SWGVORDemodSettings"));
|
2020-11-29 03:26:32 -05: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;
|
|
|
|
}
|
|
|
|
|
2020-10-27 12:22:10 -04:00
|
|
|
SWGADSBDemodSettings*
|
|
|
|
SWGChannelSettings::getAdsbDemodSettings() {
|
|
|
|
return adsb_demod_settings;
|
|
|
|
}
|
|
|
|
void
|
|
|
|
SWGChannelSettings::setAdsbDemodSettings(SWGADSBDemodSettings* adsb_demod_settings) {
|
|
|
|
this->adsb_demod_settings = adsb_demod_settings;
|
|
|
|
this->m_adsb_demod_settings_isSet = true;
|
|
|
|
}
|
|
|
|
|
2021-05-07 16:50:27 -04:00
|
|
|
SWGAISDemodSettings*
|
|
|
|
SWGChannelSettings::getAisDemodSettings() {
|
|
|
|
return ais_demod_settings;
|
|
|
|
}
|
|
|
|
void
|
|
|
|
SWGChannelSettings::setAisDemodSettings(SWGAISDemodSettings* ais_demod_settings) {
|
|
|
|
this->ais_demod_settings = ais_demod_settings;
|
|
|
|
this->m_ais_demod_settings_isSet = true;
|
|
|
|
}
|
|
|
|
|
|
|
|
SWGAISModSettings*
|
|
|
|
SWGChannelSettings::getAisModSettings() {
|
|
|
|
return ais_mod_settings;
|
|
|
|
}
|
|
|
|
void
|
|
|
|
SWGChannelSettings::setAisModSettings(SWGAISModSettings* ais_mod_settings) {
|
|
|
|
this->ais_mod_settings = ais_mod_settings;
|
|
|
|
this->m_ais_mod_settings_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;
|
|
|
|
}
|
|
|
|
|
2021-02-26 15:47:24 -05:00
|
|
|
SWGAPTDemodSettings*
|
|
|
|
SWGChannelSettings::getAptDemodSettings() {
|
|
|
|
return apt_demod_settings;
|
|
|
|
}
|
|
|
|
void
|
|
|
|
SWGChannelSettings::setAptDemodSettings(SWGAPTDemodSettings* apt_demod_settings) {
|
|
|
|
this->apt_demod_settings = apt_demod_settings;
|
|
|
|
this->m_apt_demod_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;
|
|
|
|
}
|
|
|
|
|
2020-11-10 15:49:43 -05:00
|
|
|
SWGBeamSteeringCWModSettings*
|
|
|
|
SWGChannelSettings::getBeamSteeringCwModSettings() {
|
|
|
|
return beam_steering_cw_mod_settings;
|
|
|
|
}
|
|
|
|
void
|
|
|
|
SWGChannelSettings::setBeamSteeringCwModSettings(SWGBeamSteeringCWModSettings* beam_steering_cw_mod_settings) {
|
|
|
|
this->beam_steering_cw_mod_settings = beam_steering_cw_mod_settings;
|
|
|
|
this->m_beam_steering_cw_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;
|
|
|
|
}
|
|
|
|
|
2020-11-09 05:35:18 -05:00
|
|
|
SWGChirpChatDemodSettings*
|
|
|
|
SWGChannelSettings::getChirpChatDemodSettings() {
|
|
|
|
return chirp_chat_demod_settings;
|
|
|
|
}
|
|
|
|
void
|
|
|
|
SWGChannelSettings::setChirpChatDemodSettings(SWGChirpChatDemodSettings* chirp_chat_demod_settings) {
|
|
|
|
this->chirp_chat_demod_settings = chirp_chat_demod_settings;
|
|
|
|
this->m_chirp_chat_demod_settings_isSet = true;
|
|
|
|
}
|
|
|
|
|
2020-11-09 12:15:52 -05:00
|
|
|
SWGChirpChatModSettings*
|
|
|
|
SWGChannelSettings::getChirpChatModSettings() {
|
|
|
|
return chirp_chat_mod_settings;
|
|
|
|
}
|
|
|
|
void
|
|
|
|
SWGChannelSettings::setChirpChatModSettings(SWGChirpChatModSettings* chirp_chat_mod_settings) {
|
|
|
|
this->chirp_chat_mod_settings = chirp_chat_mod_settings;
|
|
|
|
this->m_chirp_chat_mod_settings_isSet = true;
|
|
|
|
}
|
|
|
|
|
2021-03-18 13:17:58 -04:00
|
|
|
SWGDATVModSettings*
|
|
|
|
SWGChannelSettings::getDatvModSettings() {
|
|
|
|
return datv_mod_settings;
|
|
|
|
}
|
|
|
|
void
|
|
|
|
SWGChannelSettings::setDatvModSettings(SWGDATVModSettings* datv_mod_settings) {
|
|
|
|
this->datv_mod_settings = datv_mod_settings;
|
|
|
|
this->m_datv_mod_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;
|
|
|
|
}
|
|
|
|
|
2021-04-16 17:56:15 -04:00
|
|
|
SWGDABDemodSettings*
|
|
|
|
SWGChannelSettings::getDabDemodSettings() {
|
|
|
|
return dab_demod_settings;
|
|
|
|
}
|
|
|
|
void
|
|
|
|
SWGChannelSettings::setDabDemodSettings(SWGDABDemodSettings* dab_demod_settings) {
|
|
|
|
this->dab_demod_settings = dab_demod_settings;
|
|
|
|
this->m_dab_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-11-10 09:56:27 -05:00
|
|
|
SWGInterferometerSettings*
|
|
|
|
SWGChannelSettings::getInterferometerSettings() {
|
|
|
|
return interferometer_settings;
|
|
|
|
}
|
|
|
|
void
|
|
|
|
SWGChannelSettings::setInterferometerSettings(SWGInterferometerSettings* interferometer_settings) {
|
|
|
|
this->interferometer_settings = interferometer_settings;
|
|
|
|
this->m_interferometer_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
|
|
|
}
|
|
|
|
|
2021-06-09 11:17:59 -04:00
|
|
|
SWGNoiseFigureSettings*
|
|
|
|
SWGChannelSettings::getNoiseFigureSettings() {
|
|
|
|
return noise_figure_settings;
|
|
|
|
}
|
|
|
|
void
|
|
|
|
SWGChannelSettings::setNoiseFigureSettings(SWGNoiseFigureSettings* noise_figure_settings) {
|
|
|
|
this->noise_figure_settings = noise_figure_settings;
|
|
|
|
this->m_noise_figure_settings_isSet = true;
|
|
|
|
}
|
|
|
|
|
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;
|
|
|
|
}
|
|
|
|
|
2021-01-13 15:56:45 -05:00
|
|
|
SWGPacketDemodSettings*
|
|
|
|
SWGChannelSettings::getPacketDemodSettings() {
|
|
|
|
return packet_demod_settings;
|
|
|
|
}
|
|
|
|
void
|
|
|
|
SWGChannelSettings::setPacketDemodSettings(SWGPacketDemodSettings* packet_demod_settings) {
|
|
|
|
this->packet_demod_settings = packet_demod_settings;
|
|
|
|
this->m_packet_demod_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;
|
|
|
|
}
|
|
|
|
|
2021-07-09 07:06:23 -04:00
|
|
|
SWGPagerDemodSettings*
|
|
|
|
SWGChannelSettings::getPagerDemodSettings() {
|
|
|
|
return pager_demod_settings;
|
|
|
|
}
|
|
|
|
void
|
|
|
|
SWGChannelSettings::setPagerDemodSettings(SWGPagerDemodSettings* pager_demod_settings) {
|
|
|
|
this->pager_demod_settings = pager_demod_settings;
|
|
|
|
this->m_pager_demod_settings_isSet = true;
|
|
|
|
}
|
|
|
|
|
2021-10-12 06:31:14 -04:00
|
|
|
SWGRadioAstronomySettings*
|
|
|
|
SWGChannelSettings::getRadioAstronomySettings() {
|
|
|
|
return radio_astronomy_settings;
|
|
|
|
}
|
|
|
|
void
|
|
|
|
SWGChannelSettings::setRadioAstronomySettings(SWGRadioAstronomySettings* radio_astronomy_settings) {
|
|
|
|
this->radio_astronomy_settings = radio_astronomy_settings;
|
|
|
|
this->m_radio_astronomy_settings_isSet = true;
|
|
|
|
}
|
|
|
|
|
2021-06-22 12:38:56 -04:00
|
|
|
SWGRadioClockSettings*
|
|
|
|
SWGChannelSettings::getRadioClockSettings() {
|
|
|
|
return radio_clock_settings;
|
|
|
|
}
|
|
|
|
void
|
|
|
|
SWGChannelSettings::setRadioClockSettings(SWGRadioClockSettings* radio_clock_settings) {
|
|
|
|
this->radio_clock_settings = radio_clock_settings;
|
|
|
|
this->m_radio_clock_settings_isSet = true;
|
|
|
|
}
|
|
|
|
|
2022-03-01 12:17:56 -05:00
|
|
|
SWGRadiosondeDemodSettings*
|
|
|
|
SWGChannelSettings::getRadiosondeDemodSettings() {
|
|
|
|
return radiosonde_demod_settings;
|
|
|
|
}
|
|
|
|
void
|
|
|
|
SWGChannelSettings::setRadiosondeDemodSettings(SWGRadiosondeDemodSettings* radiosonde_demod_settings) {
|
|
|
|
this->radiosonde_demod_settings = radiosonde_demod_settings;
|
|
|
|
this->m_radiosonde_demod_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
|
|
|
}
|
|
|
|
|
2020-11-10 04:13:34 -05:00
|
|
|
SWGSigMFFileSinkSettings*
|
|
|
|
SWGChannelSettings::getSigMfFileSinkSettings() {
|
|
|
|
return sig_mf_file_sink_settings;
|
|
|
|
}
|
|
|
|
void
|
|
|
|
SWGChannelSettings::setSigMfFileSinkSettings(SWGSigMFFileSinkSettings* sig_mf_file_sink_settings) {
|
|
|
|
this->sig_mf_file_sink_settings = sig_mf_file_sink_settings;
|
|
|
|
this->m_sig_mf_file_sink_settings_isSet = true;
|
|
|
|
}
|
|
|
|
|
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
|
|
|
}
|
|
|
|
|
2022-05-01 06:15:03 -04:00
|
|
|
SWGVORDemodSettings*
|
|
|
|
SWGChannelSettings::getVorDemodSettings() {
|
|
|
|
return vor_demod_settings;
|
2020-11-29 03:26:32 -05:00
|
|
|
}
|
|
|
|
void
|
2022-05-01 06:15:03 -04:00
|
|
|
SWGChannelSettings::setVorDemodSettings(SWGVORDemodSettings* vor_demod_settings) {
|
|
|
|
this->vor_demod_settings = vor_demod_settings;
|
|
|
|
this->m_vor_demod_settings_isSet = true;
|
2020-11-29 03:26:32 -05: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;
|
|
|
|
}
|
2020-10-27 12:22:10 -04:00
|
|
|
if(adsb_demod_settings && adsb_demod_settings->isSet()){
|
|
|
|
isObjectUpdated = true; break;
|
|
|
|
}
|
2021-05-07 16:50:27 -04:00
|
|
|
if(ais_demod_settings && ais_demod_settings->isSet()){
|
|
|
|
isObjectUpdated = true; break;
|
|
|
|
}
|
|
|
|
if(ais_mod_settings && ais_mod_settings->isSet()){
|
|
|
|
isObjectUpdated = true; break;
|
|
|
|
}
|
2019-08-03 20:50:32 -04:00
|
|
|
if(am_demod_settings && am_demod_settings->isSet()){
|
|
|
|
isObjectUpdated = true; break;
|
|
|
|
}
|
|
|
|
if(am_mod_settings && am_mod_settings->isSet()){
|
2021-02-26 15:47:24 -05:00
|
|
|
isObjectUpdated = true; break;
|
|
|
|
}
|
|
|
|
if(apt_demod_settings && apt_demod_settings->isSet()){
|
2019-08-03 20:50:32 -04:00
|
|
|
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;
|
|
|
|
}
|
2020-11-10 15:49:43 -05:00
|
|
|
if(beam_steering_cw_mod_settings && beam_steering_cw_mod_settings->isSet()){
|
|
|
|
isObjectUpdated = true; break;
|
|
|
|
}
|
2019-08-03 20:50:32 -04:00
|
|
|
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;
|
|
|
|
}
|
2020-11-09 05:35:18 -05:00
|
|
|
if(chirp_chat_demod_settings && chirp_chat_demod_settings->isSet()){
|
|
|
|
isObjectUpdated = true; break;
|
|
|
|
}
|
2020-11-09 12:15:52 -05:00
|
|
|
if(chirp_chat_mod_settings && chirp_chat_mod_settings->isSet()){
|
|
|
|
isObjectUpdated = true; break;
|
|
|
|
}
|
2021-03-18 13:17:58 -04:00
|
|
|
if(datv_mod_settings && datv_mod_settings->isSet()){
|
|
|
|
isObjectUpdated = true; break;
|
|
|
|
}
|
2019-08-11 05:35:53 -04:00
|
|
|
if(datv_demod_settings && datv_demod_settings->isSet()){
|
|
|
|
isObjectUpdated = true; break;
|
2021-04-16 17:56:15 -04:00
|
|
|
}
|
|
|
|
if(dab_demod_settings && dab_demod_settings->isSet()){
|
|
|
|
isObjectUpdated = true; break;
|
2019-08-11 05:35:53 -04:00
|
|
|
}
|
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-11-10 09:56:27 -05:00
|
|
|
if(interferometer_settings && interferometer_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;
|
|
|
|
}
|
2021-06-09 11:17:59 -04:00
|
|
|
if(noise_figure_settings && noise_figure_settings->isSet()){
|
|
|
|
isObjectUpdated = true; break;
|
|
|
|
}
|
2019-08-03 20:50:32 -04:00
|
|
|
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
|
|
|
}
|
2021-01-13 15:56:45 -05:00
|
|
|
if(packet_demod_settings && packet_demod_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
|
|
|
}
|
2021-07-09 07:06:23 -04:00
|
|
|
if(pager_demod_settings && pager_demod_settings->isSet()){
|
|
|
|
isObjectUpdated = true; break;
|
|
|
|
}
|
2021-10-12 06:31:14 -04:00
|
|
|
if(radio_astronomy_settings && radio_astronomy_settings->isSet()){
|
|
|
|
isObjectUpdated = true; break;
|
|
|
|
}
|
2021-06-22 12:38:56 -04:00
|
|
|
if(radio_clock_settings && radio_clock_settings->isSet()){
|
|
|
|
isObjectUpdated = true; break;
|
|
|
|
}
|
2022-03-01 12:17:56 -05:00
|
|
|
if(radiosonde_demod_settings && radiosonde_demod_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;
|
|
|
|
}
|
2020-11-10 04:13:34 -05:00
|
|
|
if(sig_mf_file_sink_settings && sig_mf_file_sink_settings->isSet()){
|
|
|
|
isObjectUpdated = true; break;
|
|
|
|
}
|
2019-08-03 20:50:32 -04:00
|
|
|
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;
|
|
|
|
}
|
2022-05-01 06:15:03 -04:00
|
|
|
if(vor_demod_settings && vor_demod_settings->isSet()){
|
2020-11-29 03:26:32 -05:00
|
|
|
isObjectUpdated = true; break;
|
|
|
|
}
|
2019-08-03 20:50:32 -04:00
|
|
|
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
|
|
|
}
|
|
|
|
|