@ -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.5 .0
* OpenAPI spec version : 4.5 .2
* Contact : f4exb06 @ gmail . com
*
* NOTE : This class is auto generated by the swagger code generator program .
@ -32,6 +32,10 @@ SWGChannelSettings::SWGChannelSettings() {
@@ -32,6 +32,10 @@ SWGChannelSettings::SWGChannelSettings() {
m_channel_type_isSet = false ;
tx = 0 ;
m_tx_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 ;
@ -78,6 +82,10 @@ SWGChannelSettings::init() {
@@ -78,6 +82,10 @@ SWGChannelSettings::init() {
m_channel_type_isSet = false ;
tx = 0 ;
m_tx_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 ( ) ;
@ -120,6 +128,8 @@ SWGChannelSettings::cleanup() {
@@ -120,6 +128,8 @@ SWGChannelSettings::cleanup() {
delete channel_type ;
}
if ( am_demod_settings ! = nullptr ) {
delete am_demod_settings ;
}
@ -188,6 +198,10 @@ SWGChannelSettings::fromJsonObject(QJsonObject &pJson) {
@@ -188,6 +198,10 @@ SWGChannelSettings::fromJsonObject(QJsonObject &pJson) {
: : SWGSDRangel : : setValue ( & tx , pJson [ " tx " ] , " 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 " ) ;
@ -244,6 +258,12 @@ SWGChannelSettings::asJsonObject() {
@@ -244,6 +258,12 @@ SWGChannelSettings::asJsonObject() {
if ( m_tx_isSet ) {
obj - > insert ( " tx " , QJsonValue ( tx ) ) ;
}
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 " ) ) ;
}
@ -319,6 +339,26 @@ SWGChannelSettings::setTx(qint32 tx) {
@@ -319,6 +339,26 @@ SWGChannelSettings::setTx(qint32 tx) {
this - > m_tx_isSet = true ;
}
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 ;
}
SWGAMDemodSettings *
SWGChannelSettings : : getAmDemodSettings ( ) {
return am_demod_settings ;
@ -496,6 +536,8 @@ SWGChannelSettings::isSet(){
@@ -496,6 +536,8 @@ SWGChannelSettings::isSet(){
do {
if ( channel_type ! = nullptr & & * channel_type ! = QString ( " " ) ) { isObjectUpdated = true ; break ; }
if ( m_tx_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 ; }