@ -2,7 +2,7 @@
@@ -2,7 +2,7 @@
* 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.7 .1
* OpenAPI spec version : 4.8 .0
* Contact : f4exb06 @ gmail . com
*
* NOTE : This class is auto generated by the swagger code generator program .
@ -58,6 +58,8 @@ SWGChannelSettings::SWGChannelSettings() {
@@ -58,6 +58,8 @@ SWGChannelSettings::SWGChannelSettings() {
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 ;
@ -112,6 +114,8 @@ SWGChannelSettings::init() {
@@ -112,6 +114,8 @@ SWGChannelSettings::init() {
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 ( ) ;
@ -171,6 +175,9 @@ SWGChannelSettings::cleanup() {
@@ -171,6 +175,9 @@ SWGChannelSettings::cleanup() {
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 ;
}
@ -238,6 +245,8 @@ SWGChannelSettings::fromJsonObject(QJsonObject &pJson) {
@@ -238,6 +245,8 @@ SWGChannelSettings::fromJsonObject(QJsonObject &pJson) {
: : 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 " ) ;
@ -315,6 +324,9 @@ SWGChannelSettings::asJsonObject() {
@@ -315,6 +324,9 @@ SWGChannelSettings::asJsonObject() {
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 " ) ) ;
}
@ -493,6 +505,16 @@ SWGChannelSettings::setLocalSinkSettings(SWGLocalSinkSettings* local_sink_settin
@@ -493,6 +505,16 @@ SWGChannelSettings::setLocalSinkSettings(SWGLocalSinkSettings* local_sink_settin
this - > m_local_sink_settings_isSet = true ;
}
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 ;
}
SWGRemoteSinkSettings *
SWGChannelSettings : : getRemoteSinkSettings ( ) {
return remote_sink_settings ;
@ -593,6 +615,7 @@ SWGChannelSettings::isSet(){
@@ -593,6 +615,7 @@ SWGChannelSettings::isSet(){
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 ; }