Browse Source

Regenerate swagger

chirpmodem-v8.1.0
srcejon 3 months ago
parent
commit
5424ffdb95
  1. 127
      sdrbase/resources/webapi/doc/swagger/include/ACARSDemod.yaml
  2. 126
      sdrbase/resources/webapi/doc/swagger/include/Aircraft.yaml
  3. 2
      sdrbase/resources/webapi/doc/swagger/include/FeatureActions.yaml
  4. 2
      sdrbase/resources/webapi/doc/swagger/include/FeatureReport.yaml
  5. 2
      sdrbase/resources/webapi/doc/swagger/include/FeatureSettings.yaml
  6. 177
      swagger/sdrangel/code/qt5/client/SWGACARSDemodReport.cpp
  7. 76
      swagger/sdrangel/code/qt5/client/SWGACARSDemodReport.h
  8. 1027
      swagger/sdrangel/code/qt5/client/SWGACARSDemodSettings.cpp
  9. 296
      swagger/sdrangel/code/qt5/client/SWGACARSDemodSettings.h
  10. 160
      swagger/sdrangel/code/qt5/client/SWGAircraftActions.cpp
  11. 71
      swagger/sdrangel/code/qt5/client/SWGAircraftActions.h
  12. 183
      swagger/sdrangel/code/qt5/client/SWGAircraftNotificationSettings.cpp
  13. 77
      swagger/sdrangel/code/qt5/client/SWGAircraftNotificationSettings.h
  14. 133
      swagger/sdrangel/code/qt5/client/SWGAircraftProtocolReport.cpp
  15. 65
      swagger/sdrangel/code/qt5/client/SWGAircraftProtocolReport.h
  16. 206
      swagger/sdrangel/code/qt5/client/SWGAircraftReport.cpp
  17. 84
      swagger/sdrangel/code/qt5/client/SWGAircraftReport.h
  18. 611
      swagger/sdrangel/code/qt5/client/SWGAircraftSettings.cpp
  19. 188
      swagger/sdrangel/code/qt5/client/SWGAircraftSettings.h
  20. 35
      swagger/sdrangel/code/qt5/client/SWGChannelReport.cpp
  21. 11
      swagger/sdrangel/code/qt5/client/SWGChannelReport.h
  22. 35
      swagger/sdrangel/code/qt5/client/SWGChannelSettings.cpp
  23. 11
      swagger/sdrangel/code/qt5/client/SWGChannelSettings.h
  24. 25
      swagger/sdrangel/code/qt5/client/SWGFeatureActions.cpp
  25. 7
      swagger/sdrangel/code/qt5/client/SWGFeatureActions.h
  26. 25
      swagger/sdrangel/code/qt5/client/SWGFeatureReport.cpp
  27. 7
      swagger/sdrangel/code/qt5/client/SWGFeatureReport.h
  28. 25
      swagger/sdrangel/code/qt5/client/SWGFeatureSettings.cpp
  29. 7
      swagger/sdrangel/code/qt5/client/SWGFeatureSettings.h
  30. 86
      swagger/sdrangel/code/qt5/client/SWGModelFactory.h

127
sdrbase/resources/webapi/doc/swagger/include/ACARSDemod.yaml

@ -0,0 +1,127 @@ @@ -0,0 +1,127 @@
ACARSDemodSettings:
description: ACARSDemod
properties:
inputFrequencyOffset:
type: integer
format: int64
mode:
description: "Which protocol to demodulate: 0 ACARS, 1 VDL Mode 2, 2 HFDL, 3 Inmarsat Classic Aero"
type: integer
aeroChannel:
description: "Which Aero rate and channel is tuned. 0 600 bps P, 1 1200 bps P, 2 10500 bps P, 3 600 bps R, 4 1200 bps R, 5 600 bps T, 6 1200 bps T. Only used when mode is 3"
type: integer
rfBandwidth:
type: number
format: float
correlationThreshold:
description: "Pre-key detection threshold, as depth of 2400 Hz modulation from 0 to 1. Only used when mode is 0: the other protocols acquire by preamble correlation with their own thresholds"
type: number
format: float
filter:
description: "Regular expression the filtered column must match for a message to be shown"
type: string
filterColumn:
description: "Which column the filter applies to: 0 registration, 1 flight, 2 label, 3 message"
type: integer
hideNoInfo:
description: "Hide frames carrying no usable information - VDL-2 supervisory and acknowledgement frames, and Aero satellite housekeeping. They are still received and still held, only not shown (1 for yes, 0 for no)"
type: integer
showDate:
description: "Show the date as well as the time in the Date/Time column (1 for yes, 0 for no)"
type: integer
displayPhotos:
description: "Show a photograph of the selected aircraft (1 for yes, 0 for no)"
type: integer
displayChart:
description: "Show the frames per second chart (1 for yes, 0 for no)"
type: integer
udpEnabled:
description: "Whether to forward received messages to the specified UDP port"
type: integer
udpAddress:
description: "UDP address to forward received messages to"
type: string
udpPort:
description: "UDP port to forward received messages to"
type: integer
logFilename:
type: string
logEnabled:
type: integer
feedEnabled:
description: "Feed received messages to aggregators, in acarsdec style JSON (1 for yes, 0 for no)"
type: integer
feedStationId:
description: "Station identifier sent with each fed message"
type: string
feedAirframes:
description: "Feed to airframes.io (1 for yes, 0 for no)"
type: integer
feedAirframesHost:
type: string
feedAirframesPort:
type: integer
feedAirframesTcp:
description: "Use TCP rather than UDP for the airframes.io feed (1 for yes, 0 for no)"
type: integer
feedAvdelphi:
description: "Feed to airframes.io's avdelphi (1 for yes, 0 for no)"
type: integer
feedAvdelphiHost:
type: string
feedAvdelphiPort:
type: integer
feedAvdelphiTcp:
description: "Use TCP rather than UDP for the avdelphi feed (1 for yes, 0 for no)"
type: integer
scopeCh1:
description: "Which internal signal the scope shows on channel 1"
type: integer
scopeCh2:
description: "Which internal signal the scope shows on channel 2"
type: integer
rgbColor:
type: integer
title:
type: string
streamIndex:
description: MIMO channel. Not relevant when connected to SI (single Rx).
type: integer
useReverseAPI:
description: Synchronize with reverse API (1 for yes, 0 for no)
type: integer
reverseAPIAddress:
type: string
reverseAPIPort:
type: integer
reverseAPIDeviceIndex:
type: integer
reverseAPIChannelIndex:
type: integer
workspaceIndex:
type: integer
scopeConfig:
$ref: "/doc/swagger/include/GLScope.yaml#/GLScope"
channelMarker:
$ref: "/doc/swagger/include/ChannelMarker.yaml#/ChannelMarker"
rollupState:
$ref: "/doc/swagger/include/RollupState.yaml#/RollupState"
ACARSDemodReport:
description: ACARSDemod
properties:
channelPowerDB:
description: power received in channel (dB)
type: number
format: float
channelSampleRate:
description: "The rate the demodulator runs at, which depends on the protocol and, for Aero, on the rate tuned"
type: integer
aeroEVM:
description: "Error vector magnitude of the Aero carrier, as a fraction. Only meaningful in Aero mode, which needs a continuous carrier to average over"
type: number
format: float
aeroSignalUnitRate:
description: "Fraction of Aero signal units whose CRC passed, from 0 to 1. Only meaningful in Aero mode"
type: number
format: float

126
sdrbase/resources/webapi/doc/swagger/include/Aircraft.yaml

@ -0,0 +1,126 @@ @@ -0,0 +1,126 @@
AircraftSettings:
description: Aircraft
properties:
removalMins:
description: "Archive an aircraft after this many minutes without a report"
type: integer
adsbPositionMins:
description: "How long an ADS-B position stays believable, and so how long the aircraft stays on the map, in minutes"
type: integer
acarsPositionMins:
description: "How long an ACARS, VDL-2, HFDL or Aero position stays believable, in minutes. Longer than the ADS-B figure because those protocols report far less often"
type: integer
retentionDays:
description: "Discard archived aircraft after this many days. 0 keeps them for ever"
type: integer
atcLabels:
description: "Display route, altitude and speed in map labels (1 for yes, 0 for no)"
type: integer
atcCallsigns:
description: "Map labels use the airline's radio callsign (SPEEDBIRD 123) rather than its code (BAW123) (1 for yes, 0 for no). Only has an effect when atcLabels is set"
type: integer
displayMaxRangeOnMap:
description: "Keep the aircraft that set the all time maximum range record on the map, at the position it was in when it set it (1 for yes, 0 for no)"
type: integer
favourLivery:
description: "On the 3D map, prefer a similar aircraft in the correct airline livery over an exact aircraft type in the wrong one (1 for yes, 0 for no)"
type: integer
displayStatistics:
description: "Show the statistics table (1 for yes, 0 for no)"
type: integer
displayChart:
description: "Show the message rate chart (1 for yes, 0 for no)"
type: integer
databaseFilename:
description: "Where the session database is kept. Empty for the default location"
type: string
disabledSources:
description: "Channel URIs not to accept reports from. Empty accepts all"
type: array
items:
type: string
notificationSettings:
type: array
items:
$ref: "/doc/swagger/include/Aircraft.yaml#/AircraftNotificationSettings"
title:
type: string
rgbColor:
type: integer
useReverseAPI:
description: Synchronize with reverse API (1 for yes, 0 for no)
type: integer
reverseAPIAddress:
type: string
reverseAPIPort:
type: integer
reverseAPIFeatureSetIndex:
type: integer
reverseAPIFeatureIndex:
type: integer
workspaceIndex:
type: integer
rollupState:
$ref: "/doc/swagger/include/RollupState.yaml#/RollupState"
AircraftNotificationSettings:
description: "A rule matched against each aircraft, which speaks a phrase or runs a command when it matches"
properties:
matchColumn:
description: "What the regular expression is matched against. 0 ICAO address, 1 registration, 2 flight, 3 aircraft type"
type: integer
regExp:
description: "Regular expression to match"
type: string
speech:
description: "Text to speak when the rule matches. May contain ${icao}, ${reg}, ${flight}, ${type} and ${protocol}"
type: string
command:
description: "Command to run when the rule matches"
type: string
AircraftReport:
description: Aircraft
properties:
aircraftCount:
description: "Aircraft currently held, active and archived"
type: integer
activeAircraftCount:
description: "Aircraft currently being heard from"
type: integer
flightCount:
description: "Flights currently held"
type: integer
messageCount:
description: "Reports received this session, over every protocol"
type: integer
format: int64
protocols:
description: "Reports received this session, per protocol"
type: array
items:
$ref: "/doc/swagger/include/Aircraft.yaml#/AircraftProtocolReport"
AircraftProtocolReport:
description: "What one protocol has contributed this session"
properties:
protocol:
description: "Protocol name: ADS-B, ACARS, VDL-2, HFDL or Aero"
type: string
messageCount:
description: "Reports received on this protocol this session"
type: integer
format: int64
AircraftActions:
description: Aircraft
properties:
selectIcao:
description: "Select the aircraft with this 24 bit ICAO address, written in hexadecimal (e.g. 4CA1FA)"
type: string
selectRegistration:
description: "Select the aircraft with this registration (e.g. G-ABCD)"
type: string
selectFlight:
description: "Select this flight number (e.g. BAW123). The most recently heard flight with that number is chosen"
type: string

2
sdrbase/resources/webapi/doc/swagger/include/FeatureActions.yaml

@ -15,6 +15,8 @@ FeatureActions: @@ -15,6 +15,8 @@ FeatureActions:
type: integer
AFCActions:
$ref: "/doc/swagger/include/AFC.yaml#/AFCActions"
AircraftActions:
$ref: "/doc/swagger/include/Aircraft.yaml#/AircraftActions"
AMBEActions:
$ref: "/doc/swagger/include/AMBE.yaml#/AMBEActions"
GS232ControllerActions:

2
sdrbase/resources/webapi/doc/swagger/include/FeatureReport.yaml

@ -9,6 +9,8 @@ FeatureReport: @@ -9,6 +9,8 @@ FeatureReport:
type: string
AFCReport:
$ref: "/doc/swagger/include/AFC.yaml#/AFCReport"
AircraftReport:
$ref: "/doc/swagger/include/Aircraft.yaml#/AircraftReport"
AMBEReport:
$ref: "/doc/swagger/include/AMBE.yaml#/AMBEReport"
FreqDisplayReport:

2
sdrbase/resources/webapi/doc/swagger/include/FeatureSettings.yaml

@ -15,6 +15,8 @@ FeatureSettings: @@ -15,6 +15,8 @@ FeatureSettings:
type: integer
AFCSettings:
$ref: "/doc/swagger/include/AFC.yaml#/AFCSettings"
AircraftSettings:
$ref: "/doc/swagger/include/Aircraft.yaml#/AircraftSettings"
AISSettings:
$ref: "/doc/swagger/include/AIS.yaml#/AISSettings"
AMBESettings:

177
swagger/sdrangel/code/qt5/client/SWGACARSDemodReport.cpp

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

76
swagger/sdrangel/code/qt5/client/SWGACARSDemodReport.h

@ -0,0 +1,76 @@ @@ -0,0 +1,76 @@
/**
* 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.
*/
/*
* SWGACARSDemodReport.h
*
* ACARSDemod
*/
#ifndef SWGACARSDemodReport_H_
#define SWGACARSDemodReport_H_
#include <QJsonObject>
#include "SWGObject.h"
#include "export.h"
namespace SWGSDRangel {
class SWG_API SWGACARSDemodReport: public SWGObject {
public:
SWGACARSDemodReport();
SWGACARSDemodReport(QString* json);
virtual ~SWGACARSDemodReport();
void init();
void cleanup();
virtual QString asJson () override;
virtual QJsonObject* asJsonObject() override;
virtual void fromJsonObject(QJsonObject &json) override;
virtual SWGACARSDemodReport* fromJson(QString &jsonString) override;
float getChannelPowerDb();
void setChannelPowerDb(float channel_power_db);
qint32 getChannelSampleRate();
void setChannelSampleRate(qint32 channel_sample_rate);
float getAeroEvm();
void setAeroEvm(float aero_evm);
float getAeroSignalUnitRate();
void setAeroSignalUnitRate(float aero_signal_unit_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;
float aero_evm;
bool m_aero_evm_isSet;
float aero_signal_unit_rate;
bool m_aero_signal_unit_rate_isSet;
};
}
#endif /* SWGACARSDemodReport_H_ */

1027
swagger/sdrangel/code/qt5/client/SWGACARSDemodSettings.cpp

File diff suppressed because it is too large Load Diff

296
swagger/sdrangel/code/qt5/client/SWGACARSDemodSettings.h

@ -0,0 +1,296 @@ @@ -0,0 +1,296 @@
/**
* 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.
*/
/*
* SWGACARSDemodSettings.h
*
* ACARSDemod
*/
#ifndef SWGACARSDemodSettings_H_
#define SWGACARSDemodSettings_H_
#include <QJsonObject>
#include "SWGChannelMarker.h"
#include "SWGGLScope.h"
#include "SWGRollupState.h"
#include <QString>
#include "SWGObject.h"
#include "export.h"
namespace SWGSDRangel {
class SWG_API SWGACARSDemodSettings: public SWGObject {
public:
SWGACARSDemodSettings();
SWGACARSDemodSettings(QString* json);
virtual ~SWGACARSDemodSettings();
void init();
void cleanup();
virtual QString asJson () override;
virtual QJsonObject* asJsonObject() override;
virtual void fromJsonObject(QJsonObject &json) override;
virtual SWGACARSDemodSettings* fromJson(QString &jsonString) override;
qint64 getInputFrequencyOffset();
void setInputFrequencyOffset(qint64 input_frequency_offset);
qint32 getMode();
void setMode(qint32 mode);
qint32 getAeroChannel();
void setAeroChannel(qint32 aero_channel);
float getRfBandwidth();
void setRfBandwidth(float rf_bandwidth);
float getCorrelationThreshold();
void setCorrelationThreshold(float correlation_threshold);
QString* getFilter();
void setFilter(QString* filter);
qint32 getFilterColumn();
void setFilterColumn(qint32 filter_column);
qint32 getHideNoInfo();
void setHideNoInfo(qint32 hide_no_info);
qint32 getShowDate();
void setShowDate(qint32 show_date);
qint32 getDisplayPhotos();
void setDisplayPhotos(qint32 display_photos);
qint32 getDisplayChart();
void setDisplayChart(qint32 display_chart);
qint32 getUdpEnabled();
void setUdpEnabled(qint32 udp_enabled);
QString* getUdpAddress();
void setUdpAddress(QString* udp_address);
qint32 getUdpPort();
void setUdpPort(qint32 udp_port);
QString* getLogFilename();
void setLogFilename(QString* log_filename);
qint32 getLogEnabled();
void setLogEnabled(qint32 log_enabled);
qint32 getFeedEnabled();
void setFeedEnabled(qint32 feed_enabled);
QString* getFeedStationId();
void setFeedStationId(QString* feed_station_id);
qint32 getFeedAirframes();
void setFeedAirframes(qint32 feed_airframes);
QString* getFeedAirframesHost();
void setFeedAirframesHost(QString* feed_airframes_host);
qint32 getFeedAirframesPort();
void setFeedAirframesPort(qint32 feed_airframes_port);
qint32 getFeedAirframesTcp();
void setFeedAirframesTcp(qint32 feed_airframes_tcp);
qint32 getFeedAvdelphi();
void setFeedAvdelphi(qint32 feed_avdelphi);
QString* getFeedAvdelphiHost();
void setFeedAvdelphiHost(QString* feed_avdelphi_host);
qint32 getFeedAvdelphiPort();
void setFeedAvdelphiPort(qint32 feed_avdelphi_port);
qint32 getFeedAvdelphiTcp();
void setFeedAvdelphiTcp(qint32 feed_avdelphi_tcp);
qint32 getScopeCh1();
void setScopeCh1(qint32 scope_ch1);
qint32 getScopeCh2();
void setScopeCh2(qint32 scope_ch2);
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);
qint32 getWorkspaceIndex();
void setWorkspaceIndex(qint32 workspace_index);
SWGGLScope* getScopeConfig();
void setScopeConfig(SWGGLScope* scope_config);
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 mode;
bool m_mode_isSet;
qint32 aero_channel;
bool m_aero_channel_isSet;
float rf_bandwidth;
bool m_rf_bandwidth_isSet;
float correlation_threshold;
bool m_correlation_threshold_isSet;
QString* filter;
bool m_filter_isSet;
qint32 filter_column;
bool m_filter_column_isSet;
qint32 hide_no_info;
bool m_hide_no_info_isSet;
qint32 show_date;
bool m_show_date_isSet;
qint32 display_photos;
bool m_display_photos_isSet;
qint32 display_chart;
bool m_display_chart_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;
QString* log_filename;
bool m_log_filename_isSet;
qint32 log_enabled;
bool m_log_enabled_isSet;
qint32 feed_enabled;
bool m_feed_enabled_isSet;
QString* feed_station_id;
bool m_feed_station_id_isSet;
qint32 feed_airframes;
bool m_feed_airframes_isSet;
QString* feed_airframes_host;
bool m_feed_airframes_host_isSet;
qint32 feed_airframes_port;
bool m_feed_airframes_port_isSet;
qint32 feed_airframes_tcp;
bool m_feed_airframes_tcp_isSet;
qint32 feed_avdelphi;
bool m_feed_avdelphi_isSet;
QString* feed_avdelphi_host;
bool m_feed_avdelphi_host_isSet;
qint32 feed_avdelphi_port;
bool m_feed_avdelphi_port_isSet;
qint32 feed_avdelphi_tcp;
bool m_feed_avdelphi_tcp_isSet;
qint32 scope_ch1;
bool m_scope_ch1_isSet;
qint32 scope_ch2;
bool m_scope_ch2_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;
qint32 workspace_index;
bool m_workspace_index_isSet;
SWGGLScope* scope_config;
bool m_scope_config_isSet;
SWGChannelMarker* channel_marker;
bool m_channel_marker_isSet;
SWGRollupState* rollup_state;
bool m_rollup_state_isSet;
};
}
#endif /* SWGACARSDemodSettings_H_ */

160
swagger/sdrangel/code/qt5/client/SWGAircraftActions.cpp

@ -0,0 +1,160 @@ @@ -0,0 +1,160 @@
/**
* 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 "SWGAircraftActions.h"
#include "SWGHelpers.h"
#include <QJsonDocument>
#include <QJsonArray>
#include <QObject>
#include <QDebug>
namespace SWGSDRangel {
SWGAircraftActions::SWGAircraftActions(QString* json) {
init();
this->fromJson(*json);
}
SWGAircraftActions::SWGAircraftActions() {
select_icao = nullptr;
m_select_icao_isSet = false;
select_registration = nullptr;
m_select_registration_isSet = false;
select_flight = nullptr;
m_select_flight_isSet = false;
}
SWGAircraftActions::~SWGAircraftActions() {
this->cleanup();
}
void
SWGAircraftActions::init() {
select_icao = new QString("");
m_select_icao_isSet = false;
select_registration = new QString("");
m_select_registration_isSet = false;
select_flight = new QString("");
m_select_flight_isSet = false;
}
void
SWGAircraftActions::cleanup() {
if(select_icao != nullptr) {
delete select_icao;
}
if(select_registration != nullptr) {
delete select_registration;
}
if(select_flight != nullptr) {
delete select_flight;
}
}
SWGAircraftActions*
SWGAircraftActions::fromJson(QString &json) {
QByteArray array (json.toStdString().c_str());
QJsonDocument doc = QJsonDocument::fromJson(array);
QJsonObject jsonObject = doc.object();
this->fromJsonObject(jsonObject);
return this;
}
void
SWGAircraftActions::fromJsonObject(QJsonObject &pJson) {
::SWGSDRangel::setValue(&select_icao, pJson["selectIcao"], "QString", "QString");
::SWGSDRangel::setValue(&select_registration, pJson["selectRegistration"], "QString", "QString");
::SWGSDRangel::setValue(&select_flight, pJson["selectFlight"], "QString", "QString");
}
QString
SWGAircraftActions::asJson ()
{
QJsonObject* obj = this->asJsonObject();
QJsonDocument doc(*obj);
QByteArray bytes = doc.toJson();
delete obj;
return QString(bytes);
}
QJsonObject*
SWGAircraftActions::asJsonObject() {
QJsonObject* obj = new QJsonObject();
if(select_icao != nullptr && *select_icao != QString("")){
toJsonValue(QString("selectIcao"), select_icao, obj, QString("QString"));
}
if(select_registration != nullptr && *select_registration != QString("")){
toJsonValue(QString("selectRegistration"), select_registration, obj, QString("QString"));
}
if(select_flight != nullptr && *select_flight != QString("")){
toJsonValue(QString("selectFlight"), select_flight, obj, QString("QString"));
}
return obj;
}
QString*
SWGAircraftActions::getSelectIcao() {
return select_icao;
}
void
SWGAircraftActions::setSelectIcao(QString* select_icao) {
this->select_icao = select_icao;
this->m_select_icao_isSet = true;
}
QString*
SWGAircraftActions::getSelectRegistration() {
return select_registration;
}
void
SWGAircraftActions::setSelectRegistration(QString* select_registration) {
this->select_registration = select_registration;
this->m_select_registration_isSet = true;
}
QString*
SWGAircraftActions::getSelectFlight() {
return select_flight;
}
void
SWGAircraftActions::setSelectFlight(QString* select_flight) {
this->select_flight = select_flight;
this->m_select_flight_isSet = true;
}
bool
SWGAircraftActions::isSet(){
bool isObjectUpdated = false;
do{
if(select_icao && *select_icao != QString("")){
isObjectUpdated = true; break;
}
if(select_registration && *select_registration != QString("")){
isObjectUpdated = true; break;
}
if(select_flight && *select_flight != QString("")){
isObjectUpdated = true; break;
}
}while(false);
return isObjectUpdated;
}
}

71
swagger/sdrangel/code/qt5/client/SWGAircraftActions.h

@ -0,0 +1,71 @@ @@ -0,0 +1,71 @@
/**
* 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.
*/
/*
* SWGAircraftActions.h
*
* Aircraft
*/
#ifndef SWGAircraftActions_H_
#define SWGAircraftActions_H_
#include <QJsonObject>
#include <QString>
#include "SWGObject.h"
#include "export.h"
namespace SWGSDRangel {
class SWG_API SWGAircraftActions: public SWGObject {
public:
SWGAircraftActions();
SWGAircraftActions(QString* json);
virtual ~SWGAircraftActions();
void init();
void cleanup();
virtual QString asJson () override;
virtual QJsonObject* asJsonObject() override;
virtual void fromJsonObject(QJsonObject &json) override;
virtual SWGAircraftActions* fromJson(QString &jsonString) override;
QString* getSelectIcao();
void setSelectIcao(QString* select_icao);
QString* getSelectRegistration();
void setSelectRegistration(QString* select_registration);
QString* getSelectFlight();
void setSelectFlight(QString* select_flight);
virtual bool isSet() override;
private:
QString* select_icao;
bool m_select_icao_isSet;
QString* select_registration;
bool m_select_registration_isSet;
QString* select_flight;
bool m_select_flight_isSet;
};
}
#endif /* SWGAircraftActions_H_ */

183
swagger/sdrangel/code/qt5/client/SWGAircraftNotificationSettings.cpp

@ -0,0 +1,183 @@ @@ -0,0 +1,183 @@
/**
* 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 "SWGAircraftNotificationSettings.h"
#include "SWGHelpers.h"
#include <QJsonDocument>
#include <QJsonArray>
#include <QObject>
#include <QDebug>
namespace SWGSDRangel {
SWGAircraftNotificationSettings::SWGAircraftNotificationSettings(QString* json) {
init();
this->fromJson(*json);
}
SWGAircraftNotificationSettings::SWGAircraftNotificationSettings() {
match_column = 0;
m_match_column_isSet = false;
reg_exp = nullptr;
m_reg_exp_isSet = false;
speech = nullptr;
m_speech_isSet = false;
command = nullptr;
m_command_isSet = false;
}
SWGAircraftNotificationSettings::~SWGAircraftNotificationSettings() {
this->cleanup();
}
void
SWGAircraftNotificationSettings::init() {
match_column = 0;
m_match_column_isSet = false;
reg_exp = new QString("");
m_reg_exp_isSet = false;
speech = new QString("");
m_speech_isSet = false;
command = new QString("");
m_command_isSet = false;
}
void
SWGAircraftNotificationSettings::cleanup() {
if(reg_exp != nullptr) {
delete reg_exp;
}
if(speech != nullptr) {
delete speech;
}
if(command != nullptr) {
delete command;
}
}
SWGAircraftNotificationSettings*
SWGAircraftNotificationSettings::fromJson(QString &json) {
QByteArray array (json.toStdString().c_str());
QJsonDocument doc = QJsonDocument::fromJson(array);
QJsonObject jsonObject = doc.object();
this->fromJsonObject(jsonObject);
return this;
}
void
SWGAircraftNotificationSettings::fromJsonObject(QJsonObject &pJson) {
::SWGSDRangel::setValue(&match_column, pJson["matchColumn"], "qint32", "");
::SWGSDRangel::setValue(&reg_exp, pJson["regExp"], "QString", "QString");
::SWGSDRangel::setValue(&speech, pJson["speech"], "QString", "QString");
::SWGSDRangel::setValue(&command, pJson["command"], "QString", "QString");
}
QString
SWGAircraftNotificationSettings::asJson ()
{
QJsonObject* obj = this->asJsonObject();
QJsonDocument doc(*obj);
QByteArray bytes = doc.toJson();
delete obj;
return QString(bytes);
}
QJsonObject*
SWGAircraftNotificationSettings::asJsonObject() {
QJsonObject* obj = new QJsonObject();
if(m_match_column_isSet){
obj->insert("matchColumn", QJsonValue(match_column));
}
if(reg_exp != nullptr && *reg_exp != QString("")){
toJsonValue(QString("regExp"), reg_exp, obj, QString("QString"));
}
if(speech != nullptr && *speech != QString("")){
toJsonValue(QString("speech"), speech, obj, QString("QString"));
}
if(command != nullptr && *command != QString("")){
toJsonValue(QString("command"), command, obj, QString("QString"));
}
return obj;
}
qint32
SWGAircraftNotificationSettings::getMatchColumn() {
return match_column;
}
void
SWGAircraftNotificationSettings::setMatchColumn(qint32 match_column) {
this->match_column = match_column;
this->m_match_column_isSet = true;
}
QString*
SWGAircraftNotificationSettings::getRegExp() {
return reg_exp;
}
void
SWGAircraftNotificationSettings::setRegExp(QString* reg_exp) {
this->reg_exp = reg_exp;
this->m_reg_exp_isSet = true;
}
QString*
SWGAircraftNotificationSettings::getSpeech() {
return speech;
}
void
SWGAircraftNotificationSettings::setSpeech(QString* speech) {
this->speech = speech;
this->m_speech_isSet = true;
}
QString*
SWGAircraftNotificationSettings::getCommand() {
return command;
}
void
SWGAircraftNotificationSettings::setCommand(QString* command) {
this->command = command;
this->m_command_isSet = true;
}
bool
SWGAircraftNotificationSettings::isSet(){
bool isObjectUpdated = false;
do{
if(m_match_column_isSet){
isObjectUpdated = true; break;
}
if(reg_exp && *reg_exp != QString("")){
isObjectUpdated = true; break;
}
if(speech && *speech != QString("")){
isObjectUpdated = true; break;
}
if(command && *command != QString("")){
isObjectUpdated = true; break;
}
}while(false);
return isObjectUpdated;
}
}

77
swagger/sdrangel/code/qt5/client/SWGAircraftNotificationSettings.h

@ -0,0 +1,77 @@ @@ -0,0 +1,77 @@
/**
* 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.
*/
/*
* SWGAircraftNotificationSettings.h
*
* A rule matched against each aircraft, which speaks a phrase or runs a command when it matches
*/
#ifndef SWGAircraftNotificationSettings_H_
#define SWGAircraftNotificationSettings_H_
#include <QJsonObject>
#include <QString>
#include "SWGObject.h"
#include "export.h"
namespace SWGSDRangel {
class SWG_API SWGAircraftNotificationSettings: public SWGObject {
public:
SWGAircraftNotificationSettings();
SWGAircraftNotificationSettings(QString* json);
virtual ~SWGAircraftNotificationSettings();
void init();
void cleanup();
virtual QString asJson () override;
virtual QJsonObject* asJsonObject() override;
virtual void fromJsonObject(QJsonObject &json) override;
virtual SWGAircraftNotificationSettings* fromJson(QString &jsonString) override;
qint32 getMatchColumn();
void setMatchColumn(qint32 match_column);
QString* getRegExp();
void setRegExp(QString* reg_exp);
QString* getSpeech();
void setSpeech(QString* speech);
QString* getCommand();
void setCommand(QString* command);
virtual bool isSet() override;
private:
qint32 match_column;
bool m_match_column_isSet;
QString* reg_exp;
bool m_reg_exp_isSet;
QString* speech;
bool m_speech_isSet;
QString* command;
bool m_command_isSet;
};
}
#endif /* SWGAircraftNotificationSettings_H_ */

133
swagger/sdrangel/code/qt5/client/SWGAircraftProtocolReport.cpp

@ -0,0 +1,133 @@ @@ -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 "SWGAircraftProtocolReport.h"
#include "SWGHelpers.h"
#include <QJsonDocument>
#include <QJsonArray>
#include <QObject>
#include <QDebug>
namespace SWGSDRangel {
SWGAircraftProtocolReport::SWGAircraftProtocolReport(QString* json) {
init();
this->fromJson(*json);
}
SWGAircraftProtocolReport::SWGAircraftProtocolReport() {
protocol = nullptr;
m_protocol_isSet = false;
message_count = 0L;
m_message_count_isSet = false;
}
SWGAircraftProtocolReport::~SWGAircraftProtocolReport() {
this->cleanup();
}
void
SWGAircraftProtocolReport::init() {
protocol = new QString("");
m_protocol_isSet = false;
message_count = 0L;
m_message_count_isSet = false;
}
void
SWGAircraftProtocolReport::cleanup() {
if(protocol != nullptr) {
delete protocol;
}
}
SWGAircraftProtocolReport*
SWGAircraftProtocolReport::fromJson(QString &json) {
QByteArray array (json.toStdString().c_str());
QJsonDocument doc = QJsonDocument::fromJson(array);
QJsonObject jsonObject = doc.object();
this->fromJsonObject(jsonObject);
return this;
}
void
SWGAircraftProtocolReport::fromJsonObject(QJsonObject &pJson) {
::SWGSDRangel::setValue(&protocol, pJson["protocol"], "QString", "QString");
::SWGSDRangel::setValue(&message_count, pJson["messageCount"], "qint64", "");
}
QString
SWGAircraftProtocolReport::asJson ()
{
QJsonObject* obj = this->asJsonObject();
QJsonDocument doc(*obj);
QByteArray bytes = doc.toJson();
delete obj;
return QString(bytes);
}
QJsonObject*
SWGAircraftProtocolReport::asJsonObject() {
QJsonObject* obj = new QJsonObject();
if(protocol != nullptr && *protocol != QString("")){
toJsonValue(QString("protocol"), protocol, obj, QString("QString"));
}
if(m_message_count_isSet){
obj->insert("messageCount", QJsonValue(message_count));
}
return obj;
}
QString*
SWGAircraftProtocolReport::getProtocol() {
return protocol;
}
void
SWGAircraftProtocolReport::setProtocol(QString* protocol) {
this->protocol = protocol;
this->m_protocol_isSet = true;
}
qint64
SWGAircraftProtocolReport::getMessageCount() {
return message_count;
}
void
SWGAircraftProtocolReport::setMessageCount(qint64 message_count) {
this->message_count = message_count;
this->m_message_count_isSet = true;
}
bool
SWGAircraftProtocolReport::isSet(){
bool isObjectUpdated = false;
do{
if(protocol && *protocol != QString("")){
isObjectUpdated = true; break;
}
if(m_message_count_isSet){
isObjectUpdated = true; break;
}
}while(false);
return isObjectUpdated;
}
}

65
swagger/sdrangel/code/qt5/client/SWGAircraftProtocolReport.h

@ -0,0 +1,65 @@ @@ -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.
*/
/*
* SWGAircraftProtocolReport.h
*
* What one protocol has contributed this session
*/
#ifndef SWGAircraftProtocolReport_H_
#define SWGAircraftProtocolReport_H_
#include <QJsonObject>
#include <QString>
#include "SWGObject.h"
#include "export.h"
namespace SWGSDRangel {
class SWG_API SWGAircraftProtocolReport: public SWGObject {
public:
SWGAircraftProtocolReport();
SWGAircraftProtocolReport(QString* json);
virtual ~SWGAircraftProtocolReport();
void init();
void cleanup();
virtual QString asJson () override;
virtual QJsonObject* asJsonObject() override;
virtual void fromJsonObject(QJsonObject &json) override;
virtual SWGAircraftProtocolReport* fromJson(QString &jsonString) override;
QString* getProtocol();
void setProtocol(QString* protocol);
qint64 getMessageCount();
void setMessageCount(qint64 message_count);
virtual bool isSet() override;
private:
QString* protocol;
bool m_protocol_isSet;
qint64 message_count;
bool m_message_count_isSet;
};
}
#endif /* SWGAircraftProtocolReport_H_ */

206
swagger/sdrangel/code/qt5/client/SWGAircraftReport.cpp

@ -0,0 +1,206 @@ @@ -0,0 +1,206 @@
/**
* 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 "SWGAircraftReport.h"
#include "SWGHelpers.h"
#include <QJsonDocument>
#include <QJsonArray>
#include <QObject>
#include <QDebug>
namespace SWGSDRangel {
SWGAircraftReport::SWGAircraftReport(QString* json) {
init();
this->fromJson(*json);
}
SWGAircraftReport::SWGAircraftReport() {
aircraft_count = 0;
m_aircraft_count_isSet = false;
active_aircraft_count = 0;
m_active_aircraft_count_isSet = false;
flight_count = 0;
m_flight_count_isSet = false;
message_count = 0L;
m_message_count_isSet = false;
protocols = nullptr;
m_protocols_isSet = false;
}
SWGAircraftReport::~SWGAircraftReport() {
this->cleanup();
}
void
SWGAircraftReport::init() {
aircraft_count = 0;
m_aircraft_count_isSet = false;
active_aircraft_count = 0;
m_active_aircraft_count_isSet = false;
flight_count = 0;
m_flight_count_isSet = false;
message_count = 0L;
m_message_count_isSet = false;
protocols = new QList<SWGAircraftProtocolReport*>();
m_protocols_isSet = false;
}
void
SWGAircraftReport::cleanup() {
if(protocols != nullptr) {
auto arr = protocols;
for(auto o: *arr) {
delete o;
}
delete protocols;
}
}
SWGAircraftReport*
SWGAircraftReport::fromJson(QString &json) {
QByteArray array (json.toStdString().c_str());
QJsonDocument doc = QJsonDocument::fromJson(array);
QJsonObject jsonObject = doc.object();
this->fromJsonObject(jsonObject);
return this;
}
void
SWGAircraftReport::fromJsonObject(QJsonObject &pJson) {
::SWGSDRangel::setValue(&aircraft_count, pJson["aircraftCount"], "qint32", "");
::SWGSDRangel::setValue(&active_aircraft_count, pJson["activeAircraftCount"], "qint32", "");
::SWGSDRangel::setValue(&flight_count, pJson["flightCount"], "qint32", "");
::SWGSDRangel::setValue(&message_count, pJson["messageCount"], "qint64", "");
::SWGSDRangel::setValue(&protocols, pJson["protocols"], "QList", "SWGAircraftProtocolReport");
}
QString
SWGAircraftReport::asJson ()
{
QJsonObject* obj = this->asJsonObject();
QJsonDocument doc(*obj);
QByteArray bytes = doc.toJson();
delete obj;
return QString(bytes);
}
QJsonObject*
SWGAircraftReport::asJsonObject() {
QJsonObject* obj = new QJsonObject();
if(m_aircraft_count_isSet){
obj->insert("aircraftCount", QJsonValue(aircraft_count));
}
if(m_active_aircraft_count_isSet){
obj->insert("activeAircraftCount", QJsonValue(active_aircraft_count));
}
if(m_flight_count_isSet){
obj->insert("flightCount", QJsonValue(flight_count));
}
if(m_message_count_isSet){
obj->insert("messageCount", QJsonValue(message_count));
}
if(protocols && protocols->size() > 0){
toJsonArray((QList<void*>*)protocols, obj, "protocols", "SWGAircraftProtocolReport");
}
return obj;
}
qint32
SWGAircraftReport::getAircraftCount() {
return aircraft_count;
}
void
SWGAircraftReport::setAircraftCount(qint32 aircraft_count) {
this->aircraft_count = aircraft_count;
this->m_aircraft_count_isSet = true;
}
qint32
SWGAircraftReport::getActiveAircraftCount() {
return active_aircraft_count;
}
void
SWGAircraftReport::setActiveAircraftCount(qint32 active_aircraft_count) {
this->active_aircraft_count = active_aircraft_count;
this->m_active_aircraft_count_isSet = true;
}
qint32
SWGAircraftReport::getFlightCount() {
return flight_count;
}
void
SWGAircraftReport::setFlightCount(qint32 flight_count) {
this->flight_count = flight_count;
this->m_flight_count_isSet = true;
}
qint64
SWGAircraftReport::getMessageCount() {
return message_count;
}
void
SWGAircraftReport::setMessageCount(qint64 message_count) {
this->message_count = message_count;
this->m_message_count_isSet = true;
}
QList<SWGAircraftProtocolReport*>*
SWGAircraftReport::getProtocols() {
return protocols;
}
void
SWGAircraftReport::setProtocols(QList<SWGAircraftProtocolReport*>* protocols) {
this->protocols = protocols;
this->m_protocols_isSet = true;
}
bool
SWGAircraftReport::isSet(){
bool isObjectUpdated = false;
do{
if(m_aircraft_count_isSet){
isObjectUpdated = true; break;
}
if(m_active_aircraft_count_isSet){
isObjectUpdated = true; break;
}
if(m_flight_count_isSet){
isObjectUpdated = true; break;
}
if(m_message_count_isSet){
isObjectUpdated = true; break;
}
if(protocols && (protocols->size() > 0)){
isObjectUpdated = true; break;
}
}while(false);
return isObjectUpdated;
}
}

84
swagger/sdrangel/code/qt5/client/SWGAircraftReport.h

@ -0,0 +1,84 @@ @@ -0,0 +1,84 @@
/**
* 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.
*/
/*
* SWGAircraftReport.h
*
* Aircraft
*/
#ifndef SWGAircraftReport_H_
#define SWGAircraftReport_H_
#include <QJsonObject>
#include "SWGAircraftProtocolReport.h"
#include <QList>
#include "SWGObject.h"
#include "export.h"
namespace SWGSDRangel {
class SWG_API SWGAircraftReport: public SWGObject {
public:
SWGAircraftReport();
SWGAircraftReport(QString* json);
virtual ~SWGAircraftReport();
void init();
void cleanup();
virtual QString asJson () override;
virtual QJsonObject* asJsonObject() override;
virtual void fromJsonObject(QJsonObject &json) override;
virtual SWGAircraftReport* fromJson(QString &jsonString) override;
qint32 getAircraftCount();
void setAircraftCount(qint32 aircraft_count);
qint32 getActiveAircraftCount();
void setActiveAircraftCount(qint32 active_aircraft_count);
qint32 getFlightCount();
void setFlightCount(qint32 flight_count);
qint64 getMessageCount();
void setMessageCount(qint64 message_count);
QList<SWGAircraftProtocolReport*>* getProtocols();
void setProtocols(QList<SWGAircraftProtocolReport*>* protocols);
virtual bool isSet() override;
private:
qint32 aircraft_count;
bool m_aircraft_count_isSet;
qint32 active_aircraft_count;
bool m_active_aircraft_count_isSet;
qint32 flight_count;
bool m_flight_count_isSet;
qint64 message_count;
bool m_message_count_isSet;
QList<SWGAircraftProtocolReport*>* protocols;
bool m_protocols_isSet;
};
}
#endif /* SWGAircraftReport_H_ */

611
swagger/sdrangel/code/qt5/client/SWGAircraftSettings.cpp

@ -0,0 +1,611 @@ @@ -0,0 +1,611 @@
/**
* 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 "SWGAircraftSettings.h"
#include "SWGHelpers.h"
#include <QJsonDocument>
#include <QJsonArray>
#include <QObject>
#include <QDebug>
namespace SWGSDRangel {
SWGAircraftSettings::SWGAircraftSettings(QString* json) {
init();
this->fromJson(*json);
}
SWGAircraftSettings::SWGAircraftSettings() {
removal_mins = 0;
m_removal_mins_isSet = false;
adsb_position_mins = 0;
m_adsb_position_mins_isSet = false;
acars_position_mins = 0;
m_acars_position_mins_isSet = false;
retention_days = 0;
m_retention_days_isSet = false;
atc_labels = 0;
m_atc_labels_isSet = false;
atc_callsigns = 0;
m_atc_callsigns_isSet = false;
display_max_range_on_map = 0;
m_display_max_range_on_map_isSet = false;
favour_livery = 0;
m_favour_livery_isSet = false;
display_statistics = 0;
m_display_statistics_isSet = false;
display_chart = 0;
m_display_chart_isSet = false;
database_filename = nullptr;
m_database_filename_isSet = false;
disabled_sources = nullptr;
m_disabled_sources_isSet = false;
notification_settings = nullptr;
m_notification_settings_isSet = false;
title = nullptr;
m_title_isSet = false;
rgb_color = 0;
m_rgb_color_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_feature_set_index = 0;
m_reverse_api_feature_set_index_isSet = false;
reverse_api_feature_index = 0;
m_reverse_api_feature_index_isSet = false;
workspace_index = 0;
m_workspace_index_isSet = false;
rollup_state = nullptr;
m_rollup_state_isSet = false;
}
SWGAircraftSettings::~SWGAircraftSettings() {
this->cleanup();
}
void
SWGAircraftSettings::init() {
removal_mins = 0;
m_removal_mins_isSet = false;
adsb_position_mins = 0;
m_adsb_position_mins_isSet = false;
acars_position_mins = 0;
m_acars_position_mins_isSet = false;
retention_days = 0;
m_retention_days_isSet = false;
atc_labels = 0;
m_atc_labels_isSet = false;
atc_callsigns = 0;
m_atc_callsigns_isSet = false;
display_max_range_on_map = 0;
m_display_max_range_on_map_isSet = false;
favour_livery = 0;
m_favour_livery_isSet = false;
display_statistics = 0;
m_display_statistics_isSet = false;
display_chart = 0;
m_display_chart_isSet = false;
database_filename = new QString("");
m_database_filename_isSet = false;
disabled_sources = new QList<QString*>();
m_disabled_sources_isSet = false;
notification_settings = new QList<SWGAircraftNotificationSettings*>();
m_notification_settings_isSet = false;
title = new QString("");
m_title_isSet = false;
rgb_color = 0;
m_rgb_color_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_feature_set_index = 0;
m_reverse_api_feature_set_index_isSet = false;
reverse_api_feature_index = 0;
m_reverse_api_feature_index_isSet = false;
workspace_index = 0;
m_workspace_index_isSet = false;
rollup_state = new SWGRollupState();
m_rollup_state_isSet = false;
}
void
SWGAircraftSettings::cleanup() {
if(database_filename != nullptr) {
delete database_filename;
}
if(disabled_sources != nullptr) {
auto arr = disabled_sources;
for(auto o: *arr) {
delete o;
}
delete disabled_sources;
}
if(notification_settings != nullptr) {
auto arr = notification_settings;
for(auto o: *arr) {
delete o;
}
delete notification_settings;
}
if(title != nullptr) {
delete title;
}
if(reverse_api_address != nullptr) {
delete reverse_api_address;
}
if(rollup_state != nullptr) {
delete rollup_state;
}
}
SWGAircraftSettings*
SWGAircraftSettings::fromJson(QString &json) {
QByteArray array (json.toStdString().c_str());
QJsonDocument doc = QJsonDocument::fromJson(array);
QJsonObject jsonObject = doc.object();
this->fromJsonObject(jsonObject);
return this;
}
void
SWGAircraftSettings::fromJsonObject(QJsonObject &pJson) {
::SWGSDRangel::setValue(&removal_mins, pJson["removalMins"], "qint32", "");
::SWGSDRangel::setValue(&adsb_position_mins, pJson["adsbPositionMins"], "qint32", "");
::SWGSDRangel::setValue(&acars_position_mins, pJson["acarsPositionMins"], "qint32", "");
::SWGSDRangel::setValue(&retention_days, pJson["retentionDays"], "qint32", "");
::SWGSDRangel::setValue(&atc_labels, pJson["atcLabels"], "qint32", "");
::SWGSDRangel::setValue(&atc_callsigns, pJson["atcCallsigns"], "qint32", "");
::SWGSDRangel::setValue(&display_max_range_on_map, pJson["displayMaxRangeOnMap"], "qint32", "");
::SWGSDRangel::setValue(&favour_livery, pJson["favourLivery"], "qint32", "");
::SWGSDRangel::setValue(&display_statistics, pJson["displayStatistics"], "qint32", "");
::SWGSDRangel::setValue(&display_chart, pJson["displayChart"], "qint32", "");
::SWGSDRangel::setValue(&database_filename, pJson["databaseFilename"], "QString", "QString");
::SWGSDRangel::setValue(&disabled_sources, pJson["disabledSources"], "QList", "QString");
::SWGSDRangel::setValue(&notification_settings, pJson["notificationSettings"], "QList", "SWGAircraftNotificationSettings");
::SWGSDRangel::setValue(&title, pJson["title"], "QString", "QString");
::SWGSDRangel::setValue(&rgb_color, pJson["rgbColor"], "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_feature_set_index, pJson["reverseAPIFeatureSetIndex"], "qint32", "");
::SWGSDRangel::setValue(&reverse_api_feature_index, pJson["reverseAPIFeatureIndex"], "qint32", "");
::SWGSDRangel::setValue(&workspace_index, pJson["workspaceIndex"], "qint32", "");
::SWGSDRangel::setValue(&rollup_state, pJson["rollupState"], "SWGRollupState", "SWGRollupState");
}
QString
SWGAircraftSettings::asJson ()
{
QJsonObject* obj = this->asJsonObject();
QJsonDocument doc(*obj);
QByteArray bytes = doc.toJson();
delete obj;
return QString(bytes);
}
QJsonObject*
SWGAircraftSettings::asJsonObject() {
QJsonObject* obj = new QJsonObject();
if(m_removal_mins_isSet){
obj->insert("removalMins", QJsonValue(removal_mins));
}
if(m_adsb_position_mins_isSet){
obj->insert("adsbPositionMins", QJsonValue(adsb_position_mins));
}
if(m_acars_position_mins_isSet){
obj->insert("acarsPositionMins", QJsonValue(acars_position_mins));
}
if(m_retention_days_isSet){
obj->insert("retentionDays", QJsonValue(retention_days));
}
if(m_atc_labels_isSet){
obj->insert("atcLabels", QJsonValue(atc_labels));
}
if(m_atc_callsigns_isSet){
obj->insert("atcCallsigns", QJsonValue(atc_callsigns));
}
if(m_display_max_range_on_map_isSet){
obj->insert("displayMaxRangeOnMap", QJsonValue(display_max_range_on_map));
}
if(m_favour_livery_isSet){
obj->insert("favourLivery", QJsonValue(favour_livery));
}
if(m_display_statistics_isSet){
obj->insert("displayStatistics", QJsonValue(display_statistics));
}
if(m_display_chart_isSet){
obj->insert("displayChart", QJsonValue(display_chart));
}
if(database_filename != nullptr && *database_filename != QString("")){
toJsonValue(QString("databaseFilename"), database_filename, obj, QString("QString"));
}
if(disabled_sources && disabled_sources->size() > 0){
toJsonArray((QList<void*>*)disabled_sources, obj, "disabledSources", "QString");
}
if(notification_settings && notification_settings->size() > 0){
toJsonArray((QList<void*>*)notification_settings, obj, "notificationSettings", "SWGAircraftNotificationSettings");
}
if(title != nullptr && *title != QString("")){
toJsonValue(QString("title"), title, obj, QString("QString"));
}
if(m_rgb_color_isSet){
obj->insert("rgbColor", QJsonValue(rgb_color));
}
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_feature_set_index_isSet){
obj->insert("reverseAPIFeatureSetIndex", QJsonValue(reverse_api_feature_set_index));
}
if(m_reverse_api_feature_index_isSet){
obj->insert("reverseAPIFeatureIndex", QJsonValue(reverse_api_feature_index));
}
if(m_workspace_index_isSet){
obj->insert("workspaceIndex", QJsonValue(workspace_index));
}
if((rollup_state != nullptr) && (rollup_state->isSet())){
toJsonValue(QString("rollupState"), rollup_state, obj, QString("SWGRollupState"));
}
return obj;
}
qint32
SWGAircraftSettings::getRemovalMins() {
return removal_mins;
}
void
SWGAircraftSettings::setRemovalMins(qint32 removal_mins) {
this->removal_mins = removal_mins;
this->m_removal_mins_isSet = true;
}
qint32
SWGAircraftSettings::getAdsbPositionMins() {
return adsb_position_mins;
}
void
SWGAircraftSettings::setAdsbPositionMins(qint32 adsb_position_mins) {
this->adsb_position_mins = adsb_position_mins;
this->m_adsb_position_mins_isSet = true;
}
qint32
SWGAircraftSettings::getAcarsPositionMins() {
return acars_position_mins;
}
void
SWGAircraftSettings::setAcarsPositionMins(qint32 acars_position_mins) {
this->acars_position_mins = acars_position_mins;
this->m_acars_position_mins_isSet = true;
}
qint32
SWGAircraftSettings::getRetentionDays() {
return retention_days;
}
void
SWGAircraftSettings::setRetentionDays(qint32 retention_days) {
this->retention_days = retention_days;
this->m_retention_days_isSet = true;
}
qint32
SWGAircraftSettings::getAtcLabels() {
return atc_labels;
}
void
SWGAircraftSettings::setAtcLabels(qint32 atc_labels) {
this->atc_labels = atc_labels;
this->m_atc_labels_isSet = true;
}
qint32
SWGAircraftSettings::getAtcCallsigns() {
return atc_callsigns;
}
void
SWGAircraftSettings::setAtcCallsigns(qint32 atc_callsigns) {
this->atc_callsigns = atc_callsigns;
this->m_atc_callsigns_isSet = true;
}
qint32
SWGAircraftSettings::getDisplayMaxRangeOnMap() {
return display_max_range_on_map;
}
void
SWGAircraftSettings::setDisplayMaxRangeOnMap(qint32 display_max_range_on_map) {
this->display_max_range_on_map = display_max_range_on_map;
this->m_display_max_range_on_map_isSet = true;
}
qint32
SWGAircraftSettings::getFavourLivery() {
return favour_livery;
}
void
SWGAircraftSettings::setFavourLivery(qint32 favour_livery) {
this->favour_livery = favour_livery;
this->m_favour_livery_isSet = true;
}
qint32
SWGAircraftSettings::getDisplayStatistics() {
return display_statistics;
}
void
SWGAircraftSettings::setDisplayStatistics(qint32 display_statistics) {
this->display_statistics = display_statistics;
this->m_display_statistics_isSet = true;
}
qint32
SWGAircraftSettings::getDisplayChart() {
return display_chart;
}
void
SWGAircraftSettings::setDisplayChart(qint32 display_chart) {
this->display_chart = display_chart;
this->m_display_chart_isSet = true;
}
QString*
SWGAircraftSettings::getDatabaseFilename() {
return database_filename;
}
void
SWGAircraftSettings::setDatabaseFilename(QString* database_filename) {
this->database_filename = database_filename;
this->m_database_filename_isSet = true;
}
QList<QString*>*
SWGAircraftSettings::getDisabledSources() {
return disabled_sources;
}
void
SWGAircraftSettings::setDisabledSources(QList<QString*>* disabled_sources) {
this->disabled_sources = disabled_sources;
this->m_disabled_sources_isSet = true;
}
QList<SWGAircraftNotificationSettings*>*
SWGAircraftSettings::getNotificationSettings() {
return notification_settings;
}
void
SWGAircraftSettings::setNotificationSettings(QList<SWGAircraftNotificationSettings*>* notification_settings) {
this->notification_settings = notification_settings;
this->m_notification_settings_isSet = true;
}
QString*
SWGAircraftSettings::getTitle() {
return title;
}
void
SWGAircraftSettings::setTitle(QString* title) {
this->title = title;
this->m_title_isSet = true;
}
qint32
SWGAircraftSettings::getRgbColor() {
return rgb_color;
}
void
SWGAircraftSettings::setRgbColor(qint32 rgb_color) {
this->rgb_color = rgb_color;
this->m_rgb_color_isSet = true;
}
qint32
SWGAircraftSettings::getUseReverseApi() {
return use_reverse_api;
}
void
SWGAircraftSettings::setUseReverseApi(qint32 use_reverse_api) {
this->use_reverse_api = use_reverse_api;
this->m_use_reverse_api_isSet = true;
}
QString*
SWGAircraftSettings::getReverseApiAddress() {
return reverse_api_address;
}
void
SWGAircraftSettings::setReverseApiAddress(QString* reverse_api_address) {
this->reverse_api_address = reverse_api_address;
this->m_reverse_api_address_isSet = true;
}
qint32
SWGAircraftSettings::getReverseApiPort() {
return reverse_api_port;
}
void
SWGAircraftSettings::setReverseApiPort(qint32 reverse_api_port) {
this->reverse_api_port = reverse_api_port;
this->m_reverse_api_port_isSet = true;
}
qint32
SWGAircraftSettings::getReverseApiFeatureSetIndex() {
return reverse_api_feature_set_index;
}
void
SWGAircraftSettings::setReverseApiFeatureSetIndex(qint32 reverse_api_feature_set_index) {
this->reverse_api_feature_set_index = reverse_api_feature_set_index;
this->m_reverse_api_feature_set_index_isSet = true;
}
qint32
SWGAircraftSettings::getReverseApiFeatureIndex() {
return reverse_api_feature_index;
}
void
SWGAircraftSettings::setReverseApiFeatureIndex(qint32 reverse_api_feature_index) {
this->reverse_api_feature_index = reverse_api_feature_index;
this->m_reverse_api_feature_index_isSet = true;
}
qint32
SWGAircraftSettings::getWorkspaceIndex() {
return workspace_index;
}
void
SWGAircraftSettings::setWorkspaceIndex(qint32 workspace_index) {
this->workspace_index = workspace_index;
this->m_workspace_index_isSet = true;
}
SWGRollupState*
SWGAircraftSettings::getRollupState() {
return rollup_state;
}
void
SWGAircraftSettings::setRollupState(SWGRollupState* rollup_state) {
this->rollup_state = rollup_state;
this->m_rollup_state_isSet = true;
}
bool
SWGAircraftSettings::isSet(){
bool isObjectUpdated = false;
do{
if(m_removal_mins_isSet){
isObjectUpdated = true; break;
}
if(m_adsb_position_mins_isSet){
isObjectUpdated = true; break;
}
if(m_acars_position_mins_isSet){
isObjectUpdated = true; break;
}
if(m_retention_days_isSet){
isObjectUpdated = true; break;
}
if(m_atc_labels_isSet){
isObjectUpdated = true; break;
}
if(m_atc_callsigns_isSet){
isObjectUpdated = true; break;
}
if(m_display_max_range_on_map_isSet){
isObjectUpdated = true; break;
}
if(m_favour_livery_isSet){
isObjectUpdated = true; break;
}
if(m_display_statistics_isSet){
isObjectUpdated = true; break;
}
if(m_display_chart_isSet){
isObjectUpdated = true; break;
}
if(database_filename && *database_filename != QString("")){
isObjectUpdated = true; break;
}
if(disabled_sources && (disabled_sources->size() > 0)){
isObjectUpdated = true; break;
}
if(notification_settings && (notification_settings->size() > 0)){
isObjectUpdated = true; break;
}
if(title && *title != QString("")){
isObjectUpdated = true; break;
}
if(m_rgb_color_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_feature_set_index_isSet){
isObjectUpdated = true; break;
}
if(m_reverse_api_feature_index_isSet){
isObjectUpdated = true; break;
}
if(m_workspace_index_isSet){
isObjectUpdated = true; break;
}
if(rollup_state && rollup_state->isSet()){
isObjectUpdated = true; break;
}
}while(false);
return isObjectUpdated;
}
}

188
swagger/sdrangel/code/qt5/client/SWGAircraftSettings.h

@ -0,0 +1,188 @@ @@ -0,0 +1,188 @@
/**
* 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.
*/
/*
* SWGAircraftSettings.h
*
* Aircraft
*/
#ifndef SWGAircraftSettings_H_
#define SWGAircraftSettings_H_
#include <QJsonObject>
#include "SWGAircraftNotificationSettings.h"
#include "SWGRollupState.h"
#include <QList>
#include <QString>
#include "SWGObject.h"
#include "export.h"
namespace SWGSDRangel {
class SWG_API SWGAircraftSettings: public SWGObject {
public:
SWGAircraftSettings();
SWGAircraftSettings(QString* json);
virtual ~SWGAircraftSettings();
void init();
void cleanup();
virtual QString asJson () override;
virtual QJsonObject* asJsonObject() override;
virtual void fromJsonObject(QJsonObject &json) override;
virtual SWGAircraftSettings* fromJson(QString &jsonString) override;
qint32 getRemovalMins();
void setRemovalMins(qint32 removal_mins);
qint32 getAdsbPositionMins();
void setAdsbPositionMins(qint32 adsb_position_mins);
qint32 getAcarsPositionMins();
void setAcarsPositionMins(qint32 acars_position_mins);
qint32 getRetentionDays();
void setRetentionDays(qint32 retention_days);
qint32 getAtcLabels();
void setAtcLabels(qint32 atc_labels);
qint32 getAtcCallsigns();
void setAtcCallsigns(qint32 atc_callsigns);
qint32 getDisplayMaxRangeOnMap();
void setDisplayMaxRangeOnMap(qint32 display_max_range_on_map);
qint32 getFavourLivery();
void setFavourLivery(qint32 favour_livery);
qint32 getDisplayStatistics();
void setDisplayStatistics(qint32 display_statistics);
qint32 getDisplayChart();
void setDisplayChart(qint32 display_chart);
QString* getDatabaseFilename();
void setDatabaseFilename(QString* database_filename);
QList<QString*>* getDisabledSources();
void setDisabledSources(QList<QString*>* disabled_sources);
QList<SWGAircraftNotificationSettings*>* getNotificationSettings();
void setNotificationSettings(QList<SWGAircraftNotificationSettings*>* notification_settings);
QString* getTitle();
void setTitle(QString* title);
qint32 getRgbColor();
void setRgbColor(qint32 rgb_color);
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 getReverseApiFeatureSetIndex();
void setReverseApiFeatureSetIndex(qint32 reverse_api_feature_set_index);
qint32 getReverseApiFeatureIndex();
void setReverseApiFeatureIndex(qint32 reverse_api_feature_index);
qint32 getWorkspaceIndex();
void setWorkspaceIndex(qint32 workspace_index);
SWGRollupState* getRollupState();
void setRollupState(SWGRollupState* rollup_state);
virtual bool isSet() override;
private:
qint32 removal_mins;
bool m_removal_mins_isSet;
qint32 adsb_position_mins;
bool m_adsb_position_mins_isSet;
qint32 acars_position_mins;
bool m_acars_position_mins_isSet;
qint32 retention_days;
bool m_retention_days_isSet;
qint32 atc_labels;
bool m_atc_labels_isSet;
qint32 atc_callsigns;
bool m_atc_callsigns_isSet;
qint32 display_max_range_on_map;
bool m_display_max_range_on_map_isSet;
qint32 favour_livery;
bool m_favour_livery_isSet;
qint32 display_statistics;
bool m_display_statistics_isSet;
qint32 display_chart;
bool m_display_chart_isSet;
QString* database_filename;
bool m_database_filename_isSet;
QList<QString*>* disabled_sources;
bool m_disabled_sources_isSet;
QList<SWGAircraftNotificationSettings*>* notification_settings;
bool m_notification_settings_isSet;
QString* title;
bool m_title_isSet;
qint32 rgb_color;
bool m_rgb_color_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_feature_set_index;
bool m_reverse_api_feature_set_index_isSet;
qint32 reverse_api_feature_index;
bool m_reverse_api_feature_index_isSet;
qint32 workspace_index;
bool m_workspace_index_isSet;
SWGRollupState* rollup_state;
bool m_rollup_state_isSet;
};
}
#endif /* SWGAircraftSettings_H_ */

35
swagger/sdrangel/code/qt5/client/SWGChannelReport.cpp

@ -32,6 +32,8 @@ SWGChannelReport::SWGChannelReport() { @@ -32,6 +32,8 @@ SWGChannelReport::SWGChannelReport() {
m_channel_type_isSet = false;
direction = 0;
m_direction_isSet = false;
acars_demod_report = nullptr;
m_acars_demod_report_isSet = false;
adsb_demod_report = nullptr;
m_adsb_demod_report_isSet = false;
ais_demod_report = nullptr;
@ -156,6 +158,8 @@ SWGChannelReport::init() { @@ -156,6 +158,8 @@ SWGChannelReport::init() {
m_channel_type_isSet = false;
direction = 0;
m_direction_isSet = false;
acars_demod_report = new SWGACARSDemodReport();
m_acars_demod_report_isSet = false;
adsb_demod_report = new SWGADSBDemodReport();
m_adsb_demod_report_isSet = false;
ais_demod_report = new SWGAISDemodReport();
@ -276,6 +280,9 @@ SWGChannelReport::cleanup() { @@ -276,6 +280,9 @@ SWGChannelReport::cleanup() {
delete channel_type;
}
if(acars_demod_report != nullptr) {
delete acars_demod_report;
}
if(adsb_demod_report != nullptr) {
delete adsb_demod_report;
}
@ -461,6 +468,8 @@ SWGChannelReport::fromJsonObject(QJsonObject &pJson) { @@ -461,6 +468,8 @@ SWGChannelReport::fromJsonObject(QJsonObject &pJson) {
::SWGSDRangel::setValue(&direction, pJson["direction"], "qint32", "");
::SWGSDRangel::setValue(&acars_demod_report, pJson["ACARSDemodReport"], "SWGACARSDemodReport", "SWGACARSDemodReport");
::SWGSDRangel::setValue(&adsb_demod_report, pJson["ADSBDemodReport"], "SWGADSBDemodReport", "SWGADSBDemodReport");
::SWGSDRangel::setValue(&ais_demod_report, pJson["AISDemodReport"], "SWGAISDemodReport", "SWGAISDemodReport");
@ -521,10 +530,10 @@ SWGChannelReport::fromJsonObject(QJsonObject &pJson) { @@ -521,10 +530,10 @@ SWGChannelReport::fromJsonObject(QJsonObject &pJson) {
::SWGSDRangel::setValue(&meshtastic_demod_report, pJson["MeshtasticDemodReport"], "SWGMeshtasticDemodReport", "SWGMeshtasticDemodReport");
::SWGSDRangel::setValue(&meshcore_demod_report, pJson["MeshcoreDemodReport"], "SWGMeshcoreDemodReport", "SWGMeshcoreDemodReport");
::SWGSDRangel::setValue(&meshtastic_mod_report, pJson["MeshtasticModReport"], "SWGMeshtasticModReport", "SWGMeshtasticModReport");
::SWGSDRangel::setValue(&meshcore_demod_report, pJson["MeshcoreDemodReport"], "SWGMeshcoreDemodReport", "SWGMeshcoreDemodReport");
::SWGSDRangel::setValue(&meshcore_mod_report, pJson["MeshcoreModReport"], "SWGMeshcoreModReport", "SWGMeshcoreModReport");
::SWGSDRangel::setValue(&navtex_demod_report, pJson["NavtexDemodReport"], "SWGNavtexDemodReport", "SWGNavtexDemodReport");
@ -595,6 +604,9 @@ SWGChannelReport::asJsonObject() { @@ -595,6 +604,9 @@ SWGChannelReport::asJsonObject() {
if(m_direction_isSet){
obj->insert("direction", QJsonValue(direction));
}
if((acars_demod_report != nullptr) && (acars_demod_report->isSet())){
toJsonValue(QString("ACARSDemodReport"), acars_demod_report, obj, QString("SWGACARSDemodReport"));
}
if((adsb_demod_report != nullptr) && (adsb_demod_report->isSet())){
toJsonValue(QString("ADSBDemodReport"), adsb_demod_report, obj, QString("SWGADSBDemodReport"));
}
@ -685,12 +697,12 @@ SWGChannelReport::asJsonObject() { @@ -685,12 +697,12 @@ SWGChannelReport::asJsonObject() {
if((meshtastic_demod_report != nullptr) && (meshtastic_demod_report->isSet())){
toJsonValue(QString("MeshtasticDemodReport"), meshtastic_demod_report, obj, QString("SWGMeshtasticDemodReport"));
}
if((meshcore_demod_report != nullptr) && (meshcore_demod_report->isSet())){
toJsonValue(QString("MeshcoreDemodReport"), meshcore_demod_report, obj, QString("SWGMeshcoreDemodReport"));
}
if((meshtastic_mod_report != nullptr) && (meshtastic_mod_report->isSet())){
toJsonValue(QString("MeshtasticModReport"), meshtastic_mod_report, obj, QString("SWGMeshtasticModReport"));
}
if((meshcore_demod_report != nullptr) && (meshcore_demod_report->isSet())){
toJsonValue(QString("MeshcoreDemodReport"), meshcore_demod_report, obj, QString("SWGMeshcoreDemodReport"));
}
if((meshcore_mod_report != nullptr) && (meshcore_mod_report->isSet())){
toJsonValue(QString("MeshcoreModReport"), meshcore_mod_report, obj, QString("SWGMeshcoreModReport"));
}
@ -787,6 +799,16 @@ SWGChannelReport::setDirection(qint32 direction) { @@ -787,6 +799,16 @@ SWGChannelReport::setDirection(qint32 direction) {
this->m_direction_isSet = true;
}
SWGACARSDemodReport*
SWGChannelReport::getAcarsDemodReport() {
return acars_demod_report;
}
void
SWGChannelReport::setAcarsDemodReport(SWGACARSDemodReport* acars_demod_report) {
this->acars_demod_report = acars_demod_report;
this->m_acars_demod_report_isSet = true;
}
SWGADSBDemodReport*
SWGChannelReport::getAdsbDemodReport() {
return adsb_demod_report;
@ -1358,6 +1380,9 @@ SWGChannelReport::isSet(){ @@ -1358,6 +1380,9 @@ SWGChannelReport::isSet(){
if(m_direction_isSet){
isObjectUpdated = true; break;
}
if(acars_demod_report && acars_demod_report->isSet()){
isObjectUpdated = true; break;
}
if(adsb_demod_report && adsb_demod_report->isSet()){
isObjectUpdated = true; break;
}

11
swagger/sdrangel/code/qt5/client/SWGChannelReport.h

@ -22,6 +22,7 @@ @@ -22,6 +22,7 @@
#include <QJsonObject>
#include "SWGACARSDemodReport.h"
#include "SWGADSBDemodReport.h"
#include "SWGAISDemodReport.h"
#include "SWGAISModReport.h"
@ -51,10 +52,10 @@ @@ -51,10 +52,10 @@
#include "SWGInmarsatDemodReport.h"
#include "SWGM17DemodReport.h"
#include "SWGM17ModReport.h"
#include "SWGMeshtasticDemodReport.h"
#include "SWGMeshtasticModReport.h"
#include "SWGMeshcoreDemodReport.h"
#include "SWGMeshcoreModReport.h"
#include "SWGMeshtasticDemodReport.h"
#include "SWGMeshtasticModReport.h"
#include "SWGNFMDemodReport.h"
#include "SWGNFMModReport.h"
#include "SWGNavtexDemodReport.h"
@ -104,6 +105,9 @@ public: @@ -104,6 +105,9 @@ public:
qint32 getDirection();
void setDirection(qint32 direction);
SWGACARSDemodReport* getAcarsDemodReport();
void setAcarsDemodReport(SWGACARSDemodReport* acars_demod_report);
SWGADSBDemodReport* getAdsbDemodReport();
void setAdsbDemodReport(SWGADSBDemodReport* adsb_demod_report);
@ -282,6 +286,9 @@ private: @@ -282,6 +286,9 @@ private:
qint32 direction;
bool m_direction_isSet;
SWGACARSDemodReport* acars_demod_report;
bool m_acars_demod_report_isSet;
SWGADSBDemodReport* adsb_demod_report;
bool m_adsb_demod_report_isSet;

35
swagger/sdrangel/code/qt5/client/SWGChannelSettings.cpp

@ -36,6 +36,8 @@ SWGChannelSettings::SWGChannelSettings() { @@ -36,6 +36,8 @@ SWGChannelSettings::SWGChannelSettings() {
m_originator_device_set_index_isSet = false;
originator_channel_index = 0;
m_originator_channel_index_isSet = false;
acars_demod_settings = nullptr;
m_acars_demod_settings_isSet = false;
adsb_demod_settings = nullptr;
m_adsb_demod_settings_isSet = false;
ais_demod_settings = nullptr;
@ -184,6 +186,8 @@ SWGChannelSettings::init() { @@ -184,6 +186,8 @@ SWGChannelSettings::init() {
m_originator_device_set_index_isSet = false;
originator_channel_index = 0;
m_originator_channel_index_isSet = false;
acars_demod_settings = new SWGACARSDemodSettings();
m_acars_demod_settings_isSet = false;
adsb_demod_settings = new SWGADSBDemodSettings();
m_adsb_demod_settings_isSet = false;
ais_demod_settings = new SWGAISDemodSettings();
@ -326,6 +330,9 @@ SWGChannelSettings::cleanup() { @@ -326,6 +330,9 @@ SWGChannelSettings::cleanup() {
if(acars_demod_settings != nullptr) {
delete acars_demod_settings;
}
if(adsb_demod_settings != nullptr) {
delete adsb_demod_settings;
}
@ -545,6 +552,8 @@ SWGChannelSettings::fromJsonObject(QJsonObject &pJson) { @@ -545,6 +552,8 @@ SWGChannelSettings::fromJsonObject(QJsonObject &pJson) {
::SWGSDRangel::setValue(&originator_channel_index, pJson["originatorChannelIndex"], "qint32", "");
::SWGSDRangel::setValue(&acars_demod_settings, pJson["ACARSDemodSettings"], "SWGACARSDemodSettings", "SWGACARSDemodSettings");
::SWGSDRangel::setValue(&adsb_demod_settings, pJson["ADSBDemodSettings"], "SWGADSBDemodSettings", "SWGADSBDemodSettings");
::SWGSDRangel::setValue(&ais_demod_settings, pJson["AISDemodSettings"], "SWGAISDemodSettings", "SWGAISDemodSettings");
@ -617,10 +626,10 @@ SWGChannelSettings::fromJsonObject(QJsonObject &pJson) { @@ -617,10 +626,10 @@ SWGChannelSettings::fromJsonObject(QJsonObject &pJson) {
::SWGSDRangel::setValue(&meshtastic_demod_settings, pJson["MeshtasticDemodSettings"], "SWGMeshtasticDemodSettings", "SWGMeshtasticDemodSettings");
::SWGSDRangel::setValue(&meshcore_demod_settings, pJson["MeshcoreDemodSettings"], "SWGMeshcoreDemodSettings", "SWGMeshcoreDemodSettings");
::SWGSDRangel::setValue(&meshtastic_mod_settings, pJson["MeshtasticModSettings"], "SWGMeshtasticModSettings", "SWGMeshtasticModSettings");
::SWGSDRangel::setValue(&meshcore_demod_settings, pJson["MeshcoreDemodSettings"], "SWGMeshcoreDemodSettings", "SWGMeshcoreDemodSettings");
::SWGSDRangel::setValue(&meshcore_mod_settings, pJson["MeshcoreModSettings"], "SWGMeshcoreModSettings", "SWGMeshcoreModSettings");
::SWGSDRangel::setValue(&navtex_demod_settings, pJson["NavtexDemodSettings"], "SWGNavtexDemodSettings", "SWGNavtexDemodSettings");
@ -705,6 +714,9 @@ SWGChannelSettings::asJsonObject() { @@ -705,6 +714,9 @@ SWGChannelSettings::asJsonObject() {
if(m_originator_channel_index_isSet){
obj->insert("originatorChannelIndex", QJsonValue(originator_channel_index));
}
if((acars_demod_settings != nullptr) && (acars_demod_settings->isSet())){
toJsonValue(QString("ACARSDemodSettings"), acars_demod_settings, obj, QString("SWGACARSDemodSettings"));
}
if((adsb_demod_settings != nullptr) && (adsb_demod_settings->isSet())){
toJsonValue(QString("ADSBDemodSettings"), adsb_demod_settings, obj, QString("SWGADSBDemodSettings"));
}
@ -813,12 +825,12 @@ SWGChannelSettings::asJsonObject() { @@ -813,12 +825,12 @@ SWGChannelSettings::asJsonObject() {
if((meshtastic_demod_settings != nullptr) && (meshtastic_demod_settings->isSet())){
toJsonValue(QString("MeshtasticDemodSettings"), meshtastic_demod_settings, obj, QString("SWGMeshtasticDemodSettings"));
}
if((meshcore_demod_settings != nullptr) && (meshcore_demod_settings->isSet())){
toJsonValue(QString("MeshcoreDemodSettings"), meshcore_demod_settings, obj, QString("SWGMeshcoreDemodSettings"));
}
if((meshtastic_mod_settings != nullptr) && (meshtastic_mod_settings->isSet())){
toJsonValue(QString("MeshtasticModSettings"), meshtastic_mod_settings, obj, QString("SWGMeshtasticModSettings"));
}
if((meshcore_demod_settings != nullptr) && (meshcore_demod_settings->isSet())){
toJsonValue(QString("MeshcoreDemodSettings"), meshcore_demod_settings, obj, QString("SWGMeshcoreDemodSettings"));
}
if((meshcore_mod_settings != nullptr) && (meshcore_mod_settings->isSet())){
toJsonValue(QString("MeshcoreModSettings"), meshcore_mod_settings, obj, QString("SWGMeshcoreModSettings"));
}
@ -947,6 +959,16 @@ SWGChannelSettings::setOriginatorChannelIndex(qint32 originator_channel_index) { @@ -947,6 +959,16 @@ SWGChannelSettings::setOriginatorChannelIndex(qint32 originator_channel_index) {
this->m_originator_channel_index_isSet = true;
}
SWGACARSDemodSettings*
SWGChannelSettings::getAcarsDemodSettings() {
return acars_demod_settings;
}
void
SWGChannelSettings::setAcarsDemodSettings(SWGACARSDemodSettings* acars_demod_settings) {
this->acars_demod_settings = acars_demod_settings;
this->m_acars_demod_settings_isSet = true;
}
SWGADSBDemodSettings*
SWGChannelSettings::getAdsbDemodSettings() {
return adsb_demod_settings;
@ -1624,6 +1646,9 @@ SWGChannelSettings::isSet(){ @@ -1624,6 +1646,9 @@ SWGChannelSettings::isSet(){
if(m_originator_channel_index_isSet){
isObjectUpdated = true; break;
}
if(acars_demod_settings && acars_demod_settings->isSet()){
isObjectUpdated = true; break;
}
if(adsb_demod_settings && adsb_demod_settings->isSet()){
isObjectUpdated = true; break;
}

11
swagger/sdrangel/code/qt5/client/SWGChannelSettings.h

@ -22,6 +22,7 @@ @@ -22,6 +22,7 @@
#include <QJsonObject>
#include "SWGACARSDemodSettings.h"
#include "SWGADSBDemodSettings.h"
#include "SWGAISDemodSettings.h"
#include "SWGAISModSettings.h"
@ -59,10 +60,10 @@ @@ -59,10 +60,10 @@
#include "SWGLocalSourceSettings.h"
#include "SWGM17DemodSettings.h"
#include "SWGM17ModSettings.h"
#include "SWGMeshtasticDemodSettings.h"
#include "SWGMeshtasticModSettings.h"
#include "SWGMeshcoreDemodSettings.h"
#include "SWGMeshcoreModSettings.h"
#include "SWGMeshtasticDemodSettings.h"
#include "SWGMeshtasticModSettings.h"
#include "SWGNFMDemodSettings.h"
#include "SWGNFMModSettings.h"
#include "SWGNavtexDemodSettings.h"
@ -120,6 +121,9 @@ public: @@ -120,6 +121,9 @@ public:
qint32 getOriginatorChannelIndex();
void setOriginatorChannelIndex(qint32 originator_channel_index);
SWGACARSDemodSettings* getAcarsDemodSettings();
void setAcarsDemodSettings(SWGACARSDemodSettings* acars_demod_settings);
SWGADSBDemodSettings* getAdsbDemodSettings();
void setAdsbDemodSettings(SWGADSBDemodSettings* adsb_demod_settings);
@ -334,6 +338,9 @@ private: @@ -334,6 +338,9 @@ private:
qint32 originator_channel_index;
bool m_originator_channel_index_isSet;
SWGACARSDemodSettings* acars_demod_settings;
bool m_acars_demod_settings_isSet;
SWGADSBDemodSettings* adsb_demod_settings;
bool m_adsb_demod_settings_isSet;

25
swagger/sdrangel/code/qt5/client/SWGFeatureActions.cpp

@ -36,6 +36,8 @@ SWGFeatureActions::SWGFeatureActions() { @@ -36,6 +36,8 @@ SWGFeatureActions::SWGFeatureActions() {
m_originator_feature_index_isSet = false;
afc_actions = nullptr;
m_afc_actions_isSet = false;
aircraft_actions = nullptr;
m_aircraft_actions_isSet = false;
ambe_actions = nullptr;
m_ambe_actions_isSet = false;
gs232_controller_actions = nullptr;
@ -80,6 +82,8 @@ SWGFeatureActions::init() { @@ -80,6 +82,8 @@ SWGFeatureActions::init() {
m_originator_feature_index_isSet = false;
afc_actions = new SWGAFCActions();
m_afc_actions_isSet = false;
aircraft_actions = new SWGAircraftActions();
m_aircraft_actions_isSet = false;
ambe_actions = new SWGAMBEActions();
m_ambe_actions_isSet = false;
gs232_controller_actions = new SWGGS232ControllerActions();
@ -120,6 +124,9 @@ SWGFeatureActions::cleanup() { @@ -120,6 +124,9 @@ SWGFeatureActions::cleanup() {
if(afc_actions != nullptr) {
delete afc_actions;
}
if(aircraft_actions != nullptr) {
delete aircraft_actions;
}
if(ambe_actions != nullptr) {
delete ambe_actions;
}
@ -183,6 +190,8 @@ SWGFeatureActions::fromJsonObject(QJsonObject &pJson) { @@ -183,6 +190,8 @@ SWGFeatureActions::fromJsonObject(QJsonObject &pJson) {
::SWGSDRangel::setValue(&afc_actions, pJson["AFCActions"], "SWGAFCActions", "SWGAFCActions");
::SWGSDRangel::setValue(&aircraft_actions, pJson["AircraftActions"], "SWGAircraftActions", "SWGAircraftActions");
::SWGSDRangel::setValue(&ambe_actions, pJson["AMBEActions"], "SWGAMBEActions", "SWGAMBEActions");
::SWGSDRangel::setValue(&gs232_controller_actions, pJson["GS232ControllerActions"], "SWGGS232ControllerActions", "SWGGS232ControllerActions");
@ -239,6 +248,9 @@ SWGFeatureActions::asJsonObject() { @@ -239,6 +248,9 @@ SWGFeatureActions::asJsonObject() {
if((afc_actions != nullptr) && (afc_actions->isSet())){
toJsonValue(QString("AFCActions"), afc_actions, obj, QString("SWGAFCActions"));
}
if((aircraft_actions != nullptr) && (aircraft_actions->isSet())){
toJsonValue(QString("AircraftActions"), aircraft_actions, obj, QString("SWGAircraftActions"));
}
if((ambe_actions != nullptr) && (ambe_actions->isSet())){
toJsonValue(QString("AMBEActions"), ambe_actions, obj, QString("SWGAMBEActions"));
}
@ -325,6 +337,16 @@ SWGFeatureActions::setAfcActions(SWGAFCActions* afc_actions) { @@ -325,6 +337,16 @@ SWGFeatureActions::setAfcActions(SWGAFCActions* afc_actions) {
this->m_afc_actions_isSet = true;
}
SWGAircraftActions*
SWGFeatureActions::getAircraftActions() {
return aircraft_actions;
}
void
SWGFeatureActions::setAircraftActions(SWGAircraftActions* aircraft_actions) {
this->aircraft_actions = aircraft_actions;
this->m_aircraft_actions_isSet = true;
}
SWGAMBEActions*
SWGFeatureActions::getAmbeActions() {
return ambe_actions;
@ -482,6 +504,9 @@ SWGFeatureActions::isSet(){ @@ -482,6 +504,9 @@ SWGFeatureActions::isSet(){
if(afc_actions && afc_actions->isSet()){
isObjectUpdated = true; break;
}
if(aircraft_actions && aircraft_actions->isSet()){
isObjectUpdated = true; break;
}
if(ambe_actions && ambe_actions->isSet()){
isObjectUpdated = true; break;
}

7
swagger/sdrangel/code/qt5/client/SWGFeatureActions.h

@ -24,6 +24,7 @@ @@ -24,6 +24,7 @@
#include "SWGAFCActions.h"
#include "SWGAMBEActions.h"
#include "SWGAircraftActions.h"
#include "SWGDemodAnalyzerActions.h"
#include "SWGDenoiserActions.h"
#include "SWGGS232ControllerActions.h"
@ -69,6 +70,9 @@ public: @@ -69,6 +70,9 @@ public:
SWGAFCActions* getAfcActions();
void setAfcActions(SWGAFCActions* afc_actions);
SWGAircraftActions* getAircraftActions();
void setAircraftActions(SWGAircraftActions* aircraft_actions);
SWGAMBEActions* getAmbeActions();
void setAmbeActions(SWGAMBEActions* ambe_actions);
@ -127,6 +131,9 @@ private: @@ -127,6 +131,9 @@ private:
SWGAFCActions* afc_actions;
bool m_afc_actions_isSet;
SWGAircraftActions* aircraft_actions;
bool m_aircraft_actions_isSet;
SWGAMBEActions* ambe_actions;
bool m_ambe_actions_isSet;

25
swagger/sdrangel/code/qt5/client/SWGFeatureReport.cpp

@ -32,6 +32,8 @@ SWGFeatureReport::SWGFeatureReport() { @@ -32,6 +32,8 @@ SWGFeatureReport::SWGFeatureReport() {
m_feature_type_isSet = false;
afc_report = nullptr;
m_afc_report_isSet = false;
aircraft_report = nullptr;
m_aircraft_report_isSet = false;
ambe_report = nullptr;
m_ambe_report_isSet = false;
freq_display_report = nullptr;
@ -68,6 +70,8 @@ SWGFeatureReport::init() { @@ -68,6 +70,8 @@ SWGFeatureReport::init() {
m_feature_type_isSet = false;
afc_report = new SWGAFCReport();
m_afc_report_isSet = false;
aircraft_report = new SWGAircraftReport();
m_aircraft_report_isSet = false;
ambe_report = new SWGAMBEReport();
m_ambe_report_isSet = false;
freq_display_report = new SWGFreqDisplayReport();
@ -102,6 +106,9 @@ SWGFeatureReport::cleanup() { @@ -102,6 +106,9 @@ SWGFeatureReport::cleanup() {
if(afc_report != nullptr) {
delete afc_report;
}
if(aircraft_report != nullptr) {
delete aircraft_report;
}
if(ambe_report != nullptr) {
delete ambe_report;
}
@ -155,6 +162,8 @@ SWGFeatureReport::fromJsonObject(QJsonObject &pJson) { @@ -155,6 +162,8 @@ SWGFeatureReport::fromJsonObject(QJsonObject &pJson) {
::SWGSDRangel::setValue(&afc_report, pJson["AFCReport"], "SWGAFCReport", "SWGAFCReport");
::SWGSDRangel::setValue(&aircraft_report, pJson["AircraftReport"], "SWGAircraftReport", "SWGAircraftReport");
::SWGSDRangel::setValue(&ambe_report, pJson["AMBEReport"], "SWGAMBEReport", "SWGAMBEReport");
::SWGSDRangel::setValue(&freq_display_report, pJson["FreqDisplayReport"], "SWGFreqDisplayReport", "SWGFreqDisplayReport");
@ -201,6 +210,9 @@ SWGFeatureReport::asJsonObject() { @@ -201,6 +210,9 @@ SWGFeatureReport::asJsonObject() {
if((afc_report != nullptr) && (afc_report->isSet())){
toJsonValue(QString("AFCReport"), afc_report, obj, QString("SWGAFCReport"));
}
if((aircraft_report != nullptr) && (aircraft_report->isSet())){
toJsonValue(QString("AircraftReport"), aircraft_report, obj, QString("SWGAircraftReport"));
}
if((ambe_report != nullptr) && (ambe_report->isSet())){
toJsonValue(QString("AMBEReport"), ambe_report, obj, QString("SWGAMBEReport"));
}
@ -261,6 +273,16 @@ SWGFeatureReport::setAfcReport(SWGAFCReport* afc_report) { @@ -261,6 +273,16 @@ SWGFeatureReport::setAfcReport(SWGAFCReport* afc_report) {
this->m_afc_report_isSet = true;
}
SWGAircraftReport*
SWGFeatureReport::getAircraftReport() {
return aircraft_report;
}
void
SWGFeatureReport::setAircraftReport(SWGAircraftReport* aircraft_report) {
this->aircraft_report = aircraft_report;
this->m_aircraft_report_isSet = true;
}
SWGAMBEReport*
SWGFeatureReport::getAmbeReport() {
return ambe_report;
@ -392,6 +414,9 @@ SWGFeatureReport::isSet(){ @@ -392,6 +414,9 @@ SWGFeatureReport::isSet(){
if(afc_report && afc_report->isSet()){
isObjectUpdated = true; break;
}
if(aircraft_report && aircraft_report->isSet()){
isObjectUpdated = true; break;
}
if(ambe_report && ambe_report->isSet()){
isObjectUpdated = true; break;
}

7
swagger/sdrangel/code/qt5/client/SWGFeatureReport.h

@ -24,6 +24,7 @@ @@ -24,6 +24,7 @@
#include "SWGAFCReport.h"
#include "SWGAMBEReport.h"
#include "SWGAircraftReport.h"
#include "SWGFreqDisplayReport.h"
#include "SWGGS232ControllerReport.h"
#include "SWGLimeRFEReport.h"
@ -61,6 +62,9 @@ public: @@ -61,6 +62,9 @@ public:
SWGAFCReport* getAfcReport();
void setAfcReport(SWGAFCReport* afc_report);
SWGAircraftReport* getAircraftReport();
void setAircraftReport(SWGAircraftReport* aircraft_report);
SWGAMBEReport* getAmbeReport();
void setAmbeReport(SWGAMBEReport* ambe_report);
@ -107,6 +111,9 @@ private: @@ -107,6 +111,9 @@ private:
SWGAFCReport* afc_report;
bool m_afc_report_isSet;
SWGAircraftReport* aircraft_report;
bool m_aircraft_report_isSet;
SWGAMBEReport* ambe_report;
bool m_ambe_report_isSet;

25
swagger/sdrangel/code/qt5/client/SWGFeatureSettings.cpp

@ -36,6 +36,8 @@ SWGFeatureSettings::SWGFeatureSettings() { @@ -36,6 +36,8 @@ SWGFeatureSettings::SWGFeatureSettings() {
m_originator_feature_index_isSet = false;
afc_settings = nullptr;
m_afc_settings_isSet = false;
aircraft_settings = nullptr;
m_aircraft_settings_isSet = false;
ais_settings = nullptr;
m_ais_settings_isSet = false;
ambe_settings = nullptr;
@ -94,6 +96,8 @@ SWGFeatureSettings::init() { @@ -94,6 +96,8 @@ SWGFeatureSettings::init() {
m_originator_feature_index_isSet = false;
afc_settings = new SWGAFCSettings();
m_afc_settings_isSet = false;
aircraft_settings = new SWGAircraftSettings();
m_aircraft_settings_isSet = false;
ais_settings = new SWGAISSettings();
m_ais_settings_isSet = false;
ambe_settings = new SWGAMBESettings();
@ -148,6 +152,9 @@ SWGFeatureSettings::cleanup() { @@ -148,6 +152,9 @@ SWGFeatureSettings::cleanup() {
if(afc_settings != nullptr) {
delete afc_settings;
}
if(aircraft_settings != nullptr) {
delete aircraft_settings;
}
if(ais_settings != nullptr) {
delete ais_settings;
}
@ -232,6 +239,8 @@ SWGFeatureSettings::fromJsonObject(QJsonObject &pJson) { @@ -232,6 +239,8 @@ SWGFeatureSettings::fromJsonObject(QJsonObject &pJson) {
::SWGSDRangel::setValue(&afc_settings, pJson["AFCSettings"], "SWGAFCSettings", "SWGAFCSettings");
::SWGSDRangel::setValue(&aircraft_settings, pJson["AircraftSettings"], "SWGAircraftSettings", "SWGAircraftSettings");
::SWGSDRangel::setValue(&ais_settings, pJson["AISSettings"], "SWGAISSettings", "SWGAISSettings");
::SWGSDRangel::setValue(&ambe_settings, pJson["AMBESettings"], "SWGAMBESettings", "SWGAMBESettings");
@ -302,6 +311,9 @@ SWGFeatureSettings::asJsonObject() { @@ -302,6 +311,9 @@ SWGFeatureSettings::asJsonObject() {
if((afc_settings != nullptr) && (afc_settings->isSet())){
toJsonValue(QString("AFCSettings"), afc_settings, obj, QString("SWGAFCSettings"));
}
if((aircraft_settings != nullptr) && (aircraft_settings->isSet())){
toJsonValue(QString("AircraftSettings"), aircraft_settings, obj, QString("SWGAircraftSettings"));
}
if((ais_settings != nullptr) && (ais_settings->isSet())){
toJsonValue(QString("AISSettings"), ais_settings, obj, QString("SWGAISSettings"));
}
@ -409,6 +421,16 @@ SWGFeatureSettings::setAfcSettings(SWGAFCSettings* afc_settings) { @@ -409,6 +421,16 @@ SWGFeatureSettings::setAfcSettings(SWGAFCSettings* afc_settings) {
this->m_afc_settings_isSet = true;
}
SWGAircraftSettings*
SWGFeatureSettings::getAircraftSettings() {
return aircraft_settings;
}
void
SWGFeatureSettings::setAircraftSettings(SWGAircraftSettings* aircraft_settings) {
this->aircraft_settings = aircraft_settings;
this->m_aircraft_settings_isSet = true;
}
SWGAISSettings*
SWGFeatureSettings::getAisSettings() {
return ais_settings;
@ -636,6 +658,9 @@ SWGFeatureSettings::isSet(){ @@ -636,6 +658,9 @@ SWGFeatureSettings::isSet(){
if(afc_settings && afc_settings->isSet()){
isObjectUpdated = true; break;
}
if(aircraft_settings && aircraft_settings->isSet()){
isObjectUpdated = true; break;
}
if(ais_settings && ais_settings->isSet()){
isObjectUpdated = true; break;
}

7
swagger/sdrangel/code/qt5/client/SWGFeatureSettings.h

@ -26,6 +26,7 @@ @@ -26,6 +26,7 @@
#include "SWGAISSettings.h"
#include "SWGAMBESettings.h"
#include "SWGAPRSSettings.h"
#include "SWGAircraftSettings.h"
#include "SWGAntennaToolsSettings.h"
#include "SWGDemodAnalyzerSettings.h"
#include "SWGDenoiserSettings.h"
@ -76,6 +77,9 @@ public: @@ -76,6 +77,9 @@ public:
SWGAFCSettings* getAfcSettings();
void setAfcSettings(SWGAFCSettings* afc_settings);
SWGAircraftSettings* getAircraftSettings();
void setAircraftSettings(SWGAircraftSettings* aircraft_settings);
SWGAISSettings* getAisSettings();
void setAisSettings(SWGAISSettings* ais_settings);
@ -155,6 +159,9 @@ private: @@ -155,6 +159,9 @@ private:
SWGAFCSettings* afc_settings;
bool m_afc_settings_isSet;
SWGAircraftSettings* aircraft_settings;
bool m_aircraft_settings_isSet;
SWGAISSettings* ais_settings;
bool m_ais_settings_isSet;

86
swagger/sdrangel/code/qt5/client/SWGModelFactory.h

@ -14,6 +14,8 @@ @@ -14,6 +14,8 @@
#define ModelFactory_H_
#include "SWGACARSDemodReport.h"
#include "SWGACARSDemodSettings.h"
#include "SWGADSBDemodAircraftState.h"
#include "SWGADSBDemodReport.h"
#include "SWGADSBDemodSettings.h"
@ -48,6 +50,11 @@ @@ -48,6 +50,11 @@
#include "SWGAaroniaRTSAOutputSettings.h"
#include "SWGAaroniaRTSAReport.h"
#include "SWGAaroniaRTSASettings.h"
#include "SWGAircraftActions.h"
#include "SWGAircraftNotificationSettings.h"
#include "SWGAircraftProtocolReport.h"
#include "SWGAircraftReport.h"
#include "SWGAircraftSettings.h"
#include "SWGAirspyHFReport.h"
#include "SWGAirspyHFSettings.h"
#include "SWGAirspyReport.h"
@ -228,15 +235,15 @@ @@ -228,15 +235,15 @@
#include "SWGMapItem_2.h"
#include "SWGMapReport.h"
#include "SWGMapSettings.h"
#include "SWGMeshtasticDemodReport.h"
#include "SWGMeshtasticDemodSettings.h"
#include "SWGMeshtasticModReport.h"
#include "SWGMeshtasticModSettings.h"
#include "SWGMeshcoreDemodReport.h"
#include "SWGMeshcoreDemodSettings.h"
#include "SWGMeshcoreModActions.h"
#include "SWGMeshcoreModReport.h"
#include "SWGMeshcoreModSettings.h"
#include "SWGMeshtasticDemodReport.h"
#include "SWGMeshtasticDemodSettings.h"
#include "SWGMeshtasticModReport.h"
#include "SWGMeshtasticModSettings.h"
#include "SWGMetisMISOSettings.h"
#include "SWGMorseDecoderActions.h"
#include "SWGMorseDecoderSettings.h"
@ -407,6 +414,16 @@ @@ -407,6 +414,16 @@
namespace SWGSDRangel {
inline void* create(QString type) {
if(QString("SWGACARSDemodReport").compare(type) == 0) {
SWGACARSDemodReport *obj = new SWGACARSDemodReport();
obj->init();
return obj;
}
if(QString("SWGACARSDemodSettings").compare(type) == 0) {
SWGACARSDemodSettings *obj = new SWGACARSDemodSettings();
obj->init();
return obj;
}
if(QString("SWGADSBDemodAircraftState").compare(type) == 0) {
SWGADSBDemodAircraftState *obj = new SWGADSBDemodAircraftState();
obj->init();
@ -577,6 +594,31 @@ namespace SWGSDRangel { @@ -577,6 +594,31 @@ namespace SWGSDRangel {
obj->init();
return obj;
}
if(QString("SWGAircraftActions").compare(type) == 0) {
SWGAircraftActions *obj = new SWGAircraftActions();
obj->init();
return obj;
}
if(QString("SWGAircraftNotificationSettings").compare(type) == 0) {
SWGAircraftNotificationSettings *obj = new SWGAircraftNotificationSettings();
obj->init();
return obj;
}
if(QString("SWGAircraftProtocolReport").compare(type) == 0) {
SWGAircraftProtocolReport *obj = new SWGAircraftProtocolReport();
obj->init();
return obj;
}
if(QString("SWGAircraftReport").compare(type) == 0) {
SWGAircraftReport *obj = new SWGAircraftReport();
obj->init();
return obj;
}
if(QString("SWGAircraftSettings").compare(type) == 0) {
SWGAircraftSettings *obj = new SWGAircraftSettings();
obj->init();
return obj;
}
if(QString("SWGAirspyHFReport").compare(type) == 0) {
SWGAirspyHFReport *obj = new SWGAirspyHFReport();
obj->init();
@ -1477,48 +1519,48 @@ namespace SWGSDRangel { @@ -1477,48 +1519,48 @@ namespace SWGSDRangel {
obj->init();
return obj;
}
if(QString("SWGMeshtasticDemodReport").compare(type) == 0) {
SWGMeshtasticDemodReport *obj = new SWGMeshtasticDemodReport();
if(QString("SWGMeshcoreDemodReport").compare(type) == 0) {
SWGMeshcoreDemodReport *obj = new SWGMeshcoreDemodReport();
obj->init();
return obj;
}
if(QString("SWGMeshtasticDemodSettings").compare(type) == 0) {
SWGMeshtasticDemodSettings *obj = new SWGMeshtasticDemodSettings();
if(QString("SWGMeshcoreDemodSettings").compare(type) == 0) {
SWGMeshcoreDemodSettings *obj = new SWGMeshcoreDemodSettings();
obj->init();
return obj;
}
if(QString("SWGMeshtasticModReport").compare(type) == 0) {
SWGMeshtasticModReport *obj = new SWGMeshtasticModReport();
if(QString("SWGMeshcoreModActions").compare(type) == 0) {
SWGMeshcoreModActions *obj = new SWGMeshcoreModActions();
obj->init();
return obj;
}
if(QString("SWGMeshtasticModSettings").compare(type) == 0) {
SWGMeshtasticModSettings *obj = new SWGMeshtasticModSettings();
if(QString("SWGMeshcoreModReport").compare(type) == 0) {
SWGMeshcoreModReport *obj = new SWGMeshcoreModReport();
obj->init();
return obj;
}
if(QString("SWGMeshcoreDemodReport").compare(type) == 0) {
SWGMeshcoreDemodReport *obj = new SWGMeshcoreDemodReport();
if(QString("SWGMeshcoreModSettings").compare(type) == 0) {
SWGMeshcoreModSettings *obj = new SWGMeshcoreModSettings();
obj->init();
return obj;
}
if(QString("SWGMeshcoreDemodSettings").compare(type) == 0) {
SWGMeshcoreDemodSettings *obj = new SWGMeshcoreDemodSettings();
if(QString("SWGMeshtasticDemodReport").compare(type) == 0) {
SWGMeshtasticDemodReport *obj = new SWGMeshtasticDemodReport();
obj->init();
return obj;
}
if(QString("SWGMeshcoreModReport").compare(type) == 0) {
SWGMeshcoreModReport *obj = new SWGMeshcoreModReport();
if(QString("SWGMeshtasticDemodSettings").compare(type) == 0) {
SWGMeshtasticDemodSettings *obj = new SWGMeshtasticDemodSettings();
obj->init();
return obj;
}
if(QString("SWGMeshcoreModSettings").compare(type) == 0) {
SWGMeshcoreModSettings *obj = new SWGMeshcoreModSettings();
if(QString("SWGMeshtasticModReport").compare(type) == 0) {
SWGMeshtasticModReport *obj = new SWGMeshtasticModReport();
obj->init();
return obj;
}
if(QString("SWGMeshcoreModActions").compare(type) == 0) {
SWGMeshcoreModActions *obj = new SWGMeshcoreModActions();
if(QString("SWGMeshtasticModSettings").compare(type) == 0) {
SWGMeshtasticModSettings *obj = new SWGMeshtasticModSettings();
obj->init();
return obj;
}

Loading…
Cancel
Save