@ -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.4 .3
* OpenAPI spec version : 4.4 .4
* Contact : f4exb06 @ gmail . com
*
* NOTE : This class is auto generated by the swagger code generator program .
@ -44,6 +44,10 @@ SWGAudioOutputDevice::SWGAudioOutputDevice() {
@@ -44,6 +44,10 @@ SWGAudioOutputDevice::SWGAudioOutputDevice() {
m_udp_uses_rtp_isSet = false ;
udp_channel_mode = 0 ;
m_udp_channel_mode_isSet = false ;
udp_channel_codec = 0 ;
m_udp_channel_codec_isSet = false ;
udp_decimation_factor = 0 ;
m_udp_decimation_factor_isSet = false ;
udp_address = nullptr ;
m_udp_address_isSet = false ;
udp_port = 0 ;
@ -72,6 +76,10 @@ SWGAudioOutputDevice::init() {
@@ -72,6 +76,10 @@ SWGAudioOutputDevice::init() {
m_udp_uses_rtp_isSet = false ;
udp_channel_mode = 0 ;
m_udp_channel_mode_isSet = false ;
udp_channel_codec = 0 ;
m_udp_channel_codec_isSet = false ;
udp_decimation_factor = 0 ;
m_udp_decimation_factor_isSet = false ;
udp_address = new QString ( " " ) ;
m_udp_address_isSet = false ;
udp_port = 0 ;
@ -90,6 +98,8 @@ SWGAudioOutputDevice::cleanup() {
@@ -90,6 +98,8 @@ SWGAudioOutputDevice::cleanup() {
if ( udp_address ! = nullptr ) {
delete udp_address ;
}
@ -123,6 +133,10 @@ SWGAudioOutputDevice::fromJsonObject(QJsonObject &pJson) {
@@ -123,6 +133,10 @@ SWGAudioOutputDevice::fromJsonObject(QJsonObject &pJson) {
: : SWGSDRangel : : setValue ( & udp_channel_mode , pJson [ " udpChannelMode " ] , " qint32 " , " " ) ;
: : SWGSDRangel : : setValue ( & udp_channel_codec , pJson [ " udpChannelCodec " ] , " qint32 " , " " ) ;
: : SWGSDRangel : : setValue ( & udp_decimation_factor , pJson [ " udpDecimationFactor " ] , " qint32 " , " " ) ;
: : SWGSDRangel : : setValue ( & udp_address , pJson [ " udpAddress " ] , " QString " , " QString " ) ;
: : SWGSDRangel : : setValue ( & udp_port , pJson [ " udpPort " ] , " qint32 " , " " ) ;
@ -167,6 +181,12 @@ SWGAudioOutputDevice::asJsonObject() {
@@ -167,6 +181,12 @@ SWGAudioOutputDevice::asJsonObject() {
if ( m_udp_channel_mode_isSet ) {
obj - > insert ( " udpChannelMode " , QJsonValue ( udp_channel_mode ) ) ;
}
if ( m_udp_channel_codec_isSet ) {
obj - > insert ( " udpChannelCodec " , QJsonValue ( udp_channel_codec ) ) ;
}
if ( m_udp_decimation_factor_isSet ) {
obj - > insert ( " udpDecimationFactor " , QJsonValue ( udp_decimation_factor ) ) ;
}
if ( udp_address ! = nullptr & & * udp_address ! = QString ( " " ) ) {
toJsonValue ( QString ( " udpAddress " ) , udp_address , obj , QString ( " QString " ) ) ;
}
@ -257,6 +277,26 @@ SWGAudioOutputDevice::setUdpChannelMode(qint32 udp_channel_mode) {
@@ -257,6 +277,26 @@ SWGAudioOutputDevice::setUdpChannelMode(qint32 udp_channel_mode) {
this - > m_udp_channel_mode_isSet = true ;
}
qint32
SWGAudioOutputDevice : : getUdpChannelCodec ( ) {
return udp_channel_codec ;
}
void
SWGAudioOutputDevice : : setUdpChannelCodec ( qint32 udp_channel_codec ) {
this - > udp_channel_codec = udp_channel_codec ;
this - > m_udp_channel_codec_isSet = true ;
}
qint32
SWGAudioOutputDevice : : getUdpDecimationFactor ( ) {
return udp_decimation_factor ;
}
void
SWGAudioOutputDevice : : setUdpDecimationFactor ( qint32 udp_decimation_factor ) {
this - > udp_decimation_factor = udp_decimation_factor ;
this - > m_udp_decimation_factor_isSet = true ;
}
QString *
SWGAudioOutputDevice : : getUdpAddress ( ) {
return udp_address ;
@ -290,6 +330,8 @@ SWGAudioOutputDevice::isSet(){
@@ -290,6 +330,8 @@ SWGAudioOutputDevice::isSet(){
if ( m_copy_to_udp_isSet ) { isObjectUpdated = true ; break ; }
if ( m_udp_uses_rtp_isSet ) { isObjectUpdated = true ; break ; }
if ( m_udp_channel_mode_isSet ) { isObjectUpdated = true ; break ; }
if ( m_udp_channel_codec_isSet ) { isObjectUpdated = true ; break ; }
if ( m_udp_decimation_factor_isSet ) { isObjectUpdated = true ; break ; }
if ( udp_address ! = nullptr & & * udp_address ! = QString ( " " ) ) { isObjectUpdated = true ; break ; }
if ( m_udp_port_isSet ) { isObjectUpdated = true ; break ; }
} while ( false ) ;