1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2025-07-29 12:12:25 -04:00

Regen Swagger files

This commit is contained in:
Jon Beniston 2023-09-06 16:23:10 +01:00
parent 3eaec1abad
commit ff87ebd247
16 changed files with 1859 additions and 117 deletions

View File

@ -3481,6 +3481,9 @@ margin-bottom: 20px;
"PacketModActions" : {
"$ref" : "#/definitions/PacketModActions"
},
"PSK31ModActions" : {
"$ref" : "#/definitions/PSK31ModActions"
},
"RadioAstronomyActions" : {
"$ref" : "#/definitions/RadioAstronomyActions"
},
@ -3734,9 +3737,6 @@ margin-bottom: 20px;
"FT8DemodReport" : {
"$ref" : "#/definitions/FT8DemodReport"
},
"RTTYDemodReport" : {
"$ref" : "#/definitions/RTTYDemodReport"
},
"HeatMapReport" : {
"$ref" : "#/definitions/HeatMapReport"
},
@ -3776,6 +3776,9 @@ margin-bottom: 20px;
"RemoteSourceReport" : {
"$ref" : "#/definitions/RemoteSourceReport"
},
"RTTYDemodReport" : {
"$ref" : "#/definitions/RTTYDemodReport"
},
"RTTYModReport" : {
"$ref" : "#/definitions/RTTYModReport"
},
@ -3788,6 +3791,9 @@ margin-bottom: 20px;
"PagerDemodReport" : {
"$ref" : "#/definitions/PagerDemodReport"
},
"PSK31ModReport" : {
"$ref" : "#/definitions/PSK31ModReport"
},
"SigMFFileSinkReport" : {
"$ref" : "#/definitions/SigMFFileSinkReport"
},
@ -3907,12 +3913,6 @@ margin-bottom: 20px;
"FT8DemodSettings" : {
"$ref" : "#/definitions/FT8DemodSettings"
},
"RTTYDemodSettings" : {
"$ref" : "#/definitions/RTTYDemodSettings"
},
"RTTYModSettings" : {
"$ref" : "#/definitions/RTTYModSettings"
},
"HeatMapSettings" : {
"$ref" : "#/definitions/HeatMapSettings"
},
@ -3958,6 +3958,9 @@ margin-bottom: 20px;
"PagerDemodSettings" : {
"$ref" : "#/definitions/PagerDemodSettings"
},
"PSK31ModSettings" : {
"$ref" : "#/definitions/PSK31ModSettings"
},
"RadioAstronomySettings" : {
"$ref" : "#/definitions/RadioAstronomySettings"
},
@ -3976,6 +3979,12 @@ margin-bottom: 20px;
"RemoteTCPSinkSettings" : {
"$ref" : "#/definitions/RemoteTCPSinkSettings"
},
"RTTYDemodSettings" : {
"$ref" : "#/definitions/RTTYDemodSettings"
},
"RTTYModSettings" : {
"$ref" : "#/definitions/RTTYModSettings"
},
"SigMFFileSinkSettings" : {
"$ref" : "#/definitions/SigMFFileSinkSettings"
},
@ -10522,6 +10531,135 @@ margin-bottom: 20px;
}
},
"description" : "PER Tester settings"
};
defs.PSK31ModActions = {
"properties" : {
"tx" : {
"type" : "integer",
"description" : "Transmit current text\n * 0 - Do nothing\n * 1 - Transmit\n"
},
"payload" : {
"$ref" : "#/definitions/PSK31ModActions_payload"
}
},
"description" : "PSK31Mod"
};
defs.PSK31ModActions_payload = {
"properties" : {
"text" : {
"type" : "string"
}
}
};
defs.PSK31ModReport = {
"properties" : {
"channelPowerDB" : {
"type" : "number",
"format" : "float",
"description" : "power transmitted in channel (dB)"
},
"channelSampleRate" : {
"type" : "integer"
}
},
"description" : "PSK31Mod"
};
defs.PSK31ModSettings = {
"properties" : {
"inputFrequencyOffset" : {
"type" : "integer",
"format" : "int64"
},
"rfBandwidth" : {
"type" : "integer"
},
"gain" : {
"type" : "number",
"format" : "float"
},
"channelMute" : {
"type" : "integer"
},
"repeat" : {
"type" : "integer"
},
"repeatCount" : {
"type" : "integer"
},
"lpfTaps" : {
"type" : "integer"
},
"rfNoise" : {
"type" : "integer",
"description" : "Boolean\n * 0 - off\n * 1 - on\n"
},
"text" : {
"type" : "string",
"description" : "Text to transmit"
},
"pulseShaping" : {
"type" : "integer",
"description" : "Boolean\n * 0 - off\n * 1 - on\n"
},
"beta" : {
"type" : "number",
"format" : "float"
},
"symbolSpan" : {
"type" : "integer"
},
"prefixCRLF" : {
"type" : "integer"
},
"postfixCRLF" : {
"type" : "integer"
},
"udpEnabled" : {
"type" : "integer",
"description" : "Whether to receive text to transmit on specified UDP port"
},
"udpAddress" : {
"type" : "string",
"description" : "UDP address to receive text to transmit via"
},
"udpPort" : {
"type" : "integer",
"description" : "UDP port to receive text to transmit via"
},
"rgbColor" : {
"type" : "integer"
},
"title" : {
"type" : "string"
},
"streamIndex" : {
"type" : "integer",
"description" : "MIMO channel. Not relevant when connected to SI (single Rx)."
},
"useReverseAPI" : {
"type" : "integer",
"description" : "Synchronize with reverse API (1 for yes, 0 for no)"
},
"reverseAPIAddress" : {
"type" : "string"
},
"reverseAPIPort" : {
"type" : "integer"
},
"reverseAPIDeviceIndex" : {
"type" : "integer"
},
"reverseAPIChannelIndex" : {
"type" : "integer"
},
"channelMarker" : {
"$ref" : "#/definitions/ChannelMarker"
},
"rollupState" : {
"$ref" : "#/definitions/RollupState"
}
},
"description" : "PSK31Mod"
};
defs.PacketDemodReport = {
"properties" : {
@ -11770,17 +11908,10 @@ margin-bottom: 20px;
"description" : "Transmit current text\n * 0 - Do nothing\n * 1 - Transmit\n"
},
"payload" : {
"$ref" : "#/definitions/RTTYModActions_payload"
"$ref" : "#/definitions/PSK31ModActions_payload"
}
},
"description" : "RTTYMod"
};
defs.RTTYModActions_payload = {
"properties" : {
"text" : {
"type" : "string"
}
}
};
defs.RTTYModReport = {
"properties" : {
@ -57994,7 +58125,7 @@ except ApiException as e:
</div>
<div id="generator">
<div class="content">
Generated 2023-09-01T21:10:19.928+02:00
Generated 2023-09-06T16:40:34.426+02:00
</div>
</div>
</div>

View File

@ -48,6 +48,8 @@ SWGChannelActions::SWGChannelActions() {
m_ieee_802_15_4_mod_actions_isSet = false;
packet_mod_actions = nullptr;
m_packet_mod_actions_isSet = false;
psk31_mod_actions = nullptr;
m_psk31_mod_actions_isSet = false;
radio_astronomy_actions = nullptr;
m_radio_astronomy_actions_isSet = false;
rtty_mod_actions = nullptr;
@ -82,6 +84,8 @@ SWGChannelActions::init() {
m_ieee_802_15_4_mod_actions_isSet = false;
packet_mod_actions = new SWGPacketModActions();
m_packet_mod_actions_isSet = false;
psk31_mod_actions = new SWGPSK31ModActions();
m_psk31_mod_actions_isSet = false;
radio_astronomy_actions = new SWGRadioAstronomyActions();
m_radio_astronomy_actions_isSet = false;
rtty_mod_actions = new SWGRTTYModActions();
@ -116,6 +120,9 @@ SWGChannelActions::cleanup() {
if(packet_mod_actions != nullptr) {
delete packet_mod_actions;
}
if(psk31_mod_actions != nullptr) {
delete psk31_mod_actions;
}
if(radio_astronomy_actions != nullptr) {
delete radio_astronomy_actions;
}
@ -158,6 +165,8 @@ SWGChannelActions::fromJsonObject(QJsonObject &pJson) {
::SWGSDRangel::setValue(&packet_mod_actions, pJson["PacketModActions"], "SWGPacketModActions", "SWGPacketModActions");
::SWGSDRangel::setValue(&psk31_mod_actions, pJson["PSK31ModActions"], "SWGPSK31ModActions", "SWGPSK31ModActions");
::SWGSDRangel::setValue(&radio_astronomy_actions, pJson["RadioAstronomyActions"], "SWGRadioAstronomyActions", "SWGRadioAstronomyActions");
::SWGSDRangel::setValue(&rtty_mod_actions, pJson["RTTYModActions"], "SWGRTTYModActions", "SWGRTTYModActions");
@ -210,6 +219,9 @@ SWGChannelActions::asJsonObject() {
if((packet_mod_actions != nullptr) && (packet_mod_actions->isSet())){
toJsonValue(QString("PacketModActions"), packet_mod_actions, obj, QString("SWGPacketModActions"));
}
if((psk31_mod_actions != nullptr) && (psk31_mod_actions->isSet())){
toJsonValue(QString("PSK31ModActions"), psk31_mod_actions, obj, QString("SWGPSK31ModActions"));
}
if((radio_astronomy_actions != nullptr) && (radio_astronomy_actions->isSet())){
toJsonValue(QString("RadioAstronomyActions"), radio_astronomy_actions, obj, QString("SWGRadioAstronomyActions"));
}
@ -323,6 +335,16 @@ SWGChannelActions::setPacketModActions(SWGPacketModActions* packet_mod_actions)
this->m_packet_mod_actions_isSet = true;
}
SWGPSK31ModActions*
SWGChannelActions::getPsk31ModActions() {
return psk31_mod_actions;
}
void
SWGChannelActions::setPsk31ModActions(SWGPSK31ModActions* psk31_mod_actions) {
this->psk31_mod_actions = psk31_mod_actions;
this->m_psk31_mod_actions_isSet = true;
}
SWGRadioAstronomyActions*
SWGChannelActions::getRadioAstronomyActions() {
return radio_astronomy_actions;
@ -388,6 +410,9 @@ SWGChannelActions::isSet(){
if(packet_mod_actions && packet_mod_actions->isSet()){
isObjectUpdated = true; break;
}
if(psk31_mod_actions && psk31_mod_actions->isSet()){
isObjectUpdated = true; break;
}
if(radio_astronomy_actions && radio_astronomy_actions->isSet()){
isObjectUpdated = true; break;
}

View File

@ -27,6 +27,7 @@
#include "SWGFileSinkActions.h"
#include "SWGFileSourceActions.h"
#include "SWGIEEE_802_15_4_ModActions.h"
#include "SWGPSK31ModActions.h"
#include "SWGPacketModActions.h"
#include "SWGRTTYModActions.h"
#include "SWGRadioAstronomyActions.h"
@ -81,6 +82,9 @@ public:
SWGPacketModActions* getPacketModActions();
void setPacketModActions(SWGPacketModActions* packet_mod_actions);
SWGPSK31ModActions* getPsk31ModActions();
void setPsk31ModActions(SWGPSK31ModActions* psk31_mod_actions);
SWGRadioAstronomyActions* getRadioAstronomyActions();
void setRadioAstronomyActions(SWGRadioAstronomyActions* radio_astronomy_actions);
@ -124,6 +128,9 @@ private:
SWGPacketModActions* packet_mod_actions;
bool m_packet_mod_actions_isSet;
SWGPSK31ModActions* psk31_mod_actions;
bool m_psk31_mod_actions_isSet;
SWGRadioAstronomyActions* radio_astronomy_actions;
bool m_radio_astronomy_actions_isSet;

View File

@ -74,8 +74,6 @@ SWGChannelReport::SWGChannelReport() {
m_freq_tracker_report_isSet = false;
ft8_demod_report = nullptr;
m_ft8_demod_report_isSet = false;
rtty_demod_report = nullptr;
m_rtty_demod_report_isSet = false;
heat_map_report = nullptr;
m_heat_map_report_isSet = false;
ils_demod_report = nullptr;
@ -102,6 +100,8 @@ SWGChannelReport::SWGChannelReport() {
m_radiosonde_demod_report_isSet = false;
remote_source_report = nullptr;
m_remote_source_report_isSet = false;
rtty_demod_report = nullptr;
m_rtty_demod_report_isSet = false;
rtty_mod_report = nullptr;
m_rtty_mod_report_isSet = false;
packet_demod_report = nullptr;
@ -110,6 +110,8 @@ SWGChannelReport::SWGChannelReport() {
m_packet_mod_report_isSet = false;
pager_demod_report = nullptr;
m_pager_demod_report_isSet = false;
psk31_mod_report = nullptr;
m_psk31_mod_report_isSet = false;
sig_mf_file_sink_report = nullptr;
m_sig_mf_file_sink_report_isSet = false;
ssb_mod_report = nullptr;
@ -178,8 +180,6 @@ SWGChannelReport::init() {
m_freq_tracker_report_isSet = false;
ft8_demod_report = new SWGFT8DemodReport();
m_ft8_demod_report_isSet = false;
rtty_demod_report = new SWGRTTYDemodReport();
m_rtty_demod_report_isSet = false;
heat_map_report = new SWGHeatMapReport();
m_heat_map_report_isSet = false;
ils_demod_report = new SWGILSDemodReport();
@ -206,6 +206,8 @@ SWGChannelReport::init() {
m_radiosonde_demod_report_isSet = false;
remote_source_report = new SWGRemoteSourceReport();
m_remote_source_report_isSet = false;
rtty_demod_report = new SWGRTTYDemodReport();
m_rtty_demod_report_isSet = false;
rtty_mod_report = new SWGRTTYModReport();
m_rtty_mod_report_isSet = false;
packet_demod_report = new SWGPacketDemodReport();
@ -214,6 +216,8 @@ SWGChannelReport::init() {
m_packet_mod_report_isSet = false;
pager_demod_report = new SWGPagerDemodReport();
m_pager_demod_report_isSet = false;
psk31_mod_report = new SWGPSK31ModReport();
m_psk31_mod_report_isSet = false;
sig_mf_file_sink_report = new SWGSigMFFileSinkReport();
m_sig_mf_file_sink_report_isSet = false;
ssb_mod_report = new SWGSSBModReport();
@ -299,9 +303,6 @@ SWGChannelReport::cleanup() {
if(ft8_demod_report != nullptr) {
delete ft8_demod_report;
}
if(rtty_demod_report != nullptr) {
delete rtty_demod_report;
}
if(heat_map_report != nullptr) {
delete heat_map_report;
}
@ -341,6 +342,9 @@ SWGChannelReport::cleanup() {
if(remote_source_report != nullptr) {
delete remote_source_report;
}
if(rtty_demod_report != nullptr) {
delete rtty_demod_report;
}
if(rtty_mod_report != nullptr) {
delete rtty_mod_report;
}
@ -353,6 +357,9 @@ SWGChannelReport::cleanup() {
if(pager_demod_report != nullptr) {
delete pager_demod_report;
}
if(psk31_mod_report != nullptr) {
delete psk31_mod_report;
}
if(sig_mf_file_sink_report != nullptr) {
delete sig_mf_file_sink_report;
}
@ -433,8 +440,6 @@ SWGChannelReport::fromJsonObject(QJsonObject &pJson) {
::SWGSDRangel::setValue(&ft8_demod_report, pJson["FT8DemodReport"], "SWGFT8DemodReport", "SWGFT8DemodReport");
::SWGSDRangel::setValue(&rtty_demod_report, pJson["RTTYDemodReport"], "SWGRTTYDemodReport", "SWGRTTYDemodReport");
::SWGSDRangel::setValue(&heat_map_report, pJson["HeatMapReport"], "SWGHeatMapReport", "SWGHeatMapReport");
::SWGSDRangel::setValue(&ils_demod_report, pJson["ILSDemodReport"], "SWGILSDemodReport", "SWGILSDemodReport");
@ -461,6 +466,8 @@ SWGChannelReport::fromJsonObject(QJsonObject &pJson) {
::SWGSDRangel::setValue(&remote_source_report, pJson["RemoteSourceReport"], "SWGRemoteSourceReport", "SWGRemoteSourceReport");
::SWGSDRangel::setValue(&rtty_demod_report, pJson["RTTYDemodReport"], "SWGRTTYDemodReport", "SWGRTTYDemodReport");
::SWGSDRangel::setValue(&rtty_mod_report, pJson["RTTYModReport"], "SWGRTTYModReport", "SWGRTTYModReport");
::SWGSDRangel::setValue(&packet_demod_report, pJson["PacketDemodReport"], "SWGPacketDemodReport", "SWGPacketDemodReport");
@ -469,6 +476,8 @@ SWGChannelReport::fromJsonObject(QJsonObject &pJson) {
::SWGSDRangel::setValue(&pager_demod_report, pJson["PagerDemodReport"], "SWGPagerDemodReport", "SWGPagerDemodReport");
::SWGSDRangel::setValue(&psk31_mod_report, pJson["PSK31ModReport"], "SWGPSK31ModReport", "SWGPSK31ModReport");
::SWGSDRangel::setValue(&sig_mf_file_sink_report, pJson["SigMFFileSinkReport"], "SWGSigMFFileSinkReport", "SWGSigMFFileSinkReport");
::SWGSDRangel::setValue(&ssb_mod_report, pJson["SSBModReport"], "SWGSSBModReport", "SWGSSBModReport");
@ -568,9 +577,6 @@ SWGChannelReport::asJsonObject() {
if((ft8_demod_report != nullptr) && (ft8_demod_report->isSet())){
toJsonValue(QString("FT8DemodReport"), ft8_demod_report, obj, QString("SWGFT8DemodReport"));
}
if((rtty_demod_report != nullptr) && (rtty_demod_report->isSet())){
toJsonValue(QString("RTTYDemodReport"), rtty_demod_report, obj, QString("SWGRTTYDemodReport"));
}
if((heat_map_report != nullptr) && (heat_map_report->isSet())){
toJsonValue(QString("HeatMapReport"), heat_map_report, obj, QString("SWGHeatMapReport"));
}
@ -610,6 +616,9 @@ SWGChannelReport::asJsonObject() {
if((remote_source_report != nullptr) && (remote_source_report->isSet())){
toJsonValue(QString("RemoteSourceReport"), remote_source_report, obj, QString("SWGRemoteSourceReport"));
}
if((rtty_demod_report != nullptr) && (rtty_demod_report->isSet())){
toJsonValue(QString("RTTYDemodReport"), rtty_demod_report, obj, QString("SWGRTTYDemodReport"));
}
if((rtty_mod_report != nullptr) && (rtty_mod_report->isSet())){
toJsonValue(QString("RTTYModReport"), rtty_mod_report, obj, QString("SWGRTTYModReport"));
}
@ -622,6 +631,9 @@ SWGChannelReport::asJsonObject() {
if((pager_demod_report != nullptr) && (pager_demod_report->isSet())){
toJsonValue(QString("PagerDemodReport"), pager_demod_report, obj, QString("SWGPagerDemodReport"));
}
if((psk31_mod_report != nullptr) && (psk31_mod_report->isSet())){
toJsonValue(QString("PSK31ModReport"), psk31_mod_report, obj, QString("SWGPSK31ModReport"));
}
if((sig_mf_file_sink_report != nullptr) && (sig_mf_file_sink_report->isSet())){
toJsonValue(QString("SigMFFileSinkReport"), sig_mf_file_sink_report, obj, QString("SWGSigMFFileSinkReport"));
}
@ -877,16 +889,6 @@ SWGChannelReport::setFt8DemodReport(SWGFT8DemodReport* ft8_demod_report) {
this->m_ft8_demod_report_isSet = true;
}
SWGRTTYDemodReport*
SWGChannelReport::getRttyDemodReport() {
return rtty_demod_report;
}
void
SWGChannelReport::setRttyDemodReport(SWGRTTYDemodReport* rtty_demod_report) {
this->rtty_demod_report = rtty_demod_report;
this->m_rtty_demod_report_isSet = true;
}
SWGHeatMapReport*
SWGChannelReport::getHeatMapReport() {
return heat_map_report;
@ -1017,6 +1019,16 @@ SWGChannelReport::setRemoteSourceReport(SWGRemoteSourceReport* remote_source_rep
this->m_remote_source_report_isSet = true;
}
SWGRTTYDemodReport*
SWGChannelReport::getRttyDemodReport() {
return rtty_demod_report;
}
void
SWGChannelReport::setRttyDemodReport(SWGRTTYDemodReport* rtty_demod_report) {
this->rtty_demod_report = rtty_demod_report;
this->m_rtty_demod_report_isSet = true;
}
SWGRTTYModReport*
SWGChannelReport::getRttyModReport() {
return rtty_mod_report;
@ -1057,6 +1069,16 @@ SWGChannelReport::setPagerDemodReport(SWGPagerDemodReport* pager_demod_report) {
this->m_pager_demod_report_isSet = true;
}
SWGPSK31ModReport*
SWGChannelReport::getPsk31ModReport() {
return psk31_mod_report;
}
void
SWGChannelReport::setPsk31ModReport(SWGPSK31ModReport* psk31_mod_report) {
this->psk31_mod_report = psk31_mod_report;
this->m_psk31_mod_report_isSet = true;
}
SWGSigMFFileSinkReport*
SWGChannelReport::getSigMfFileSinkReport() {
return sig_mf_file_sink_report;
@ -1201,9 +1223,6 @@ SWGChannelReport::isSet(){
if(ft8_demod_report && ft8_demod_report->isSet()){
isObjectUpdated = true; break;
}
if(rtty_demod_report && rtty_demod_report->isSet()){
isObjectUpdated = true; break;
}
if(heat_map_report && heat_map_report->isSet()){
isObjectUpdated = true; break;
}
@ -1243,6 +1262,9 @@ SWGChannelReport::isSet(){
if(remote_source_report && remote_source_report->isSet()){
isObjectUpdated = true; break;
}
if(rtty_demod_report && rtty_demod_report->isSet()){
isObjectUpdated = true; break;
}
if(rtty_mod_report && rtty_mod_report->isSet()){
isObjectUpdated = true; break;
}
@ -1255,6 +1277,9 @@ SWGChannelReport::isSet(){
if(pager_demod_report && pager_demod_report->isSet()){
isObjectUpdated = true; break;
}
if(psk31_mod_report && psk31_mod_report->isSet()){
isObjectUpdated = true; break;
}
if(sig_mf_file_sink_report && sig_mf_file_sink_report->isSet()){
isObjectUpdated = true; break;
}

View File

@ -51,6 +51,7 @@
#include "SWGNFMModReport.h"
#include "SWGNavtexDemodReport.h"
#include "SWGNoiseFigureReport.h"
#include "SWGPSK31ModReport.h"
#include "SWGPacketDemodReport.h"
#include "SWGPacketModReport.h"
#include "SWGPagerDemodReport.h"
@ -157,9 +158,6 @@ public:
SWGFT8DemodReport* getFt8DemodReport();
void setFt8DemodReport(SWGFT8DemodReport* ft8_demod_report);
SWGRTTYDemodReport* getRttyDemodReport();
void setRttyDemodReport(SWGRTTYDemodReport* rtty_demod_report);
SWGHeatMapReport* getHeatMapReport();
void setHeatMapReport(SWGHeatMapReport* heat_map_report);
@ -199,6 +197,9 @@ public:
SWGRemoteSourceReport* getRemoteSourceReport();
void setRemoteSourceReport(SWGRemoteSourceReport* remote_source_report);
SWGRTTYDemodReport* getRttyDemodReport();
void setRttyDemodReport(SWGRTTYDemodReport* rtty_demod_report);
SWGRTTYModReport* getRttyModReport();
void setRttyModReport(SWGRTTYModReport* rtty_mod_report);
@ -211,6 +212,9 @@ public:
SWGPagerDemodReport* getPagerDemodReport();
void setPagerDemodReport(SWGPagerDemodReport* pager_demod_report);
SWGPSK31ModReport* getPsk31ModReport();
void setPsk31ModReport(SWGPSK31ModReport* psk31_mod_report);
SWGSigMFFileSinkReport* getSigMfFileSinkReport();
void setSigMfFileSinkReport(SWGSigMFFileSinkReport* sig_mf_file_sink_report);
@ -305,9 +309,6 @@ private:
SWGFT8DemodReport* ft8_demod_report;
bool m_ft8_demod_report_isSet;
SWGRTTYDemodReport* rtty_demod_report;
bool m_rtty_demod_report_isSet;
SWGHeatMapReport* heat_map_report;
bool m_heat_map_report_isSet;
@ -347,6 +348,9 @@ private:
SWGRemoteSourceReport* remote_source_report;
bool m_remote_source_report_isSet;
SWGRTTYDemodReport* rtty_demod_report;
bool m_rtty_demod_report_isSet;
SWGRTTYModReport* rtty_mod_report;
bool m_rtty_mod_report_isSet;
@ -359,6 +363,9 @@ private:
SWGPagerDemodReport* pager_demod_report;
bool m_pager_demod_report_isSet;
SWGPSK31ModReport* psk31_mod_report;
bool m_psk31_mod_report_isSet;
SWGSigMFFileSinkReport* sig_mf_file_sink_report;
bool m_sig_mf_file_sink_report_isSet;

View File

@ -86,10 +86,6 @@ SWGChannelSettings::SWGChannelSettings() {
m_freq_tracker_settings_isSet = false;
ft8_demod_settings = nullptr;
m_ft8_demod_settings_isSet = false;
rtty_demod_settings = nullptr;
m_rtty_demod_settings_isSet = false;
rtty_mod_settings = nullptr;
m_rtty_mod_settings_isSet = false;
heat_map_settings = nullptr;
m_heat_map_settings_isSet = false;
ils_demod_settings = nullptr;
@ -120,6 +116,8 @@ SWGChannelSettings::SWGChannelSettings() {
m_packet_mod_settings_isSet = false;
pager_demod_settings = nullptr;
m_pager_demod_settings_isSet = false;
psk31_mod_settings = nullptr;
m_psk31_mod_settings_isSet = false;
radio_astronomy_settings = nullptr;
m_radio_astronomy_settings_isSet = false;
radio_clock_settings = nullptr;
@ -132,6 +130,10 @@ SWGChannelSettings::SWGChannelSettings() {
m_remote_source_settings_isSet = false;
remote_tcp_sink_settings = nullptr;
m_remote_tcp_sink_settings_isSet = false;
rtty_demod_settings = nullptr;
m_rtty_demod_settings_isSet = false;
rtty_mod_settings = nullptr;
m_rtty_mod_settings_isSet = false;
sig_mf_file_sink_settings = nullptr;
m_sig_mf_file_sink_settings_isSet = false;
ssb_mod_settings = nullptr;
@ -214,10 +216,6 @@ SWGChannelSettings::init() {
m_freq_tracker_settings_isSet = false;
ft8_demod_settings = new SWGFT8DemodSettings();
m_ft8_demod_settings_isSet = false;
rtty_demod_settings = new SWGRTTYDemodSettings();
m_rtty_demod_settings_isSet = false;
rtty_mod_settings = new SWGRTTYModSettings();
m_rtty_mod_settings_isSet = false;
heat_map_settings = new SWGHeatMapSettings();
m_heat_map_settings_isSet = false;
ils_demod_settings = new SWGILSDemodSettings();
@ -248,6 +246,8 @@ SWGChannelSettings::init() {
m_packet_mod_settings_isSet = false;
pager_demod_settings = new SWGPagerDemodSettings();
m_pager_demod_settings_isSet = false;
psk31_mod_settings = new SWGPSK31ModSettings();
m_psk31_mod_settings_isSet = false;
radio_astronomy_settings = new SWGRadioAstronomySettings();
m_radio_astronomy_settings_isSet = false;
radio_clock_settings = new SWGRadioClockSettings();
@ -260,6 +260,10 @@ SWGChannelSettings::init() {
m_remote_source_settings_isSet = false;
remote_tcp_sink_settings = new SWGRemoteTCPSinkSettings();
m_remote_tcp_sink_settings_isSet = false;
rtty_demod_settings = new SWGRTTYDemodSettings();
m_rtty_demod_settings_isSet = false;
rtty_mod_settings = new SWGRTTYModSettings();
m_rtty_mod_settings_isSet = false;
sig_mf_file_sink_settings = new SWGSigMFFileSinkSettings();
m_sig_mf_file_sink_settings_isSet = false;
ssb_mod_settings = new SWGSSBModSettings();
@ -361,12 +365,6 @@ SWGChannelSettings::cleanup() {
if(ft8_demod_settings != nullptr) {
delete ft8_demod_settings;
}
if(rtty_demod_settings != nullptr) {
delete rtty_demod_settings;
}
if(rtty_mod_settings != nullptr) {
delete rtty_mod_settings;
}
if(heat_map_settings != nullptr) {
delete heat_map_settings;
}
@ -412,6 +410,9 @@ SWGChannelSettings::cleanup() {
if(pager_demod_settings != nullptr) {
delete pager_demod_settings;
}
if(psk31_mod_settings != nullptr) {
delete psk31_mod_settings;
}
if(radio_astronomy_settings != nullptr) {
delete radio_astronomy_settings;
}
@ -430,6 +431,12 @@ SWGChannelSettings::cleanup() {
if(remote_tcp_sink_settings != nullptr) {
delete remote_tcp_sink_settings;
}
if(rtty_demod_settings != nullptr) {
delete rtty_demod_settings;
}
if(rtty_mod_settings != nullptr) {
delete rtty_mod_settings;
}
if(sig_mf_file_sink_settings != nullptr) {
delete sig_mf_file_sink_settings;
}
@ -525,10 +532,6 @@ SWGChannelSettings::fromJsonObject(QJsonObject &pJson) {
::SWGSDRangel::setValue(&ft8_demod_settings, pJson["FT8DemodSettings"], "SWGFT8DemodSettings", "SWGFT8DemodSettings");
::SWGSDRangel::setValue(&rtty_demod_settings, pJson["RTTYDemodSettings"], "SWGRTTYDemodSettings", "SWGRTTYDemodSettings");
::SWGSDRangel::setValue(&rtty_mod_settings, pJson["RTTYModSettings"], "SWGRTTYModSettings", "SWGRTTYModSettings");
::SWGSDRangel::setValue(&heat_map_settings, pJson["HeatMapSettings"], "SWGHeatMapSettings", "SWGHeatMapSettings");
::SWGSDRangel::setValue(&ils_demod_settings, pJson["ILSDemodSettings"], "SWGILSDemodSettings", "SWGILSDemodSettings");
@ -559,6 +562,8 @@ SWGChannelSettings::fromJsonObject(QJsonObject &pJson) {
::SWGSDRangel::setValue(&pager_demod_settings, pJson["PagerDemodSettings"], "SWGPagerDemodSettings", "SWGPagerDemodSettings");
::SWGSDRangel::setValue(&psk31_mod_settings, pJson["PSK31ModSettings"], "SWGPSK31ModSettings", "SWGPSK31ModSettings");
::SWGSDRangel::setValue(&radio_astronomy_settings, pJson["RadioAstronomySettings"], "SWGRadioAstronomySettings", "SWGRadioAstronomySettings");
::SWGSDRangel::setValue(&radio_clock_settings, pJson["RadioClockSettings"], "SWGRadioClockSettings", "SWGRadioClockSettings");
@ -571,6 +576,10 @@ SWGChannelSettings::fromJsonObject(QJsonObject &pJson) {
::SWGSDRangel::setValue(&remote_tcp_sink_settings, pJson["RemoteTCPSinkSettings"], "SWGRemoteTCPSinkSettings", "SWGRemoteTCPSinkSettings");
::SWGSDRangel::setValue(&rtty_demod_settings, pJson["RTTYDemodSettings"], "SWGRTTYDemodSettings", "SWGRTTYDemodSettings");
::SWGSDRangel::setValue(&rtty_mod_settings, pJson["RTTYModSettings"], "SWGRTTYModSettings", "SWGRTTYModSettings");
::SWGSDRangel::setValue(&sig_mf_file_sink_settings, pJson["SigMFFileSinkSettings"], "SWGSigMFFileSinkSettings", "SWGSigMFFileSinkSettings");
::SWGSDRangel::setValue(&ssb_mod_settings, pJson["SSBModSettings"], "SWGSSBModSettings", "SWGSSBModSettings");
@ -690,12 +699,6 @@ SWGChannelSettings::asJsonObject() {
if((ft8_demod_settings != nullptr) && (ft8_demod_settings->isSet())){
toJsonValue(QString("FT8DemodSettings"), ft8_demod_settings, obj, QString("SWGFT8DemodSettings"));
}
if((rtty_demod_settings != nullptr) && (rtty_demod_settings->isSet())){
toJsonValue(QString("RTTYDemodSettings"), rtty_demod_settings, obj, QString("SWGRTTYDemodSettings"));
}
if((rtty_mod_settings != nullptr) && (rtty_mod_settings->isSet())){
toJsonValue(QString("RTTYModSettings"), rtty_mod_settings, obj, QString("SWGRTTYModSettings"));
}
if((heat_map_settings != nullptr) && (heat_map_settings->isSet())){
toJsonValue(QString("HeatMapSettings"), heat_map_settings, obj, QString("SWGHeatMapSettings"));
}
@ -741,6 +744,9 @@ SWGChannelSettings::asJsonObject() {
if((pager_demod_settings != nullptr) && (pager_demod_settings->isSet())){
toJsonValue(QString("PagerDemodSettings"), pager_demod_settings, obj, QString("SWGPagerDemodSettings"));
}
if((psk31_mod_settings != nullptr) && (psk31_mod_settings->isSet())){
toJsonValue(QString("PSK31ModSettings"), psk31_mod_settings, obj, QString("SWGPSK31ModSettings"));
}
if((radio_astronomy_settings != nullptr) && (radio_astronomy_settings->isSet())){
toJsonValue(QString("RadioAstronomySettings"), radio_astronomy_settings, obj, QString("SWGRadioAstronomySettings"));
}
@ -759,6 +765,12 @@ SWGChannelSettings::asJsonObject() {
if((remote_tcp_sink_settings != nullptr) && (remote_tcp_sink_settings->isSet())){
toJsonValue(QString("RemoteTCPSinkSettings"), remote_tcp_sink_settings, obj, QString("SWGRemoteTCPSinkSettings"));
}
if((rtty_demod_settings != nullptr) && (rtty_demod_settings->isSet())){
toJsonValue(QString("RTTYDemodSettings"), rtty_demod_settings, obj, QString("SWGRTTYDemodSettings"));
}
if((rtty_mod_settings != nullptr) && (rtty_mod_settings->isSet())){
toJsonValue(QString("RTTYModSettings"), rtty_mod_settings, obj, QString("SWGRTTYModSettings"));
}
if((sig_mf_file_sink_settings != nullptr) && (sig_mf_file_sink_settings->isSet())){
toJsonValue(QString("SigMFFileSinkSettings"), sig_mf_file_sink_settings, obj, QString("SWGSigMFFileSinkSettings"));
}
@ -1077,26 +1089,6 @@ SWGChannelSettings::setFt8DemodSettings(SWGFT8DemodSettings* ft8_demod_settings)
this->m_ft8_demod_settings_isSet = true;
}
SWGRTTYDemodSettings*
SWGChannelSettings::getRttyDemodSettings() {
return rtty_demod_settings;
}
void
SWGChannelSettings::setRttyDemodSettings(SWGRTTYDemodSettings* rtty_demod_settings) {
this->rtty_demod_settings = rtty_demod_settings;
this->m_rtty_demod_settings_isSet = true;
}
SWGRTTYModSettings*
SWGChannelSettings::getRttyModSettings() {
return rtty_mod_settings;
}
void
SWGChannelSettings::setRttyModSettings(SWGRTTYModSettings* rtty_mod_settings) {
this->rtty_mod_settings = rtty_mod_settings;
this->m_rtty_mod_settings_isSet = true;
}
SWGHeatMapSettings*
SWGChannelSettings::getHeatMapSettings() {
return heat_map_settings;
@ -1247,6 +1239,16 @@ SWGChannelSettings::setPagerDemodSettings(SWGPagerDemodSettings* pager_demod_set
this->m_pager_demod_settings_isSet = true;
}
SWGPSK31ModSettings*
SWGChannelSettings::getPsk31ModSettings() {
return psk31_mod_settings;
}
void
SWGChannelSettings::setPsk31ModSettings(SWGPSK31ModSettings* psk31_mod_settings) {
this->psk31_mod_settings = psk31_mod_settings;
this->m_psk31_mod_settings_isSet = true;
}
SWGRadioAstronomySettings*
SWGChannelSettings::getRadioAstronomySettings() {
return radio_astronomy_settings;
@ -1307,6 +1309,26 @@ SWGChannelSettings::setRemoteTcpSinkSettings(SWGRemoteTCPSinkSettings* remote_tc
this->m_remote_tcp_sink_settings_isSet = true;
}
SWGRTTYDemodSettings*
SWGChannelSettings::getRttyDemodSettings() {
return rtty_demod_settings;
}
void
SWGChannelSettings::setRttyDemodSettings(SWGRTTYDemodSettings* rtty_demod_settings) {
this->rtty_demod_settings = rtty_demod_settings;
this->m_rtty_demod_settings_isSet = true;
}
SWGRTTYModSettings*
SWGChannelSettings::getRttyModSettings() {
return rtty_mod_settings;
}
void
SWGChannelSettings::setRttyModSettings(SWGRTTYModSettings* rtty_mod_settings) {
this->rtty_mod_settings = rtty_mod_settings;
this->m_rtty_mod_settings_isSet = true;
}
SWGSigMFFileSinkSettings*
SWGChannelSettings::getSigMfFileSinkSettings() {
return sig_mf_file_sink_settings;
@ -1479,12 +1501,6 @@ SWGChannelSettings::isSet(){
if(ft8_demod_settings && ft8_demod_settings->isSet()){
isObjectUpdated = true; break;
}
if(rtty_demod_settings && rtty_demod_settings->isSet()){
isObjectUpdated = true; break;
}
if(rtty_mod_settings && rtty_mod_settings->isSet()){
isObjectUpdated = true; break;
}
if(heat_map_settings && heat_map_settings->isSet()){
isObjectUpdated = true; break;
}
@ -1530,6 +1546,9 @@ SWGChannelSettings::isSet(){
if(pager_demod_settings && pager_demod_settings->isSet()){
isObjectUpdated = true; break;
}
if(psk31_mod_settings && psk31_mod_settings->isSet()){
isObjectUpdated = true; break;
}
if(radio_astronomy_settings && radio_astronomy_settings->isSet()){
isObjectUpdated = true; break;
}
@ -1548,6 +1567,12 @@ SWGChannelSettings::isSet(){
if(remote_tcp_sink_settings && remote_tcp_sink_settings->isSet()){
isObjectUpdated = true; break;
}
if(rtty_demod_settings && rtty_demod_settings->isSet()){
isObjectUpdated = true; break;
}
if(rtty_mod_settings && rtty_mod_settings->isSet()){
isObjectUpdated = true; break;
}
if(sig_mf_file_sink_settings && sig_mf_file_sink_settings->isSet()){
isObjectUpdated = true; break;
}

View File

@ -59,6 +59,7 @@
#include "SWGNFMModSettings.h"
#include "SWGNavtexDemodSettings.h"
#include "SWGNoiseFigureSettings.h"
#include "SWGPSK31ModSettings.h"
#include "SWGPacketDemodSettings.h"
#include "SWGPacketModSettings.h"
#include "SWGPagerDemodSettings.h"
@ -185,12 +186,6 @@ public:
SWGFT8DemodSettings* getFt8DemodSettings();
void setFt8DemodSettings(SWGFT8DemodSettings* ft8_demod_settings);
SWGRTTYDemodSettings* getRttyDemodSettings();
void setRttyDemodSettings(SWGRTTYDemodSettings* rtty_demod_settings);
SWGRTTYModSettings* getRttyModSettings();
void setRttyModSettings(SWGRTTYModSettings* rtty_mod_settings);
SWGHeatMapSettings* getHeatMapSettings();
void setHeatMapSettings(SWGHeatMapSettings* heat_map_settings);
@ -236,6 +231,9 @@ public:
SWGPagerDemodSettings* getPagerDemodSettings();
void setPagerDemodSettings(SWGPagerDemodSettings* pager_demod_settings);
SWGPSK31ModSettings* getPsk31ModSettings();
void setPsk31ModSettings(SWGPSK31ModSettings* psk31_mod_settings);
SWGRadioAstronomySettings* getRadioAstronomySettings();
void setRadioAstronomySettings(SWGRadioAstronomySettings* radio_astronomy_settings);
@ -254,6 +252,12 @@ public:
SWGRemoteTCPSinkSettings* getRemoteTcpSinkSettings();
void setRemoteTcpSinkSettings(SWGRemoteTCPSinkSettings* remote_tcp_sink_settings);
SWGRTTYDemodSettings* getRttyDemodSettings();
void setRttyDemodSettings(SWGRTTYDemodSettings* rtty_demod_settings);
SWGRTTYModSettings* getRttyModSettings();
void setRttyModSettings(SWGRTTYModSettings* rtty_mod_settings);
SWGSigMFFileSinkSettings* getSigMfFileSinkSettings();
void setSigMfFileSinkSettings(SWGSigMFFileSinkSettings* sig_mf_file_sink_settings);
@ -369,12 +373,6 @@ private:
SWGFT8DemodSettings* ft8_demod_settings;
bool m_ft8_demod_settings_isSet;
SWGRTTYDemodSettings* rtty_demod_settings;
bool m_rtty_demod_settings_isSet;
SWGRTTYModSettings* rtty_mod_settings;
bool m_rtty_mod_settings_isSet;
SWGHeatMapSettings* heat_map_settings;
bool m_heat_map_settings_isSet;
@ -420,6 +418,9 @@ private:
SWGPagerDemodSettings* pager_demod_settings;
bool m_pager_demod_settings_isSet;
SWGPSK31ModSettings* psk31_mod_settings;
bool m_psk31_mod_settings_isSet;
SWGRadioAstronomySettings* radio_astronomy_settings;
bool m_radio_astronomy_settings_isSet;
@ -438,6 +439,12 @@ private:
SWGRemoteTCPSinkSettings* remote_tcp_sink_settings;
bool m_remote_tcp_sink_settings_isSet;
SWGRTTYDemodSettings* rtty_demod_settings;
bool m_rtty_demod_settings_isSet;
SWGRTTYModSettings* rtty_mod_settings;
bool m_rtty_mod_settings_isSet;
SWGSigMFFileSinkSettings* sig_mf_file_sink_settings;
bool m_sig_mf_file_sink_settings_isSet;

View File

@ -222,6 +222,10 @@
#include "SWGPERTesterActions_aos.h"
#include "SWGPERTesterReport.h"
#include "SWGPERTesterSettings.h"
#include "SWGPSK31ModActions.h"
#include "SWGPSK31ModActions_payload.h"
#include "SWGPSK31ModReport.h"
#include "SWGPSK31ModSettings.h"
#include "SWGPacketDemodReport.h"
#include "SWGPacketDemodSettings.h"
#include "SWGPacketModActions.h"
@ -252,7 +256,6 @@
#include "SWGRTTYDemodReport.h"
#include "SWGRTTYDemodSettings.h"
#include "SWGRTTYModActions.h"
#include "SWGRTTYModActions_payload.h"
#include "SWGRTTYModReport.h"
#include "SWGRTTYModSettings.h"
#include "SWGRadioAstronomyActions.h"
@ -1404,6 +1407,26 @@ namespace SWGSDRangel {
obj->init();
return obj;
}
if(QString("SWGPSK31ModActions").compare(type) == 0) {
SWGPSK31ModActions *obj = new SWGPSK31ModActions();
obj->init();
return obj;
}
if(QString("SWGPSK31ModActions_payload").compare(type) == 0) {
SWGPSK31ModActions_payload *obj = new SWGPSK31ModActions_payload();
obj->init();
return obj;
}
if(QString("SWGPSK31ModReport").compare(type) == 0) {
SWGPSK31ModReport *obj = new SWGPSK31ModReport();
obj->init();
return obj;
}
if(QString("SWGPSK31ModSettings").compare(type) == 0) {
SWGPSK31ModSettings *obj = new SWGPSK31ModSettings();
obj->init();
return obj;
}
if(QString("SWGPacketDemodReport").compare(type) == 0) {
SWGPacketDemodReport *obj = new SWGPacketDemodReport();
obj->init();
@ -1554,11 +1577,6 @@ namespace SWGSDRangel {
obj->init();
return obj;
}
if(QString("SWGRTTYModActions_payload").compare(type) == 0) {
SWGRTTYModActions_payload *obj = new SWGRTTYModActions_payload();
obj->init();
return obj;
}
if(QString("SWGRTTYModReport").compare(type) == 0) {
SWGRTTYModReport *obj = new SWGRTTYModReport();
obj->init();

View File

@ -0,0 +1,133 @@
/**
* 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: 7.0.0
* 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 "SWGPSK31ModActions.h"
#include "SWGHelpers.h"
#include <QJsonDocument>
#include <QJsonArray>
#include <QObject>
#include <QDebug>
namespace SWGSDRangel {
SWGPSK31ModActions::SWGPSK31ModActions(QString* json) {
init();
this->fromJson(*json);
}
SWGPSK31ModActions::SWGPSK31ModActions() {
tx = 0;
m_tx_isSet = false;
payload = nullptr;
m_payload_isSet = false;
}
SWGPSK31ModActions::~SWGPSK31ModActions() {
this->cleanup();
}
void
SWGPSK31ModActions::init() {
tx = 0;
m_tx_isSet = false;
payload = new SWGPSK31ModActions_payload();
m_payload_isSet = false;
}
void
SWGPSK31ModActions::cleanup() {
if(payload != nullptr) {
delete payload;
}
}
SWGPSK31ModActions*
SWGPSK31ModActions::fromJson(QString &json) {
QByteArray array (json.toStdString().c_str());
QJsonDocument doc = QJsonDocument::fromJson(array);
QJsonObject jsonObject = doc.object();
this->fromJsonObject(jsonObject);
return this;
}
void
SWGPSK31ModActions::fromJsonObject(QJsonObject &pJson) {
::SWGSDRangel::setValue(&tx, pJson["tx"], "qint32", "");
::SWGSDRangel::setValue(&payload, pJson["payload"], "SWGPSK31ModActions_payload", "SWGPSK31ModActions_payload");
}
QString
SWGPSK31ModActions::asJson ()
{
QJsonObject* obj = this->asJsonObject();
QJsonDocument doc(*obj);
QByteArray bytes = doc.toJson();
delete obj;
return QString(bytes);
}
QJsonObject*
SWGPSK31ModActions::asJsonObject() {
QJsonObject* obj = new QJsonObject();
if(m_tx_isSet){
obj->insert("tx", QJsonValue(tx));
}
if((payload != nullptr) && (payload->isSet())){
toJsonValue(QString("payload"), payload, obj, QString("SWGPSK31ModActions_payload"));
}
return obj;
}
qint32
SWGPSK31ModActions::getTx() {
return tx;
}
void
SWGPSK31ModActions::setTx(qint32 tx) {
this->tx = tx;
this->m_tx_isSet = true;
}
SWGPSK31ModActions_payload*
SWGPSK31ModActions::getPayload() {
return payload;
}
void
SWGPSK31ModActions::setPayload(SWGPSK31ModActions_payload* payload) {
this->payload = payload;
this->m_payload_isSet = true;
}
bool
SWGPSK31ModActions::isSet(){
bool isObjectUpdated = false;
do{
if(m_tx_isSet){
isObjectUpdated = true; break;
}
if(payload && payload->isSet()){
isObjectUpdated = true; break;
}
}while(false);
return isObjectUpdated;
}
}

View File

@ -0,0 +1,65 @@
/**
* 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: 7.0.0
* 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.
*/
/*
* SWGPSK31ModActions.h
*
* PSK31Mod
*/
#ifndef SWGPSK31ModActions_H_
#define SWGPSK31ModActions_H_
#include <QJsonObject>
#include "SWGPSK31ModActions_payload.h"
#include "SWGObject.h"
#include "export.h"
namespace SWGSDRangel {
class SWG_API SWGPSK31ModActions: public SWGObject {
public:
SWGPSK31ModActions();
SWGPSK31ModActions(QString* json);
virtual ~SWGPSK31ModActions();
void init();
void cleanup();
virtual QString asJson () override;
virtual QJsonObject* asJsonObject() override;
virtual void fromJsonObject(QJsonObject &json) override;
virtual SWGPSK31ModActions* fromJson(QString &jsonString) override;
qint32 getTx();
void setTx(qint32 tx);
SWGPSK31ModActions_payload* getPayload();
void setPayload(SWGPSK31ModActions_payload* payload);
virtual bool isSet() override;
private:
qint32 tx;
bool m_tx_isSet;
SWGPSK31ModActions_payload* payload;
bool m_payload_isSet;
};
}
#endif /* SWGPSK31ModActions_H_ */

View File

@ -0,0 +1,110 @@
/**
* 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: 7.0.0
* 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 "SWGPSK31ModActions_payload.h"
#include "SWGHelpers.h"
#include <QJsonDocument>
#include <QJsonArray>
#include <QObject>
#include <QDebug>
namespace SWGSDRangel {
SWGPSK31ModActions_payload::SWGPSK31ModActions_payload(QString* json) {
init();
this->fromJson(*json);
}
SWGPSK31ModActions_payload::SWGPSK31ModActions_payload() {
text = nullptr;
m_text_isSet = false;
}
SWGPSK31ModActions_payload::~SWGPSK31ModActions_payload() {
this->cleanup();
}
void
SWGPSK31ModActions_payload::init() {
text = new QString("");
m_text_isSet = false;
}
void
SWGPSK31ModActions_payload::cleanup() {
if(text != nullptr) {
delete text;
}
}
SWGPSK31ModActions_payload*
SWGPSK31ModActions_payload::fromJson(QString &json) {
QByteArray array (json.toStdString().c_str());
QJsonDocument doc = QJsonDocument::fromJson(array);
QJsonObject jsonObject = doc.object();
this->fromJsonObject(jsonObject);
return this;
}
void
SWGPSK31ModActions_payload::fromJsonObject(QJsonObject &pJson) {
::SWGSDRangel::setValue(&text, pJson["text"], "QString", "QString");
}
QString
SWGPSK31ModActions_payload::asJson ()
{
QJsonObject* obj = this->asJsonObject();
QJsonDocument doc(*obj);
QByteArray bytes = doc.toJson();
delete obj;
return QString(bytes);
}
QJsonObject*
SWGPSK31ModActions_payload::asJsonObject() {
QJsonObject* obj = new QJsonObject();
if(text != nullptr && *text != QString("")){
toJsonValue(QString("text"), text, obj, QString("QString"));
}
return obj;
}
QString*
SWGPSK31ModActions_payload::getText() {
return text;
}
void
SWGPSK31ModActions_payload::setText(QString* text) {
this->text = text;
this->m_text_isSet = true;
}
bool
SWGPSK31ModActions_payload::isSet(){
bool isObjectUpdated = false;
do{
if(text && *text != QString("")){
isObjectUpdated = true; break;
}
}while(false);
return isObjectUpdated;
}
}

View File

@ -0,0 +1,59 @@
/**
* 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: 7.0.0
* 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.
*/
/*
* SWGPSK31ModActions_payload.h
*
*
*/
#ifndef SWGPSK31ModActions_payload_H_
#define SWGPSK31ModActions_payload_H_
#include <QJsonObject>
#include <QString>
#include "SWGObject.h"
#include "export.h"
namespace SWGSDRangel {
class SWG_API SWGPSK31ModActions_payload: public SWGObject {
public:
SWGPSK31ModActions_payload();
SWGPSK31ModActions_payload(QString* json);
virtual ~SWGPSK31ModActions_payload();
void init();
void cleanup();
virtual QString asJson () override;
virtual QJsonObject* asJsonObject() override;
virtual void fromJsonObject(QJsonObject &json) override;
virtual SWGPSK31ModActions_payload* fromJson(QString &jsonString) override;
QString* getText();
void setText(QString* text);
virtual bool isSet() override;
private:
QString* text;
bool m_text_isSet;
};
}
#endif /* SWGPSK31ModActions_payload_H_ */

View File

@ -0,0 +1,131 @@
/**
* 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: 7.0.0
* 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 "SWGPSK31ModReport.h"
#include "SWGHelpers.h"
#include <QJsonDocument>
#include <QJsonArray>
#include <QObject>
#include <QDebug>
namespace SWGSDRangel {
SWGPSK31ModReport::SWGPSK31ModReport(QString* json) {
init();
this->fromJson(*json);
}
SWGPSK31ModReport::SWGPSK31ModReport() {
channel_power_db = 0.0f;
m_channel_power_db_isSet = false;
channel_sample_rate = 0;
m_channel_sample_rate_isSet = false;
}
SWGPSK31ModReport::~SWGPSK31ModReport() {
this->cleanup();
}
void
SWGPSK31ModReport::init() {
channel_power_db = 0.0f;
m_channel_power_db_isSet = false;
channel_sample_rate = 0;
m_channel_sample_rate_isSet = false;
}
void
SWGPSK31ModReport::cleanup() {
}
SWGPSK31ModReport*
SWGPSK31ModReport::fromJson(QString &json) {
QByteArray array (json.toStdString().c_str());
QJsonDocument doc = QJsonDocument::fromJson(array);
QJsonObject jsonObject = doc.object();
this->fromJsonObject(jsonObject);
return this;
}
void
SWGPSK31ModReport::fromJsonObject(QJsonObject &pJson) {
::SWGSDRangel::setValue(&channel_power_db, pJson["channelPowerDB"], "float", "");
::SWGSDRangel::setValue(&channel_sample_rate, pJson["channelSampleRate"], "qint32", "");
}
QString
SWGPSK31ModReport::asJson ()
{
QJsonObject* obj = this->asJsonObject();
QJsonDocument doc(*obj);
QByteArray bytes = doc.toJson();
delete obj;
return QString(bytes);
}
QJsonObject*
SWGPSK31ModReport::asJsonObject() {
QJsonObject* obj = new QJsonObject();
if(m_channel_power_db_isSet){
obj->insert("channelPowerDB", QJsonValue(channel_power_db));
}
if(m_channel_sample_rate_isSet){
obj->insert("channelSampleRate", QJsonValue(channel_sample_rate));
}
return obj;
}
float
SWGPSK31ModReport::getChannelPowerDb() {
return channel_power_db;
}
void
SWGPSK31ModReport::setChannelPowerDb(float channel_power_db) {
this->channel_power_db = channel_power_db;
this->m_channel_power_db_isSet = true;
}
qint32
SWGPSK31ModReport::getChannelSampleRate() {
return channel_sample_rate;
}
void
SWGPSK31ModReport::setChannelSampleRate(qint32 channel_sample_rate) {
this->channel_sample_rate = channel_sample_rate;
this->m_channel_sample_rate_isSet = true;
}
bool
SWGPSK31ModReport::isSet(){
bool isObjectUpdated = false;
do{
if(m_channel_power_db_isSet){
isObjectUpdated = true; break;
}
if(m_channel_sample_rate_isSet){
isObjectUpdated = true; break;
}
}while(false);
return isObjectUpdated;
}
}

View File

@ -0,0 +1,64 @@
/**
* 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: 7.0.0
* 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.
*/
/*
* SWGPSK31ModReport.h
*
* PSK31Mod
*/
#ifndef SWGPSK31ModReport_H_
#define SWGPSK31ModReport_H_
#include <QJsonObject>
#include "SWGObject.h"
#include "export.h"
namespace SWGSDRangel {
class SWG_API SWGPSK31ModReport: public SWGObject {
public:
SWGPSK31ModReport();
SWGPSK31ModReport(QString* json);
virtual ~SWGPSK31ModReport();
void init();
void cleanup();
virtual QString asJson () override;
virtual QJsonObject* asJsonObject() override;
virtual void fromJsonObject(QJsonObject &json) override;
virtual SWGPSK31ModReport* fromJson(QString &jsonString) override;
float getChannelPowerDb();
void setChannelPowerDb(float channel_power_db);
qint32 getChannelSampleRate();
void setChannelSampleRate(qint32 channel_sample_rate);
virtual bool isSet() override;
private:
float channel_power_db;
bool m_channel_power_db_isSet;
qint32 channel_sample_rate;
bool m_channel_sample_rate_isSet;
};
}
#endif /* SWGPSK31ModReport_H_ */

View File

@ -0,0 +1,718 @@
/**
* 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: 7.0.0
* 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 "SWGPSK31ModSettings.h"
#include "SWGHelpers.h"
#include <QJsonDocument>
#include <QJsonArray>
#include <QObject>
#include <QDebug>
namespace SWGSDRangel {
SWGPSK31ModSettings::SWGPSK31ModSettings(QString* json) {
init();
this->fromJson(*json);
}
SWGPSK31ModSettings::SWGPSK31ModSettings() {
input_frequency_offset = 0L;
m_input_frequency_offset_isSet = false;
rf_bandwidth = 0;
m_rf_bandwidth_isSet = false;
gain = 0.0f;
m_gain_isSet = false;
channel_mute = 0;
m_channel_mute_isSet = false;
repeat = 0;
m_repeat_isSet = false;
repeat_count = 0;
m_repeat_count_isSet = false;
lpf_taps = 0;
m_lpf_taps_isSet = false;
rf_noise = 0;
m_rf_noise_isSet = false;
text = nullptr;
m_text_isSet = false;
pulse_shaping = 0;
m_pulse_shaping_isSet = false;
beta = 0.0f;
m_beta_isSet = false;
symbol_span = 0;
m_symbol_span_isSet = false;
prefix_crlf = 0;
m_prefix_crlf_isSet = false;
postfix_crlf = 0;
m_postfix_crlf_isSet = false;
udp_enabled = 0;
m_udp_enabled_isSet = false;
udp_address = nullptr;
m_udp_address_isSet = false;
udp_port = 0;
m_udp_port_isSet = false;
rgb_color = 0;
m_rgb_color_isSet = false;
title = nullptr;
m_title_isSet = false;
stream_index = 0;
m_stream_index_isSet = false;
use_reverse_api = 0;
m_use_reverse_api_isSet = false;
reverse_api_address = nullptr;
m_reverse_api_address_isSet = false;
reverse_api_port = 0;
m_reverse_api_port_isSet = false;
reverse_api_device_index = 0;
m_reverse_api_device_index_isSet = false;
reverse_api_channel_index = 0;
m_reverse_api_channel_index_isSet = false;
channel_marker = nullptr;
m_channel_marker_isSet = false;
rollup_state = nullptr;
m_rollup_state_isSet = false;
}
SWGPSK31ModSettings::~SWGPSK31ModSettings() {
this->cleanup();
}
void
SWGPSK31ModSettings::init() {
input_frequency_offset = 0L;
m_input_frequency_offset_isSet = false;
rf_bandwidth = 0;
m_rf_bandwidth_isSet = false;
gain = 0.0f;
m_gain_isSet = false;
channel_mute = 0;
m_channel_mute_isSet = false;
repeat = 0;
m_repeat_isSet = false;
repeat_count = 0;
m_repeat_count_isSet = false;
lpf_taps = 0;
m_lpf_taps_isSet = false;
rf_noise = 0;
m_rf_noise_isSet = false;
text = new QString("");
m_text_isSet = false;
pulse_shaping = 0;
m_pulse_shaping_isSet = false;
beta = 0.0f;
m_beta_isSet = false;
symbol_span = 0;
m_symbol_span_isSet = false;
prefix_crlf = 0;
m_prefix_crlf_isSet = false;
postfix_crlf = 0;
m_postfix_crlf_isSet = false;
udp_enabled = 0;
m_udp_enabled_isSet = false;
udp_address = new QString("");
m_udp_address_isSet = false;
udp_port = 0;
m_udp_port_isSet = false;
rgb_color = 0;
m_rgb_color_isSet = false;
title = new QString("");
m_title_isSet = false;
stream_index = 0;
m_stream_index_isSet = false;
use_reverse_api = 0;
m_use_reverse_api_isSet = false;
reverse_api_address = new QString("");
m_reverse_api_address_isSet = false;
reverse_api_port = 0;
m_reverse_api_port_isSet = false;
reverse_api_device_index = 0;
m_reverse_api_device_index_isSet = false;
reverse_api_channel_index = 0;
m_reverse_api_channel_index_isSet = false;
channel_marker = new SWGChannelMarker();
m_channel_marker_isSet = false;
rollup_state = new SWGRollupState();
m_rollup_state_isSet = false;
}
void
SWGPSK31ModSettings::cleanup() {
if(text != nullptr) {
delete text;
}
if(udp_address != nullptr) {
delete udp_address;
}
if(title != nullptr) {
delete title;
}
if(reverse_api_address != nullptr) {
delete reverse_api_address;
}
if(channel_marker != nullptr) {
delete channel_marker;
}
if(rollup_state != nullptr) {
delete rollup_state;
}
}
SWGPSK31ModSettings*
SWGPSK31ModSettings::fromJson(QString &json) {
QByteArray array (json.toStdString().c_str());
QJsonDocument doc = QJsonDocument::fromJson(array);
QJsonObject jsonObject = doc.object();
this->fromJsonObject(jsonObject);
return this;
}
void
SWGPSK31ModSettings::fromJsonObject(QJsonObject &pJson) {
::SWGSDRangel::setValue(&input_frequency_offset, pJson["inputFrequencyOffset"], "qint64", "");
::SWGSDRangel::setValue(&rf_bandwidth, pJson["rfBandwidth"], "qint32", "");
::SWGSDRangel::setValue(&gain, pJson["gain"], "float", "");
::SWGSDRangel::setValue(&channel_mute, pJson["channelMute"], "qint32", "");
::SWGSDRangel::setValue(&repeat, pJson["repeat"], "qint32", "");
::SWGSDRangel::setValue(&repeat_count, pJson["repeatCount"], "qint32", "");
::SWGSDRangel::setValue(&lpf_taps, pJson["lpfTaps"], "qint32", "");
::SWGSDRangel::setValue(&rf_noise, pJson["rfNoise"], "qint32", "");
::SWGSDRangel::setValue(&text, pJson["text"], "QString", "QString");
::SWGSDRangel::setValue(&pulse_shaping, pJson["pulseShaping"], "qint32", "");
::SWGSDRangel::setValue(&beta, pJson["beta"], "float", "");
::SWGSDRangel::setValue(&symbol_span, pJson["symbolSpan"], "qint32", "");
::SWGSDRangel::setValue(&prefix_crlf, pJson["prefixCRLF"], "qint32", "");
::SWGSDRangel::setValue(&postfix_crlf, pJson["postfixCRLF"], "qint32", "");
::SWGSDRangel::setValue(&udp_enabled, pJson["udpEnabled"], "qint32", "");
::SWGSDRangel::setValue(&udp_address, pJson["udpAddress"], "QString", "QString");
::SWGSDRangel::setValue(&udp_port, pJson["udpPort"], "qint32", "");
::SWGSDRangel::setValue(&rgb_color, pJson["rgbColor"], "qint32", "");
::SWGSDRangel::setValue(&title, pJson["title"], "QString", "QString");
::SWGSDRangel::setValue(&stream_index, pJson["streamIndex"], "qint32", "");
::SWGSDRangel::setValue(&use_reverse_api, pJson["useReverseAPI"], "qint32", "");
::SWGSDRangel::setValue(&reverse_api_address, pJson["reverseAPIAddress"], "QString", "QString");
::SWGSDRangel::setValue(&reverse_api_port, pJson["reverseAPIPort"], "qint32", "");
::SWGSDRangel::setValue(&reverse_api_device_index, pJson["reverseAPIDeviceIndex"], "qint32", "");
::SWGSDRangel::setValue(&reverse_api_channel_index, pJson["reverseAPIChannelIndex"], "qint32", "");
::SWGSDRangel::setValue(&channel_marker, pJson["channelMarker"], "SWGChannelMarker", "SWGChannelMarker");
::SWGSDRangel::setValue(&rollup_state, pJson["rollupState"], "SWGRollupState", "SWGRollupState");
}
QString
SWGPSK31ModSettings::asJson ()
{
QJsonObject* obj = this->asJsonObject();
QJsonDocument doc(*obj);
QByteArray bytes = doc.toJson();
delete obj;
return QString(bytes);
}
QJsonObject*
SWGPSK31ModSettings::asJsonObject() {
QJsonObject* obj = new QJsonObject();
if(m_input_frequency_offset_isSet){
obj->insert("inputFrequencyOffset", QJsonValue(input_frequency_offset));
}
if(m_rf_bandwidth_isSet){
obj->insert("rfBandwidth", QJsonValue(rf_bandwidth));
}
if(m_gain_isSet){
obj->insert("gain", QJsonValue(gain));
}
if(m_channel_mute_isSet){
obj->insert("channelMute", QJsonValue(channel_mute));
}
if(m_repeat_isSet){
obj->insert("repeat", QJsonValue(repeat));
}
if(m_repeat_count_isSet){
obj->insert("repeatCount", QJsonValue(repeat_count));
}
if(m_lpf_taps_isSet){
obj->insert("lpfTaps", QJsonValue(lpf_taps));
}
if(m_rf_noise_isSet){
obj->insert("rfNoise", QJsonValue(rf_noise));
}
if(text != nullptr && *text != QString("")){
toJsonValue(QString("text"), text, obj, QString("QString"));
}
if(m_pulse_shaping_isSet){
obj->insert("pulseShaping", QJsonValue(pulse_shaping));
}
if(m_beta_isSet){
obj->insert("beta", QJsonValue(beta));
}
if(m_symbol_span_isSet){
obj->insert("symbolSpan", QJsonValue(symbol_span));
}
if(m_prefix_crlf_isSet){
obj->insert("prefixCRLF", QJsonValue(prefix_crlf));
}
if(m_postfix_crlf_isSet){
obj->insert("postfixCRLF", QJsonValue(postfix_crlf));
}
if(m_udp_enabled_isSet){
obj->insert("udpEnabled", QJsonValue(udp_enabled));
}
if(udp_address != nullptr && *udp_address != QString("")){
toJsonValue(QString("udpAddress"), udp_address, obj, QString("QString"));
}
if(m_udp_port_isSet){
obj->insert("udpPort", QJsonValue(udp_port));
}
if(m_rgb_color_isSet){
obj->insert("rgbColor", QJsonValue(rgb_color));
}
if(title != nullptr && *title != QString("")){
toJsonValue(QString("title"), title, obj, QString("QString"));
}
if(m_stream_index_isSet){
obj->insert("streamIndex", QJsonValue(stream_index));
}
if(m_use_reverse_api_isSet){
obj->insert("useReverseAPI", QJsonValue(use_reverse_api));
}
if(reverse_api_address != nullptr && *reverse_api_address != QString("")){
toJsonValue(QString("reverseAPIAddress"), reverse_api_address, obj, QString("QString"));
}
if(m_reverse_api_port_isSet){
obj->insert("reverseAPIPort", QJsonValue(reverse_api_port));
}
if(m_reverse_api_device_index_isSet){
obj->insert("reverseAPIDeviceIndex", QJsonValue(reverse_api_device_index));
}
if(m_reverse_api_channel_index_isSet){
obj->insert("reverseAPIChannelIndex", QJsonValue(reverse_api_channel_index));
}
if((channel_marker != nullptr) && (channel_marker->isSet())){
toJsonValue(QString("channelMarker"), channel_marker, obj, QString("SWGChannelMarker"));
}
if((rollup_state != nullptr) && (rollup_state->isSet())){
toJsonValue(QString("rollupState"), rollup_state, obj, QString("SWGRollupState"));
}
return obj;
}
qint64
SWGPSK31ModSettings::getInputFrequencyOffset() {
return input_frequency_offset;
}
void
SWGPSK31ModSettings::setInputFrequencyOffset(qint64 input_frequency_offset) {
this->input_frequency_offset = input_frequency_offset;
this->m_input_frequency_offset_isSet = true;
}
qint32
SWGPSK31ModSettings::getRfBandwidth() {
return rf_bandwidth;
}
void
SWGPSK31ModSettings::setRfBandwidth(qint32 rf_bandwidth) {
this->rf_bandwidth = rf_bandwidth;
this->m_rf_bandwidth_isSet = true;
}
float
SWGPSK31ModSettings::getGain() {
return gain;
}
void
SWGPSK31ModSettings::setGain(float gain) {
this->gain = gain;
this->m_gain_isSet = true;
}
qint32
SWGPSK31ModSettings::getChannelMute() {
return channel_mute;
}
void
SWGPSK31ModSettings::setChannelMute(qint32 channel_mute) {
this->channel_mute = channel_mute;
this->m_channel_mute_isSet = true;
}
qint32
SWGPSK31ModSettings::getRepeat() {
return repeat;
}
void
SWGPSK31ModSettings::setRepeat(qint32 repeat) {
this->repeat = repeat;
this->m_repeat_isSet = true;
}
qint32
SWGPSK31ModSettings::getRepeatCount() {
return repeat_count;
}
void
SWGPSK31ModSettings::setRepeatCount(qint32 repeat_count) {
this->repeat_count = repeat_count;
this->m_repeat_count_isSet = true;
}
qint32
SWGPSK31ModSettings::getLpfTaps() {
return lpf_taps;
}
void
SWGPSK31ModSettings::setLpfTaps(qint32 lpf_taps) {
this->lpf_taps = lpf_taps;
this->m_lpf_taps_isSet = true;
}
qint32
SWGPSK31ModSettings::getRfNoise() {
return rf_noise;
}
void
SWGPSK31ModSettings::setRfNoise(qint32 rf_noise) {
this->rf_noise = rf_noise;
this->m_rf_noise_isSet = true;
}
QString*
SWGPSK31ModSettings::getText() {
return text;
}
void
SWGPSK31ModSettings::setText(QString* text) {
this->text = text;
this->m_text_isSet = true;
}
qint32
SWGPSK31ModSettings::getPulseShaping() {
return pulse_shaping;
}
void
SWGPSK31ModSettings::setPulseShaping(qint32 pulse_shaping) {
this->pulse_shaping = pulse_shaping;
this->m_pulse_shaping_isSet = true;
}
float
SWGPSK31ModSettings::getBeta() {
return beta;
}
void
SWGPSK31ModSettings::setBeta(float beta) {
this->beta = beta;
this->m_beta_isSet = true;
}
qint32
SWGPSK31ModSettings::getSymbolSpan() {
return symbol_span;
}
void
SWGPSK31ModSettings::setSymbolSpan(qint32 symbol_span) {
this->symbol_span = symbol_span;
this->m_symbol_span_isSet = true;
}
qint32
SWGPSK31ModSettings::getPrefixCrlf() {
return prefix_crlf;
}
void
SWGPSK31ModSettings::setPrefixCrlf(qint32 prefix_crlf) {
this->prefix_crlf = prefix_crlf;
this->m_prefix_crlf_isSet = true;
}
qint32
SWGPSK31ModSettings::getPostfixCrlf() {
return postfix_crlf;
}
void
SWGPSK31ModSettings::setPostfixCrlf(qint32 postfix_crlf) {
this->postfix_crlf = postfix_crlf;
this->m_postfix_crlf_isSet = true;
}
qint32
SWGPSK31ModSettings::getUdpEnabled() {
return udp_enabled;
}
void
SWGPSK31ModSettings::setUdpEnabled(qint32 udp_enabled) {
this->udp_enabled = udp_enabled;
this->m_udp_enabled_isSet = true;
}
QString*
SWGPSK31ModSettings::getUdpAddress() {
return udp_address;
}
void
SWGPSK31ModSettings::setUdpAddress(QString* udp_address) {
this->udp_address = udp_address;
this->m_udp_address_isSet = true;
}
qint32
SWGPSK31ModSettings::getUdpPort() {
return udp_port;
}
void
SWGPSK31ModSettings::setUdpPort(qint32 udp_port) {
this->udp_port = udp_port;
this->m_udp_port_isSet = true;
}
qint32
SWGPSK31ModSettings::getRgbColor() {
return rgb_color;
}
void
SWGPSK31ModSettings::setRgbColor(qint32 rgb_color) {
this->rgb_color = rgb_color;
this->m_rgb_color_isSet = true;
}
QString*
SWGPSK31ModSettings::getTitle() {
return title;
}
void
SWGPSK31ModSettings::setTitle(QString* title) {
this->title = title;
this->m_title_isSet = true;
}
qint32
SWGPSK31ModSettings::getStreamIndex() {
return stream_index;
}
void
SWGPSK31ModSettings::setStreamIndex(qint32 stream_index) {
this->stream_index = stream_index;
this->m_stream_index_isSet = true;
}
qint32
SWGPSK31ModSettings::getUseReverseApi() {
return use_reverse_api;
}
void
SWGPSK31ModSettings::setUseReverseApi(qint32 use_reverse_api) {
this->use_reverse_api = use_reverse_api;
this->m_use_reverse_api_isSet = true;
}
QString*
SWGPSK31ModSettings::getReverseApiAddress() {
return reverse_api_address;
}
void
SWGPSK31ModSettings::setReverseApiAddress(QString* reverse_api_address) {
this->reverse_api_address = reverse_api_address;
this->m_reverse_api_address_isSet = true;
}
qint32
SWGPSK31ModSettings::getReverseApiPort() {
return reverse_api_port;
}
void
SWGPSK31ModSettings::setReverseApiPort(qint32 reverse_api_port) {
this->reverse_api_port = reverse_api_port;
this->m_reverse_api_port_isSet = true;
}
qint32
SWGPSK31ModSettings::getReverseApiDeviceIndex() {
return reverse_api_device_index;
}
void
SWGPSK31ModSettings::setReverseApiDeviceIndex(qint32 reverse_api_device_index) {
this->reverse_api_device_index = reverse_api_device_index;
this->m_reverse_api_device_index_isSet = true;
}
qint32
SWGPSK31ModSettings::getReverseApiChannelIndex() {
return reverse_api_channel_index;
}
void
SWGPSK31ModSettings::setReverseApiChannelIndex(qint32 reverse_api_channel_index) {
this->reverse_api_channel_index = reverse_api_channel_index;
this->m_reverse_api_channel_index_isSet = true;
}
SWGChannelMarker*
SWGPSK31ModSettings::getChannelMarker() {
return channel_marker;
}
void
SWGPSK31ModSettings::setChannelMarker(SWGChannelMarker* channel_marker) {
this->channel_marker = channel_marker;
this->m_channel_marker_isSet = true;
}
SWGRollupState*
SWGPSK31ModSettings::getRollupState() {
return rollup_state;
}
void
SWGPSK31ModSettings::setRollupState(SWGRollupState* rollup_state) {
this->rollup_state = rollup_state;
this->m_rollup_state_isSet = true;
}
bool
SWGPSK31ModSettings::isSet(){
bool isObjectUpdated = false;
do{
if(m_input_frequency_offset_isSet){
isObjectUpdated = true; break;
}
if(m_rf_bandwidth_isSet){
isObjectUpdated = true; break;
}
if(m_gain_isSet){
isObjectUpdated = true; break;
}
if(m_channel_mute_isSet){
isObjectUpdated = true; break;
}
if(m_repeat_isSet){
isObjectUpdated = true; break;
}
if(m_repeat_count_isSet){
isObjectUpdated = true; break;
}
if(m_lpf_taps_isSet){
isObjectUpdated = true; break;
}
if(m_rf_noise_isSet){
isObjectUpdated = true; break;
}
if(text && *text != QString("")){
isObjectUpdated = true; break;
}
if(m_pulse_shaping_isSet){
isObjectUpdated = true; break;
}
if(m_beta_isSet){
isObjectUpdated = true; break;
}
if(m_symbol_span_isSet){
isObjectUpdated = true; break;
}
if(m_prefix_crlf_isSet){
isObjectUpdated = true; break;
}
if(m_postfix_crlf_isSet){
isObjectUpdated = true; break;
}
if(m_udp_enabled_isSet){
isObjectUpdated = true; break;
}
if(udp_address && *udp_address != QString("")){
isObjectUpdated = true; break;
}
if(m_udp_port_isSet){
isObjectUpdated = true; break;
}
if(m_rgb_color_isSet){
isObjectUpdated = true; break;
}
if(title && *title != QString("")){
isObjectUpdated = true; break;
}
if(m_stream_index_isSet){
isObjectUpdated = true; break;
}
if(m_use_reverse_api_isSet){
isObjectUpdated = true; break;
}
if(reverse_api_address && *reverse_api_address != QString("")){
isObjectUpdated = true; break;
}
if(m_reverse_api_port_isSet){
isObjectUpdated = true; break;
}
if(m_reverse_api_device_index_isSet){
isObjectUpdated = true; break;
}
if(m_reverse_api_channel_index_isSet){
isObjectUpdated = true; break;
}
if(channel_marker && channel_marker->isSet()){
isObjectUpdated = true; break;
}
if(rollup_state && rollup_state->isSet()){
isObjectUpdated = true; break;
}
}while(false);
return isObjectUpdated;
}
}

View File

@ -0,0 +1,217 @@
/**
* 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: 7.0.0
* 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.
*/
/*
* SWGPSK31ModSettings.h
*
* PSK31Mod
*/
#ifndef SWGPSK31ModSettings_H_
#define SWGPSK31ModSettings_H_
#include <QJsonObject>
#include "SWGChannelMarker.h"
#include "SWGRollupState.h"
#include <QString>
#include "SWGObject.h"
#include "export.h"
namespace SWGSDRangel {
class SWG_API SWGPSK31ModSettings: public SWGObject {
public:
SWGPSK31ModSettings();
SWGPSK31ModSettings(QString* json);
virtual ~SWGPSK31ModSettings();
void init();
void cleanup();
virtual QString asJson () override;
virtual QJsonObject* asJsonObject() override;
virtual void fromJsonObject(QJsonObject &json) override;
virtual SWGPSK31ModSettings* fromJson(QString &jsonString) override;
qint64 getInputFrequencyOffset();
void setInputFrequencyOffset(qint64 input_frequency_offset);
qint32 getRfBandwidth();
void setRfBandwidth(qint32 rf_bandwidth);
float getGain();
void setGain(float gain);
qint32 getChannelMute();
void setChannelMute(qint32 channel_mute);
qint32 getRepeat();
void setRepeat(qint32 repeat);
qint32 getRepeatCount();
void setRepeatCount(qint32 repeat_count);
qint32 getLpfTaps();
void setLpfTaps(qint32 lpf_taps);
qint32 getRfNoise();
void setRfNoise(qint32 rf_noise);
QString* getText();
void setText(QString* text);
qint32 getPulseShaping();
void setPulseShaping(qint32 pulse_shaping);
float getBeta();
void setBeta(float beta);
qint32 getSymbolSpan();
void setSymbolSpan(qint32 symbol_span);
qint32 getPrefixCrlf();
void setPrefixCrlf(qint32 prefix_crlf);
qint32 getPostfixCrlf();
void setPostfixCrlf(qint32 postfix_crlf);
qint32 getUdpEnabled();
void setUdpEnabled(qint32 udp_enabled);
QString* getUdpAddress();
void setUdpAddress(QString* udp_address);
qint32 getUdpPort();
void setUdpPort(qint32 udp_port);
qint32 getRgbColor();
void setRgbColor(qint32 rgb_color);
QString* getTitle();
void setTitle(QString* title);
qint32 getStreamIndex();
void setStreamIndex(qint32 stream_index);
qint32 getUseReverseApi();
void setUseReverseApi(qint32 use_reverse_api);
QString* getReverseApiAddress();
void setReverseApiAddress(QString* reverse_api_address);
qint32 getReverseApiPort();
void setReverseApiPort(qint32 reverse_api_port);
qint32 getReverseApiDeviceIndex();
void setReverseApiDeviceIndex(qint32 reverse_api_device_index);
qint32 getReverseApiChannelIndex();
void setReverseApiChannelIndex(qint32 reverse_api_channel_index);
SWGChannelMarker* getChannelMarker();
void setChannelMarker(SWGChannelMarker* channel_marker);
SWGRollupState* getRollupState();
void setRollupState(SWGRollupState* rollup_state);
virtual bool isSet() override;
private:
qint64 input_frequency_offset;
bool m_input_frequency_offset_isSet;
qint32 rf_bandwidth;
bool m_rf_bandwidth_isSet;
float gain;
bool m_gain_isSet;
qint32 channel_mute;
bool m_channel_mute_isSet;
qint32 repeat;
bool m_repeat_isSet;
qint32 repeat_count;
bool m_repeat_count_isSet;
qint32 lpf_taps;
bool m_lpf_taps_isSet;
qint32 rf_noise;
bool m_rf_noise_isSet;
QString* text;
bool m_text_isSet;
qint32 pulse_shaping;
bool m_pulse_shaping_isSet;
float beta;
bool m_beta_isSet;
qint32 symbol_span;
bool m_symbol_span_isSet;
qint32 prefix_crlf;
bool m_prefix_crlf_isSet;
qint32 postfix_crlf;
bool m_postfix_crlf_isSet;
qint32 udp_enabled;
bool m_udp_enabled_isSet;
QString* udp_address;
bool m_udp_address_isSet;
qint32 udp_port;
bool m_udp_port_isSet;
qint32 rgb_color;
bool m_rgb_color_isSet;
QString* title;
bool m_title_isSet;
qint32 stream_index;
bool m_stream_index_isSet;
qint32 use_reverse_api;
bool m_use_reverse_api_isSet;
QString* reverse_api_address;
bool m_reverse_api_address_isSet;
qint32 reverse_api_port;
bool m_reverse_api_port_isSet;
qint32 reverse_api_device_index;
bool m_reverse_api_device_index_isSet;
qint32 reverse_api_channel_index;
bool m_reverse_api_channel_index_isSet;
SWGChannelMarker* channel_marker;
bool m_channel_marker_isSet;
SWGRollupState* rollup_state;
bool m_rollup_state_isSet;
};
}
#endif /* SWGPSK31ModSettings_H_ */