30 changed files with 3851 additions and 36 deletions
@ -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 |
||||
@ -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 |
||||
@ -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; |
||||
} |
||||
} |
||||
|
||||
@ -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_ */ |
||||
File diff suppressed because it is too large
Load Diff
@ -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_ */ |
||||
@ -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; |
||||
} |
||||
} |
||||
|
||||
@ -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_ */ |
||||
@ -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(®_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; |
||||
} |
||||
} |
||||
|
||||
@ -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_ */ |
||||
@ -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; |
||||
} |
||||
} |
||||
|
||||
@ -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_ */ |
||||
@ -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; |
||||
} |
||||
} |
||||
|
||||
@ -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_ */ |
||||
@ -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(¬ification_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; |
||||
} |
||||
} |
||||
|
||||
@ -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_ */ |
||||
Loading…
Reference in new issue