1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-11-26 01:39:05 -05:00

REST API: removed useless generated code

This commit is contained in:
f4exb 2020-01-14 14:07:16 +01:00
parent 6ba2e3c7bb
commit 9bb0435f42
4 changed files with 0 additions and 1969 deletions

View File

@ -1,654 +0,0 @@
/**
* SDRangel
* 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 ---
*
* OpenAPI spec version: 4.11.3
* 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_2.h"
#include "SWGHelpers.h"
#include <QJsonDocument>
#include <QJsonArray>
#include <QObject>
#include <QDebug>
namespace SWGSDRangel {
SWGChannelSettings_2::SWGChannelSettings_2(QString* json) {
init();
this->fromJson(*json);
}
SWGChannelSettings_2::SWGChannelSettings_2() {
channel_type = nullptr;
m_channel_type_isSet = false;
direction = 0;
m_direction_isSet = false;
originator_device_set_index = 0;
m_originator_device_set_index_isSet = false;
originator_channel_index = 0;
m_originator_channel_index_isSet = false;
am_demod_settings = nullptr;
m_am_demod_settings_isSet = false;
am_mod_settings = nullptr;
m_am_mod_settings_isSet = false;
atv_mod_settings = nullptr;
m_atv_mod_settings_isSet = false;
bfm_demod_settings = nullptr;
m_bfm_demod_settings_isSet = false;
dsd_demod_settings = nullptr;
m_dsd_demod_settings_isSet = false;
file_source_settings = nullptr;
m_file_source_settings_isSet = false;
free_dv_demod_settings = nullptr;
m_free_dv_demod_settings_isSet = false;
free_dv_mod_settings = nullptr;
m_free_dv_mod_settings_isSet = false;
freq_tracker_settings = nullptr;
m_freq_tracker_settings_isSet = false;
nfm_demod_settings = nullptr;
m_nfm_demod_settings_isSet = false;
nfm_mod_settings = nullptr;
m_nfm_mod_settings_isSet = false;
local_sink_settings = nullptr;
m_local_sink_settings_isSet = false;
local_source_settings = nullptr;
m_local_source_settings_isSet = false;
remote_sink_settings = nullptr;
m_remote_sink_settings_isSet = false;
remote_source_settings = nullptr;
m_remote_source_settings_isSet = false;
ssb_mod_settings = nullptr;
m_ssb_mod_settings_isSet = false;
ssb_demod_settings = nullptr;
m_ssb_demod_settings_isSet = false;
udp_source_settings = nullptr;
m_udp_source_settings_isSet = false;
udp_sink_settings = nullptr;
m_udp_sink_settings_isSet = false;
wfm_demod_settings = nullptr;
m_wfm_demod_settings_isSet = false;
wfm_mod_settings = nullptr;
m_wfm_mod_settings_isSet = false;
}
SWGChannelSettings_2::~SWGChannelSettings_2() {
this->cleanup();
}
void
SWGChannelSettings_2::init() {
channel_type = new QString("");
m_channel_type_isSet = false;
direction = 0;
m_direction_isSet = false;
originator_device_set_index = 0;
m_originator_device_set_index_isSet = false;
originator_channel_index = 0;
m_originator_channel_index_isSet = false;
am_demod_settings = new SWGAMDemodSettings();
m_am_demod_settings_isSet = false;
am_mod_settings = new SWGAMModSettings();
m_am_mod_settings_isSet = false;
atv_mod_settings = new SWGATVModSettings();
m_atv_mod_settings_isSet = false;
bfm_demod_settings = new SWGBFMDemodSettings();
m_bfm_demod_settings_isSet = false;
dsd_demod_settings = new SWGDSDDemodSettings();
m_dsd_demod_settings_isSet = false;
file_source_settings = new SWGFileSourceSettings();
m_file_source_settings_isSet = false;
free_dv_demod_settings = new SWGFreeDVDemodSettings();
m_free_dv_demod_settings_isSet = false;
free_dv_mod_settings = new SWGFreeDVModSettings();
m_free_dv_mod_settings_isSet = false;
freq_tracker_settings = new SWGFreqTrackerSettings();
m_freq_tracker_settings_isSet = false;
nfm_demod_settings = new SWGNFMDemodSettings();
m_nfm_demod_settings_isSet = false;
nfm_mod_settings = new SWGNFMModSettings();
m_nfm_mod_settings_isSet = false;
local_sink_settings = new SWGLocalSinkSettings();
m_local_sink_settings_isSet = false;
local_source_settings = new SWGLocalSourceSettings();
m_local_source_settings_isSet = false;
remote_sink_settings = new SWGRemoteSinkSettings();
m_remote_sink_settings_isSet = false;
remote_source_settings = new SWGRemoteSourceSettings();
m_remote_source_settings_isSet = false;
ssb_mod_settings = new SWGSSBModSettings();
m_ssb_mod_settings_isSet = false;
ssb_demod_settings = new SWGSSBDemodSettings();
m_ssb_demod_settings_isSet = false;
udp_source_settings = new SWGUDPSourceSettings();
m_udp_source_settings_isSet = false;
udp_sink_settings = new SWGUDPSinkSettings();
m_udp_sink_settings_isSet = false;
wfm_demod_settings = new SWGWFMDemodSettings();
m_wfm_demod_settings_isSet = false;
wfm_mod_settings = new SWGWFMModSettings();
m_wfm_mod_settings_isSet = false;
}
void
SWGChannelSettings_2::cleanup() {
if(channel_type != nullptr) {
delete channel_type;
}
if(am_demod_settings != nullptr) {
delete am_demod_settings;
}
if(am_mod_settings != nullptr) {
delete am_mod_settings;
}
if(atv_mod_settings != nullptr) {
delete atv_mod_settings;
}
if(bfm_demod_settings != nullptr) {
delete bfm_demod_settings;
}
if(dsd_demod_settings != nullptr) {
delete dsd_demod_settings;
}
if(file_source_settings != nullptr) {
delete file_source_settings;
}
if(free_dv_demod_settings != nullptr) {
delete free_dv_demod_settings;
}
if(free_dv_mod_settings != nullptr) {
delete free_dv_mod_settings;
}
if(freq_tracker_settings != nullptr) {
delete freq_tracker_settings;
}
if(nfm_demod_settings != nullptr) {
delete nfm_demod_settings;
}
if(nfm_mod_settings != nullptr) {
delete nfm_mod_settings;
}
if(local_sink_settings != nullptr) {
delete local_sink_settings;
}
if(local_source_settings != nullptr) {
delete local_source_settings;
}
if(remote_sink_settings != nullptr) {
delete remote_sink_settings;
}
if(remote_source_settings != nullptr) {
delete remote_source_settings;
}
if(ssb_mod_settings != nullptr) {
delete ssb_mod_settings;
}
if(ssb_demod_settings != nullptr) {
delete ssb_demod_settings;
}
if(udp_source_settings != nullptr) {
delete udp_source_settings;
}
if(udp_sink_settings != nullptr) {
delete udp_sink_settings;
}
if(wfm_demod_settings != nullptr) {
delete wfm_demod_settings;
}
if(wfm_mod_settings != nullptr) {
delete wfm_mod_settings;
}
}
SWGChannelSettings_2*
SWGChannelSettings_2::fromJson(QString &json) {
QByteArray array (json.toStdString().c_str());
QJsonDocument doc = QJsonDocument::fromJson(array);
QJsonObject jsonObject = doc.object();
this->fromJsonObject(jsonObject);
return this;
}
void
SWGChannelSettings_2::fromJsonObject(QJsonObject &pJson) {
::SWGSDRangel::setValue(&channel_type, pJson["channelType"], "QString", "QString");
::SWGSDRangel::setValue(&direction, pJson["direction"], "qint32", "");
::SWGSDRangel::setValue(&originator_device_set_index, pJson["originatorDeviceSetIndex"], "qint32", "");
::SWGSDRangel::setValue(&originator_channel_index, pJson["originatorChannelIndex"], "qint32", "");
::SWGSDRangel::setValue(&am_demod_settings, pJson["AMDemodSettings"], "SWGAMDemodSettings", "SWGAMDemodSettings");
::SWGSDRangel::setValue(&am_mod_settings, pJson["AMModSettings"], "SWGAMModSettings", "SWGAMModSettings");
::SWGSDRangel::setValue(&atv_mod_settings, pJson["ATVModSettings"], "SWGATVModSettings", "SWGATVModSettings");
::SWGSDRangel::setValue(&bfm_demod_settings, pJson["BFMDemodSettings"], "SWGBFMDemodSettings", "SWGBFMDemodSettings");
::SWGSDRangel::setValue(&dsd_demod_settings, pJson["DSDDemodSettings"], "SWGDSDDemodSettings", "SWGDSDDemodSettings");
::SWGSDRangel::setValue(&file_source_settings, pJson["FileSourceSettings"], "SWGFileSourceSettings", "SWGFileSourceSettings");
::SWGSDRangel::setValue(&free_dv_demod_settings, pJson["FreeDVDemodSettings"], "SWGFreeDVDemodSettings", "SWGFreeDVDemodSettings");
::SWGSDRangel::setValue(&free_dv_mod_settings, pJson["FreeDVModSettings"], "SWGFreeDVModSettings", "SWGFreeDVModSettings");
::SWGSDRangel::setValue(&freq_tracker_settings, pJson["FreqTrackerSettings"], "SWGFreqTrackerSettings", "SWGFreqTrackerSettings");
::SWGSDRangel::setValue(&nfm_demod_settings, pJson["NFMDemodSettings"], "SWGNFMDemodSettings", "SWGNFMDemodSettings");
::SWGSDRangel::setValue(&nfm_mod_settings, pJson["NFMModSettings"], "SWGNFMModSettings", "SWGNFMModSettings");
::SWGSDRangel::setValue(&local_sink_settings, pJson["LocalSinkSettings"], "SWGLocalSinkSettings", "SWGLocalSinkSettings");
::SWGSDRangel::setValue(&local_source_settings, pJson["LocalSourceSettings"], "SWGLocalSourceSettings", "SWGLocalSourceSettings");
::SWGSDRangel::setValue(&remote_sink_settings, pJson["RemoteSinkSettings"], "SWGRemoteSinkSettings", "SWGRemoteSinkSettings");
::SWGSDRangel::setValue(&remote_source_settings, pJson["RemoteSourceSettings"], "SWGRemoteSourceSettings", "SWGRemoteSourceSettings");
::SWGSDRangel::setValue(&ssb_mod_settings, pJson["SSBModSettings"], "SWGSSBModSettings", "SWGSSBModSettings");
::SWGSDRangel::setValue(&ssb_demod_settings, pJson["SSBDemodSettings"], "SWGSSBDemodSettings", "SWGSSBDemodSettings");
::SWGSDRangel::setValue(&udp_source_settings, pJson["UDPSourceSettings"], "SWGUDPSourceSettings", "SWGUDPSourceSettings");
::SWGSDRangel::setValue(&udp_sink_settings, pJson["UDPSinkSettings"], "SWGUDPSinkSettings", "SWGUDPSinkSettings");
::SWGSDRangel::setValue(&wfm_demod_settings, pJson["WFMDemodSettings"], "SWGWFMDemodSettings", "SWGWFMDemodSettings");
::SWGSDRangel::setValue(&wfm_mod_settings, pJson["WFMModSettings"], "SWGWFMModSettings", "SWGWFMModSettings");
}
QString
SWGChannelSettings_2::asJson ()
{
QJsonObject* obj = this->asJsonObject();
QJsonDocument doc(*obj);
QByteArray bytes = doc.toJson();
delete obj;
return QString(bytes);
}
QJsonObject*
SWGChannelSettings_2::asJsonObject() {
QJsonObject* obj = new QJsonObject();
if(channel_type != nullptr && *channel_type != QString("")){
toJsonValue(QString("channelType"), channel_type, obj, QString("QString"));
}
if(m_direction_isSet){
obj->insert("direction", QJsonValue(direction));
}
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));
}
if((am_demod_settings != nullptr) && (am_demod_settings->isSet())){
toJsonValue(QString("AMDemodSettings"), am_demod_settings, obj, QString("SWGAMDemodSettings"));
}
if((am_mod_settings != nullptr) && (am_mod_settings->isSet())){
toJsonValue(QString("AMModSettings"), am_mod_settings, obj, QString("SWGAMModSettings"));
}
if((atv_mod_settings != nullptr) && (atv_mod_settings->isSet())){
toJsonValue(QString("ATVModSettings"), atv_mod_settings, obj, QString("SWGATVModSettings"));
}
if((bfm_demod_settings != nullptr) && (bfm_demod_settings->isSet())){
toJsonValue(QString("BFMDemodSettings"), bfm_demod_settings, obj, QString("SWGBFMDemodSettings"));
}
if((dsd_demod_settings != nullptr) && (dsd_demod_settings->isSet())){
toJsonValue(QString("DSDDemodSettings"), dsd_demod_settings, obj, QString("SWGDSDDemodSettings"));
}
if((file_source_settings != nullptr) && (file_source_settings->isSet())){
toJsonValue(QString("FileSourceSettings"), file_source_settings, obj, QString("SWGFileSourceSettings"));
}
if((free_dv_demod_settings != nullptr) && (free_dv_demod_settings->isSet())){
toJsonValue(QString("FreeDVDemodSettings"), free_dv_demod_settings, obj, QString("SWGFreeDVDemodSettings"));
}
if((free_dv_mod_settings != nullptr) && (free_dv_mod_settings->isSet())){
toJsonValue(QString("FreeDVModSettings"), free_dv_mod_settings, obj, QString("SWGFreeDVModSettings"));
}
if((freq_tracker_settings != nullptr) && (freq_tracker_settings->isSet())){
toJsonValue(QString("FreqTrackerSettings"), freq_tracker_settings, obj, QString("SWGFreqTrackerSettings"));
}
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"));
}
if((local_sink_settings != nullptr) && (local_sink_settings->isSet())){
toJsonValue(QString("LocalSinkSettings"), local_sink_settings, obj, QString("SWGLocalSinkSettings"));
}
if((local_source_settings != nullptr) && (local_source_settings->isSet())){
toJsonValue(QString("LocalSourceSettings"), local_source_settings, obj, QString("SWGLocalSourceSettings"));
}
if((remote_sink_settings != nullptr) && (remote_sink_settings->isSet())){
toJsonValue(QString("RemoteSinkSettings"), remote_sink_settings, obj, QString("SWGRemoteSinkSettings"));
}
if((remote_source_settings != nullptr) && (remote_source_settings->isSet())){
toJsonValue(QString("RemoteSourceSettings"), remote_source_settings, obj, QString("SWGRemoteSourceSettings"));
}
if((ssb_mod_settings != nullptr) && (ssb_mod_settings->isSet())){
toJsonValue(QString("SSBModSettings"), ssb_mod_settings, obj, QString("SWGSSBModSettings"));
}
if((ssb_demod_settings != nullptr) && (ssb_demod_settings->isSet())){
toJsonValue(QString("SSBDemodSettings"), ssb_demod_settings, obj, QString("SWGSSBDemodSettings"));
}
if((udp_source_settings != nullptr) && (udp_source_settings->isSet())){
toJsonValue(QString("UDPSourceSettings"), udp_source_settings, obj, QString("SWGUDPSourceSettings"));
}
if((udp_sink_settings != nullptr) && (udp_sink_settings->isSet())){
toJsonValue(QString("UDPSinkSettings"), udp_sink_settings, obj, QString("SWGUDPSinkSettings"));
}
if((wfm_demod_settings != nullptr) && (wfm_demod_settings->isSet())){
toJsonValue(QString("WFMDemodSettings"), wfm_demod_settings, obj, QString("SWGWFMDemodSettings"));
}
if((wfm_mod_settings != nullptr) && (wfm_mod_settings->isSet())){
toJsonValue(QString("WFMModSettings"), wfm_mod_settings, obj, QString("SWGWFMModSettings"));
}
return obj;
}
QString*
SWGChannelSettings_2::getChannelType() {
return channel_type;
}
void
SWGChannelSettings_2::setChannelType(QString* channel_type) {
this->channel_type = channel_type;
this->m_channel_type_isSet = true;
}
qint32
SWGChannelSettings_2::getDirection() {
return direction;
}
void
SWGChannelSettings_2::setDirection(qint32 direction) {
this->direction = direction;
this->m_direction_isSet = true;
}
qint32
SWGChannelSettings_2::getOriginatorDeviceSetIndex() {
return originator_device_set_index;
}
void
SWGChannelSettings_2::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_2::getOriginatorChannelIndex() {
return originator_channel_index;
}
void
SWGChannelSettings_2::setOriginatorChannelIndex(qint32 originator_channel_index) {
this->originator_channel_index = originator_channel_index;
this->m_originator_channel_index_isSet = true;
}
SWGAMDemodSettings*
SWGChannelSettings_2::getAmDemodSettings() {
return am_demod_settings;
}
void
SWGChannelSettings_2::setAmDemodSettings(SWGAMDemodSettings* am_demod_settings) {
this->am_demod_settings = am_demod_settings;
this->m_am_demod_settings_isSet = true;
}
SWGAMModSettings*
SWGChannelSettings_2::getAmModSettings() {
return am_mod_settings;
}
void
SWGChannelSettings_2::setAmModSettings(SWGAMModSettings* am_mod_settings) {
this->am_mod_settings = am_mod_settings;
this->m_am_mod_settings_isSet = true;
}
SWGATVModSettings*
SWGChannelSettings_2::getAtvModSettings() {
return atv_mod_settings;
}
void
SWGChannelSettings_2::setAtvModSettings(SWGATVModSettings* atv_mod_settings) {
this->atv_mod_settings = atv_mod_settings;
this->m_atv_mod_settings_isSet = true;
}
SWGBFMDemodSettings*
SWGChannelSettings_2::getBfmDemodSettings() {
return bfm_demod_settings;
}
void
SWGChannelSettings_2::setBfmDemodSettings(SWGBFMDemodSettings* bfm_demod_settings) {
this->bfm_demod_settings = bfm_demod_settings;
this->m_bfm_demod_settings_isSet = true;
}
SWGDSDDemodSettings*
SWGChannelSettings_2::getDsdDemodSettings() {
return dsd_demod_settings;
}
void
SWGChannelSettings_2::setDsdDemodSettings(SWGDSDDemodSettings* dsd_demod_settings) {
this->dsd_demod_settings = dsd_demod_settings;
this->m_dsd_demod_settings_isSet = true;
}
SWGFileSourceSettings*
SWGChannelSettings_2::getFileSourceSettings() {
return file_source_settings;
}
void
SWGChannelSettings_2::setFileSourceSettings(SWGFileSourceSettings* file_source_settings) {
this->file_source_settings = file_source_settings;
this->m_file_source_settings_isSet = true;
}
SWGFreeDVDemodSettings*
SWGChannelSettings_2::getFreeDvDemodSettings() {
return free_dv_demod_settings;
}
void
SWGChannelSettings_2::setFreeDvDemodSettings(SWGFreeDVDemodSettings* free_dv_demod_settings) {
this->free_dv_demod_settings = free_dv_demod_settings;
this->m_free_dv_demod_settings_isSet = true;
}
SWGFreeDVModSettings*
SWGChannelSettings_2::getFreeDvModSettings() {
return free_dv_mod_settings;
}
void
SWGChannelSettings_2::setFreeDvModSettings(SWGFreeDVModSettings* free_dv_mod_settings) {
this->free_dv_mod_settings = free_dv_mod_settings;
this->m_free_dv_mod_settings_isSet = true;
}
SWGFreqTrackerSettings*
SWGChannelSettings_2::getFreqTrackerSettings() {
return freq_tracker_settings;
}
void
SWGChannelSettings_2::setFreqTrackerSettings(SWGFreqTrackerSettings* freq_tracker_settings) {
this->freq_tracker_settings = freq_tracker_settings;
this->m_freq_tracker_settings_isSet = true;
}
SWGNFMDemodSettings*
SWGChannelSettings_2::getNfmDemodSettings() {
return nfm_demod_settings;
}
void
SWGChannelSettings_2::setNfmDemodSettings(SWGNFMDemodSettings* nfm_demod_settings) {
this->nfm_demod_settings = nfm_demod_settings;
this->m_nfm_demod_settings_isSet = true;
}
SWGNFMModSettings*
SWGChannelSettings_2::getNfmModSettings() {
return nfm_mod_settings;
}
void
SWGChannelSettings_2::setNfmModSettings(SWGNFMModSettings* nfm_mod_settings) {
this->nfm_mod_settings = nfm_mod_settings;
this->m_nfm_mod_settings_isSet = true;
}
SWGLocalSinkSettings*
SWGChannelSettings_2::getLocalSinkSettings() {
return local_sink_settings;
}
void
SWGChannelSettings_2::setLocalSinkSettings(SWGLocalSinkSettings* local_sink_settings) {
this->local_sink_settings = local_sink_settings;
this->m_local_sink_settings_isSet = true;
}
SWGLocalSourceSettings*
SWGChannelSettings_2::getLocalSourceSettings() {
return local_source_settings;
}
void
SWGChannelSettings_2::setLocalSourceSettings(SWGLocalSourceSettings* local_source_settings) {
this->local_source_settings = local_source_settings;
this->m_local_source_settings_isSet = true;
}
SWGRemoteSinkSettings*
SWGChannelSettings_2::getRemoteSinkSettings() {
return remote_sink_settings;
}
void
SWGChannelSettings_2::setRemoteSinkSettings(SWGRemoteSinkSettings* remote_sink_settings) {
this->remote_sink_settings = remote_sink_settings;
this->m_remote_sink_settings_isSet = true;
}
SWGRemoteSourceSettings*
SWGChannelSettings_2::getRemoteSourceSettings() {
return remote_source_settings;
}
void
SWGChannelSettings_2::setRemoteSourceSettings(SWGRemoteSourceSettings* remote_source_settings) {
this->remote_source_settings = remote_source_settings;
this->m_remote_source_settings_isSet = true;
}
SWGSSBModSettings*
SWGChannelSettings_2::getSsbModSettings() {
return ssb_mod_settings;
}
void
SWGChannelSettings_2::setSsbModSettings(SWGSSBModSettings* ssb_mod_settings) {
this->ssb_mod_settings = ssb_mod_settings;
this->m_ssb_mod_settings_isSet = true;
}
SWGSSBDemodSettings*
SWGChannelSettings_2::getSsbDemodSettings() {
return ssb_demod_settings;
}
void
SWGChannelSettings_2::setSsbDemodSettings(SWGSSBDemodSettings* ssb_demod_settings) {
this->ssb_demod_settings = ssb_demod_settings;
this->m_ssb_demod_settings_isSet = true;
}
SWGUDPSourceSettings*
SWGChannelSettings_2::getUdpSourceSettings() {
return udp_source_settings;
}
void
SWGChannelSettings_2::setUdpSourceSettings(SWGUDPSourceSettings* udp_source_settings) {
this->udp_source_settings = udp_source_settings;
this->m_udp_source_settings_isSet = true;
}
SWGUDPSinkSettings*
SWGChannelSettings_2::getUdpSinkSettings() {
return udp_sink_settings;
}
void
SWGChannelSettings_2::setUdpSinkSettings(SWGUDPSinkSettings* udp_sink_settings) {
this->udp_sink_settings = udp_sink_settings;
this->m_udp_sink_settings_isSet = true;
}
SWGWFMDemodSettings*
SWGChannelSettings_2::getWfmDemodSettings() {
return wfm_demod_settings;
}
void
SWGChannelSettings_2::setWfmDemodSettings(SWGWFMDemodSettings* wfm_demod_settings) {
this->wfm_demod_settings = wfm_demod_settings;
this->m_wfm_demod_settings_isSet = true;
}
SWGWFMModSettings*
SWGChannelSettings_2::getWfmModSettings() {
return wfm_mod_settings;
}
void
SWGChannelSettings_2::setWfmModSettings(SWGWFMModSettings* wfm_mod_settings) {
this->wfm_mod_settings = wfm_mod_settings;
this->m_wfm_mod_settings_isSet = true;
}
bool
SWGChannelSettings_2::isSet(){
bool isObjectUpdated = false;
do{
if(channel_type != nullptr && *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 != nullptr && am_demod_settings->isSet()){ isObjectUpdated = true; break;}
if(am_mod_settings != nullptr && am_mod_settings->isSet()){ isObjectUpdated = true; break;}
if(atv_mod_settings != nullptr && atv_mod_settings->isSet()){ isObjectUpdated = true; break;}
if(bfm_demod_settings != nullptr && bfm_demod_settings->isSet()){ isObjectUpdated = true; break;}
if(dsd_demod_settings != nullptr && dsd_demod_settings->isSet()){ isObjectUpdated = true; break;}
if(file_source_settings != nullptr && file_source_settings->isSet()){ isObjectUpdated = true; break;}
if(free_dv_demod_settings != nullptr && free_dv_demod_settings->isSet()){ isObjectUpdated = true; break;}
if(free_dv_mod_settings != nullptr && free_dv_mod_settings->isSet()){ isObjectUpdated = true; break;}
if(freq_tracker_settings != nullptr && freq_tracker_settings->isSet()){ isObjectUpdated = true; break;}
if(nfm_demod_settings != nullptr && nfm_demod_settings->isSet()){ isObjectUpdated = true; break;}
if(nfm_mod_settings != nullptr && nfm_mod_settings->isSet()){ isObjectUpdated = true; break;}
if(local_sink_settings != nullptr && local_sink_settings->isSet()){ isObjectUpdated = true; break;}
if(local_source_settings != nullptr && local_source_settings->isSet()){ isObjectUpdated = true; break;}
if(remote_sink_settings != nullptr && remote_sink_settings->isSet()){ isObjectUpdated = true; break;}
if(remote_source_settings != nullptr && remote_source_settings->isSet()){ isObjectUpdated = true; break;}
if(ssb_mod_settings != nullptr && ssb_mod_settings->isSet()){ isObjectUpdated = true; break;}
if(ssb_demod_settings != nullptr && ssb_demod_settings->isSet()){ isObjectUpdated = true; break;}
if(udp_source_settings != nullptr && udp_source_settings->isSet()){ isObjectUpdated = true; break;}
if(udp_sink_settings != nullptr && udp_sink_settings->isSet()){ isObjectUpdated = true; break;}
if(wfm_demod_settings != nullptr && wfm_demod_settings->isSet()){ isObjectUpdated = true; break;}
if(wfm_mod_settings != nullptr && wfm_mod_settings->isSet()){ isObjectUpdated = true; break;}
}while(false);
return isObjectUpdated;
}
}

View File

@ -1,224 +0,0 @@
/**
* SDRangel
* 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 ---
*
* OpenAPI spec version: 4.11.3
* 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.
*/
/*
* SWGChannelSettings_2.h
*
* Base channel settings. Only the channel settings corresponding to the channel specified in the channelType field is or should be present.
*/
#ifndef SWGChannelSettings_2_H_
#define SWGChannelSettings_2_H_
#include <QJsonObject>
#include "SWGAMDemodSettings.h"
#include "SWGAMModSettings.h"
#include "SWGATVModSettings.h"
#include "SWGBFMDemodSettings.h"
#include "SWGDSDDemodSettings.h"
#include "SWGFileSourceSettings.h"
#include "SWGFreeDVDemodSettings.h"
#include "SWGFreeDVModSettings.h"
#include "SWGFreqTrackerSettings.h"
#include "SWGLocalSinkSettings.h"
#include "SWGLocalSourceSettings.h"
#include "SWGNFMDemodSettings.h"
#include "SWGNFMModSettings.h"
#include "SWGRemoteSinkSettings.h"
#include "SWGRemoteSourceSettings.h"
#include "SWGSSBDemodSettings.h"
#include "SWGSSBModSettings.h"
#include "SWGUDPSinkSettings.h"
#include "SWGUDPSourceSettings.h"
#include "SWGWFMDemodSettings.h"
#include "SWGWFMModSettings.h"
#include <QString>
#include "SWGObject.h"
#include "export.h"
namespace SWGSDRangel {
class SWG_API SWGChannelSettings_2: public SWGObject {
public:
SWGChannelSettings_2();
SWGChannelSettings_2(QString* json);
virtual ~SWGChannelSettings_2();
void init();
void cleanup();
virtual QString asJson () override;
virtual QJsonObject* asJsonObject() override;
virtual void fromJsonObject(QJsonObject &json) override;
virtual SWGChannelSettings_2* fromJson(QString &jsonString) override;
QString* getChannelType();
void setChannelType(QString* channel_type);
qint32 getDirection();
void setDirection(qint32 direction);
qint32 getOriginatorDeviceSetIndex();
void setOriginatorDeviceSetIndex(qint32 originator_device_set_index);
qint32 getOriginatorChannelIndex();
void setOriginatorChannelIndex(qint32 originator_channel_index);
SWGAMDemodSettings* getAmDemodSettings();
void setAmDemodSettings(SWGAMDemodSettings* am_demod_settings);
SWGAMModSettings* getAmModSettings();
void setAmModSettings(SWGAMModSettings* am_mod_settings);
SWGATVModSettings* getAtvModSettings();
void setAtvModSettings(SWGATVModSettings* atv_mod_settings);
SWGBFMDemodSettings* getBfmDemodSettings();
void setBfmDemodSettings(SWGBFMDemodSettings* bfm_demod_settings);
SWGDSDDemodSettings* getDsdDemodSettings();
void setDsdDemodSettings(SWGDSDDemodSettings* dsd_demod_settings);
SWGFileSourceSettings* getFileSourceSettings();
void setFileSourceSettings(SWGFileSourceSettings* file_source_settings);
SWGFreeDVDemodSettings* getFreeDvDemodSettings();
void setFreeDvDemodSettings(SWGFreeDVDemodSettings* free_dv_demod_settings);
SWGFreeDVModSettings* getFreeDvModSettings();
void setFreeDvModSettings(SWGFreeDVModSettings* free_dv_mod_settings);
SWGFreqTrackerSettings* getFreqTrackerSettings();
void setFreqTrackerSettings(SWGFreqTrackerSettings* freq_tracker_settings);
SWGNFMDemodSettings* getNfmDemodSettings();
void setNfmDemodSettings(SWGNFMDemodSettings* nfm_demod_settings);
SWGNFMModSettings* getNfmModSettings();
void setNfmModSettings(SWGNFMModSettings* nfm_mod_settings);
SWGLocalSinkSettings* getLocalSinkSettings();
void setLocalSinkSettings(SWGLocalSinkSettings* local_sink_settings);
SWGLocalSourceSettings* getLocalSourceSettings();
void setLocalSourceSettings(SWGLocalSourceSettings* local_source_settings);
SWGRemoteSinkSettings* getRemoteSinkSettings();
void setRemoteSinkSettings(SWGRemoteSinkSettings* remote_sink_settings);
SWGRemoteSourceSettings* getRemoteSourceSettings();
void setRemoteSourceSettings(SWGRemoteSourceSettings* remote_source_settings);
SWGSSBModSettings* getSsbModSettings();
void setSsbModSettings(SWGSSBModSettings* ssb_mod_settings);
SWGSSBDemodSettings* getSsbDemodSettings();
void setSsbDemodSettings(SWGSSBDemodSettings* ssb_demod_settings);
SWGUDPSourceSettings* getUdpSourceSettings();
void setUdpSourceSettings(SWGUDPSourceSettings* udp_source_settings);
SWGUDPSinkSettings* getUdpSinkSettings();
void setUdpSinkSettings(SWGUDPSinkSettings* udp_sink_settings);
SWGWFMDemodSettings* getWfmDemodSettings();
void setWfmDemodSettings(SWGWFMDemodSettings* wfm_demod_settings);
SWGWFMModSettings* getWfmModSettings();
void setWfmModSettings(SWGWFMModSettings* wfm_mod_settings);
virtual bool isSet() override;
private:
QString* channel_type;
bool m_channel_type_isSet;
qint32 direction;
bool m_direction_isSet;
qint32 originator_device_set_index;
bool m_originator_device_set_index_isSet;
qint32 originator_channel_index;
bool m_originator_channel_index_isSet;
SWGAMDemodSettings* am_demod_settings;
bool m_am_demod_settings_isSet;
SWGAMModSettings* am_mod_settings;
bool m_am_mod_settings_isSet;
SWGATVModSettings* atv_mod_settings;
bool m_atv_mod_settings_isSet;
SWGBFMDemodSettings* bfm_demod_settings;
bool m_bfm_demod_settings_isSet;
SWGDSDDemodSettings* dsd_demod_settings;
bool m_dsd_demod_settings_isSet;
SWGFileSourceSettings* file_source_settings;
bool m_file_source_settings_isSet;
SWGFreeDVDemodSettings* free_dv_demod_settings;
bool m_free_dv_demod_settings_isSet;
SWGFreeDVModSettings* free_dv_mod_settings;
bool m_free_dv_mod_settings_isSet;
SWGFreqTrackerSettings* freq_tracker_settings;
bool m_freq_tracker_settings_isSet;
SWGNFMDemodSettings* nfm_demod_settings;
bool m_nfm_demod_settings_isSet;
SWGNFMModSettings* nfm_mod_settings;
bool m_nfm_mod_settings_isSet;
SWGLocalSinkSettings* local_sink_settings;
bool m_local_sink_settings_isSet;
SWGLocalSourceSettings* local_source_settings;
bool m_local_source_settings_isSet;
SWGRemoteSinkSettings* remote_sink_settings;
bool m_remote_sink_settings_isSet;
SWGRemoteSourceSettings* remote_source_settings;
bool m_remote_source_settings_isSet;
SWGSSBModSettings* ssb_mod_settings;
bool m_ssb_mod_settings_isSet;
SWGSSBDemodSettings* ssb_demod_settings;
bool m_ssb_demod_settings_isSet;
SWGUDPSourceSettings* udp_source_settings;
bool m_udp_source_settings_isSet;
SWGUDPSinkSettings* udp_sink_settings;
bool m_udp_sink_settings_isSet;
SWGWFMDemodSettings* wfm_demod_settings;
bool m_wfm_demod_settings_isSet;
SWGWFMModSettings* wfm_mod_settings;
bool m_wfm_mod_settings_isSet;
};
}
#endif /* SWGChannelSettings_2_H_ */

View File

@ -1,817 +0,0 @@
/**
* SDRangel
* 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 ---
*
* OpenAPI spec version: 4.11.3
* 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 "SWGDeviceSettings_2.h"
#include "SWGHelpers.h"
#include <QJsonDocument>
#include <QJsonArray>
#include <QObject>
#include <QDebug>
namespace SWGSDRangel {
SWGDeviceSettings_2::SWGDeviceSettings_2(QString* json) {
init();
this->fromJson(*json);
}
SWGDeviceSettings_2::SWGDeviceSettings_2() {
device_hw_type = nullptr;
m_device_hw_type_isSet = false;
direction = 0;
m_direction_isSet = false;
originator_index = 0;
m_originator_index_isSet = false;
airspy_settings = nullptr;
m_airspy_settings_isSet = false;
airspy_hf_settings = nullptr;
m_airspy_hf_settings_isSet = false;
blade_rf1_input_settings = nullptr;
m_blade_rf1_input_settings_isSet = false;
blade_rf2_input_settings = nullptr;
m_blade_rf2_input_settings_isSet = false;
blade_rf1_output_settings = nullptr;
m_blade_rf1_output_settings_isSet = false;
blade_rf2_output_settings = nullptr;
m_blade_rf2_output_settings_isSet = false;
fcd_pro_settings = nullptr;
m_fcd_pro_settings_isSet = false;
fcd_pro_plus_settings = nullptr;
m_fcd_pro_plus_settings_isSet = false;
file_input_settings = nullptr;
m_file_input_settings_isSet = false;
hack_rf_input_settings = nullptr;
m_hack_rf_input_settings_isSet = false;
hack_rf_output_settings = nullptr;
m_hack_rf_output_settings_isSet = false;
kiwi_sdr_settings = nullptr;
m_kiwi_sdr_settings_isSet = false;
lime_sdr_input_settings = nullptr;
m_lime_sdr_input_settings_isSet = false;
lime_sdr_output_settings = nullptr;
m_lime_sdr_output_settings_isSet = false;
local_input_settings = nullptr;
m_local_input_settings_isSet = false;
local_output_settings = nullptr;
m_local_output_settings_isSet = false;
perseus_settings = nullptr;
m_perseus_settings_isSet = false;
pluto_sdr_input_settings = nullptr;
m_pluto_sdr_input_settings_isSet = false;
pluto_sdr_output_settings = nullptr;
m_pluto_sdr_output_settings_isSet = false;
rtl_sdr_settings = nullptr;
m_rtl_sdr_settings_isSet = false;
remote_output_settings = nullptr;
m_remote_output_settings_isSet = false;
remote_input_settings = nullptr;
m_remote_input_settings_isSet = false;
sdr_play_settings = nullptr;
m_sdr_play_settings_isSet = false;
soapy_sdr_input_settings = nullptr;
m_soapy_sdr_input_settings_isSet = false;
soapy_sdr_output_settings = nullptr;
m_soapy_sdr_output_settings_isSet = false;
test_source_settings = nullptr;
m_test_source_settings_isSet = false;
test_mi_settings = nullptr;
m_test_mi_settings_isSet = false;
xtrx_input_settings = nullptr;
m_xtrx_input_settings_isSet = false;
xtrx_output_settings = nullptr;
m_xtrx_output_settings_isSet = false;
}
SWGDeviceSettings_2::~SWGDeviceSettings_2() {
this->cleanup();
}
void
SWGDeviceSettings_2::init() {
device_hw_type = new QString("");
m_device_hw_type_isSet = false;
direction = 0;
m_direction_isSet = false;
originator_index = 0;
m_originator_index_isSet = false;
airspy_settings = new SWGAirspySettings();
m_airspy_settings_isSet = false;
airspy_hf_settings = new SWGAirspyHFSettings();
m_airspy_hf_settings_isSet = false;
blade_rf1_input_settings = new SWGBladeRF1InputSettings();
m_blade_rf1_input_settings_isSet = false;
blade_rf2_input_settings = new SWGBladeRF2InputSettings();
m_blade_rf2_input_settings_isSet = false;
blade_rf1_output_settings = new SWGBladeRF1OutputSettings();
m_blade_rf1_output_settings_isSet = false;
blade_rf2_output_settings = new SWGBladeRF2OutputSettings();
m_blade_rf2_output_settings_isSet = false;
fcd_pro_settings = new SWGFCDProSettings();
m_fcd_pro_settings_isSet = false;
fcd_pro_plus_settings = new SWGFCDProPlusSettings();
m_fcd_pro_plus_settings_isSet = false;
file_input_settings = new SWGFileInputSettings();
m_file_input_settings_isSet = false;
hack_rf_input_settings = new SWGHackRFInputSettings();
m_hack_rf_input_settings_isSet = false;
hack_rf_output_settings = new SWGHackRFOutputSettings();
m_hack_rf_output_settings_isSet = false;
kiwi_sdr_settings = new SWGKiwiSDRSettings();
m_kiwi_sdr_settings_isSet = false;
lime_sdr_input_settings = new SWGLimeSdrInputSettings();
m_lime_sdr_input_settings_isSet = false;
lime_sdr_output_settings = new SWGLimeSdrOutputSettings();
m_lime_sdr_output_settings_isSet = false;
local_input_settings = new SWGLocalInputSettings();
m_local_input_settings_isSet = false;
local_output_settings = new SWGLocalOutputSettings();
m_local_output_settings_isSet = false;
perseus_settings = new SWGPerseusSettings();
m_perseus_settings_isSet = false;
pluto_sdr_input_settings = new SWGPlutoSdrInputSettings();
m_pluto_sdr_input_settings_isSet = false;
pluto_sdr_output_settings = new SWGPlutoSdrOutputSettings();
m_pluto_sdr_output_settings_isSet = false;
rtl_sdr_settings = new SWGRtlSdrSettings();
m_rtl_sdr_settings_isSet = false;
remote_output_settings = new SWGRemoteOutputSettings();
m_remote_output_settings_isSet = false;
remote_input_settings = new SWGRemoteInputSettings();
m_remote_input_settings_isSet = false;
sdr_play_settings = new SWGSDRPlaySettings();
m_sdr_play_settings_isSet = false;
soapy_sdr_input_settings = new SWGSoapySDRInputSettings();
m_soapy_sdr_input_settings_isSet = false;
soapy_sdr_output_settings = new SWGSoapySDROutputSettings();
m_soapy_sdr_output_settings_isSet = false;
test_source_settings = new SWGTestSourceSettings();
m_test_source_settings_isSet = false;
test_mi_settings = new SWGTestMISettings();
m_test_mi_settings_isSet = false;
xtrx_input_settings = new SWGXtrxInputSettings();
m_xtrx_input_settings_isSet = false;
xtrx_output_settings = new SWGXtrxOutputSettings();
m_xtrx_output_settings_isSet = false;
}
void
SWGDeviceSettings_2::cleanup() {
if(device_hw_type != nullptr) {
delete device_hw_type;
}
if(airspy_settings != nullptr) {
delete airspy_settings;
}
if(airspy_hf_settings != nullptr) {
delete airspy_hf_settings;
}
if(blade_rf1_input_settings != nullptr) {
delete blade_rf1_input_settings;
}
if(blade_rf2_input_settings != nullptr) {
delete blade_rf2_input_settings;
}
if(blade_rf1_output_settings != nullptr) {
delete blade_rf1_output_settings;
}
if(blade_rf2_output_settings != nullptr) {
delete blade_rf2_output_settings;
}
if(fcd_pro_settings != nullptr) {
delete fcd_pro_settings;
}
if(fcd_pro_plus_settings != nullptr) {
delete fcd_pro_plus_settings;
}
if(file_input_settings != nullptr) {
delete file_input_settings;
}
if(hack_rf_input_settings != nullptr) {
delete hack_rf_input_settings;
}
if(hack_rf_output_settings != nullptr) {
delete hack_rf_output_settings;
}
if(kiwi_sdr_settings != nullptr) {
delete kiwi_sdr_settings;
}
if(lime_sdr_input_settings != nullptr) {
delete lime_sdr_input_settings;
}
if(lime_sdr_output_settings != nullptr) {
delete lime_sdr_output_settings;
}
if(local_input_settings != nullptr) {
delete local_input_settings;
}
if(local_output_settings != nullptr) {
delete local_output_settings;
}
if(perseus_settings != nullptr) {
delete perseus_settings;
}
if(pluto_sdr_input_settings != nullptr) {
delete pluto_sdr_input_settings;
}
if(pluto_sdr_output_settings != nullptr) {
delete pluto_sdr_output_settings;
}
if(rtl_sdr_settings != nullptr) {
delete rtl_sdr_settings;
}
if(remote_output_settings != nullptr) {
delete remote_output_settings;
}
if(remote_input_settings != nullptr) {
delete remote_input_settings;
}
if(sdr_play_settings != nullptr) {
delete sdr_play_settings;
}
if(soapy_sdr_input_settings != nullptr) {
delete soapy_sdr_input_settings;
}
if(soapy_sdr_output_settings != nullptr) {
delete soapy_sdr_output_settings;
}
if(test_source_settings != nullptr) {
delete test_source_settings;
}
if(test_mi_settings != nullptr) {
delete test_mi_settings;
}
if(xtrx_input_settings != nullptr) {
delete xtrx_input_settings;
}
if(xtrx_output_settings != nullptr) {
delete xtrx_output_settings;
}
}
SWGDeviceSettings_2*
SWGDeviceSettings_2::fromJson(QString &json) {
QByteArray array (json.toStdString().c_str());
QJsonDocument doc = QJsonDocument::fromJson(array);
QJsonObject jsonObject = doc.object();
this->fromJsonObject(jsonObject);
return this;
}
void
SWGDeviceSettings_2::fromJsonObject(QJsonObject &pJson) {
::SWGSDRangel::setValue(&device_hw_type, pJson["deviceHwType"], "QString", "QString");
::SWGSDRangel::setValue(&direction, pJson["direction"], "qint32", "");
::SWGSDRangel::setValue(&originator_index, pJson["originatorIndex"], "qint32", "");
::SWGSDRangel::setValue(&airspy_settings, pJson["airspySettings"], "SWGAirspySettings", "SWGAirspySettings");
::SWGSDRangel::setValue(&airspy_hf_settings, pJson["airspyHFSettings"], "SWGAirspyHFSettings", "SWGAirspyHFSettings");
::SWGSDRangel::setValue(&blade_rf1_input_settings, pJson["bladeRF1InputSettings"], "SWGBladeRF1InputSettings", "SWGBladeRF1InputSettings");
::SWGSDRangel::setValue(&blade_rf2_input_settings, pJson["bladeRF2InputSettings"], "SWGBladeRF2InputSettings", "SWGBladeRF2InputSettings");
::SWGSDRangel::setValue(&blade_rf1_output_settings, pJson["bladeRF1OutputSettings"], "SWGBladeRF1OutputSettings", "SWGBladeRF1OutputSettings");
::SWGSDRangel::setValue(&blade_rf2_output_settings, pJson["bladeRF2OutputSettings"], "SWGBladeRF2OutputSettings", "SWGBladeRF2OutputSettings");
::SWGSDRangel::setValue(&fcd_pro_settings, pJson["fcdProSettings"], "SWGFCDProSettings", "SWGFCDProSettings");
::SWGSDRangel::setValue(&fcd_pro_plus_settings, pJson["fcdProPlusSettings"], "SWGFCDProPlusSettings", "SWGFCDProPlusSettings");
::SWGSDRangel::setValue(&file_input_settings, pJson["fileInputSettings"], "SWGFileInputSettings", "SWGFileInputSettings");
::SWGSDRangel::setValue(&hack_rf_input_settings, pJson["hackRFInputSettings"], "SWGHackRFInputSettings", "SWGHackRFInputSettings");
::SWGSDRangel::setValue(&hack_rf_output_settings, pJson["hackRFOutputSettings"], "SWGHackRFOutputSettings", "SWGHackRFOutputSettings");
::SWGSDRangel::setValue(&kiwi_sdr_settings, pJson["kiwiSDRSettings"], "SWGKiwiSDRSettings", "SWGKiwiSDRSettings");
::SWGSDRangel::setValue(&lime_sdr_input_settings, pJson["limeSdrInputSettings"], "SWGLimeSdrInputSettings", "SWGLimeSdrInputSettings");
::SWGSDRangel::setValue(&lime_sdr_output_settings, pJson["limeSdrOutputSettings"], "SWGLimeSdrOutputSettings", "SWGLimeSdrOutputSettings");
::SWGSDRangel::setValue(&local_input_settings, pJson["localInputSettings"], "SWGLocalInputSettings", "SWGLocalInputSettings");
::SWGSDRangel::setValue(&local_output_settings, pJson["localOutputSettings"], "SWGLocalOutputSettings", "SWGLocalOutputSettings");
::SWGSDRangel::setValue(&perseus_settings, pJson["perseusSettings"], "SWGPerseusSettings", "SWGPerseusSettings");
::SWGSDRangel::setValue(&pluto_sdr_input_settings, pJson["plutoSdrInputSettings"], "SWGPlutoSdrInputSettings", "SWGPlutoSdrInputSettings");
::SWGSDRangel::setValue(&pluto_sdr_output_settings, pJson["plutoSdrOutputSettings"], "SWGPlutoSdrOutputSettings", "SWGPlutoSdrOutputSettings");
::SWGSDRangel::setValue(&rtl_sdr_settings, pJson["rtlSdrSettings"], "SWGRtlSdrSettings", "SWGRtlSdrSettings");
::SWGSDRangel::setValue(&remote_output_settings, pJson["remoteOutputSettings"], "SWGRemoteOutputSettings", "SWGRemoteOutputSettings");
::SWGSDRangel::setValue(&remote_input_settings, pJson["remoteInputSettings"], "SWGRemoteInputSettings", "SWGRemoteInputSettings");
::SWGSDRangel::setValue(&sdr_play_settings, pJson["sdrPlaySettings"], "SWGSDRPlaySettings", "SWGSDRPlaySettings");
::SWGSDRangel::setValue(&soapy_sdr_input_settings, pJson["soapySDRInputSettings"], "SWGSoapySDRInputSettings", "SWGSoapySDRInputSettings");
::SWGSDRangel::setValue(&soapy_sdr_output_settings, pJson["soapySDROutputSettings"], "SWGSoapySDROutputSettings", "SWGSoapySDROutputSettings");
::SWGSDRangel::setValue(&test_source_settings, pJson["testSourceSettings"], "SWGTestSourceSettings", "SWGTestSourceSettings");
::SWGSDRangel::setValue(&test_mi_settings, pJson["testMISettings"], "SWGTestMISettings", "SWGTestMISettings");
::SWGSDRangel::setValue(&xtrx_input_settings, pJson["xtrxInputSettings"], "SWGXtrxInputSettings", "SWGXtrxInputSettings");
::SWGSDRangel::setValue(&xtrx_output_settings, pJson["xtrxOutputSettings"], "SWGXtrxOutputSettings", "SWGXtrxOutputSettings");
}
QString
SWGDeviceSettings_2::asJson ()
{
QJsonObject* obj = this->asJsonObject();
QJsonDocument doc(*obj);
QByteArray bytes = doc.toJson();
delete obj;
return QString(bytes);
}
QJsonObject*
SWGDeviceSettings_2::asJsonObject() {
QJsonObject* obj = new QJsonObject();
if(device_hw_type != nullptr && *device_hw_type != QString("")){
toJsonValue(QString("deviceHwType"), device_hw_type, obj, QString("QString"));
}
if(m_direction_isSet){
obj->insert("direction", QJsonValue(direction));
}
if(m_originator_index_isSet){
obj->insert("originatorIndex", QJsonValue(originator_index));
}
if((airspy_settings != nullptr) && (airspy_settings->isSet())){
toJsonValue(QString("airspySettings"), airspy_settings, obj, QString("SWGAirspySettings"));
}
if((airspy_hf_settings != nullptr) && (airspy_hf_settings->isSet())){
toJsonValue(QString("airspyHFSettings"), airspy_hf_settings, obj, QString("SWGAirspyHFSettings"));
}
if((blade_rf1_input_settings != nullptr) && (blade_rf1_input_settings->isSet())){
toJsonValue(QString("bladeRF1InputSettings"), blade_rf1_input_settings, obj, QString("SWGBladeRF1InputSettings"));
}
if((blade_rf2_input_settings != nullptr) && (blade_rf2_input_settings->isSet())){
toJsonValue(QString("bladeRF2InputSettings"), blade_rf2_input_settings, obj, QString("SWGBladeRF2InputSettings"));
}
if((blade_rf1_output_settings != nullptr) && (blade_rf1_output_settings->isSet())){
toJsonValue(QString("bladeRF1OutputSettings"), blade_rf1_output_settings, obj, QString("SWGBladeRF1OutputSettings"));
}
if((blade_rf2_output_settings != nullptr) && (blade_rf2_output_settings->isSet())){
toJsonValue(QString("bladeRF2OutputSettings"), blade_rf2_output_settings, obj, QString("SWGBladeRF2OutputSettings"));
}
if((fcd_pro_settings != nullptr) && (fcd_pro_settings->isSet())){
toJsonValue(QString("fcdProSettings"), fcd_pro_settings, obj, QString("SWGFCDProSettings"));
}
if((fcd_pro_plus_settings != nullptr) && (fcd_pro_plus_settings->isSet())){
toJsonValue(QString("fcdProPlusSettings"), fcd_pro_plus_settings, obj, QString("SWGFCDProPlusSettings"));
}
if((file_input_settings != nullptr) && (file_input_settings->isSet())){
toJsonValue(QString("fileInputSettings"), file_input_settings, obj, QString("SWGFileInputSettings"));
}
if((hack_rf_input_settings != nullptr) && (hack_rf_input_settings->isSet())){
toJsonValue(QString("hackRFInputSettings"), hack_rf_input_settings, obj, QString("SWGHackRFInputSettings"));
}
if((hack_rf_output_settings != nullptr) && (hack_rf_output_settings->isSet())){
toJsonValue(QString("hackRFOutputSettings"), hack_rf_output_settings, obj, QString("SWGHackRFOutputSettings"));
}
if((kiwi_sdr_settings != nullptr) && (kiwi_sdr_settings->isSet())){
toJsonValue(QString("kiwiSDRSettings"), kiwi_sdr_settings, obj, QString("SWGKiwiSDRSettings"));
}
if((lime_sdr_input_settings != nullptr) && (lime_sdr_input_settings->isSet())){
toJsonValue(QString("limeSdrInputSettings"), lime_sdr_input_settings, obj, QString("SWGLimeSdrInputSettings"));
}
if((lime_sdr_output_settings != nullptr) && (lime_sdr_output_settings->isSet())){
toJsonValue(QString("limeSdrOutputSettings"), lime_sdr_output_settings, obj, QString("SWGLimeSdrOutputSettings"));
}
if((local_input_settings != nullptr) && (local_input_settings->isSet())){
toJsonValue(QString("localInputSettings"), local_input_settings, obj, QString("SWGLocalInputSettings"));
}
if((local_output_settings != nullptr) && (local_output_settings->isSet())){
toJsonValue(QString("localOutputSettings"), local_output_settings, obj, QString("SWGLocalOutputSettings"));
}
if((perseus_settings != nullptr) && (perseus_settings->isSet())){
toJsonValue(QString("perseusSettings"), perseus_settings, obj, QString("SWGPerseusSettings"));
}
if((pluto_sdr_input_settings != nullptr) && (pluto_sdr_input_settings->isSet())){
toJsonValue(QString("plutoSdrInputSettings"), pluto_sdr_input_settings, obj, QString("SWGPlutoSdrInputSettings"));
}
if((pluto_sdr_output_settings != nullptr) && (pluto_sdr_output_settings->isSet())){
toJsonValue(QString("plutoSdrOutputSettings"), pluto_sdr_output_settings, obj, QString("SWGPlutoSdrOutputSettings"));
}
if((rtl_sdr_settings != nullptr) && (rtl_sdr_settings->isSet())){
toJsonValue(QString("rtlSdrSettings"), rtl_sdr_settings, obj, QString("SWGRtlSdrSettings"));
}
if((remote_output_settings != nullptr) && (remote_output_settings->isSet())){
toJsonValue(QString("remoteOutputSettings"), remote_output_settings, obj, QString("SWGRemoteOutputSettings"));
}
if((remote_input_settings != nullptr) && (remote_input_settings->isSet())){
toJsonValue(QString("remoteInputSettings"), remote_input_settings, obj, QString("SWGRemoteInputSettings"));
}
if((sdr_play_settings != nullptr) && (sdr_play_settings->isSet())){
toJsonValue(QString("sdrPlaySettings"), sdr_play_settings, obj, QString("SWGSDRPlaySettings"));
}
if((soapy_sdr_input_settings != nullptr) && (soapy_sdr_input_settings->isSet())){
toJsonValue(QString("soapySDRInputSettings"), soapy_sdr_input_settings, obj, QString("SWGSoapySDRInputSettings"));
}
if((soapy_sdr_output_settings != nullptr) && (soapy_sdr_output_settings->isSet())){
toJsonValue(QString("soapySDROutputSettings"), soapy_sdr_output_settings, obj, QString("SWGSoapySDROutputSettings"));
}
if((test_source_settings != nullptr) && (test_source_settings->isSet())){
toJsonValue(QString("testSourceSettings"), test_source_settings, obj, QString("SWGTestSourceSettings"));
}
if((test_mi_settings != nullptr) && (test_mi_settings->isSet())){
toJsonValue(QString("testMISettings"), test_mi_settings, obj, QString("SWGTestMISettings"));
}
if((xtrx_input_settings != nullptr) && (xtrx_input_settings->isSet())){
toJsonValue(QString("xtrxInputSettings"), xtrx_input_settings, obj, QString("SWGXtrxInputSettings"));
}
if((xtrx_output_settings != nullptr) && (xtrx_output_settings->isSet())){
toJsonValue(QString("xtrxOutputSettings"), xtrx_output_settings, obj, QString("SWGXtrxOutputSettings"));
}
return obj;
}
QString*
SWGDeviceSettings_2::getDeviceHwType() {
return device_hw_type;
}
void
SWGDeviceSettings_2::setDeviceHwType(QString* device_hw_type) {
this->device_hw_type = device_hw_type;
this->m_device_hw_type_isSet = true;
}
qint32
SWGDeviceSettings_2::getDirection() {
return direction;
}
void
SWGDeviceSettings_2::setDirection(qint32 direction) {
this->direction = direction;
this->m_direction_isSet = true;
}
qint32
SWGDeviceSettings_2::getOriginatorIndex() {
return originator_index;
}
void
SWGDeviceSettings_2::setOriginatorIndex(qint32 originator_index) {
this->originator_index = originator_index;
this->m_originator_index_isSet = true;
}
SWGAirspySettings*
SWGDeviceSettings_2::getAirspySettings() {
return airspy_settings;
}
void
SWGDeviceSettings_2::setAirspySettings(SWGAirspySettings* airspy_settings) {
this->airspy_settings = airspy_settings;
this->m_airspy_settings_isSet = true;
}
SWGAirspyHFSettings*
SWGDeviceSettings_2::getAirspyHfSettings() {
return airspy_hf_settings;
}
void
SWGDeviceSettings_2::setAirspyHfSettings(SWGAirspyHFSettings* airspy_hf_settings) {
this->airspy_hf_settings = airspy_hf_settings;
this->m_airspy_hf_settings_isSet = true;
}
SWGBladeRF1InputSettings*
SWGDeviceSettings_2::getBladeRf1InputSettings() {
return blade_rf1_input_settings;
}
void
SWGDeviceSettings_2::setBladeRf1InputSettings(SWGBladeRF1InputSettings* blade_rf1_input_settings) {
this->blade_rf1_input_settings = blade_rf1_input_settings;
this->m_blade_rf1_input_settings_isSet = true;
}
SWGBladeRF2InputSettings*
SWGDeviceSettings_2::getBladeRf2InputSettings() {
return blade_rf2_input_settings;
}
void
SWGDeviceSettings_2::setBladeRf2InputSettings(SWGBladeRF2InputSettings* blade_rf2_input_settings) {
this->blade_rf2_input_settings = blade_rf2_input_settings;
this->m_blade_rf2_input_settings_isSet = true;
}
SWGBladeRF1OutputSettings*
SWGDeviceSettings_2::getBladeRf1OutputSettings() {
return blade_rf1_output_settings;
}
void
SWGDeviceSettings_2::setBladeRf1OutputSettings(SWGBladeRF1OutputSettings* blade_rf1_output_settings) {
this->blade_rf1_output_settings = blade_rf1_output_settings;
this->m_blade_rf1_output_settings_isSet = true;
}
SWGBladeRF2OutputSettings*
SWGDeviceSettings_2::getBladeRf2OutputSettings() {
return blade_rf2_output_settings;
}
void
SWGDeviceSettings_2::setBladeRf2OutputSettings(SWGBladeRF2OutputSettings* blade_rf2_output_settings) {
this->blade_rf2_output_settings = blade_rf2_output_settings;
this->m_blade_rf2_output_settings_isSet = true;
}
SWGFCDProSettings*
SWGDeviceSettings_2::getFcdProSettings() {
return fcd_pro_settings;
}
void
SWGDeviceSettings_2::setFcdProSettings(SWGFCDProSettings* fcd_pro_settings) {
this->fcd_pro_settings = fcd_pro_settings;
this->m_fcd_pro_settings_isSet = true;
}
SWGFCDProPlusSettings*
SWGDeviceSettings_2::getFcdProPlusSettings() {
return fcd_pro_plus_settings;
}
void
SWGDeviceSettings_2::setFcdProPlusSettings(SWGFCDProPlusSettings* fcd_pro_plus_settings) {
this->fcd_pro_plus_settings = fcd_pro_plus_settings;
this->m_fcd_pro_plus_settings_isSet = true;
}
SWGFileInputSettings*
SWGDeviceSettings_2::getFileInputSettings() {
return file_input_settings;
}
void
SWGDeviceSettings_2::setFileInputSettings(SWGFileInputSettings* file_input_settings) {
this->file_input_settings = file_input_settings;
this->m_file_input_settings_isSet = true;
}
SWGHackRFInputSettings*
SWGDeviceSettings_2::getHackRfInputSettings() {
return hack_rf_input_settings;
}
void
SWGDeviceSettings_2::setHackRfInputSettings(SWGHackRFInputSettings* hack_rf_input_settings) {
this->hack_rf_input_settings = hack_rf_input_settings;
this->m_hack_rf_input_settings_isSet = true;
}
SWGHackRFOutputSettings*
SWGDeviceSettings_2::getHackRfOutputSettings() {
return hack_rf_output_settings;
}
void
SWGDeviceSettings_2::setHackRfOutputSettings(SWGHackRFOutputSettings* hack_rf_output_settings) {
this->hack_rf_output_settings = hack_rf_output_settings;
this->m_hack_rf_output_settings_isSet = true;
}
SWGKiwiSDRSettings*
SWGDeviceSettings_2::getKiwiSdrSettings() {
return kiwi_sdr_settings;
}
void
SWGDeviceSettings_2::setKiwiSdrSettings(SWGKiwiSDRSettings* kiwi_sdr_settings) {
this->kiwi_sdr_settings = kiwi_sdr_settings;
this->m_kiwi_sdr_settings_isSet = true;
}
SWGLimeSdrInputSettings*
SWGDeviceSettings_2::getLimeSdrInputSettings() {
return lime_sdr_input_settings;
}
void
SWGDeviceSettings_2::setLimeSdrInputSettings(SWGLimeSdrInputSettings* lime_sdr_input_settings) {
this->lime_sdr_input_settings = lime_sdr_input_settings;
this->m_lime_sdr_input_settings_isSet = true;
}
SWGLimeSdrOutputSettings*
SWGDeviceSettings_2::getLimeSdrOutputSettings() {
return lime_sdr_output_settings;
}
void
SWGDeviceSettings_2::setLimeSdrOutputSettings(SWGLimeSdrOutputSettings* lime_sdr_output_settings) {
this->lime_sdr_output_settings = lime_sdr_output_settings;
this->m_lime_sdr_output_settings_isSet = true;
}
SWGLocalInputSettings*
SWGDeviceSettings_2::getLocalInputSettings() {
return local_input_settings;
}
void
SWGDeviceSettings_2::setLocalInputSettings(SWGLocalInputSettings* local_input_settings) {
this->local_input_settings = local_input_settings;
this->m_local_input_settings_isSet = true;
}
SWGLocalOutputSettings*
SWGDeviceSettings_2::getLocalOutputSettings() {
return local_output_settings;
}
void
SWGDeviceSettings_2::setLocalOutputSettings(SWGLocalOutputSettings* local_output_settings) {
this->local_output_settings = local_output_settings;
this->m_local_output_settings_isSet = true;
}
SWGPerseusSettings*
SWGDeviceSettings_2::getPerseusSettings() {
return perseus_settings;
}
void
SWGDeviceSettings_2::setPerseusSettings(SWGPerseusSettings* perseus_settings) {
this->perseus_settings = perseus_settings;
this->m_perseus_settings_isSet = true;
}
SWGPlutoSdrInputSettings*
SWGDeviceSettings_2::getPlutoSdrInputSettings() {
return pluto_sdr_input_settings;
}
void
SWGDeviceSettings_2::setPlutoSdrInputSettings(SWGPlutoSdrInputSettings* pluto_sdr_input_settings) {
this->pluto_sdr_input_settings = pluto_sdr_input_settings;
this->m_pluto_sdr_input_settings_isSet = true;
}
SWGPlutoSdrOutputSettings*
SWGDeviceSettings_2::getPlutoSdrOutputSettings() {
return pluto_sdr_output_settings;
}
void
SWGDeviceSettings_2::setPlutoSdrOutputSettings(SWGPlutoSdrOutputSettings* pluto_sdr_output_settings) {
this->pluto_sdr_output_settings = pluto_sdr_output_settings;
this->m_pluto_sdr_output_settings_isSet = true;
}
SWGRtlSdrSettings*
SWGDeviceSettings_2::getRtlSdrSettings() {
return rtl_sdr_settings;
}
void
SWGDeviceSettings_2::setRtlSdrSettings(SWGRtlSdrSettings* rtl_sdr_settings) {
this->rtl_sdr_settings = rtl_sdr_settings;
this->m_rtl_sdr_settings_isSet = true;
}
SWGRemoteOutputSettings*
SWGDeviceSettings_2::getRemoteOutputSettings() {
return remote_output_settings;
}
void
SWGDeviceSettings_2::setRemoteOutputSettings(SWGRemoteOutputSettings* remote_output_settings) {
this->remote_output_settings = remote_output_settings;
this->m_remote_output_settings_isSet = true;
}
SWGRemoteInputSettings*
SWGDeviceSettings_2::getRemoteInputSettings() {
return remote_input_settings;
}
void
SWGDeviceSettings_2::setRemoteInputSettings(SWGRemoteInputSettings* remote_input_settings) {
this->remote_input_settings = remote_input_settings;
this->m_remote_input_settings_isSet = true;
}
SWGSDRPlaySettings*
SWGDeviceSettings_2::getSdrPlaySettings() {
return sdr_play_settings;
}
void
SWGDeviceSettings_2::setSdrPlaySettings(SWGSDRPlaySettings* sdr_play_settings) {
this->sdr_play_settings = sdr_play_settings;
this->m_sdr_play_settings_isSet = true;
}
SWGSoapySDRInputSettings*
SWGDeviceSettings_2::getSoapySdrInputSettings() {
return soapy_sdr_input_settings;
}
void
SWGDeviceSettings_2::setSoapySdrInputSettings(SWGSoapySDRInputSettings* soapy_sdr_input_settings) {
this->soapy_sdr_input_settings = soapy_sdr_input_settings;
this->m_soapy_sdr_input_settings_isSet = true;
}
SWGSoapySDROutputSettings*
SWGDeviceSettings_2::getSoapySdrOutputSettings() {
return soapy_sdr_output_settings;
}
void
SWGDeviceSettings_2::setSoapySdrOutputSettings(SWGSoapySDROutputSettings* soapy_sdr_output_settings) {
this->soapy_sdr_output_settings = soapy_sdr_output_settings;
this->m_soapy_sdr_output_settings_isSet = true;
}
SWGTestSourceSettings*
SWGDeviceSettings_2::getTestSourceSettings() {
return test_source_settings;
}
void
SWGDeviceSettings_2::setTestSourceSettings(SWGTestSourceSettings* test_source_settings) {
this->test_source_settings = test_source_settings;
this->m_test_source_settings_isSet = true;
}
SWGTestMISettings*
SWGDeviceSettings_2::getTestMiSettings() {
return test_mi_settings;
}
void
SWGDeviceSettings_2::setTestMiSettings(SWGTestMISettings* test_mi_settings) {
this->test_mi_settings = test_mi_settings;
this->m_test_mi_settings_isSet = true;
}
SWGXtrxInputSettings*
SWGDeviceSettings_2::getXtrxInputSettings() {
return xtrx_input_settings;
}
void
SWGDeviceSettings_2::setXtrxInputSettings(SWGXtrxInputSettings* xtrx_input_settings) {
this->xtrx_input_settings = xtrx_input_settings;
this->m_xtrx_input_settings_isSet = true;
}
SWGXtrxOutputSettings*
SWGDeviceSettings_2::getXtrxOutputSettings() {
return xtrx_output_settings;
}
void
SWGDeviceSettings_2::setXtrxOutputSettings(SWGXtrxOutputSettings* xtrx_output_settings) {
this->xtrx_output_settings = xtrx_output_settings;
this->m_xtrx_output_settings_isSet = true;
}
bool
SWGDeviceSettings_2::isSet(){
bool isObjectUpdated = false;
do{
if(device_hw_type != nullptr && *device_hw_type != QString("")){ isObjectUpdated = true; break;}
if(m_direction_isSet){ isObjectUpdated = true; break;}
if(m_originator_index_isSet){ isObjectUpdated = true; break;}
if(airspy_settings != nullptr && airspy_settings->isSet()){ isObjectUpdated = true; break;}
if(airspy_hf_settings != nullptr && airspy_hf_settings->isSet()){ isObjectUpdated = true; break;}
if(blade_rf1_input_settings != nullptr && blade_rf1_input_settings->isSet()){ isObjectUpdated = true; break;}
if(blade_rf2_input_settings != nullptr && blade_rf2_input_settings->isSet()){ isObjectUpdated = true; break;}
if(blade_rf1_output_settings != nullptr && blade_rf1_output_settings->isSet()){ isObjectUpdated = true; break;}
if(blade_rf2_output_settings != nullptr && blade_rf2_output_settings->isSet()){ isObjectUpdated = true; break;}
if(fcd_pro_settings != nullptr && fcd_pro_settings->isSet()){ isObjectUpdated = true; break;}
if(fcd_pro_plus_settings != nullptr && fcd_pro_plus_settings->isSet()){ isObjectUpdated = true; break;}
if(file_input_settings != nullptr && file_input_settings->isSet()){ isObjectUpdated = true; break;}
if(hack_rf_input_settings != nullptr && hack_rf_input_settings->isSet()){ isObjectUpdated = true; break;}
if(hack_rf_output_settings != nullptr && hack_rf_output_settings->isSet()){ isObjectUpdated = true; break;}
if(kiwi_sdr_settings != nullptr && kiwi_sdr_settings->isSet()){ isObjectUpdated = true; break;}
if(lime_sdr_input_settings != nullptr && lime_sdr_input_settings->isSet()){ isObjectUpdated = true; break;}
if(lime_sdr_output_settings != nullptr && lime_sdr_output_settings->isSet()){ isObjectUpdated = true; break;}
if(local_input_settings != nullptr && local_input_settings->isSet()){ isObjectUpdated = true; break;}
if(local_output_settings != nullptr && local_output_settings->isSet()){ isObjectUpdated = true; break;}
if(perseus_settings != nullptr && perseus_settings->isSet()){ isObjectUpdated = true; break;}
if(pluto_sdr_input_settings != nullptr && pluto_sdr_input_settings->isSet()){ isObjectUpdated = true; break;}
if(pluto_sdr_output_settings != nullptr && pluto_sdr_output_settings->isSet()){ isObjectUpdated = true; break;}
if(rtl_sdr_settings != nullptr && rtl_sdr_settings->isSet()){ isObjectUpdated = true; break;}
if(remote_output_settings != nullptr && remote_output_settings->isSet()){ isObjectUpdated = true; break;}
if(remote_input_settings != nullptr && remote_input_settings->isSet()){ isObjectUpdated = true; break;}
if(sdr_play_settings != nullptr && sdr_play_settings->isSet()){ isObjectUpdated = true; break;}
if(soapy_sdr_input_settings != nullptr && soapy_sdr_input_settings->isSet()){ isObjectUpdated = true; break;}
if(soapy_sdr_output_settings != nullptr && soapy_sdr_output_settings->isSet()){ isObjectUpdated = true; break;}
if(test_source_settings != nullptr && test_source_settings->isSet()){ isObjectUpdated = true; break;}
if(test_mi_settings != nullptr && test_mi_settings->isSet()){ isObjectUpdated = true; break;}
if(xtrx_input_settings != nullptr && xtrx_input_settings->isSet()){ isObjectUpdated = true; break;}
if(xtrx_output_settings != nullptr && xtrx_output_settings->isSet()){ isObjectUpdated = true; break;}
}while(false);
return isObjectUpdated;
}
}

View File

@ -1,274 +0,0 @@
/**
* SDRangel
* 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 ---
*
* OpenAPI spec version: 4.11.3
* 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.
*/
/*
* SWGDeviceSettings_2.h
*
* Base device settings. Only the device settings corresponding to the device specified in the deviceHwType field is or should be present.
*/
#ifndef SWGDeviceSettings_2_H_
#define SWGDeviceSettings_2_H_
#include <QJsonObject>
#include "SWGAirspyHFSettings.h"
#include "SWGAirspySettings.h"
#include "SWGBladeRF1InputSettings.h"
#include "SWGBladeRF1OutputSettings.h"
#include "SWGBladeRF2InputSettings.h"
#include "SWGBladeRF2OutputSettings.h"
#include "SWGFCDProPlusSettings.h"
#include "SWGFCDProSettings.h"
#include "SWGFileInputSettings.h"
#include "SWGHackRFInputSettings.h"
#include "SWGHackRFOutputSettings.h"
#include "SWGKiwiSDRSettings.h"
#include "SWGLimeSdrInputSettings.h"
#include "SWGLimeSdrOutputSettings.h"
#include "SWGLocalInputSettings.h"
#include "SWGLocalOutputSettings.h"
#include "SWGPerseusSettings.h"
#include "SWGPlutoSdrInputSettings.h"
#include "SWGPlutoSdrOutputSettings.h"
#include "SWGRemoteInputSettings.h"
#include "SWGRemoteOutputSettings.h"
#include "SWGRtlSdrSettings.h"
#include "SWGSDRPlaySettings.h"
#include "SWGSoapySDRInputSettings.h"
#include "SWGSoapySDROutputSettings.h"
#include "SWGTestMISettings.h"
#include "SWGTestSourceSettings.h"
#include "SWGXtrxInputSettings.h"
#include "SWGXtrxOutputSettings.h"
#include <QString>
#include "SWGObject.h"
#include "export.h"
namespace SWGSDRangel {
class SWG_API SWGDeviceSettings_2: public SWGObject {
public:
SWGDeviceSettings_2();
SWGDeviceSettings_2(QString* json);
virtual ~SWGDeviceSettings_2();
void init();
void cleanup();
virtual QString asJson () override;
virtual QJsonObject* asJsonObject() override;
virtual void fromJsonObject(QJsonObject &json) override;
virtual SWGDeviceSettings_2* fromJson(QString &jsonString) override;
QString* getDeviceHwType();
void setDeviceHwType(QString* device_hw_type);
qint32 getDirection();
void setDirection(qint32 direction);
qint32 getOriginatorIndex();
void setOriginatorIndex(qint32 originator_index);
SWGAirspySettings* getAirspySettings();
void setAirspySettings(SWGAirspySettings* airspy_settings);
SWGAirspyHFSettings* getAirspyHfSettings();
void setAirspyHfSettings(SWGAirspyHFSettings* airspy_hf_settings);
SWGBladeRF1InputSettings* getBladeRf1InputSettings();
void setBladeRf1InputSettings(SWGBladeRF1InputSettings* blade_rf1_input_settings);
SWGBladeRF2InputSettings* getBladeRf2InputSettings();
void setBladeRf2InputSettings(SWGBladeRF2InputSettings* blade_rf2_input_settings);
SWGBladeRF1OutputSettings* getBladeRf1OutputSettings();
void setBladeRf1OutputSettings(SWGBladeRF1OutputSettings* blade_rf1_output_settings);
SWGBladeRF2OutputSettings* getBladeRf2OutputSettings();
void setBladeRf2OutputSettings(SWGBladeRF2OutputSettings* blade_rf2_output_settings);
SWGFCDProSettings* getFcdProSettings();
void setFcdProSettings(SWGFCDProSettings* fcd_pro_settings);
SWGFCDProPlusSettings* getFcdProPlusSettings();
void setFcdProPlusSettings(SWGFCDProPlusSettings* fcd_pro_plus_settings);
SWGFileInputSettings* getFileInputSettings();
void setFileInputSettings(SWGFileInputSettings* file_input_settings);
SWGHackRFInputSettings* getHackRfInputSettings();
void setHackRfInputSettings(SWGHackRFInputSettings* hack_rf_input_settings);
SWGHackRFOutputSettings* getHackRfOutputSettings();
void setHackRfOutputSettings(SWGHackRFOutputSettings* hack_rf_output_settings);
SWGKiwiSDRSettings* getKiwiSdrSettings();
void setKiwiSdrSettings(SWGKiwiSDRSettings* kiwi_sdr_settings);
SWGLimeSdrInputSettings* getLimeSdrInputSettings();
void setLimeSdrInputSettings(SWGLimeSdrInputSettings* lime_sdr_input_settings);
SWGLimeSdrOutputSettings* getLimeSdrOutputSettings();
void setLimeSdrOutputSettings(SWGLimeSdrOutputSettings* lime_sdr_output_settings);
SWGLocalInputSettings* getLocalInputSettings();
void setLocalInputSettings(SWGLocalInputSettings* local_input_settings);
SWGLocalOutputSettings* getLocalOutputSettings();
void setLocalOutputSettings(SWGLocalOutputSettings* local_output_settings);
SWGPerseusSettings* getPerseusSettings();
void setPerseusSettings(SWGPerseusSettings* perseus_settings);
SWGPlutoSdrInputSettings* getPlutoSdrInputSettings();
void setPlutoSdrInputSettings(SWGPlutoSdrInputSettings* pluto_sdr_input_settings);
SWGPlutoSdrOutputSettings* getPlutoSdrOutputSettings();
void setPlutoSdrOutputSettings(SWGPlutoSdrOutputSettings* pluto_sdr_output_settings);
SWGRtlSdrSettings* getRtlSdrSettings();
void setRtlSdrSettings(SWGRtlSdrSettings* rtl_sdr_settings);
SWGRemoteOutputSettings* getRemoteOutputSettings();
void setRemoteOutputSettings(SWGRemoteOutputSettings* remote_output_settings);
SWGRemoteInputSettings* getRemoteInputSettings();
void setRemoteInputSettings(SWGRemoteInputSettings* remote_input_settings);
SWGSDRPlaySettings* getSdrPlaySettings();
void setSdrPlaySettings(SWGSDRPlaySettings* sdr_play_settings);
SWGSoapySDRInputSettings* getSoapySdrInputSettings();
void setSoapySdrInputSettings(SWGSoapySDRInputSettings* soapy_sdr_input_settings);
SWGSoapySDROutputSettings* getSoapySdrOutputSettings();
void setSoapySdrOutputSettings(SWGSoapySDROutputSettings* soapy_sdr_output_settings);
SWGTestSourceSettings* getTestSourceSettings();
void setTestSourceSettings(SWGTestSourceSettings* test_source_settings);
SWGTestMISettings* getTestMiSettings();
void setTestMiSettings(SWGTestMISettings* test_mi_settings);
SWGXtrxInputSettings* getXtrxInputSettings();
void setXtrxInputSettings(SWGXtrxInputSettings* xtrx_input_settings);
SWGXtrxOutputSettings* getXtrxOutputSettings();
void setXtrxOutputSettings(SWGXtrxOutputSettings* xtrx_output_settings);
virtual bool isSet() override;
private:
QString* device_hw_type;
bool m_device_hw_type_isSet;
qint32 direction;
bool m_direction_isSet;
qint32 originator_index;
bool m_originator_index_isSet;
SWGAirspySettings* airspy_settings;
bool m_airspy_settings_isSet;
SWGAirspyHFSettings* airspy_hf_settings;
bool m_airspy_hf_settings_isSet;
SWGBladeRF1InputSettings* blade_rf1_input_settings;
bool m_blade_rf1_input_settings_isSet;
SWGBladeRF2InputSettings* blade_rf2_input_settings;
bool m_blade_rf2_input_settings_isSet;
SWGBladeRF1OutputSettings* blade_rf1_output_settings;
bool m_blade_rf1_output_settings_isSet;
SWGBladeRF2OutputSettings* blade_rf2_output_settings;
bool m_blade_rf2_output_settings_isSet;
SWGFCDProSettings* fcd_pro_settings;
bool m_fcd_pro_settings_isSet;
SWGFCDProPlusSettings* fcd_pro_plus_settings;
bool m_fcd_pro_plus_settings_isSet;
SWGFileInputSettings* file_input_settings;
bool m_file_input_settings_isSet;
SWGHackRFInputSettings* hack_rf_input_settings;
bool m_hack_rf_input_settings_isSet;
SWGHackRFOutputSettings* hack_rf_output_settings;
bool m_hack_rf_output_settings_isSet;
SWGKiwiSDRSettings* kiwi_sdr_settings;
bool m_kiwi_sdr_settings_isSet;
SWGLimeSdrInputSettings* lime_sdr_input_settings;
bool m_lime_sdr_input_settings_isSet;
SWGLimeSdrOutputSettings* lime_sdr_output_settings;
bool m_lime_sdr_output_settings_isSet;
SWGLocalInputSettings* local_input_settings;
bool m_local_input_settings_isSet;
SWGLocalOutputSettings* local_output_settings;
bool m_local_output_settings_isSet;
SWGPerseusSettings* perseus_settings;
bool m_perseus_settings_isSet;
SWGPlutoSdrInputSettings* pluto_sdr_input_settings;
bool m_pluto_sdr_input_settings_isSet;
SWGPlutoSdrOutputSettings* pluto_sdr_output_settings;
bool m_pluto_sdr_output_settings_isSet;
SWGRtlSdrSettings* rtl_sdr_settings;
bool m_rtl_sdr_settings_isSet;
SWGRemoteOutputSettings* remote_output_settings;
bool m_remote_output_settings_isSet;
SWGRemoteInputSettings* remote_input_settings;
bool m_remote_input_settings_isSet;
SWGSDRPlaySettings* sdr_play_settings;
bool m_sdr_play_settings_isSet;
SWGSoapySDRInputSettings* soapy_sdr_input_settings;
bool m_soapy_sdr_input_settings_isSet;
SWGSoapySDROutputSettings* soapy_sdr_output_settings;
bool m_soapy_sdr_output_settings_isSet;
SWGTestSourceSettings* test_source_settings;
bool m_test_source_settings_isSet;
SWGTestMISettings* test_mi_settings;
bool m_test_mi_settings_isSet;
SWGXtrxInputSettings* xtrx_input_settings;
bool m_xtrx_input_settings_isSet;
SWGXtrxOutputSettings* xtrx_output_settings;
bool m_xtrx_output_settings_isSet;
};
}
#endif /* SWGDeviceSettings_2_H_ */