From 8e2268d9b862b8209d67a0844ac43bd9e71d9cc6 Mon Sep 17 00:00:00 2001 From: Jon Beniston Date: Fri, 26 Feb 2021 20:47:24 +0000 Subject: [PATCH] Update web API for latest plugins --- sdrbase/webapi/webapirequestmapper.cpp | 14 +- sdrbase/webapi/webapiutils.cpp | 5 +- .../api/swagger/include/APTDemod.yaml | 86 ++ .../api/swagger/include/ChannelActions.yaml | 2 + .../api/swagger/include/ChannelSettings.yaml | 2 + .../api/swagger/include/FeatureSettings.yaml | 2 + .../api/swagger/include/GS232Controller.yaml | 12 + swagger/sdrangel/api/swagger/include/Map.yaml | 24 + .../api/swagger/include/SatelliteTracker.yaml | 109 +++ swagger/sdrangel/code/html2/index.html | 339 ++++++- .../code/qt5/client/SWGAPTDemodActions.cpp | 135 +++ .../code/qt5/client/SWGAPTDemodActions.h | 66 ++ .../qt5/client/SWGAPTDemodActions_aos.cpp | 133 +++ .../code/qt5/client/SWGAPTDemodActions_aos.h | 65 ++ .../qt5/client/SWGAPTDemodActions_los.cpp | 110 +++ .../code/qt5/client/SWGAPTDemodActions_los.h | 59 ++ .../code/qt5/client/SWGAPTDemodSettings.cpp | 597 ++++++++++++ .../code/qt5/client/SWGAPTDemodSettings.h | 185 ++++ .../code/qt5/client/SWGChannelActions.cpp | 25 + .../code/qt5/client/SWGChannelActions.h | 7 + .../code/qt5/client/SWGChannelSettings.cpp | 25 + .../code/qt5/client/SWGChannelSettings.h | 7 + .../code/qt5/client/SWGFeatureSettings.cpp | 25 + .../code/qt5/client/SWGFeatureSettings.h | 7 + .../qt5/client/SWGGS232ControllerSettings.cpp | 92 ++ .../qt5/client/SWGGS232ControllerSettings.h | 24 + .../code/qt5/client/SWGLRPTDemodSettings.cpp | 597 ++++++++++++ .../code/qt5/client/SWGLRPTDemodSettings.h | 185 ++++ .../code/qt5/client/SWGMapCoordinate.cpp | 154 +++ .../code/qt5/client/SWGMapCoordinate.h | 70 ++ .../sdrangel/code/qt5/client/SWGMapItem.cpp | 58 ++ swagger/sdrangel/code/qt5/client/SWGMapItem.h | 14 + .../sdrangel/code/qt5/client/SWGMapItem_2.cpp | 58 ++ .../sdrangel/code/qt5/client/SWGMapItem_2.h | 14 + .../code/qt5/client/SWGMapItem_track.cpp | 154 +++ .../code/qt5/client/SWGMapItem_track.h | 70 ++ .../code/qt5/client/SWGModelFactory.h | 24 + .../client/SWGSatelliteTrackerSettings.cpp | 901 ++++++++++++++++++ .../qt5/client/SWGSatelliteTrackerSettings.h | 258 +++++ 39 files changed, 4711 insertions(+), 3 deletions(-) create mode 100644 swagger/sdrangel/api/swagger/include/APTDemod.yaml create mode 100644 swagger/sdrangel/api/swagger/include/SatelliteTracker.yaml create mode 100644 swagger/sdrangel/code/qt5/client/SWGAPTDemodActions.cpp create mode 100644 swagger/sdrangel/code/qt5/client/SWGAPTDemodActions.h create mode 100644 swagger/sdrangel/code/qt5/client/SWGAPTDemodActions_aos.cpp create mode 100644 swagger/sdrangel/code/qt5/client/SWGAPTDemodActions_aos.h create mode 100644 swagger/sdrangel/code/qt5/client/SWGAPTDemodActions_los.cpp create mode 100644 swagger/sdrangel/code/qt5/client/SWGAPTDemodActions_los.h create mode 100644 swagger/sdrangel/code/qt5/client/SWGAPTDemodSettings.cpp create mode 100644 swagger/sdrangel/code/qt5/client/SWGAPTDemodSettings.h create mode 100644 swagger/sdrangel/code/qt5/client/SWGLRPTDemodSettings.cpp create mode 100644 swagger/sdrangel/code/qt5/client/SWGLRPTDemodSettings.h create mode 100644 swagger/sdrangel/code/qt5/client/SWGMapCoordinate.cpp create mode 100644 swagger/sdrangel/code/qt5/client/SWGMapCoordinate.h create mode 100644 swagger/sdrangel/code/qt5/client/SWGMapItem_track.cpp create mode 100644 swagger/sdrangel/code/qt5/client/SWGMapItem_track.h create mode 100644 swagger/sdrangel/code/qt5/client/SWGSatelliteTrackerSettings.cpp create mode 100644 swagger/sdrangel/code/qt5/client/SWGSatelliteTrackerSettings.h diff --git a/sdrbase/webapi/webapirequestmapper.cpp b/sdrbase/webapi/webapirequestmapper.cpp index d0df93b7a..2b48b7c94 100644 --- a/sdrbase/webapi/webapirequestmapper.cpp +++ b/sdrbase/webapi/webapirequestmapper.cpp @@ -3821,6 +3821,11 @@ bool WebAPIRequestMapper::getChannelSettings( channelSettings->setAmModSettings(new SWGSDRangel::SWGAMModSettings()); channelSettings->getAmModSettings()->fromJsonObject(settingsJsonObject); } + else if (channelSettingsKey == "APTDemodSettings") + { + channelSettings->setAptDemodSettings(new SWGSDRangel::SWGAPTDemodSettings()); + channelSettings->getAptDemodSettings()->fromJsonObject(settingsJsonObject); + } else if (channelSettingsKey == "ATVDemodSettings") { channelSettings->setAtvDemodSettings(new SWGSDRangel::SWGATVDemodSettings()); @@ -4008,7 +4013,12 @@ bool WebAPIRequestMapper::getChannelActions( QJsonObject actionsJsonObject = channelActionsJson[channelActionsKey].toObject(); channelActionsKeys = actionsJsonObject.keys(); - if (channelActionsKey == "FileSinkActions") + if (channelActionsKey == "APTDemodActions") + { + channelActions->setAptDemodActions(new SWGSDRangel::SWGAPTDemodActions()); + channelActions->getAptDemodActions()->fromJsonObject(actionsJsonObject); + } + else if (channelActionsKey == "FileSinkActions") { channelActions->setFileSinkActions(new SWGSDRangel::SWGFileSinkActions()); channelActions->getFileSinkActions()->fromJsonObject(actionsJsonObject); @@ -4564,6 +4574,7 @@ void WebAPIRequestMapper::resetChannelSettings(SWGSDRangel::SWGChannelSettings& channelSettings.setAdsbDemodSettings(nullptr); channelSettings.setAmDemodSettings(nullptr); channelSettings.setAmModSettings(nullptr); + channelSettings.setAptDemodSettings(nullptr); channelSettings.setAtvModSettings(nullptr); channelSettings.setBfmDemodSettings(nullptr); channelSettings.setDsdDemodSettings(nullptr); @@ -4610,6 +4621,7 @@ void WebAPIRequestMapper::resetChannelReport(SWGSDRangel::SWGChannelReport& chan void WebAPIRequestMapper::resetChannelActions(SWGSDRangel::SWGChannelActions& channelActions) { channelActions.cleanup(); + channelActions.setAptDemodActions(nullptr); channelActions.setChannelType(nullptr); channelActions.setFileSourceActions(nullptr); channelActions.setIeee802154ModActions(nullptr); diff --git a/sdrbase/webapi/webapiutils.cpp b/sdrbase/webapi/webapiutils.cpp index 09ce7ba96..175898c23 100644 --- a/sdrbase/webapi/webapiutils.cpp +++ b/sdrbase/webapi/webapiutils.cpp @@ -24,6 +24,7 @@ const QMap WebAPIUtils::m_channelURIToSettingsKey = { {"sdrangel.channel.adsbdemod", "ADSBDemodSettings"}, {"sdrangel.channel.amdemod", "AMDemodSettings"}, + {"sdrangel.channel.aptdemod", "APTDemodSettings"}, {"de.maintech.sdrangelove.channel.am", "AMDemodSettings"}, // remap {"sdrangel.channeltx.modam", "AMModSettings"}, {"sdrangel.channeltx.modatv", "ATVModSettings"}, @@ -47,7 +48,7 @@ const QMap WebAPIUtils::m_channelURIToSettingsKey = { {"sdrangel.demod.localsink", "LocalSinkSettings"}, {"sdrangel.channel.localsink", "LocalSinkSettings"}, // remap {"sdrangel.channel.localsource", "LocalSourceSettings"}, - {"sdrangel.channelrx.demodpacket", "PacketDemodSettings"}, + {"sdrangel.channel.packetdemod", "PacketDemodSettings"}, {"sdrangel.channeltx.modpacket", "PacketModSettings"}, {"sdrangel.channeltx.mod802.15.4", "IEEE_802_15_4_ModSettings"}, {"sdrangel.demod.remotesink", "RemoteSinkSettings"}, @@ -118,6 +119,7 @@ const QMap WebAPIUtils::m_deviceIdToSettingsKey = { const QMap WebAPIUtils::m_channelTypeToSettingsKey = { {"ADSBDemod", "ADSBDemodSettings"}, + {"APTDemod", "APTemodSettings"}, {"AMDemod", "AMDemodSettings"}, {"AMMod", "AMModSettings"}, {"ATVDemod", "ATVDemodSettings"}, @@ -155,6 +157,7 @@ const QMap WebAPIUtils::m_channelTypeToSettingsKey = { }; const QMap WebAPIUtils::m_channelTypeToActionsKey = { + {"APTDemod", "APTDemodActions"}, {"FileSink", "FileSinkActions"}, {"FileSource", "FileSourceActions"}, {"SigMFFileSink", "SigMFFileSinkActions"}, diff --git a/swagger/sdrangel/api/swagger/include/APTDemod.yaml b/swagger/sdrangel/api/swagger/include/APTDemod.yaml new file mode 100644 index 000000000..01a7a4059 --- /dev/null +++ b/swagger/sdrangel/api/swagger/include/APTDemod.yaml @@ -0,0 +1,86 @@ +APTDemodSettings: + description: APTDemod + properties: + inputFrequencyOffset: + description: channel center frequency shift from baseband center in Hz + type: integer + format: int64 + rfBandwidth: + description: channel RF bandwidth in Hz + type: number + format: float + fmDeviation: + description: frequency deviation in Hz + type: integer + cropNoise: + description: crop noise from top and bottom of image + type: integer + denoise: + description: apply denoise filter to image + type: integer + linearEqualise: + description: apply linear equalisation to image + type: integer + histogramEqualise: + description: apply histogram equalisation to image + type: integer + precipitationOverlay: + description: create colour overlay of precipitation + type: integer + flip: + description: flip image for South to North passes + type: integer + channels: + description: which channel to display (0=both, 1=A, 2=B) + type: integer + decodeEnabled: + description: controls whether the decoder is enabled + type: integer + autoSave: + description: automatically save images when acquisition is stopped + type: integer + autoSavePath: + description: directory to automatically save images in + type: string + autoSaveMinScanLines: + desciption: minimum number of scanlines (after cropping) for an image to be automatically saved + 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 + +APTDemodActions: + description: APTDemod + properties: + aos: + description: "Acquisition of signal" + type: object + properties: + satelliteName: + description: "Name of the satellite" + type: string + northToSouthPass: + description: "Satellite is passing from the North to the South (1) or South to North (0)" + type: integer + los: + description: "Loss of signal" + type: object + properties: + satelliteName: + description: "Name of the satellite" + type: string diff --git a/swagger/sdrangel/api/swagger/include/ChannelActions.yaml b/swagger/sdrangel/api/swagger/include/ChannelActions.yaml index 4b7b6e310..2b98fa72a 100644 --- a/swagger/sdrangel/api/swagger/include/ChannelActions.yaml +++ b/swagger/sdrangel/api/swagger/include/ChannelActions.yaml @@ -17,6 +17,8 @@ ChannelActions: originatorChannelIndex: description: Optional for reverse API. This is the channel index from where the message comes from. type: integer + APTDemodActions: + $ref: "http://swgserver:8081/api/swagger/include/APTDemod.yaml#/APTDemodActions" FileSinkActions: $ref: "http://swgserver:8081/api/swagger/include/FileSink.yaml#/FileSinkActions" FileSourceActions: diff --git a/swagger/sdrangel/api/swagger/include/ChannelSettings.yaml b/swagger/sdrangel/api/swagger/include/ChannelSettings.yaml index f72c19146..300ef351f 100644 --- a/swagger/sdrangel/api/swagger/include/ChannelSettings.yaml +++ b/swagger/sdrangel/api/swagger/include/ChannelSettings.yaml @@ -23,6 +23,8 @@ ChannelSettings: $ref: "http://swgserver:8081/api/swagger/include/AMDemod.yaml#/AMDemodSettings" AMModSettings: $ref: "http://swgserver:8081/api/swagger/include/AMMod.yaml#/AMModSettings" + APTDemodSettings: + $ref: "http://swgserver:8081/api/swagger/include/APTDemod.yaml#/APTDemodSettings" ATVDemodSettings: $ref: "http://swgserver:8081/api/swagger/include/ATVDemod.yaml#/ATVDemodSettings" ATVModSettings: diff --git a/swagger/sdrangel/api/swagger/include/FeatureSettings.yaml b/swagger/sdrangel/api/swagger/include/FeatureSettings.yaml index 3f4d7805a..9cbaa9f35 100644 --- a/swagger/sdrangel/api/swagger/include/FeatureSettings.yaml +++ b/swagger/sdrangel/api/swagger/include/FeatureSettings.yaml @@ -25,6 +25,8 @@ FeatureSettings: $ref: "http://swgserver:8081/api/swagger/include/Map.yaml#/MapSettings" RigCtlServerSettings: $ref: "http://swgserver:8081/api/swagger/include/RigCtlServer.yaml#/RigCtlServerSettings" + SatelliteTrackerSettings: + $ref: "http://swgserver:8081/api/swagger/include/SatelliteTracker.yaml#/SatelliteTrackerSettings" StarTrackerSettings: $ref: "http://swgserver:8081/api/swagger/include/StarTracker.yaml#/StarTrackerSettings" SimplePTTSettings: diff --git a/swagger/sdrangel/api/swagger/include/GS232Controller.yaml b/swagger/sdrangel/api/swagger/include/GS232Controller.yaml index 3ffbbad48..347fa5239 100644 --- a/swagger/sdrangel/api/swagger/include/GS232Controller.yaml +++ b/swagger/sdrangel/api/swagger/include/GS232Controller.yaml @@ -25,6 +25,18 @@ GS232ControllerSettings: elevationOffset: description: Elevation offset in degrees type: integer + azimuthMin: + description: Minimum azimuth the controller will output + type: integer + azimuthMax: + description: Maximum azimuth the controller will output + type: integer + elevationMin: + description: Minimum elevation the controller will output + type: integer + elevationMax: + description: Maximum elevation the controller will output + type: integer title: type: string rgbColor: diff --git a/swagger/sdrangel/api/swagger/include/Map.yaml b/swagger/sdrangel/api/swagger/include/Map.yaml index 19ff43c16..a30ce9c7b 100644 --- a/swagger/sdrangel/api/swagger/include/Map.yaml +++ b/swagger/sdrangel/api/swagger/include/Map.yaml @@ -61,3 +61,27 @@ MapItem: description: "Altitude / height above sea level in metres" type: number format: float + track: + description: "Track/path the item has taken" + type: array + items: + $ref: "http://swgserver:8081/api/swagger/include/Map.yaml#/MapCoordinate" + predictedTrack: + description: "Track/path the item is predicted to take" + type: array + items: + $ref: "http://swgserver:8081/api/swagger/include/Map.yaml#/MapCoordinate" + +MapCoordinate: + description: "A map coordinate" + properties: + latitude: + type: number + format: float + longitude: + type: number + format: float + altitude: + type: number + format: float + diff --git a/swagger/sdrangel/api/swagger/include/SatelliteTracker.yaml b/swagger/sdrangel/api/swagger/include/SatelliteTracker.yaml new file mode 100644 index 000000000..6d7636b2d --- /dev/null +++ b/swagger/sdrangel/api/swagger/include/SatelliteTracker.yaml @@ -0,0 +1,109 @@ +SatelliteTrackerSettings: + description: "Satellite Tracker settings" + properties: + latitude: + description: "Latitude in decimal degrees (North positive) of antenna location" + type: number + format: float + longitude: + description: "Longitude in decimal degrees (East positive) of antenna location" + type: number + format: float + heightAboveSeaLevel: + description: "Height above sea level in metres of antenna location" + type: number + format: float + target: + description: "Target satellite" + type: string + satellites: + description: "Satellites to track" + type: array + items: + type: string + tles: + description: "Two line element files" + type: array + items: + type: string + dateTime: + description: "Date and time of observation. ISO 8601 extended format: yyyy-MM-ddTHH:mm:ss with Z suffix for UTC. Empty string for current time." + type: string + minAOSElevation: + description: "Minimum elevation in degrees for AOS" + type: integer + minPassElevation: + description: "Minimum elevation in degrees for a pass" + type: integer + rotatorMaxAzimuth: + description: "Maximum azimuth in degrees for the rotator" + type: integer + rotatorMaxElevation: + description: "Maximum elevation in degrees for elevation" + type: integer + azElUnits: + description: "DMS (0) DM (1) D (2) Decimal (3)" + type: integer + groundTrackPoints: + description: "Number of points used to draw ground tracks" + type: integer + dateFormat: + desciption: "Format for dates in the GUI (E.g: yy/MM/dd)" + type: string + utc: + description: "Times are UTC (1) or local (0)" + type: integer + updatePeriod: + description: "Time in seconds between each calculation of the target's position" + type: number + format: float + dopplerPeriod: + description: "Time in seconds between each Doppler correction" + type: number + format: float + predictionPeriod: + description: "How many days ahead to predict passes in" + type: integer + passStartTime: + description: "Time after which a pass must start" + type: string + passFinishTime: + description: "Time before which a pass must finish" + type: string + defaultFrequency: + description: "Frequency to use for Doppler and free space path loss calculations in Satellite data table" + type: number + format: float + drawOnMap: + description: "Draw satellites on the Map (1 for yes, 0 for no)" + type: integer + autoTarget: + description: "Automatically select target on AOS (1 for yes, 0 for no)" + type: integer + aosSpeech: + description: "Speech warning on AOS" + type: string + losSpeech: + description: "Speech warning on LOS" + type: string + aosCommand: + description: "Command to execute on AOS for all satellites" + type: string + losCommand: + description: "Command to execute on LOS for all satellites" + type: string + 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 + reverseAPIDeviceIndex: + type: integer + reverseAPIChannelIndex: + type: integer diff --git a/swagger/sdrangel/code/html2/index.html b/swagger/sdrangel/code/html2/index.html index e7bd6038b..016942a69 100644 --- a/swagger/sdrangel/code/html2/index.html +++ b/swagger/sdrangel/code/html2/index.html @@ -1107,6 +1107,127 @@ margin-bottom: 20px; } }, "description" : "APRS settings" +}; + defs.APTDemodActions = { + "properties" : { + "aos" : { + "$ref" : "#/definitions/APTDemodActions_aos" + }, + "los" : { + "$ref" : "#/definitions/APTDemodActions_los" + } + }, + "description" : "APTDemod" +}; + defs.APTDemodActions_aos = { + "properties" : { + "satelliteName" : { + "type" : "string", + "description" : "Name of the satellite" + }, + "northToSouthPass" : { + "type" : "integer", + "description" : "Satellite is passing from the North to the South (1) or South to North (0)" + } + }, + "description" : "Acquisition of signal" +}; + defs.APTDemodActions_los = { + "properties" : { + "satelliteName" : { + "type" : "string", + "description" : "Name of the satellite" + } + }, + "description" : "Loss of signal" +}; + defs.APTDemodSettings = { + "properties" : { + "inputFrequencyOffset" : { + "type" : "integer", + "format" : "int64", + "description" : "channel center frequency shift from baseband center in Hz" + }, + "rfBandwidth" : { + "type" : "number", + "format" : "float", + "description" : "channel RF bandwidth in Hz" + }, + "fmDeviation" : { + "type" : "integer", + "description" : "frequency deviation in Hz" + }, + "cropNoise" : { + "type" : "integer", + "description" : "crop noise from top and bottom of image" + }, + "denoise" : { + "type" : "integer", + "description" : "apply denoise filter to image" + }, + "linearEqualise" : { + "type" : "integer", + "description" : "apply linear equalisation to image" + }, + "histogramEqualise" : { + "type" : "integer", + "description" : "apply histogram equalisation to image" + }, + "precipitationOverlay" : { + "type" : "integer", + "description" : "create colour overlay of precipitation" + }, + "flip" : { + "type" : "integer", + "description" : "flip image for South to North passes" + }, + "channels" : { + "type" : "integer", + "description" : "which channel to display (0=both, 1=A, 2=B)" + }, + "decodeEnabled" : { + "type" : "integer", + "description" : "controls whether the decoder is enabled" + }, + "autoSave" : { + "type" : "integer", + "description" : "automatically save images when acquisition is stopped" + }, + "autoSavePath" : { + "type" : "string", + "description" : "directory to automatically save images in" + }, + "autoSaveMinScanLines" : { + "type" : "integer" + }, + "rgbColor" : { + "type" : "integer" + }, + "title" : { + "type" : "string" + }, + "streamIndex" : { + "type" : "integer", + "description" : "MIMO channel. Not relevant when connected to SI (single Rx)." + }, + "useReverseAPI" : { + "type" : "integer", + "description" : "Synchronize with reverse API (1 for yes, 0 for no)" + }, + "reverseAPIAddress" : { + "type" : "string" + }, + "reverseAPIPort" : { + "type" : "integer" + }, + "reverseAPIDeviceIndex" : { + "type" : "integer" + }, + "reverseAPIChannelIndex" : { + "type" : "integer" + } + }, + "description" : "APTDemod" }; defs.ATVDemodSettings = { "properties" : { @@ -2411,6 +2532,9 @@ margin-bottom: 20px; "type" : "integer", "description" : "Optional for reverse API. This is the channel index from where the message comes from." }, + "APTDemodActions" : { + "$ref" : "#/definitions/APTDemodActions" + }, "FileSinkActions" : { "$ref" : "#/definitions/FileSinkActions" }, @@ -2659,6 +2783,9 @@ margin-bottom: 20px; "AMModSettings" : { "$ref" : "#/definitions/AMModSettings" }, + "APTDemodSettings" : { + "$ref" : "#/definitions/APTDemodSettings" + }, "ATVDemodSettings" : { "$ref" : "#/definitions/ATVDemodSettings" }, @@ -4188,6 +4315,9 @@ margin-bottom: 20px; "RigCtlServerSettings" : { "$ref" : "#/definitions/RigCtlServerSettings" }, + "SatelliteTrackerSettings" : { + "$ref" : "#/definitions/SatelliteTrackerSettings" + }, "StarTrackerSettings" : { "$ref" : "#/definitions/StarTrackerSettings" }, @@ -4946,6 +5076,22 @@ margin-bottom: 20px; "type" : "integer", "description" : "Elevation offset in degrees" }, + "azimuthMin" : { + "type" : "integer", + "description" : "Minimum azimuth the controller will output" + }, + "azimuthMax" : { + "type" : "integer", + "description" : "Maximum azimuth the controller will output" + }, + "elevationMin" : { + "type" : "integer", + "description" : "Minimum elevation the controller will output" + }, + "elevationMax" : { + "type" : "integer", + "description" : "Maximum elevation the controller will output" + }, "title" : { "type" : "string" }, @@ -6266,6 +6412,23 @@ margin-bottom: 20px; } }, "description" : "Map" +}; + defs.MapCoordinate = { + "properties" : { + "latitude" : { + "type" : "number", + "format" : "float" + }, + "longitude" : { + "type" : "number", + "format" : "float" + }, + "altitude" : { + "type" : "number", + "format" : "float" + } + }, + "description" : "A map coordinate" }; defs.MapItem = { "required" : [ "name" ], @@ -6303,6 +6466,20 @@ margin-bottom: 20px; "type" : "number", "format" : "float", "description" : "Altitude / height above sea level in metres" + }, + "track" : { + "type" : "array", + "description" : "Track/path the item has taken", + "items" : { + "$ref" : "#/definitions/MapCoordinate" + } + }, + "predictedTrack" : { + "type" : "array", + "description" : "Track/path the item is predicted to take", + "items" : { + "$ref" : "#/definitions/MapCoordinate" + } } }, "description" : "An item to draw on the map. Set image to an empty string to remove item from the map." @@ -6343,6 +6520,20 @@ margin-bottom: 20px; "type" : "number", "format" : "float", "description" : "Altitude / height above sea level in metres" + }, + "track" : { + "type" : "array", + "description" : "Track/path the item has taken", + "items" : { + "$ref" : "#/definitions/MapCoordinate" + } + }, + "predictedTrack" : { + "type" : "array", + "description" : "Track/path the item is predicted to take", + "items" : { + "$ref" : "#/definitions/MapCoordinate" + } } }, "description" : "An item to draw on the map. Set image to an empty string to remove item from the map." @@ -8360,6 +8551,152 @@ margin-bottom: 20px; } }, "description" : "Information about a logical device available from an attached hardware device that can be used as a sampling device" +}; + defs.SatelliteTrackerSettings = { + "properties" : { + "latitude" : { + "type" : "number", + "format" : "float", + "description" : "Latitude in decimal degrees (North positive) of antenna location" + }, + "longitude" : { + "type" : "number", + "format" : "float", + "description" : "Longitude in decimal degrees (East positive) of antenna location" + }, + "heightAboveSeaLevel" : { + "type" : "number", + "format" : "float", + "description" : "Height above sea level in metres of antenna location" + }, + "target" : { + "type" : "string", + "description" : "Target satellite" + }, + "satellites" : { + "type" : "array", + "description" : "Satellites to track", + "items" : { + "type" : "string" + } + }, + "tles" : { + "type" : "array", + "description" : "Two line element files", + "items" : { + "type" : "string" + } + }, + "dateTime" : { + "type" : "string", + "description" : "Date and time of observation. ISO 8601 extended format: yyyy-MM-ddTHH:mm:ss with Z suffix for UTC. Empty string for current time." + }, + "minAOSElevation" : { + "type" : "integer", + "description" : "Minimum elevation in degrees for AOS" + }, + "minPassElevation" : { + "type" : "integer", + "description" : "Minimum elevation in degrees for a pass" + }, + "rotatorMaxAzimuth" : { + "type" : "integer", + "description" : "Maximum azimuth in degrees for the rotator" + }, + "rotatorMaxElevation" : { + "type" : "integer", + "description" : "Maximum elevation in degrees for elevation" + }, + "azElUnits" : { + "type" : "integer", + "description" : "DMS (0) DM (1) D (2) Decimal (3)" + }, + "groundTrackPoints" : { + "type" : "integer", + "description" : "Number of points used to draw ground tracks" + }, + "dateFormat" : { + "type" : "string" + }, + "utc" : { + "type" : "integer", + "description" : "Times are UTC (1) or local (0)" + }, + "updatePeriod" : { + "type" : "number", + "format" : "float", + "description" : "Time in seconds between each calculation of the target's position" + }, + "dopplerPeriod" : { + "type" : "number", + "format" : "float", + "description" : "Time in seconds between each Doppler correction" + }, + "predictionPeriod" : { + "type" : "integer", + "description" : "How many days ahead to predict passes in" + }, + "passStartTime" : { + "type" : "string", + "description" : "Time after which a pass must start" + }, + "passFinishTime" : { + "type" : "string", + "description" : "Time before which a pass must finish" + }, + "defaultFrequency" : { + "type" : "number", + "format" : "float", + "description" : "Frequency to use for Doppler and free space path loss calculations in Satellite data table" + }, + "drawOnMap" : { + "type" : "integer", + "description" : "Draw satellites on the Map (1 for yes, 0 for no)" + }, + "autoTarget" : { + "type" : "integer", + "description" : "Automatically select target on AOS (1 for yes, 0 for no)" + }, + "aosSpeech" : { + "type" : "string", + "description" : "Speech warning on AOS" + }, + "losSpeech" : { + "type" : "string", + "description" : "Speech warning on LOS" + }, + "aosCommand" : { + "type" : "string", + "description" : "Command to execute on AOS for all satellites" + }, + "losCommand" : { + "type" : "string", + "description" : "Command to execute on LOS for all satellites" + }, + "title" : { + "type" : "string" + }, + "rgbColor" : { + "type" : "integer" + }, + "useReverseAPI" : { + "type" : "integer", + "description" : "Synchronize with reverse API (1 for yes, 0 for no)" + }, + "reverseAPIAddress" : { + "type" : "string" + }, + "reverseAPIPort" : { + "type" : "integer" + }, + "reverseAPIDeviceIndex" : { + "type" : "integer" + }, + "reverseAPIChannelIndex" : { + "type" : "integer" + } + }, + "description" : "Satellite Tracker settings" }; defs.SigMFFileInputActions = { "properties" : { @@ -45286,7 +45623,7 @@ except ApiException as e:
- Generated 2021-02-11T23:51:16.152+01:00 + Generated 2021-02-26T21:05:20.434+01:00
diff --git a/swagger/sdrangel/code/qt5/client/SWGAPTDemodActions.cpp b/swagger/sdrangel/code/qt5/client/SWGAPTDemodActions.cpp new file mode 100644 index 000000000..05d34881a --- /dev/null +++ b/swagger/sdrangel/code/qt5/client/SWGAPTDemodActions.cpp @@ -0,0 +1,135 @@ +/** + * 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: 6.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 "SWGAPTDemodActions.h" + +#include "SWGHelpers.h" + +#include +#include +#include +#include + +namespace SWGSDRangel { + +SWGAPTDemodActions::SWGAPTDemodActions(QString* json) { + init(); + this->fromJson(*json); +} + +SWGAPTDemodActions::SWGAPTDemodActions() { + aos = nullptr; + m_aos_isSet = false; + los = nullptr; + m_los_isSet = false; +} + +SWGAPTDemodActions::~SWGAPTDemodActions() { + this->cleanup(); +} + +void +SWGAPTDemodActions::init() { + aos = new SWGAPTDemodActions_aos(); + m_aos_isSet = false; + los = new SWGAPTDemodActions_los(); + m_los_isSet = false; +} + +void +SWGAPTDemodActions::cleanup() { + if(aos != nullptr) { + delete aos; + } + if(los != nullptr) { + delete los; + } +} + +SWGAPTDemodActions* +SWGAPTDemodActions::fromJson(QString &json) { + QByteArray array (json.toStdString().c_str()); + QJsonDocument doc = QJsonDocument::fromJson(array); + QJsonObject jsonObject = doc.object(); + this->fromJsonObject(jsonObject); + return this; +} + +void +SWGAPTDemodActions::fromJsonObject(QJsonObject &pJson) { + ::SWGSDRangel::setValue(&aos, pJson["aos"], "SWGAPTDemodActions_aos", "SWGAPTDemodActions_aos"); + + ::SWGSDRangel::setValue(&los, pJson["los"], "SWGAPTDemodActions_los", "SWGAPTDemodActions_los"); + +} + +QString +SWGAPTDemodActions::asJson () +{ + QJsonObject* obj = this->asJsonObject(); + + QJsonDocument doc(*obj); + QByteArray bytes = doc.toJson(); + delete obj; + return QString(bytes); +} + +QJsonObject* +SWGAPTDemodActions::asJsonObject() { + QJsonObject* obj = new QJsonObject(); + if((aos != nullptr) && (aos->isSet())){ + toJsonValue(QString("aos"), aos, obj, QString("SWGAPTDemodActions_aos")); + } + if((los != nullptr) && (los->isSet())){ + toJsonValue(QString("los"), los, obj, QString("SWGAPTDemodActions_los")); + } + + return obj; +} + +SWGAPTDemodActions_aos* +SWGAPTDemodActions::getAos() { + return aos; +} +void +SWGAPTDemodActions::setAos(SWGAPTDemodActions_aos* aos) { + this->aos = aos; + this->m_aos_isSet = true; +} + +SWGAPTDemodActions_los* +SWGAPTDemodActions::getLos() { + return los; +} +void +SWGAPTDemodActions::setLos(SWGAPTDemodActions_los* los) { + this->los = los; + this->m_los_isSet = true; +} + + +bool +SWGAPTDemodActions::isSet(){ + bool isObjectUpdated = false; + do{ + if(aos && aos->isSet()){ + isObjectUpdated = true; break; + } + if(los && los->isSet()){ + isObjectUpdated = true; break; + } + }while(false); + return isObjectUpdated; +} +} + diff --git a/swagger/sdrangel/code/qt5/client/SWGAPTDemodActions.h b/swagger/sdrangel/code/qt5/client/SWGAPTDemodActions.h new file mode 100644 index 000000000..2c28bb3b5 --- /dev/null +++ b/swagger/sdrangel/code/qt5/client/SWGAPTDemodActions.h @@ -0,0 +1,66 @@ +/** + * 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: 6.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. + */ + +/* + * SWGAPTDemodActions.h + * + * APTDemod + */ + +#ifndef SWGAPTDemodActions_H_ +#define SWGAPTDemodActions_H_ + +#include + + +#include "SWGAPTDemodActions_aos.h" +#include "SWGAPTDemodActions_los.h" + +#include "SWGObject.h" +#include "export.h" + +namespace SWGSDRangel { + +class SWG_API SWGAPTDemodActions: public SWGObject { +public: + SWGAPTDemodActions(); + SWGAPTDemodActions(QString* json); + virtual ~SWGAPTDemodActions(); + void init(); + void cleanup(); + + virtual QString asJson () override; + virtual QJsonObject* asJsonObject() override; + virtual void fromJsonObject(QJsonObject &json) override; + virtual SWGAPTDemodActions* fromJson(QString &jsonString) override; + + SWGAPTDemodActions_aos* getAos(); + void setAos(SWGAPTDemodActions_aos* aos); + + SWGAPTDemodActions_los* getLos(); + void setLos(SWGAPTDemodActions_los* los); + + + virtual bool isSet() override; + +private: + SWGAPTDemodActions_aos* aos; + bool m_aos_isSet; + + SWGAPTDemodActions_los* los; + bool m_los_isSet; + +}; + +} + +#endif /* SWGAPTDemodActions_H_ */ diff --git a/swagger/sdrangel/code/qt5/client/SWGAPTDemodActions_aos.cpp b/swagger/sdrangel/code/qt5/client/SWGAPTDemodActions_aos.cpp new file mode 100644 index 000000000..3a5e1b919 --- /dev/null +++ b/swagger/sdrangel/code/qt5/client/SWGAPTDemodActions_aos.cpp @@ -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: 6.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 "SWGAPTDemodActions_aos.h" + +#include "SWGHelpers.h" + +#include +#include +#include +#include + +namespace SWGSDRangel { + +SWGAPTDemodActions_aos::SWGAPTDemodActions_aos(QString* json) { + init(); + this->fromJson(*json); +} + +SWGAPTDemodActions_aos::SWGAPTDemodActions_aos() { + satellite_name = nullptr; + m_satellite_name_isSet = false; + north_to_south_pass = 0; + m_north_to_south_pass_isSet = false; +} + +SWGAPTDemodActions_aos::~SWGAPTDemodActions_aos() { + this->cleanup(); +} + +void +SWGAPTDemodActions_aos::init() { + satellite_name = new QString(""); + m_satellite_name_isSet = false; + north_to_south_pass = 0; + m_north_to_south_pass_isSet = false; +} + +void +SWGAPTDemodActions_aos::cleanup() { + if(satellite_name != nullptr) { + delete satellite_name; + } + +} + +SWGAPTDemodActions_aos* +SWGAPTDemodActions_aos::fromJson(QString &json) { + QByteArray array (json.toStdString().c_str()); + QJsonDocument doc = QJsonDocument::fromJson(array); + QJsonObject jsonObject = doc.object(); + this->fromJsonObject(jsonObject); + return this; +} + +void +SWGAPTDemodActions_aos::fromJsonObject(QJsonObject &pJson) { + ::SWGSDRangel::setValue(&satellite_name, pJson["satelliteName"], "QString", "QString"); + + ::SWGSDRangel::setValue(&north_to_south_pass, pJson["northToSouthPass"], "qint32", ""); + +} + +QString +SWGAPTDemodActions_aos::asJson () +{ + QJsonObject* obj = this->asJsonObject(); + + QJsonDocument doc(*obj); + QByteArray bytes = doc.toJson(); + delete obj; + return QString(bytes); +} + +QJsonObject* +SWGAPTDemodActions_aos::asJsonObject() { + QJsonObject* obj = new QJsonObject(); + if(satellite_name != nullptr && *satellite_name != QString("")){ + toJsonValue(QString("satelliteName"), satellite_name, obj, QString("QString")); + } + if(m_north_to_south_pass_isSet){ + obj->insert("northToSouthPass", QJsonValue(north_to_south_pass)); + } + + return obj; +} + +QString* +SWGAPTDemodActions_aos::getSatelliteName() { + return satellite_name; +} +void +SWGAPTDemodActions_aos::setSatelliteName(QString* satellite_name) { + this->satellite_name = satellite_name; + this->m_satellite_name_isSet = true; +} + +qint32 +SWGAPTDemodActions_aos::getNorthToSouthPass() { + return north_to_south_pass; +} +void +SWGAPTDemodActions_aos::setNorthToSouthPass(qint32 north_to_south_pass) { + this->north_to_south_pass = north_to_south_pass; + this->m_north_to_south_pass_isSet = true; +} + + +bool +SWGAPTDemodActions_aos::isSet(){ + bool isObjectUpdated = false; + do{ + if(satellite_name && *satellite_name != QString("")){ + isObjectUpdated = true; break; + } + if(m_north_to_south_pass_isSet){ + isObjectUpdated = true; break; + } + }while(false); + return isObjectUpdated; +} +} + diff --git a/swagger/sdrangel/code/qt5/client/SWGAPTDemodActions_aos.h b/swagger/sdrangel/code/qt5/client/SWGAPTDemodActions_aos.h new file mode 100644 index 000000000..a88cd022b --- /dev/null +++ b/swagger/sdrangel/code/qt5/client/SWGAPTDemodActions_aos.h @@ -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: 6.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. + */ + +/* + * SWGAPTDemodActions_aos.h + * + * Acquisition of signal + */ + +#ifndef SWGAPTDemodActions_aos_H_ +#define SWGAPTDemodActions_aos_H_ + +#include + + +#include + +#include "SWGObject.h" +#include "export.h" + +namespace SWGSDRangel { + +class SWG_API SWGAPTDemodActions_aos: public SWGObject { +public: + SWGAPTDemodActions_aos(); + SWGAPTDemodActions_aos(QString* json); + virtual ~SWGAPTDemodActions_aos(); + void init(); + void cleanup(); + + virtual QString asJson () override; + virtual QJsonObject* asJsonObject() override; + virtual void fromJsonObject(QJsonObject &json) override; + virtual SWGAPTDemodActions_aos* fromJson(QString &jsonString) override; + + QString* getSatelliteName(); + void setSatelliteName(QString* satellite_name); + + qint32 getNorthToSouthPass(); + void setNorthToSouthPass(qint32 north_to_south_pass); + + + virtual bool isSet() override; + +private: + QString* satellite_name; + bool m_satellite_name_isSet; + + qint32 north_to_south_pass; + bool m_north_to_south_pass_isSet; + +}; + +} + +#endif /* SWGAPTDemodActions_aos_H_ */ diff --git a/swagger/sdrangel/code/qt5/client/SWGAPTDemodActions_los.cpp b/swagger/sdrangel/code/qt5/client/SWGAPTDemodActions_los.cpp new file mode 100644 index 000000000..cff77d266 --- /dev/null +++ b/swagger/sdrangel/code/qt5/client/SWGAPTDemodActions_los.cpp @@ -0,0 +1,110 @@ +/** + * SDRangel + * This is the web REST/JSON API of SDRangel SDR software. SDRangel is an Open Source Qt5/OpenGL 3.0+ (4.3+ in Windows) GUI and server Software Defined Radio and signal analyzer in software. It supports Airspy, BladeRF, HackRF, LimeSDR, PlutoSDR, RTL-SDR, SDRplay RSP1 and FunCube --- Limitations and specifcities: * In SDRangel GUI the first Rx device set cannot be deleted. Conversely the server starts with no device sets and its number of device sets can be reduced to zero by as many calls as necessary to /sdrangel/deviceset with DELETE method. * Preset import and export from/to file is a server only feature. * Device set focus is a GUI only feature. * The following channels are not implemented (status 501 is returned): ATV and DATV demodulators, Channel Analyzer NG, LoRa demodulator * The device settings and report structures contains only the sub-structure corresponding to the device type. The DeviceSettings and DeviceReport structures documented here shows all of them but only one will be or should be present at a time * The channel settings and report structures contains only the sub-structure corresponding to the channel type. The ChannelSettings and ChannelReport structures documented here shows all of them but only one will be or should be present at a time --- + * + * OpenAPI spec version: 6.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 "SWGAPTDemodActions_los.h" + +#include "SWGHelpers.h" + +#include +#include +#include +#include + +namespace SWGSDRangel { + +SWGAPTDemodActions_los::SWGAPTDemodActions_los(QString* json) { + init(); + this->fromJson(*json); +} + +SWGAPTDemodActions_los::SWGAPTDemodActions_los() { + satellite_name = nullptr; + m_satellite_name_isSet = false; +} + +SWGAPTDemodActions_los::~SWGAPTDemodActions_los() { + this->cleanup(); +} + +void +SWGAPTDemodActions_los::init() { + satellite_name = new QString(""); + m_satellite_name_isSet = false; +} + +void +SWGAPTDemodActions_los::cleanup() { + if(satellite_name != nullptr) { + delete satellite_name; + } +} + +SWGAPTDemodActions_los* +SWGAPTDemodActions_los::fromJson(QString &json) { + QByteArray array (json.toStdString().c_str()); + QJsonDocument doc = QJsonDocument::fromJson(array); + QJsonObject jsonObject = doc.object(); + this->fromJsonObject(jsonObject); + return this; +} + +void +SWGAPTDemodActions_los::fromJsonObject(QJsonObject &pJson) { + ::SWGSDRangel::setValue(&satellite_name, pJson["satelliteName"], "QString", "QString"); + +} + +QString +SWGAPTDemodActions_los::asJson () +{ + QJsonObject* obj = this->asJsonObject(); + + QJsonDocument doc(*obj); + QByteArray bytes = doc.toJson(); + delete obj; + return QString(bytes); +} + +QJsonObject* +SWGAPTDemodActions_los::asJsonObject() { + QJsonObject* obj = new QJsonObject(); + if(satellite_name != nullptr && *satellite_name != QString("")){ + toJsonValue(QString("satelliteName"), satellite_name, obj, QString("QString")); + } + + return obj; +} + +QString* +SWGAPTDemodActions_los::getSatelliteName() { + return satellite_name; +} +void +SWGAPTDemodActions_los::setSatelliteName(QString* satellite_name) { + this->satellite_name = satellite_name; + this->m_satellite_name_isSet = true; +} + + +bool +SWGAPTDemodActions_los::isSet(){ + bool isObjectUpdated = false; + do{ + if(satellite_name && *satellite_name != QString("")){ + isObjectUpdated = true; break; + } + }while(false); + return isObjectUpdated; +} +} + diff --git a/swagger/sdrangel/code/qt5/client/SWGAPTDemodActions_los.h b/swagger/sdrangel/code/qt5/client/SWGAPTDemodActions_los.h new file mode 100644 index 000000000..4b3410a0f --- /dev/null +++ b/swagger/sdrangel/code/qt5/client/SWGAPTDemodActions_los.h @@ -0,0 +1,59 @@ +/** + * SDRangel + * This is the web REST/JSON API of SDRangel SDR software. SDRangel is an Open Source Qt5/OpenGL 3.0+ (4.3+ in Windows) GUI and server Software Defined Radio and signal analyzer in software. It supports Airspy, BladeRF, HackRF, LimeSDR, PlutoSDR, RTL-SDR, SDRplay RSP1 and FunCube --- Limitations and specifcities: * In SDRangel GUI the first Rx device set cannot be deleted. Conversely the server starts with no device sets and its number of device sets can be reduced to zero by as many calls as necessary to /sdrangel/deviceset with DELETE method. * Preset import and export from/to file is a server only feature. * Device set focus is a GUI only feature. * The following channels are not implemented (status 501 is returned): ATV and DATV demodulators, Channel Analyzer NG, LoRa demodulator * The device settings and report structures contains only the sub-structure corresponding to the device type. The DeviceSettings and DeviceReport structures documented here shows all of them but only one will be or should be present at a time * The channel settings and report structures contains only the sub-structure corresponding to the channel type. The ChannelSettings and ChannelReport structures documented here shows all of them but only one will be or should be present at a time --- + * + * OpenAPI spec version: 6.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. + */ + +/* + * SWGAPTDemodActions_los.h + * + * Loss of signal + */ + +#ifndef SWGAPTDemodActions_los_H_ +#define SWGAPTDemodActions_los_H_ + +#include + + +#include + +#include "SWGObject.h" +#include "export.h" + +namespace SWGSDRangel { + +class SWG_API SWGAPTDemodActions_los: public SWGObject { +public: + SWGAPTDemodActions_los(); + SWGAPTDemodActions_los(QString* json); + virtual ~SWGAPTDemodActions_los(); + void init(); + void cleanup(); + + virtual QString asJson () override; + virtual QJsonObject* asJsonObject() override; + virtual void fromJsonObject(QJsonObject &json) override; + virtual SWGAPTDemodActions_los* fromJson(QString &jsonString) override; + + QString* getSatelliteName(); + void setSatelliteName(QString* satellite_name); + + + virtual bool isSet() override; + +private: + QString* satellite_name; + bool m_satellite_name_isSet; + +}; + +} + +#endif /* SWGAPTDemodActions_los_H_ */ diff --git a/swagger/sdrangel/code/qt5/client/SWGAPTDemodSettings.cpp b/swagger/sdrangel/code/qt5/client/SWGAPTDemodSettings.cpp new file mode 100644 index 000000000..d3b974d63 --- /dev/null +++ b/swagger/sdrangel/code/qt5/client/SWGAPTDemodSettings.cpp @@ -0,0 +1,597 @@ +/** + * 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: 6.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 "SWGAPTDemodSettings.h" + +#include "SWGHelpers.h" + +#include +#include +#include +#include + +namespace SWGSDRangel { + +SWGAPTDemodSettings::SWGAPTDemodSettings(QString* json) { + init(); + this->fromJson(*json); +} + +SWGAPTDemodSettings::SWGAPTDemodSettings() { + input_frequency_offset = 0L; + m_input_frequency_offset_isSet = false; + rf_bandwidth = 0.0f; + m_rf_bandwidth_isSet = false; + fm_deviation = 0; + m_fm_deviation_isSet = false; + crop_noise = 0; + m_crop_noise_isSet = false; + denoise = 0; + m_denoise_isSet = false; + linear_equalise = 0; + m_linear_equalise_isSet = false; + histogram_equalise = 0; + m_histogram_equalise_isSet = false; + precipitation_overlay = 0; + m_precipitation_overlay_isSet = false; + flip = 0; + m_flip_isSet = false; + channels = 0; + m_channels_isSet = false; + decode_enabled = 0; + m_decode_enabled_isSet = false; + auto_save = 0; + m_auto_save_isSet = false; + auto_save_path = nullptr; + m_auto_save_path_isSet = false; + auto_save_min_scan_lines = 0; + m_auto_save_min_scan_lines_isSet = false; + rgb_color = 0; + m_rgb_color_isSet = false; + title = nullptr; + m_title_isSet = false; + stream_index = 0; + m_stream_index_isSet = false; + use_reverse_api = 0; + m_use_reverse_api_isSet = false; + reverse_api_address = nullptr; + m_reverse_api_address_isSet = false; + reverse_api_port = 0; + m_reverse_api_port_isSet = false; + reverse_api_device_index = 0; + m_reverse_api_device_index_isSet = false; + reverse_api_channel_index = 0; + m_reverse_api_channel_index_isSet = false; +} + +SWGAPTDemodSettings::~SWGAPTDemodSettings() { + this->cleanup(); +} + +void +SWGAPTDemodSettings::init() { + input_frequency_offset = 0L; + m_input_frequency_offset_isSet = false; + rf_bandwidth = 0.0f; + m_rf_bandwidth_isSet = false; + fm_deviation = 0; + m_fm_deviation_isSet = false; + crop_noise = 0; + m_crop_noise_isSet = false; + denoise = 0; + m_denoise_isSet = false; + linear_equalise = 0; + m_linear_equalise_isSet = false; + histogram_equalise = 0; + m_histogram_equalise_isSet = false; + precipitation_overlay = 0; + m_precipitation_overlay_isSet = false; + flip = 0; + m_flip_isSet = false; + channels = 0; + m_channels_isSet = false; + decode_enabled = 0; + m_decode_enabled_isSet = false; + auto_save = 0; + m_auto_save_isSet = false; + auto_save_path = new QString(""); + m_auto_save_path_isSet = false; + auto_save_min_scan_lines = 0; + m_auto_save_min_scan_lines_isSet = false; + rgb_color = 0; + m_rgb_color_isSet = false; + title = new QString(""); + m_title_isSet = false; + stream_index = 0; + m_stream_index_isSet = false; + use_reverse_api = 0; + m_use_reverse_api_isSet = false; + reverse_api_address = new QString(""); + m_reverse_api_address_isSet = false; + reverse_api_port = 0; + m_reverse_api_port_isSet = false; + reverse_api_device_index = 0; + m_reverse_api_device_index_isSet = false; + reverse_api_channel_index = 0; + m_reverse_api_channel_index_isSet = false; +} + +void +SWGAPTDemodSettings::cleanup() { + + + + + + + + + + + + + if(auto_save_path != nullptr) { + delete auto_save_path; + } + + + if(title != nullptr) { + delete title; + } + + + if(reverse_api_address != nullptr) { + delete reverse_api_address; + } + + + +} + +SWGAPTDemodSettings* +SWGAPTDemodSettings::fromJson(QString &json) { + QByteArray array (json.toStdString().c_str()); + QJsonDocument doc = QJsonDocument::fromJson(array); + QJsonObject jsonObject = doc.object(); + this->fromJsonObject(jsonObject); + return this; +} + +void +SWGAPTDemodSettings::fromJsonObject(QJsonObject &pJson) { + ::SWGSDRangel::setValue(&input_frequency_offset, pJson["inputFrequencyOffset"], "qint64", ""); + + ::SWGSDRangel::setValue(&rf_bandwidth, pJson["rfBandwidth"], "float", ""); + + ::SWGSDRangel::setValue(&fm_deviation, pJson["fmDeviation"], "qint32", ""); + + ::SWGSDRangel::setValue(&crop_noise, pJson["cropNoise"], "qint32", ""); + + ::SWGSDRangel::setValue(&denoise, pJson["denoise"], "qint32", ""); + + ::SWGSDRangel::setValue(&linear_equalise, pJson["linearEqualise"], "qint32", ""); + + ::SWGSDRangel::setValue(&histogram_equalise, pJson["histogramEqualise"], "qint32", ""); + + ::SWGSDRangel::setValue(&precipitation_overlay, pJson["precipitationOverlay"], "qint32", ""); + + ::SWGSDRangel::setValue(&flip, pJson["flip"], "qint32", ""); + + ::SWGSDRangel::setValue(&channels, pJson["channels"], "qint32", ""); + + ::SWGSDRangel::setValue(&decode_enabled, pJson["decodeEnabled"], "qint32", ""); + + ::SWGSDRangel::setValue(&auto_save, pJson["autoSave"], "qint32", ""); + + ::SWGSDRangel::setValue(&auto_save_path, pJson["autoSavePath"], "QString", "QString"); + + ::SWGSDRangel::setValue(&auto_save_min_scan_lines, pJson["autoSaveMinScanLines"], "qint32", ""); + + ::SWGSDRangel::setValue(&rgb_color, pJson["rgbColor"], "qint32", ""); + + ::SWGSDRangel::setValue(&title, pJson["title"], "QString", "QString"); + + ::SWGSDRangel::setValue(&stream_index, pJson["streamIndex"], "qint32", ""); + + ::SWGSDRangel::setValue(&use_reverse_api, pJson["useReverseAPI"], "qint32", ""); + + ::SWGSDRangel::setValue(&reverse_api_address, pJson["reverseAPIAddress"], "QString", "QString"); + + ::SWGSDRangel::setValue(&reverse_api_port, pJson["reverseAPIPort"], "qint32", ""); + + ::SWGSDRangel::setValue(&reverse_api_device_index, pJson["reverseAPIDeviceIndex"], "qint32", ""); + + ::SWGSDRangel::setValue(&reverse_api_channel_index, pJson["reverseAPIChannelIndex"], "qint32", ""); + +} + +QString +SWGAPTDemodSettings::asJson () +{ + QJsonObject* obj = this->asJsonObject(); + + QJsonDocument doc(*obj); + QByteArray bytes = doc.toJson(); + delete obj; + return QString(bytes); +} + +QJsonObject* +SWGAPTDemodSettings::asJsonObject() { + QJsonObject* obj = new QJsonObject(); + if(m_input_frequency_offset_isSet){ + obj->insert("inputFrequencyOffset", QJsonValue(input_frequency_offset)); + } + if(m_rf_bandwidth_isSet){ + obj->insert("rfBandwidth", QJsonValue(rf_bandwidth)); + } + if(m_fm_deviation_isSet){ + obj->insert("fmDeviation", QJsonValue(fm_deviation)); + } + if(m_crop_noise_isSet){ + obj->insert("cropNoise", QJsonValue(crop_noise)); + } + if(m_denoise_isSet){ + obj->insert("denoise", QJsonValue(denoise)); + } + if(m_linear_equalise_isSet){ + obj->insert("linearEqualise", QJsonValue(linear_equalise)); + } + if(m_histogram_equalise_isSet){ + obj->insert("histogramEqualise", QJsonValue(histogram_equalise)); + } + if(m_precipitation_overlay_isSet){ + obj->insert("precipitationOverlay", QJsonValue(precipitation_overlay)); + } + if(m_flip_isSet){ + obj->insert("flip", QJsonValue(flip)); + } + if(m_channels_isSet){ + obj->insert("channels", QJsonValue(channels)); + } + if(m_decode_enabled_isSet){ + obj->insert("decodeEnabled", QJsonValue(decode_enabled)); + } + if(m_auto_save_isSet){ + obj->insert("autoSave", QJsonValue(auto_save)); + } + if(auto_save_path != nullptr && *auto_save_path != QString("")){ + toJsonValue(QString("autoSavePath"), auto_save_path, obj, QString("QString")); + } + if(m_auto_save_min_scan_lines_isSet){ + obj->insert("autoSaveMinScanLines", QJsonValue(auto_save_min_scan_lines)); + } + if(m_rgb_color_isSet){ + obj->insert("rgbColor", QJsonValue(rgb_color)); + } + if(title != nullptr && *title != QString("")){ + toJsonValue(QString("title"), title, obj, QString("QString")); + } + if(m_stream_index_isSet){ + obj->insert("streamIndex", QJsonValue(stream_index)); + } + if(m_use_reverse_api_isSet){ + obj->insert("useReverseAPI", QJsonValue(use_reverse_api)); + } + if(reverse_api_address != nullptr && *reverse_api_address != QString("")){ + toJsonValue(QString("reverseAPIAddress"), reverse_api_address, obj, QString("QString")); + } + if(m_reverse_api_port_isSet){ + obj->insert("reverseAPIPort", QJsonValue(reverse_api_port)); + } + if(m_reverse_api_device_index_isSet){ + obj->insert("reverseAPIDeviceIndex", QJsonValue(reverse_api_device_index)); + } + if(m_reverse_api_channel_index_isSet){ + obj->insert("reverseAPIChannelIndex", QJsonValue(reverse_api_channel_index)); + } + + return obj; +} + +qint64 +SWGAPTDemodSettings::getInputFrequencyOffset() { + return input_frequency_offset; +} +void +SWGAPTDemodSettings::setInputFrequencyOffset(qint64 input_frequency_offset) { + this->input_frequency_offset = input_frequency_offset; + this->m_input_frequency_offset_isSet = true; +} + +float +SWGAPTDemodSettings::getRfBandwidth() { + return rf_bandwidth; +} +void +SWGAPTDemodSettings::setRfBandwidth(float rf_bandwidth) { + this->rf_bandwidth = rf_bandwidth; + this->m_rf_bandwidth_isSet = true; +} + +qint32 +SWGAPTDemodSettings::getFmDeviation() { + return fm_deviation; +} +void +SWGAPTDemodSettings::setFmDeviation(qint32 fm_deviation) { + this->fm_deviation = fm_deviation; + this->m_fm_deviation_isSet = true; +} + +qint32 +SWGAPTDemodSettings::getCropNoise() { + return crop_noise; +} +void +SWGAPTDemodSettings::setCropNoise(qint32 crop_noise) { + this->crop_noise = crop_noise; + this->m_crop_noise_isSet = true; +} + +qint32 +SWGAPTDemodSettings::getDenoise() { + return denoise; +} +void +SWGAPTDemodSettings::setDenoise(qint32 denoise) { + this->denoise = denoise; + this->m_denoise_isSet = true; +} + +qint32 +SWGAPTDemodSettings::getLinearEqualise() { + return linear_equalise; +} +void +SWGAPTDemodSettings::setLinearEqualise(qint32 linear_equalise) { + this->linear_equalise = linear_equalise; + this->m_linear_equalise_isSet = true; +} + +qint32 +SWGAPTDemodSettings::getHistogramEqualise() { + return histogram_equalise; +} +void +SWGAPTDemodSettings::setHistogramEqualise(qint32 histogram_equalise) { + this->histogram_equalise = histogram_equalise; + this->m_histogram_equalise_isSet = true; +} + +qint32 +SWGAPTDemodSettings::getPrecipitationOverlay() { + return precipitation_overlay; +} +void +SWGAPTDemodSettings::setPrecipitationOverlay(qint32 precipitation_overlay) { + this->precipitation_overlay = precipitation_overlay; + this->m_precipitation_overlay_isSet = true; +} + +qint32 +SWGAPTDemodSettings::getFlip() { + return flip; +} +void +SWGAPTDemodSettings::setFlip(qint32 flip) { + this->flip = flip; + this->m_flip_isSet = true; +} + +qint32 +SWGAPTDemodSettings::getChannels() { + return channels; +} +void +SWGAPTDemodSettings::setChannels(qint32 channels) { + this->channels = channels; + this->m_channels_isSet = true; +} + +qint32 +SWGAPTDemodSettings::getDecodeEnabled() { + return decode_enabled; +} +void +SWGAPTDemodSettings::setDecodeEnabled(qint32 decode_enabled) { + this->decode_enabled = decode_enabled; + this->m_decode_enabled_isSet = true; +} + +qint32 +SWGAPTDemodSettings::getAutoSave() { + return auto_save; +} +void +SWGAPTDemodSettings::setAutoSave(qint32 auto_save) { + this->auto_save = auto_save; + this->m_auto_save_isSet = true; +} + +QString* +SWGAPTDemodSettings::getAutoSavePath() { + return auto_save_path; +} +void +SWGAPTDemodSettings::setAutoSavePath(QString* auto_save_path) { + this->auto_save_path = auto_save_path; + this->m_auto_save_path_isSet = true; +} + +qint32 +SWGAPTDemodSettings::getAutoSaveMinScanLines() { + return auto_save_min_scan_lines; +} +void +SWGAPTDemodSettings::setAutoSaveMinScanLines(qint32 auto_save_min_scan_lines) { + this->auto_save_min_scan_lines = auto_save_min_scan_lines; + this->m_auto_save_min_scan_lines_isSet = true; +} + +qint32 +SWGAPTDemodSettings::getRgbColor() { + return rgb_color; +} +void +SWGAPTDemodSettings::setRgbColor(qint32 rgb_color) { + this->rgb_color = rgb_color; + this->m_rgb_color_isSet = true; +} + +QString* +SWGAPTDemodSettings::getTitle() { + return title; +} +void +SWGAPTDemodSettings::setTitle(QString* title) { + this->title = title; + this->m_title_isSet = true; +} + +qint32 +SWGAPTDemodSettings::getStreamIndex() { + return stream_index; +} +void +SWGAPTDemodSettings::setStreamIndex(qint32 stream_index) { + this->stream_index = stream_index; + this->m_stream_index_isSet = true; +} + +qint32 +SWGAPTDemodSettings::getUseReverseApi() { + return use_reverse_api; +} +void +SWGAPTDemodSettings::setUseReverseApi(qint32 use_reverse_api) { + this->use_reverse_api = use_reverse_api; + this->m_use_reverse_api_isSet = true; +} + +QString* +SWGAPTDemodSettings::getReverseApiAddress() { + return reverse_api_address; +} +void +SWGAPTDemodSettings::setReverseApiAddress(QString* reverse_api_address) { + this->reverse_api_address = reverse_api_address; + this->m_reverse_api_address_isSet = true; +} + +qint32 +SWGAPTDemodSettings::getReverseApiPort() { + return reverse_api_port; +} +void +SWGAPTDemodSettings::setReverseApiPort(qint32 reverse_api_port) { + this->reverse_api_port = reverse_api_port; + this->m_reverse_api_port_isSet = true; +} + +qint32 +SWGAPTDemodSettings::getReverseApiDeviceIndex() { + return reverse_api_device_index; +} +void +SWGAPTDemodSettings::setReverseApiDeviceIndex(qint32 reverse_api_device_index) { + this->reverse_api_device_index = reverse_api_device_index; + this->m_reverse_api_device_index_isSet = true; +} + +qint32 +SWGAPTDemodSettings::getReverseApiChannelIndex() { + return reverse_api_channel_index; +} +void +SWGAPTDemodSettings::setReverseApiChannelIndex(qint32 reverse_api_channel_index) { + this->reverse_api_channel_index = reverse_api_channel_index; + this->m_reverse_api_channel_index_isSet = true; +} + + +bool +SWGAPTDemodSettings::isSet(){ + bool isObjectUpdated = false; + do{ + if(m_input_frequency_offset_isSet){ + isObjectUpdated = true; break; + } + if(m_rf_bandwidth_isSet){ + isObjectUpdated = true; break; + } + if(m_fm_deviation_isSet){ + isObjectUpdated = true; break; + } + if(m_crop_noise_isSet){ + isObjectUpdated = true; break; + } + if(m_denoise_isSet){ + isObjectUpdated = true; break; + } + if(m_linear_equalise_isSet){ + isObjectUpdated = true; break; + } + if(m_histogram_equalise_isSet){ + isObjectUpdated = true; break; + } + if(m_precipitation_overlay_isSet){ + isObjectUpdated = true; break; + } + if(m_flip_isSet){ + isObjectUpdated = true; break; + } + if(m_channels_isSet){ + isObjectUpdated = true; break; + } + if(m_decode_enabled_isSet){ + isObjectUpdated = true; break; + } + if(m_auto_save_isSet){ + isObjectUpdated = true; break; + } + if(auto_save_path && *auto_save_path != QString("")){ + isObjectUpdated = true; break; + } + if(m_auto_save_min_scan_lines_isSet){ + isObjectUpdated = true; break; + } + if(m_rgb_color_isSet){ + isObjectUpdated = true; break; + } + if(title && *title != QString("")){ + isObjectUpdated = true; break; + } + if(m_stream_index_isSet){ + isObjectUpdated = true; break; + } + if(m_use_reverse_api_isSet){ + isObjectUpdated = true; break; + } + if(reverse_api_address && *reverse_api_address != QString("")){ + isObjectUpdated = true; break; + } + if(m_reverse_api_port_isSet){ + isObjectUpdated = true; break; + } + if(m_reverse_api_device_index_isSet){ + isObjectUpdated = true; break; + } + if(m_reverse_api_channel_index_isSet){ + isObjectUpdated = true; break; + } + }while(false); + return isObjectUpdated; +} +} + diff --git a/swagger/sdrangel/code/qt5/client/SWGAPTDemodSettings.h b/swagger/sdrangel/code/qt5/client/SWGAPTDemodSettings.h new file mode 100644 index 000000000..f02a14bdc --- /dev/null +++ b/swagger/sdrangel/code/qt5/client/SWGAPTDemodSettings.h @@ -0,0 +1,185 @@ +/** + * 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: 6.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. + */ + +/* + * SWGAPTDemodSettings.h + * + * APTDemod + */ + +#ifndef SWGAPTDemodSettings_H_ +#define SWGAPTDemodSettings_H_ + +#include + + +#include + +#include "SWGObject.h" +#include "export.h" + +namespace SWGSDRangel { + +class SWG_API SWGAPTDemodSettings: public SWGObject { +public: + SWGAPTDemodSettings(); + SWGAPTDemodSettings(QString* json); + virtual ~SWGAPTDemodSettings(); + void init(); + void cleanup(); + + virtual QString asJson () override; + virtual QJsonObject* asJsonObject() override; + virtual void fromJsonObject(QJsonObject &json) override; + virtual SWGAPTDemodSettings* fromJson(QString &jsonString) override; + + qint64 getInputFrequencyOffset(); + void setInputFrequencyOffset(qint64 input_frequency_offset); + + float getRfBandwidth(); + void setRfBandwidth(float rf_bandwidth); + + qint32 getFmDeviation(); + void setFmDeviation(qint32 fm_deviation); + + qint32 getCropNoise(); + void setCropNoise(qint32 crop_noise); + + qint32 getDenoise(); + void setDenoise(qint32 denoise); + + qint32 getLinearEqualise(); + void setLinearEqualise(qint32 linear_equalise); + + qint32 getHistogramEqualise(); + void setHistogramEqualise(qint32 histogram_equalise); + + qint32 getPrecipitationOverlay(); + void setPrecipitationOverlay(qint32 precipitation_overlay); + + qint32 getFlip(); + void setFlip(qint32 flip); + + qint32 getChannels(); + void setChannels(qint32 channels); + + qint32 getDecodeEnabled(); + void setDecodeEnabled(qint32 decode_enabled); + + qint32 getAutoSave(); + void setAutoSave(qint32 auto_save); + + QString* getAutoSavePath(); + void setAutoSavePath(QString* auto_save_path); + + qint32 getAutoSaveMinScanLines(); + void setAutoSaveMinScanLines(qint32 auto_save_min_scan_lines); + + 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); + + + virtual bool isSet() override; + +private: + qint64 input_frequency_offset; + bool m_input_frequency_offset_isSet; + + float rf_bandwidth; + bool m_rf_bandwidth_isSet; + + qint32 fm_deviation; + bool m_fm_deviation_isSet; + + qint32 crop_noise; + bool m_crop_noise_isSet; + + qint32 denoise; + bool m_denoise_isSet; + + qint32 linear_equalise; + bool m_linear_equalise_isSet; + + qint32 histogram_equalise; + bool m_histogram_equalise_isSet; + + qint32 precipitation_overlay; + bool m_precipitation_overlay_isSet; + + qint32 flip; + bool m_flip_isSet; + + qint32 channels; + bool m_channels_isSet; + + qint32 decode_enabled; + bool m_decode_enabled_isSet; + + qint32 auto_save; + bool m_auto_save_isSet; + + QString* auto_save_path; + bool m_auto_save_path_isSet; + + qint32 auto_save_min_scan_lines; + bool m_auto_save_min_scan_lines_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; + +}; + +} + +#endif /* SWGAPTDemodSettings_H_ */ diff --git a/swagger/sdrangel/code/qt5/client/SWGChannelActions.cpp b/swagger/sdrangel/code/qt5/client/SWGChannelActions.cpp index 6aa42d043..7893bbcaa 100644 --- a/swagger/sdrangel/code/qt5/client/SWGChannelActions.cpp +++ b/swagger/sdrangel/code/qt5/client/SWGChannelActions.cpp @@ -36,6 +36,8 @@ SWGChannelActions::SWGChannelActions() { m_originator_device_set_index_isSet = false; originator_channel_index = 0; m_originator_channel_index_isSet = false; + apt_demod_actions = nullptr; + m_apt_demod_actions_isSet = false; file_sink_actions = nullptr; m_file_sink_actions_isSet = false; file_source_actions = nullptr; @@ -62,6 +64,8 @@ SWGChannelActions::init() { m_originator_device_set_index_isSet = false; originator_channel_index = 0; m_originator_channel_index_isSet = false; + apt_demod_actions = new SWGAPTDemodActions(); + m_apt_demod_actions_isSet = false; file_sink_actions = new SWGFileSinkActions(); m_file_sink_actions_isSet = false; file_source_actions = new SWGFileSourceActions(); @@ -82,6 +86,9 @@ SWGChannelActions::cleanup() { + if(apt_demod_actions != nullptr) { + delete apt_demod_actions; + } if(file_sink_actions != nullptr) { delete file_sink_actions; } @@ -118,6 +125,8 @@ SWGChannelActions::fromJsonObject(QJsonObject &pJson) { ::SWGSDRangel::setValue(&originator_channel_index, pJson["originatorChannelIndex"], "qint32", ""); + ::SWGSDRangel::setValue(&apt_demod_actions, pJson["APTDemodActions"], "SWGAPTDemodActions", "SWGAPTDemodActions"); + ::SWGSDRangel::setValue(&file_sink_actions, pJson["FileSinkActions"], "SWGFileSinkActions", "SWGFileSinkActions"); ::SWGSDRangel::setValue(&file_source_actions, pJson["FileSourceActions"], "SWGFileSourceActions", "SWGFileSourceActions"); @@ -156,6 +165,9 @@ SWGChannelActions::asJsonObject() { if(m_originator_channel_index_isSet){ obj->insert("originatorChannelIndex", QJsonValue(originator_channel_index)); } + if((apt_demod_actions != nullptr) && (apt_demod_actions->isSet())){ + toJsonValue(QString("APTDemodActions"), apt_demod_actions, obj, QString("SWGAPTDemodActions")); + } if((file_sink_actions != nullptr) && (file_sink_actions->isSet())){ toJsonValue(QString("FileSinkActions"), file_sink_actions, obj, QString("SWGFileSinkActions")); } @@ -215,6 +227,16 @@ SWGChannelActions::setOriginatorChannelIndex(qint32 originator_channel_index) { this->m_originator_channel_index_isSet = true; } +SWGAPTDemodActions* +SWGChannelActions::getAptDemodActions() { + return apt_demod_actions; +} +void +SWGChannelActions::setAptDemodActions(SWGAPTDemodActions* apt_demod_actions) { + this->apt_demod_actions = apt_demod_actions; + this->m_apt_demod_actions_isSet = true; +} + SWGFileSinkActions* SWGChannelActions::getFileSinkActions() { return file_sink_actions; @@ -282,6 +304,9 @@ SWGChannelActions::isSet(){ if(m_originator_channel_index_isSet){ isObjectUpdated = true; break; } + if(apt_demod_actions && apt_demod_actions->isSet()){ + isObjectUpdated = true; break; + } if(file_sink_actions && file_sink_actions->isSet()){ isObjectUpdated = true; break; } diff --git a/swagger/sdrangel/code/qt5/client/SWGChannelActions.h b/swagger/sdrangel/code/qt5/client/SWGChannelActions.h index 8246babc4..04d8f2f5a 100644 --- a/swagger/sdrangel/code/qt5/client/SWGChannelActions.h +++ b/swagger/sdrangel/code/qt5/client/SWGChannelActions.h @@ -22,6 +22,7 @@ #include +#include "SWGAPTDemodActions.h" #include "SWGFileSinkActions.h" #include "SWGFileSourceActions.h" #include "SWGIEEE_802_15_4_ModActions.h" @@ -59,6 +60,9 @@ public: qint32 getOriginatorChannelIndex(); void setOriginatorChannelIndex(qint32 originator_channel_index); + SWGAPTDemodActions* getAptDemodActions(); + void setAptDemodActions(SWGAPTDemodActions* apt_demod_actions); + SWGFileSinkActions* getFileSinkActions(); void setFileSinkActions(SWGFileSinkActions* file_sink_actions); @@ -90,6 +94,9 @@ private: qint32 originator_channel_index; bool m_originator_channel_index_isSet; + SWGAPTDemodActions* apt_demod_actions; + bool m_apt_demod_actions_isSet; + SWGFileSinkActions* file_sink_actions; bool m_file_sink_actions_isSet; diff --git a/swagger/sdrangel/code/qt5/client/SWGChannelSettings.cpp b/swagger/sdrangel/code/qt5/client/SWGChannelSettings.cpp index 1a2b5ee4c..e98496839 100644 --- a/swagger/sdrangel/code/qt5/client/SWGChannelSettings.cpp +++ b/swagger/sdrangel/code/qt5/client/SWGChannelSettings.cpp @@ -42,6 +42,8 @@ SWGChannelSettings::SWGChannelSettings() { m_am_demod_settings_isSet = false; am_mod_settings = nullptr; m_am_mod_settings_isSet = false; + apt_demod_settings = nullptr; + m_apt_demod_settings_isSet = false; atv_demod_settings = nullptr; m_atv_demod_settings_isSet = false; atv_mod_settings = nullptr; @@ -130,6 +132,8 @@ SWGChannelSettings::init() { m_am_demod_settings_isSet = false; am_mod_settings = new SWGAMModSettings(); m_am_mod_settings_isSet = false; + apt_demod_settings = new SWGAPTDemodSettings(); + m_apt_demod_settings_isSet = false; atv_demod_settings = new SWGATVDemodSettings(); m_atv_demod_settings_isSet = false; atv_mod_settings = new SWGATVModSettings(); @@ -215,6 +219,9 @@ SWGChannelSettings::cleanup() { if(am_mod_settings != nullptr) { delete am_mod_settings; } + if(apt_demod_settings != nullptr) { + delete apt_demod_settings; + } if(atv_demod_settings != nullptr) { delete atv_demod_settings; } @@ -341,6 +348,8 @@ SWGChannelSettings::fromJsonObject(QJsonObject &pJson) { ::SWGSDRangel::setValue(&am_mod_settings, pJson["AMModSettings"], "SWGAMModSettings", "SWGAMModSettings"); + ::SWGSDRangel::setValue(&apt_demod_settings, pJson["APTDemodSettings"], "SWGAPTDemodSettings", "SWGAPTDemodSettings"); + ::SWGSDRangel::setValue(&atv_demod_settings, pJson["ATVDemodSettings"], "SWGATVDemodSettings", "SWGATVDemodSettings"); ::SWGSDRangel::setValue(&atv_mod_settings, pJson["ATVModSettings"], "SWGATVModSettings", "SWGATVModSettings"); @@ -444,6 +453,9 @@ SWGChannelSettings::asJsonObject() { if((am_mod_settings != nullptr) && (am_mod_settings->isSet())){ toJsonValue(QString("AMModSettings"), am_mod_settings, obj, QString("SWGAMModSettings")); } + if((apt_demod_settings != nullptr) && (apt_demod_settings->isSet())){ + toJsonValue(QString("APTDemodSettings"), apt_demod_settings, obj, QString("SWGAPTDemodSettings")); + } if((atv_demod_settings != nullptr) && (atv_demod_settings->isSet())){ toJsonValue(QString("ATVDemodSettings"), atv_demod_settings, obj, QString("SWGATVDemodSettings")); } @@ -617,6 +629,16 @@ SWGChannelSettings::setAmModSettings(SWGAMModSettings* am_mod_settings) { this->m_am_mod_settings_isSet = true; } +SWGAPTDemodSettings* +SWGChannelSettings::getAptDemodSettings() { + return apt_demod_settings; +} +void +SWGChannelSettings::setAptDemodSettings(SWGAPTDemodSettings* apt_demod_settings) { + this->apt_demod_settings = apt_demod_settings; + this->m_apt_demod_settings_isSet = true; +} + SWGATVDemodSettings* SWGChannelSettings::getAtvDemodSettings() { return atv_demod_settings; @@ -973,6 +995,9 @@ SWGChannelSettings::isSet(){ if(am_mod_settings && am_mod_settings->isSet()){ isObjectUpdated = true; break; } + if(apt_demod_settings && apt_demod_settings->isSet()){ + isObjectUpdated = true; break; + } if(atv_demod_settings && atv_demod_settings->isSet()){ isObjectUpdated = true; break; } diff --git a/swagger/sdrangel/code/qt5/client/SWGChannelSettings.h b/swagger/sdrangel/code/qt5/client/SWGChannelSettings.h index 1dde09d7d..d60aafc36 100644 --- a/swagger/sdrangel/code/qt5/client/SWGChannelSettings.h +++ b/swagger/sdrangel/code/qt5/client/SWGChannelSettings.h @@ -25,6 +25,7 @@ #include "SWGADSBDemodSettings.h" #include "SWGAMDemodSettings.h" #include "SWGAMModSettings.h" +#include "SWGAPTDemodSettings.h" #include "SWGATVDemodSettings.h" #include "SWGATVModSettings.h" #include "SWGBFMDemodSettings.h" @@ -99,6 +100,9 @@ public: SWGAMModSettings* getAmModSettings(); void setAmModSettings(SWGAMModSettings* am_mod_settings); + SWGAPTDemodSettings* getAptDemodSettings(); + void setAptDemodSettings(SWGAPTDemodSettings* apt_demod_settings); + SWGATVDemodSettings* getAtvDemodSettings(); void setAtvDemodSettings(SWGATVDemodSettings* atv_demod_settings); @@ -223,6 +227,9 @@ private: SWGAMModSettings* am_mod_settings; bool m_am_mod_settings_isSet; + SWGAPTDemodSettings* apt_demod_settings; + bool m_apt_demod_settings_isSet; + SWGATVDemodSettings* atv_demod_settings; bool m_atv_demod_settings_isSet; diff --git a/swagger/sdrangel/code/qt5/client/SWGFeatureSettings.cpp b/swagger/sdrangel/code/qt5/client/SWGFeatureSettings.cpp index fecafd5bd..a7b1fd4a4 100644 --- a/swagger/sdrangel/code/qt5/client/SWGFeatureSettings.cpp +++ b/swagger/sdrangel/code/qt5/client/SWGFeatureSettings.cpp @@ -46,6 +46,8 @@ SWGFeatureSettings::SWGFeatureSettings() { m_map_settings_isSet = false; rig_ctl_server_settings = nullptr; m_rig_ctl_server_settings_isSet = false; + satellite_tracker_settings = nullptr; + m_satellite_tracker_settings_isSet = false; star_tracker_settings = nullptr; m_star_tracker_settings_isSet = false; simple_ptt_settings = nullptr; @@ -78,6 +80,8 @@ SWGFeatureSettings::init() { m_map_settings_isSet = false; rig_ctl_server_settings = new SWGRigCtlServerSettings(); m_rig_ctl_server_settings_isSet = false; + satellite_tracker_settings = new SWGSatelliteTrackerSettings(); + m_satellite_tracker_settings_isSet = false; star_tracker_settings = new SWGStarTrackerSettings(); m_star_tracker_settings_isSet = false; simple_ptt_settings = new SWGSimplePTTSettings(); @@ -111,6 +115,9 @@ SWGFeatureSettings::cleanup() { if(rig_ctl_server_settings != nullptr) { delete rig_ctl_server_settings; } + if(satellite_tracker_settings != nullptr) { + delete satellite_tracker_settings; + } if(star_tracker_settings != nullptr) { delete star_tracker_settings; } @@ -151,6 +158,8 @@ SWGFeatureSettings::fromJsonObject(QJsonObject &pJson) { ::SWGSDRangel::setValue(&rig_ctl_server_settings, pJson["RigCtlServerSettings"], "SWGRigCtlServerSettings", "SWGRigCtlServerSettings"); + ::SWGSDRangel::setValue(&satellite_tracker_settings, pJson["SatelliteTrackerSettings"], "SWGSatelliteTrackerSettings", "SWGSatelliteTrackerSettings"); + ::SWGSDRangel::setValue(&star_tracker_settings, pJson["StarTrackerSettings"], "SWGStarTrackerSettings", "SWGStarTrackerSettings"); ::SWGSDRangel::setValue(&simple_ptt_settings, pJson["SimplePTTSettings"], "SWGSimplePTTSettings", "SWGSimplePTTSettings"); @@ -200,6 +209,9 @@ SWGFeatureSettings::asJsonObject() { if((rig_ctl_server_settings != nullptr) && (rig_ctl_server_settings->isSet())){ toJsonValue(QString("RigCtlServerSettings"), rig_ctl_server_settings, obj, QString("SWGRigCtlServerSettings")); } + if((satellite_tracker_settings != nullptr) && (satellite_tracker_settings->isSet())){ + toJsonValue(QString("SatelliteTrackerSettings"), satellite_tracker_settings, obj, QString("SWGSatelliteTrackerSettings")); + } if((star_tracker_settings != nullptr) && (star_tracker_settings->isSet())){ toJsonValue(QString("StarTrackerSettings"), star_tracker_settings, obj, QString("SWGStarTrackerSettings")); } @@ -303,6 +315,16 @@ SWGFeatureSettings::setRigCtlServerSettings(SWGRigCtlServerSettings* rig_ctl_ser this->m_rig_ctl_server_settings_isSet = true; } +SWGSatelliteTrackerSettings* +SWGFeatureSettings::getSatelliteTrackerSettings() { + return satellite_tracker_settings; +} +void +SWGFeatureSettings::setSatelliteTrackerSettings(SWGSatelliteTrackerSettings* satellite_tracker_settings) { + this->satellite_tracker_settings = satellite_tracker_settings; + this->m_satellite_tracker_settings_isSet = true; +} + SWGStarTrackerSettings* SWGFeatureSettings::getStarTrackerSettings() { return star_tracker_settings; @@ -365,6 +387,9 @@ SWGFeatureSettings::isSet(){ if(rig_ctl_server_settings && rig_ctl_server_settings->isSet()){ isObjectUpdated = true; break; } + if(satellite_tracker_settings && satellite_tracker_settings->isSet()){ + isObjectUpdated = true; break; + } if(star_tracker_settings && star_tracker_settings->isSet()){ isObjectUpdated = true; break; } diff --git a/swagger/sdrangel/code/qt5/client/SWGFeatureSettings.h b/swagger/sdrangel/code/qt5/client/SWGFeatureSettings.h index 36858b501..b746d3c67 100644 --- a/swagger/sdrangel/code/qt5/client/SWGFeatureSettings.h +++ b/swagger/sdrangel/code/qt5/client/SWGFeatureSettings.h @@ -28,6 +28,7 @@ #include "SWGGS232ControllerSettings.h" #include "SWGMapSettings.h" #include "SWGRigCtlServerSettings.h" +#include "SWGSatelliteTrackerSettings.h" #include "SWGSimplePTTSettings.h" #include "SWGStarTrackerSettings.h" #include "SWGVORLocalizerSettings.h" @@ -78,6 +79,9 @@ public: SWGRigCtlServerSettings* getRigCtlServerSettings(); void setRigCtlServerSettings(SWGRigCtlServerSettings* rig_ctl_server_settings); + SWGSatelliteTrackerSettings* getSatelliteTrackerSettings(); + void setSatelliteTrackerSettings(SWGSatelliteTrackerSettings* satellite_tracker_settings); + SWGStarTrackerSettings* getStarTrackerSettings(); void setStarTrackerSettings(SWGStarTrackerSettings* star_tracker_settings); @@ -118,6 +122,9 @@ private: SWGRigCtlServerSettings* rig_ctl_server_settings; bool m_rig_ctl_server_settings_isSet; + SWGSatelliteTrackerSettings* satellite_tracker_settings; + bool m_satellite_tracker_settings_isSet; + SWGStarTrackerSettings* star_tracker_settings; bool m_star_tracker_settings_isSet; diff --git a/swagger/sdrangel/code/qt5/client/SWGGS232ControllerSettings.cpp b/swagger/sdrangel/code/qt5/client/SWGGS232ControllerSettings.cpp index 15394e4d9..cab3b0ed5 100644 --- a/swagger/sdrangel/code/qt5/client/SWGGS232ControllerSettings.cpp +++ b/swagger/sdrangel/code/qt5/client/SWGGS232ControllerSettings.cpp @@ -44,6 +44,14 @@ SWGGS232ControllerSettings::SWGGS232ControllerSettings() { m_azimuth_offset_isSet = false; elevation_offset = 0; m_elevation_offset_isSet = false; + azimuth_min = 0; + m_azimuth_min_isSet = false; + azimuth_max = 0; + m_azimuth_max_isSet = false; + elevation_min = 0; + m_elevation_min_isSet = false; + elevation_max = 0; + m_elevation_max_isSet = false; title = nullptr; m_title_isSet = false; rgb_color = 0; @@ -82,6 +90,14 @@ SWGGS232ControllerSettings::init() { m_azimuth_offset_isSet = false; elevation_offset = 0; m_elevation_offset_isSet = false; + azimuth_min = 0; + m_azimuth_min_isSet = false; + azimuth_max = 0; + m_azimuth_max_isSet = false; + elevation_min = 0; + m_elevation_min_isSet = false; + elevation_max = 0; + m_elevation_max_isSet = false; title = new QString(""); m_title_isSet = false; rgb_color = 0; @@ -112,6 +128,10 @@ SWGGS232ControllerSettings::cleanup() { } + + + + if(title != nullptr) { delete title; } @@ -152,6 +172,14 @@ SWGGS232ControllerSettings::fromJsonObject(QJsonObject &pJson) { ::SWGSDRangel::setValue(&elevation_offset, pJson["elevationOffset"], "qint32", ""); + ::SWGSDRangel::setValue(&azimuth_min, pJson["azimuthMin"], "qint32", ""); + + ::SWGSDRangel::setValue(&azimuth_max, pJson["azimuthMax"], "qint32", ""); + + ::SWGSDRangel::setValue(&elevation_min, pJson["elevationMin"], "qint32", ""); + + ::SWGSDRangel::setValue(&elevation_max, pJson["elevationMax"], "qint32", ""); + ::SWGSDRangel::setValue(&title, pJson["title"], "QString", "QString"); ::SWGSDRangel::setValue(&rgb_color, pJson["rgbColor"], "qint32", ""); @@ -206,6 +234,18 @@ SWGGS232ControllerSettings::asJsonObject() { if(m_elevation_offset_isSet){ obj->insert("elevationOffset", QJsonValue(elevation_offset)); } + if(m_azimuth_min_isSet){ + obj->insert("azimuthMin", QJsonValue(azimuth_min)); + } + if(m_azimuth_max_isSet){ + obj->insert("azimuthMax", QJsonValue(azimuth_max)); + } + if(m_elevation_min_isSet){ + obj->insert("elevationMin", QJsonValue(elevation_min)); + } + if(m_elevation_max_isSet){ + obj->insert("elevationMax", QJsonValue(elevation_max)); + } if(title != nullptr && *title != QString("")){ toJsonValue(QString("title"), title, obj, QString("QString")); } @@ -311,6 +351,46 @@ SWGGS232ControllerSettings::setElevationOffset(qint32 elevation_offset) { this->m_elevation_offset_isSet = true; } +qint32 +SWGGS232ControllerSettings::getAzimuthMin() { + return azimuth_min; +} +void +SWGGS232ControllerSettings::setAzimuthMin(qint32 azimuth_min) { + this->azimuth_min = azimuth_min; + this->m_azimuth_min_isSet = true; +} + +qint32 +SWGGS232ControllerSettings::getAzimuthMax() { + return azimuth_max; +} +void +SWGGS232ControllerSettings::setAzimuthMax(qint32 azimuth_max) { + this->azimuth_max = azimuth_max; + this->m_azimuth_max_isSet = true; +} + +qint32 +SWGGS232ControllerSettings::getElevationMin() { + return elevation_min; +} +void +SWGGS232ControllerSettings::setElevationMin(qint32 elevation_min) { + this->elevation_min = elevation_min; + this->m_elevation_min_isSet = true; +} + +qint32 +SWGGS232ControllerSettings::getElevationMax() { + return elevation_max; +} +void +SWGGS232ControllerSettings::setElevationMax(qint32 elevation_max) { + this->elevation_max = elevation_max; + this->m_elevation_max_isSet = true; +} + QString* SWGGS232ControllerSettings::getTitle() { return title; @@ -410,6 +490,18 @@ SWGGS232ControllerSettings::isSet(){ if(m_elevation_offset_isSet){ isObjectUpdated = true; break; } + if(m_azimuth_min_isSet){ + isObjectUpdated = true; break; + } + if(m_azimuth_max_isSet){ + isObjectUpdated = true; break; + } + if(m_elevation_min_isSet){ + isObjectUpdated = true; break; + } + if(m_elevation_max_isSet){ + isObjectUpdated = true; break; + } if(title && *title != QString("")){ isObjectUpdated = true; break; } diff --git a/swagger/sdrangel/code/qt5/client/SWGGS232ControllerSettings.h b/swagger/sdrangel/code/qt5/client/SWGGS232ControllerSettings.h index 1a662bf9b..689936b02 100644 --- a/swagger/sdrangel/code/qt5/client/SWGGS232ControllerSettings.h +++ b/swagger/sdrangel/code/qt5/client/SWGGS232ControllerSettings.h @@ -66,6 +66,18 @@ public: qint32 getElevationOffset(); void setElevationOffset(qint32 elevation_offset); + qint32 getAzimuthMin(); + void setAzimuthMin(qint32 azimuth_min); + + qint32 getAzimuthMax(); + void setAzimuthMax(qint32 azimuth_max); + + qint32 getElevationMin(); + void setElevationMin(qint32 elevation_min); + + qint32 getElevationMax(); + void setElevationMax(qint32 elevation_max); + QString* getTitle(); void setTitle(QString* title); @@ -115,6 +127,18 @@ private: qint32 elevation_offset; bool m_elevation_offset_isSet; + qint32 azimuth_min; + bool m_azimuth_min_isSet; + + qint32 azimuth_max; + bool m_azimuth_max_isSet; + + qint32 elevation_min; + bool m_elevation_min_isSet; + + qint32 elevation_max; + bool m_elevation_max_isSet; + QString* title; bool m_title_isSet; diff --git a/swagger/sdrangel/code/qt5/client/SWGLRPTDemodSettings.cpp b/swagger/sdrangel/code/qt5/client/SWGLRPTDemodSettings.cpp new file mode 100644 index 000000000..b1acba920 --- /dev/null +++ b/swagger/sdrangel/code/qt5/client/SWGLRPTDemodSettings.cpp @@ -0,0 +1,597 @@ +/** + * 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: 6.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 "SWGLRPTDemodSettings.h" + +#include "SWGHelpers.h" + +#include +#include +#include +#include + +namespace SWGSDRangel { + +SWGLRPTDemodSettings::SWGLRPTDemodSettings(QString* json) { + init(); + this->fromJson(*json); +} + +SWGLRPTDemodSettings::SWGLRPTDemodSettings() { + input_frequency_offset = 0L; + m_input_frequency_offset_isSet = false; + rf_bandwidth = 0.0f; + m_rf_bandwidth_isSet = false; + fm_deviation = 0; + m_fm_deviation_isSet = false; + crop_noise = 0; + m_crop_noise_isSet = false; + denoise = 0; + m_denoise_isSet = false; + linear_equalise = 0; + m_linear_equalise_isSet = false; + histogram_equalise = 0; + m_histogram_equalise_isSet = false; + precipitation_overlay = 0; + m_precipitation_overlay_isSet = false; + flip = 0; + m_flip_isSet = false; + channels = 0; + m_channels_isSet = false; + decode_enabled = 0; + m_decode_enabled_isSet = false; + auto_save = 0; + m_auto_save_isSet = false; + auto_save_path = nullptr; + m_auto_save_path_isSet = false; + auto_save_min_scan_lines = 0; + m_auto_save_min_scan_lines_isSet = false; + rgb_color = 0; + m_rgb_color_isSet = false; + title = nullptr; + m_title_isSet = false; + stream_index = 0; + m_stream_index_isSet = false; + use_reverse_api = 0; + m_use_reverse_api_isSet = false; + reverse_api_address = nullptr; + m_reverse_api_address_isSet = false; + reverse_api_port = 0; + m_reverse_api_port_isSet = false; + reverse_api_device_index = 0; + m_reverse_api_device_index_isSet = false; + reverse_api_channel_index = 0; + m_reverse_api_channel_index_isSet = false; +} + +SWGLRPTDemodSettings::~SWGLRPTDemodSettings() { + this->cleanup(); +} + +void +SWGLRPTDemodSettings::init() { + input_frequency_offset = 0L; + m_input_frequency_offset_isSet = false; + rf_bandwidth = 0.0f; + m_rf_bandwidth_isSet = false; + fm_deviation = 0; + m_fm_deviation_isSet = false; + crop_noise = 0; + m_crop_noise_isSet = false; + denoise = 0; + m_denoise_isSet = false; + linear_equalise = 0; + m_linear_equalise_isSet = false; + histogram_equalise = 0; + m_histogram_equalise_isSet = false; + precipitation_overlay = 0; + m_precipitation_overlay_isSet = false; + flip = 0; + m_flip_isSet = false; + channels = 0; + m_channels_isSet = false; + decode_enabled = 0; + m_decode_enabled_isSet = false; + auto_save = 0; + m_auto_save_isSet = false; + auto_save_path = new QString(""); + m_auto_save_path_isSet = false; + auto_save_min_scan_lines = 0; + m_auto_save_min_scan_lines_isSet = false; + rgb_color = 0; + m_rgb_color_isSet = false; + title = new QString(""); + m_title_isSet = false; + stream_index = 0; + m_stream_index_isSet = false; + use_reverse_api = 0; + m_use_reverse_api_isSet = false; + reverse_api_address = new QString(""); + m_reverse_api_address_isSet = false; + reverse_api_port = 0; + m_reverse_api_port_isSet = false; + reverse_api_device_index = 0; + m_reverse_api_device_index_isSet = false; + reverse_api_channel_index = 0; + m_reverse_api_channel_index_isSet = false; +} + +void +SWGLRPTDemodSettings::cleanup() { + + + + + + + + + + + + + if(auto_save_path != nullptr) { + delete auto_save_path; + } + + + if(title != nullptr) { + delete title; + } + + + if(reverse_api_address != nullptr) { + delete reverse_api_address; + } + + + +} + +SWGLRPTDemodSettings* +SWGLRPTDemodSettings::fromJson(QString &json) { + QByteArray array (json.toStdString().c_str()); + QJsonDocument doc = QJsonDocument::fromJson(array); + QJsonObject jsonObject = doc.object(); + this->fromJsonObject(jsonObject); + return this; +} + +void +SWGLRPTDemodSettings::fromJsonObject(QJsonObject &pJson) { + ::SWGSDRangel::setValue(&input_frequency_offset, pJson["inputFrequencyOffset"], "qint64", ""); + + ::SWGSDRangel::setValue(&rf_bandwidth, pJson["rfBandwidth"], "float", ""); + + ::SWGSDRangel::setValue(&fm_deviation, pJson["fmDeviation"], "qint32", ""); + + ::SWGSDRangel::setValue(&crop_noise, pJson["cropNoise"], "qint32", ""); + + ::SWGSDRangel::setValue(&denoise, pJson["denoise"], "qint32", ""); + + ::SWGSDRangel::setValue(&linear_equalise, pJson["linearEqualise"], "qint32", ""); + + ::SWGSDRangel::setValue(&histogram_equalise, pJson["histogramEqualise"], "qint32", ""); + + ::SWGSDRangel::setValue(&precipitation_overlay, pJson["precipitationOverlay"], "qint32", ""); + + ::SWGSDRangel::setValue(&flip, pJson["flip"], "qint32", ""); + + ::SWGSDRangel::setValue(&channels, pJson["channels"], "qint32", ""); + + ::SWGSDRangel::setValue(&decode_enabled, pJson["decodeEnabled"], "qint32", ""); + + ::SWGSDRangel::setValue(&auto_save, pJson["autoSave"], "qint32", ""); + + ::SWGSDRangel::setValue(&auto_save_path, pJson["autoSavePath"], "QString", "QString"); + + ::SWGSDRangel::setValue(&auto_save_min_scan_lines, pJson["autoSaveMinScanLines"], "qint32", ""); + + ::SWGSDRangel::setValue(&rgb_color, pJson["rgbColor"], "qint32", ""); + + ::SWGSDRangel::setValue(&title, pJson["title"], "QString", "QString"); + + ::SWGSDRangel::setValue(&stream_index, pJson["streamIndex"], "qint32", ""); + + ::SWGSDRangel::setValue(&use_reverse_api, pJson["useReverseAPI"], "qint32", ""); + + ::SWGSDRangel::setValue(&reverse_api_address, pJson["reverseAPIAddress"], "QString", "QString"); + + ::SWGSDRangel::setValue(&reverse_api_port, pJson["reverseAPIPort"], "qint32", ""); + + ::SWGSDRangel::setValue(&reverse_api_device_index, pJson["reverseAPIDeviceIndex"], "qint32", ""); + + ::SWGSDRangel::setValue(&reverse_api_channel_index, pJson["reverseAPIChannelIndex"], "qint32", ""); + +} + +QString +SWGLRPTDemodSettings::asJson () +{ + QJsonObject* obj = this->asJsonObject(); + + QJsonDocument doc(*obj); + QByteArray bytes = doc.toJson(); + delete obj; + return QString(bytes); +} + +QJsonObject* +SWGLRPTDemodSettings::asJsonObject() { + QJsonObject* obj = new QJsonObject(); + if(m_input_frequency_offset_isSet){ + obj->insert("inputFrequencyOffset", QJsonValue(input_frequency_offset)); + } + if(m_rf_bandwidth_isSet){ + obj->insert("rfBandwidth", QJsonValue(rf_bandwidth)); + } + if(m_fm_deviation_isSet){ + obj->insert("fmDeviation", QJsonValue(fm_deviation)); + } + if(m_crop_noise_isSet){ + obj->insert("cropNoise", QJsonValue(crop_noise)); + } + if(m_denoise_isSet){ + obj->insert("denoise", QJsonValue(denoise)); + } + if(m_linear_equalise_isSet){ + obj->insert("linearEqualise", QJsonValue(linear_equalise)); + } + if(m_histogram_equalise_isSet){ + obj->insert("histogramEqualise", QJsonValue(histogram_equalise)); + } + if(m_precipitation_overlay_isSet){ + obj->insert("precipitationOverlay", QJsonValue(precipitation_overlay)); + } + if(m_flip_isSet){ + obj->insert("flip", QJsonValue(flip)); + } + if(m_channels_isSet){ + obj->insert("channels", QJsonValue(channels)); + } + if(m_decode_enabled_isSet){ + obj->insert("decodeEnabled", QJsonValue(decode_enabled)); + } + if(m_auto_save_isSet){ + obj->insert("autoSave", QJsonValue(auto_save)); + } + if(auto_save_path != nullptr && *auto_save_path != QString("")){ + toJsonValue(QString("autoSavePath"), auto_save_path, obj, QString("QString")); + } + if(m_auto_save_min_scan_lines_isSet){ + obj->insert("autoSaveMinScanLines", QJsonValue(auto_save_min_scan_lines)); + } + if(m_rgb_color_isSet){ + obj->insert("rgbColor", QJsonValue(rgb_color)); + } + if(title != nullptr && *title != QString("")){ + toJsonValue(QString("title"), title, obj, QString("QString")); + } + if(m_stream_index_isSet){ + obj->insert("streamIndex", QJsonValue(stream_index)); + } + if(m_use_reverse_api_isSet){ + obj->insert("useReverseAPI", QJsonValue(use_reverse_api)); + } + if(reverse_api_address != nullptr && *reverse_api_address != QString("")){ + toJsonValue(QString("reverseAPIAddress"), reverse_api_address, obj, QString("QString")); + } + if(m_reverse_api_port_isSet){ + obj->insert("reverseAPIPort", QJsonValue(reverse_api_port)); + } + if(m_reverse_api_device_index_isSet){ + obj->insert("reverseAPIDeviceIndex", QJsonValue(reverse_api_device_index)); + } + if(m_reverse_api_channel_index_isSet){ + obj->insert("reverseAPIChannelIndex", QJsonValue(reverse_api_channel_index)); + } + + return obj; +} + +qint64 +SWGLRPTDemodSettings::getInputFrequencyOffset() { + return input_frequency_offset; +} +void +SWGLRPTDemodSettings::setInputFrequencyOffset(qint64 input_frequency_offset) { + this->input_frequency_offset = input_frequency_offset; + this->m_input_frequency_offset_isSet = true; +} + +float +SWGLRPTDemodSettings::getRfBandwidth() { + return rf_bandwidth; +} +void +SWGLRPTDemodSettings::setRfBandwidth(float rf_bandwidth) { + this->rf_bandwidth = rf_bandwidth; + this->m_rf_bandwidth_isSet = true; +} + +qint32 +SWGLRPTDemodSettings::getFmDeviation() { + return fm_deviation; +} +void +SWGLRPTDemodSettings::setFmDeviation(qint32 fm_deviation) { + this->fm_deviation = fm_deviation; + this->m_fm_deviation_isSet = true; +} + +qint32 +SWGLRPTDemodSettings::getCropNoise() { + return crop_noise; +} +void +SWGLRPTDemodSettings::setCropNoise(qint32 crop_noise) { + this->crop_noise = crop_noise; + this->m_crop_noise_isSet = true; +} + +qint32 +SWGLRPTDemodSettings::getDenoise() { + return denoise; +} +void +SWGLRPTDemodSettings::setDenoise(qint32 denoise) { + this->denoise = denoise; + this->m_denoise_isSet = true; +} + +qint32 +SWGLRPTDemodSettings::getLinearEqualise() { + return linear_equalise; +} +void +SWGLRPTDemodSettings::setLinearEqualise(qint32 linear_equalise) { + this->linear_equalise = linear_equalise; + this->m_linear_equalise_isSet = true; +} + +qint32 +SWGLRPTDemodSettings::getHistogramEqualise() { + return histogram_equalise; +} +void +SWGLRPTDemodSettings::setHistogramEqualise(qint32 histogram_equalise) { + this->histogram_equalise = histogram_equalise; + this->m_histogram_equalise_isSet = true; +} + +qint32 +SWGLRPTDemodSettings::getPrecipitationOverlay() { + return precipitation_overlay; +} +void +SWGLRPTDemodSettings::setPrecipitationOverlay(qint32 precipitation_overlay) { + this->precipitation_overlay = precipitation_overlay; + this->m_precipitation_overlay_isSet = true; +} + +qint32 +SWGLRPTDemodSettings::getFlip() { + return flip; +} +void +SWGLRPTDemodSettings::setFlip(qint32 flip) { + this->flip = flip; + this->m_flip_isSet = true; +} + +qint32 +SWGLRPTDemodSettings::getChannels() { + return channels; +} +void +SWGLRPTDemodSettings::setChannels(qint32 channels) { + this->channels = channels; + this->m_channels_isSet = true; +} + +qint32 +SWGLRPTDemodSettings::getDecodeEnabled() { + return decode_enabled; +} +void +SWGLRPTDemodSettings::setDecodeEnabled(qint32 decode_enabled) { + this->decode_enabled = decode_enabled; + this->m_decode_enabled_isSet = true; +} + +qint32 +SWGLRPTDemodSettings::getAutoSave() { + return auto_save; +} +void +SWGLRPTDemodSettings::setAutoSave(qint32 auto_save) { + this->auto_save = auto_save; + this->m_auto_save_isSet = true; +} + +QString* +SWGLRPTDemodSettings::getAutoSavePath() { + return auto_save_path; +} +void +SWGLRPTDemodSettings::setAutoSavePath(QString* auto_save_path) { + this->auto_save_path = auto_save_path; + this->m_auto_save_path_isSet = true; +} + +qint32 +SWGLRPTDemodSettings::getAutoSaveMinScanLines() { + return auto_save_min_scan_lines; +} +void +SWGLRPTDemodSettings::setAutoSaveMinScanLines(qint32 auto_save_min_scan_lines) { + this->auto_save_min_scan_lines = auto_save_min_scan_lines; + this->m_auto_save_min_scan_lines_isSet = true; +} + +qint32 +SWGLRPTDemodSettings::getRgbColor() { + return rgb_color; +} +void +SWGLRPTDemodSettings::setRgbColor(qint32 rgb_color) { + this->rgb_color = rgb_color; + this->m_rgb_color_isSet = true; +} + +QString* +SWGLRPTDemodSettings::getTitle() { + return title; +} +void +SWGLRPTDemodSettings::setTitle(QString* title) { + this->title = title; + this->m_title_isSet = true; +} + +qint32 +SWGLRPTDemodSettings::getStreamIndex() { + return stream_index; +} +void +SWGLRPTDemodSettings::setStreamIndex(qint32 stream_index) { + this->stream_index = stream_index; + this->m_stream_index_isSet = true; +} + +qint32 +SWGLRPTDemodSettings::getUseReverseApi() { + return use_reverse_api; +} +void +SWGLRPTDemodSettings::setUseReverseApi(qint32 use_reverse_api) { + this->use_reverse_api = use_reverse_api; + this->m_use_reverse_api_isSet = true; +} + +QString* +SWGLRPTDemodSettings::getReverseApiAddress() { + return reverse_api_address; +} +void +SWGLRPTDemodSettings::setReverseApiAddress(QString* reverse_api_address) { + this->reverse_api_address = reverse_api_address; + this->m_reverse_api_address_isSet = true; +} + +qint32 +SWGLRPTDemodSettings::getReverseApiPort() { + return reverse_api_port; +} +void +SWGLRPTDemodSettings::setReverseApiPort(qint32 reverse_api_port) { + this->reverse_api_port = reverse_api_port; + this->m_reverse_api_port_isSet = true; +} + +qint32 +SWGLRPTDemodSettings::getReverseApiDeviceIndex() { + return reverse_api_device_index; +} +void +SWGLRPTDemodSettings::setReverseApiDeviceIndex(qint32 reverse_api_device_index) { + this->reverse_api_device_index = reverse_api_device_index; + this->m_reverse_api_device_index_isSet = true; +} + +qint32 +SWGLRPTDemodSettings::getReverseApiChannelIndex() { + return reverse_api_channel_index; +} +void +SWGLRPTDemodSettings::setReverseApiChannelIndex(qint32 reverse_api_channel_index) { + this->reverse_api_channel_index = reverse_api_channel_index; + this->m_reverse_api_channel_index_isSet = true; +} + + +bool +SWGLRPTDemodSettings::isSet(){ + bool isObjectUpdated = false; + do{ + if(m_input_frequency_offset_isSet){ + isObjectUpdated = true; break; + } + if(m_rf_bandwidth_isSet){ + isObjectUpdated = true; break; + } + if(m_fm_deviation_isSet){ + isObjectUpdated = true; break; + } + if(m_crop_noise_isSet){ + isObjectUpdated = true; break; + } + if(m_denoise_isSet){ + isObjectUpdated = true; break; + } + if(m_linear_equalise_isSet){ + isObjectUpdated = true; break; + } + if(m_histogram_equalise_isSet){ + isObjectUpdated = true; break; + } + if(m_precipitation_overlay_isSet){ + isObjectUpdated = true; break; + } + if(m_flip_isSet){ + isObjectUpdated = true; break; + } + if(m_channels_isSet){ + isObjectUpdated = true; break; + } + if(m_decode_enabled_isSet){ + isObjectUpdated = true; break; + } + if(m_auto_save_isSet){ + isObjectUpdated = true; break; + } + if(auto_save_path && *auto_save_path != QString("")){ + isObjectUpdated = true; break; + } + if(m_auto_save_min_scan_lines_isSet){ + isObjectUpdated = true; break; + } + if(m_rgb_color_isSet){ + isObjectUpdated = true; break; + } + if(title && *title != QString("")){ + isObjectUpdated = true; break; + } + if(m_stream_index_isSet){ + isObjectUpdated = true; break; + } + if(m_use_reverse_api_isSet){ + isObjectUpdated = true; break; + } + if(reverse_api_address && *reverse_api_address != QString("")){ + isObjectUpdated = true; break; + } + if(m_reverse_api_port_isSet){ + isObjectUpdated = true; break; + } + if(m_reverse_api_device_index_isSet){ + isObjectUpdated = true; break; + } + if(m_reverse_api_channel_index_isSet){ + isObjectUpdated = true; break; + } + }while(false); + return isObjectUpdated; +} +} + diff --git a/swagger/sdrangel/code/qt5/client/SWGLRPTDemodSettings.h b/swagger/sdrangel/code/qt5/client/SWGLRPTDemodSettings.h new file mode 100644 index 000000000..474759372 --- /dev/null +++ b/swagger/sdrangel/code/qt5/client/SWGLRPTDemodSettings.h @@ -0,0 +1,185 @@ +/** + * 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: 6.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. + */ + +/* + * SWGLRPTDemodSettings.h + * + * LRPTDemod + */ + +#ifndef SWGLRPTDemodSettings_H_ +#define SWGLRPTDemodSettings_H_ + +#include + + +#include + +#include "SWGObject.h" +#include "export.h" + +namespace SWGSDRangel { + +class SWG_API SWGLRPTDemodSettings: public SWGObject { +public: + SWGLRPTDemodSettings(); + SWGLRPTDemodSettings(QString* json); + virtual ~SWGLRPTDemodSettings(); + void init(); + void cleanup(); + + virtual QString asJson () override; + virtual QJsonObject* asJsonObject() override; + virtual void fromJsonObject(QJsonObject &json) override; + virtual SWGLRPTDemodSettings* fromJson(QString &jsonString) override; + + qint64 getInputFrequencyOffset(); + void setInputFrequencyOffset(qint64 input_frequency_offset); + + float getRfBandwidth(); + void setRfBandwidth(float rf_bandwidth); + + qint32 getFmDeviation(); + void setFmDeviation(qint32 fm_deviation); + + qint32 getCropNoise(); + void setCropNoise(qint32 crop_noise); + + qint32 getDenoise(); + void setDenoise(qint32 denoise); + + qint32 getLinearEqualise(); + void setLinearEqualise(qint32 linear_equalise); + + qint32 getHistogramEqualise(); + void setHistogramEqualise(qint32 histogram_equalise); + + qint32 getPrecipitationOverlay(); + void setPrecipitationOverlay(qint32 precipitation_overlay); + + qint32 getFlip(); + void setFlip(qint32 flip); + + qint32 getChannels(); + void setChannels(qint32 channels); + + qint32 getDecodeEnabled(); + void setDecodeEnabled(qint32 decode_enabled); + + qint32 getAutoSave(); + void setAutoSave(qint32 auto_save); + + QString* getAutoSavePath(); + void setAutoSavePath(QString* auto_save_path); + + qint32 getAutoSaveMinScanLines(); + void setAutoSaveMinScanLines(qint32 auto_save_min_scan_lines); + + 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); + + + virtual bool isSet() override; + +private: + qint64 input_frequency_offset; + bool m_input_frequency_offset_isSet; + + float rf_bandwidth; + bool m_rf_bandwidth_isSet; + + qint32 fm_deviation; + bool m_fm_deviation_isSet; + + qint32 crop_noise; + bool m_crop_noise_isSet; + + qint32 denoise; + bool m_denoise_isSet; + + qint32 linear_equalise; + bool m_linear_equalise_isSet; + + qint32 histogram_equalise; + bool m_histogram_equalise_isSet; + + qint32 precipitation_overlay; + bool m_precipitation_overlay_isSet; + + qint32 flip; + bool m_flip_isSet; + + qint32 channels; + bool m_channels_isSet; + + qint32 decode_enabled; + bool m_decode_enabled_isSet; + + qint32 auto_save; + bool m_auto_save_isSet; + + QString* auto_save_path; + bool m_auto_save_path_isSet; + + qint32 auto_save_min_scan_lines; + bool m_auto_save_min_scan_lines_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; + +}; + +} + +#endif /* SWGLRPTDemodSettings_H_ */ diff --git a/swagger/sdrangel/code/qt5/client/SWGMapCoordinate.cpp b/swagger/sdrangel/code/qt5/client/SWGMapCoordinate.cpp new file mode 100644 index 000000000..d63f5f0c5 --- /dev/null +++ b/swagger/sdrangel/code/qt5/client/SWGMapCoordinate.cpp @@ -0,0 +1,154 @@ +/** + * 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: 6.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 "SWGMapCoordinate.h" + +#include "SWGHelpers.h" + +#include +#include +#include +#include + +namespace SWGSDRangel { + +SWGMapCoordinate::SWGMapCoordinate(QString* json) { + init(); + this->fromJson(*json); +} + +SWGMapCoordinate::SWGMapCoordinate() { + latitude = 0.0f; + m_latitude_isSet = false; + longitude = 0.0f; + m_longitude_isSet = false; + altitude = 0.0f; + m_altitude_isSet = false; +} + +SWGMapCoordinate::~SWGMapCoordinate() { + this->cleanup(); +} + +void +SWGMapCoordinate::init() { + latitude = 0.0f; + m_latitude_isSet = false; + longitude = 0.0f; + m_longitude_isSet = false; + altitude = 0.0f; + m_altitude_isSet = false; +} + +void +SWGMapCoordinate::cleanup() { + + + +} + +SWGMapCoordinate* +SWGMapCoordinate::fromJson(QString &json) { + QByteArray array (json.toStdString().c_str()); + QJsonDocument doc = QJsonDocument::fromJson(array); + QJsonObject jsonObject = doc.object(); + this->fromJsonObject(jsonObject); + return this; +} + +void +SWGMapCoordinate::fromJsonObject(QJsonObject &pJson) { + ::SWGSDRangel::setValue(&latitude, pJson["latitude"], "float", ""); + + ::SWGSDRangel::setValue(&longitude, pJson["longitude"], "float", ""); + + ::SWGSDRangel::setValue(&altitude, pJson["altitude"], "float", ""); + +} + +QString +SWGMapCoordinate::asJson () +{ + QJsonObject* obj = this->asJsonObject(); + + QJsonDocument doc(*obj); + QByteArray bytes = doc.toJson(); + delete obj; + return QString(bytes); +} + +QJsonObject* +SWGMapCoordinate::asJsonObject() { + QJsonObject* obj = new QJsonObject(); + if(m_latitude_isSet){ + obj->insert("latitude", QJsonValue(latitude)); + } + if(m_longitude_isSet){ + obj->insert("longitude", QJsonValue(longitude)); + } + if(m_altitude_isSet){ + obj->insert("altitude", QJsonValue(altitude)); + } + + return obj; +} + +float +SWGMapCoordinate::getLatitude() { + return latitude; +} +void +SWGMapCoordinate::setLatitude(float latitude) { + this->latitude = latitude; + this->m_latitude_isSet = true; +} + +float +SWGMapCoordinate::getLongitude() { + return longitude; +} +void +SWGMapCoordinate::setLongitude(float longitude) { + this->longitude = longitude; + this->m_longitude_isSet = true; +} + +float +SWGMapCoordinate::getAltitude() { + return altitude; +} +void +SWGMapCoordinate::setAltitude(float altitude) { + this->altitude = altitude; + this->m_altitude_isSet = true; +} + + +bool +SWGMapCoordinate::isSet(){ + bool isObjectUpdated = false; + do{ + if(m_latitude_isSet){ + isObjectUpdated = true; break; + } + if(m_longitude_isSet){ + isObjectUpdated = true; break; + } + if(m_altitude_isSet){ + isObjectUpdated = true; break; + } + }while(false); + return isObjectUpdated; +} +} + diff --git a/swagger/sdrangel/code/qt5/client/SWGMapCoordinate.h b/swagger/sdrangel/code/qt5/client/SWGMapCoordinate.h new file mode 100644 index 000000000..0388aa99d --- /dev/null +++ b/swagger/sdrangel/code/qt5/client/SWGMapCoordinate.h @@ -0,0 +1,70 @@ +/** + * 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: 6.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. + */ + +/* + * SWGMapCoordinate.h + * + * A map coordinate + */ + +#ifndef SWGMapCoordinate_H_ +#define SWGMapCoordinate_H_ + +#include + + + +#include "SWGObject.h" +#include "export.h" + +namespace SWGSDRangel { + +class SWG_API SWGMapCoordinate: public SWGObject { +public: + SWGMapCoordinate(); + SWGMapCoordinate(QString* json); + virtual ~SWGMapCoordinate(); + void init(); + void cleanup(); + + virtual QString asJson () override; + virtual QJsonObject* asJsonObject() override; + virtual void fromJsonObject(QJsonObject &json) override; + virtual SWGMapCoordinate* fromJson(QString &jsonString) override; + + float getLatitude(); + void setLatitude(float latitude); + + float getLongitude(); + void setLongitude(float longitude); + + float getAltitude(); + void setAltitude(float altitude); + + + virtual bool isSet() override; + +private: + float latitude; + bool m_latitude_isSet; + + float longitude; + bool m_longitude_isSet; + + float altitude; + bool m_altitude_isSet; + +}; + +} + +#endif /* SWGMapCoordinate_H_ */ diff --git a/swagger/sdrangel/code/qt5/client/SWGMapItem.cpp b/swagger/sdrangel/code/qt5/client/SWGMapItem.cpp index 901774d61..ca5850335 100644 --- a/swagger/sdrangel/code/qt5/client/SWGMapItem.cpp +++ b/swagger/sdrangel/code/qt5/client/SWGMapItem.cpp @@ -44,6 +44,10 @@ SWGMapItem::SWGMapItem() { m_longitude_isSet = false; altitude = 0.0f; m_altitude_isSet = false; + track = nullptr; + m_track_isSet = false; + predicted_track = nullptr; + m_predicted_track_isSet = false; } SWGMapItem::~SWGMapItem() { @@ -68,6 +72,10 @@ SWGMapItem::init() { m_longitude_isSet = false; altitude = 0.0f; m_altitude_isSet = false; + track = new QList(); + m_track_isSet = false; + predicted_track = new QList(); + m_predicted_track_isSet = false; } void @@ -86,6 +94,20 @@ SWGMapItem::cleanup() { + if(track != nullptr) { + auto arr = track; + for(auto o: *arr) { + delete o; + } + delete track; + } + if(predicted_track != nullptr) { + auto arr = predicted_track; + for(auto o: *arr) { + delete o; + } + delete predicted_track; + } } SWGMapItem* @@ -115,6 +137,10 @@ SWGMapItem::fromJsonObject(QJsonObject &pJson) { ::SWGSDRangel::setValue(&altitude, pJson["altitude"], "float", ""); + + ::SWGSDRangel::setValue(&track, pJson["track"], "QList", "SWGMapCoordinate"); + + ::SWGSDRangel::setValue(&predicted_track, pJson["predictedTrack"], "QList", "SWGMapCoordinate"); } QString @@ -155,6 +181,12 @@ SWGMapItem::asJsonObject() { if(m_altitude_isSet){ obj->insert("altitude", QJsonValue(altitude)); } + if(track && track->size() > 0){ + toJsonArray((QList*)track, obj, "track", "SWGMapCoordinate"); + } + if(predicted_track && predicted_track->size() > 0){ + toJsonArray((QList*)predicted_track, obj, "predictedTrack", "SWGMapCoordinate"); + } return obj; } @@ -239,6 +271,26 @@ SWGMapItem::setAltitude(float altitude) { this->m_altitude_isSet = true; } +QList* +SWGMapItem::getTrack() { + return track; +} +void +SWGMapItem::setTrack(QList* track) { + this->track = track; + this->m_track_isSet = true; +} + +QList* +SWGMapItem::getPredictedTrack() { + return predicted_track; +} +void +SWGMapItem::setPredictedTrack(QList* predicted_track) { + this->predicted_track = predicted_track; + this->m_predicted_track_isSet = true; +} + bool SWGMapItem::isSet(){ @@ -268,6 +320,12 @@ SWGMapItem::isSet(){ if(m_altitude_isSet){ isObjectUpdated = true; break; } + if(track && (track->size() > 0)){ + isObjectUpdated = true; break; + } + if(predicted_track && (predicted_track->size() > 0)){ + isObjectUpdated = true; break; + } }while(false); return isObjectUpdated; } diff --git a/swagger/sdrangel/code/qt5/client/SWGMapItem.h b/swagger/sdrangel/code/qt5/client/SWGMapItem.h index 998f8eadc..a2a587d13 100644 --- a/swagger/sdrangel/code/qt5/client/SWGMapItem.h +++ b/swagger/sdrangel/code/qt5/client/SWGMapItem.h @@ -22,6 +22,8 @@ #include +#include "SWGMapCoordinate.h" +#include #include #include "SWGObject.h" @@ -66,6 +68,12 @@ public: float getAltitude(); void setAltitude(float altitude); + QList* getTrack(); + void setTrack(QList* track); + + QList* getPredictedTrack(); + void setPredictedTrack(QList* predicted_track); + virtual bool isSet() override; @@ -94,6 +102,12 @@ private: float altitude; bool m_altitude_isSet; + QList* track; + bool m_track_isSet; + + QList* predicted_track; + bool m_predicted_track_isSet; + }; } diff --git a/swagger/sdrangel/code/qt5/client/SWGMapItem_2.cpp b/swagger/sdrangel/code/qt5/client/SWGMapItem_2.cpp index 7b4f0c1b8..8d7929069 100644 --- a/swagger/sdrangel/code/qt5/client/SWGMapItem_2.cpp +++ b/swagger/sdrangel/code/qt5/client/SWGMapItem_2.cpp @@ -44,6 +44,10 @@ SWGMapItem_2::SWGMapItem_2() { m_longitude_isSet = false; altitude = 0.0f; m_altitude_isSet = false; + track = nullptr; + m_track_isSet = false; + predicted_track = nullptr; + m_predicted_track_isSet = false; } SWGMapItem_2::~SWGMapItem_2() { @@ -68,6 +72,10 @@ SWGMapItem_2::init() { m_longitude_isSet = false; altitude = 0.0f; m_altitude_isSet = false; + track = new QList(); + m_track_isSet = false; + predicted_track = new QList(); + m_predicted_track_isSet = false; } void @@ -86,6 +94,20 @@ SWGMapItem_2::cleanup() { + if(track != nullptr) { + auto arr = track; + for(auto o: *arr) { + delete o; + } + delete track; + } + if(predicted_track != nullptr) { + auto arr = predicted_track; + for(auto o: *arr) { + delete o; + } + delete predicted_track; + } } SWGMapItem_2* @@ -115,6 +137,10 @@ SWGMapItem_2::fromJsonObject(QJsonObject &pJson) { ::SWGSDRangel::setValue(&altitude, pJson["altitude"], "float", ""); + + ::SWGSDRangel::setValue(&track, pJson["track"], "QList", "SWGMapCoordinate"); + + ::SWGSDRangel::setValue(&predicted_track, pJson["predictedTrack"], "QList", "SWGMapCoordinate"); } QString @@ -155,6 +181,12 @@ SWGMapItem_2::asJsonObject() { if(m_altitude_isSet){ obj->insert("altitude", QJsonValue(altitude)); } + if(track && track->size() > 0){ + toJsonArray((QList*)track, obj, "track", "SWGMapCoordinate"); + } + if(predicted_track && predicted_track->size() > 0){ + toJsonArray((QList*)predicted_track, obj, "predictedTrack", "SWGMapCoordinate"); + } return obj; } @@ -239,6 +271,26 @@ SWGMapItem_2::setAltitude(float altitude) { this->m_altitude_isSet = true; } +QList* +SWGMapItem_2::getTrack() { + return track; +} +void +SWGMapItem_2::setTrack(QList* track) { + this->track = track; + this->m_track_isSet = true; +} + +QList* +SWGMapItem_2::getPredictedTrack() { + return predicted_track; +} +void +SWGMapItem_2::setPredictedTrack(QList* predicted_track) { + this->predicted_track = predicted_track; + this->m_predicted_track_isSet = true; +} + bool SWGMapItem_2::isSet(){ @@ -268,6 +320,12 @@ SWGMapItem_2::isSet(){ if(m_altitude_isSet){ isObjectUpdated = true; break; } + if(track && (track->size() > 0)){ + isObjectUpdated = true; break; + } + if(predicted_track && (predicted_track->size() > 0)){ + isObjectUpdated = true; break; + } }while(false); return isObjectUpdated; } diff --git a/swagger/sdrangel/code/qt5/client/SWGMapItem_2.h b/swagger/sdrangel/code/qt5/client/SWGMapItem_2.h index f1b159afd..3ae61bbc6 100644 --- a/swagger/sdrangel/code/qt5/client/SWGMapItem_2.h +++ b/swagger/sdrangel/code/qt5/client/SWGMapItem_2.h @@ -22,6 +22,8 @@ #include +#include "SWGMapCoordinate.h" +#include #include #include "SWGObject.h" @@ -66,6 +68,12 @@ public: float getAltitude(); void setAltitude(float altitude); + QList* getTrack(); + void setTrack(QList* track); + + QList* getPredictedTrack(); + void setPredictedTrack(QList* predicted_track); + virtual bool isSet() override; @@ -94,6 +102,12 @@ private: float altitude; bool m_altitude_isSet; + QList* track; + bool m_track_isSet; + + QList* predicted_track; + bool m_predicted_track_isSet; + }; } diff --git a/swagger/sdrangel/code/qt5/client/SWGMapItem_track.cpp b/swagger/sdrangel/code/qt5/client/SWGMapItem_track.cpp new file mode 100644 index 000000000..589a18c57 --- /dev/null +++ b/swagger/sdrangel/code/qt5/client/SWGMapItem_track.cpp @@ -0,0 +1,154 @@ +/** + * 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: 6.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 "SWGMapItem_track.h" + +#include "SWGHelpers.h" + +#include +#include +#include +#include + +namespace SWGSDRangel { + +SWGMapItem_track::SWGMapItem_track(QString* json) { + init(); + this->fromJson(*json); +} + +SWGMapItem_track::SWGMapItem_track() { + latitude = 0.0f; + m_latitude_isSet = false; + longitude = 0.0f; + m_longitude_isSet = false; + altitude = 0.0f; + m_altitude_isSet = false; +} + +SWGMapItem_track::~SWGMapItem_track() { + this->cleanup(); +} + +void +SWGMapItem_track::init() { + latitude = 0.0f; + m_latitude_isSet = false; + longitude = 0.0f; + m_longitude_isSet = false; + altitude = 0.0f; + m_altitude_isSet = false; +} + +void +SWGMapItem_track::cleanup() { + + + +} + +SWGMapItem_track* +SWGMapItem_track::fromJson(QString &json) { + QByteArray array (json.toStdString().c_str()); + QJsonDocument doc = QJsonDocument::fromJson(array); + QJsonObject jsonObject = doc.object(); + this->fromJsonObject(jsonObject); + return this; +} + +void +SWGMapItem_track::fromJsonObject(QJsonObject &pJson) { + ::SWGSDRangel::setValue(&latitude, pJson["latitude"], "float", ""); + + ::SWGSDRangel::setValue(&longitude, pJson["longitude"], "float", ""); + + ::SWGSDRangel::setValue(&altitude, pJson["altitude"], "float", ""); + +} + +QString +SWGMapItem_track::asJson () +{ + QJsonObject* obj = this->asJsonObject(); + + QJsonDocument doc(*obj); + QByteArray bytes = doc.toJson(); + delete obj; + return QString(bytes); +} + +QJsonObject* +SWGMapItem_track::asJsonObject() { + QJsonObject* obj = new QJsonObject(); + if(m_latitude_isSet){ + obj->insert("latitude", QJsonValue(latitude)); + } + if(m_longitude_isSet){ + obj->insert("longitude", QJsonValue(longitude)); + } + if(m_altitude_isSet){ + obj->insert("altitude", QJsonValue(altitude)); + } + + return obj; +} + +float +SWGMapItem_track::getLatitude() { + return latitude; +} +void +SWGMapItem_track::setLatitude(float latitude) { + this->latitude = latitude; + this->m_latitude_isSet = true; +} + +float +SWGMapItem_track::getLongitude() { + return longitude; +} +void +SWGMapItem_track::setLongitude(float longitude) { + this->longitude = longitude; + this->m_longitude_isSet = true; +} + +float +SWGMapItem_track::getAltitude() { + return altitude; +} +void +SWGMapItem_track::setAltitude(float altitude) { + this->altitude = altitude; + this->m_altitude_isSet = true; +} + + +bool +SWGMapItem_track::isSet(){ + bool isObjectUpdated = false; + do{ + if(m_latitude_isSet){ + isObjectUpdated = true; break; + } + if(m_longitude_isSet){ + isObjectUpdated = true; break; + } + if(m_altitude_isSet){ + isObjectUpdated = true; break; + } + }while(false); + return isObjectUpdated; +} +} + diff --git a/swagger/sdrangel/code/qt5/client/SWGMapItem_track.h b/swagger/sdrangel/code/qt5/client/SWGMapItem_track.h new file mode 100644 index 000000000..ec738bd51 --- /dev/null +++ b/swagger/sdrangel/code/qt5/client/SWGMapItem_track.h @@ -0,0 +1,70 @@ +/** + * 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: 6.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. + */ + +/* + * SWGMapItem_track.h + * + * + */ + +#ifndef SWGMapItem_track_H_ +#define SWGMapItem_track_H_ + +#include + + + +#include "SWGObject.h" +#include "export.h" + +namespace SWGSDRangel { + +class SWG_API SWGMapItem_track: public SWGObject { +public: + SWGMapItem_track(); + SWGMapItem_track(QString* json); + virtual ~SWGMapItem_track(); + void init(); + void cleanup(); + + virtual QString asJson () override; + virtual QJsonObject* asJsonObject() override; + virtual void fromJsonObject(QJsonObject &json) override; + virtual SWGMapItem_track* fromJson(QString &jsonString) override; + + float getLatitude(); + void setLatitude(float latitude); + + float getLongitude(); + void setLongitude(float longitude); + + float getAltitude(); + void setAltitude(float altitude); + + + virtual bool isSet() override; + +private: + float latitude; + bool m_latitude_isSet; + + float longitude; + bool m_longitude_isSet; + + float altitude; + bool m_altitude_isSet; + +}; + +} + +#endif /* SWGMapItem_track_H_ */ diff --git a/swagger/sdrangel/code/qt5/client/SWGModelFactory.h b/swagger/sdrangel/code/qt5/client/SWGModelFactory.h index 301a8ddd5..29792251d 100644 --- a/swagger/sdrangel/code/qt5/client/SWGModelFactory.h +++ b/swagger/sdrangel/code/qt5/client/SWGModelFactory.h @@ -26,6 +26,10 @@ #include "SWGAMModReport.h" #include "SWGAMModSettings.h" #include "SWGAPRSSettings.h" +#include "SWGAPTDemodActions.h" +#include "SWGAPTDemodActions_aos.h" +#include "SWGAPTDemodActions_los.h" +#include "SWGAPTDemodSettings.h" #include "SWGATVDemodSettings.h" #include "SWGATVModReport.h" #include "SWGATVModSettings.h" @@ -146,6 +150,7 @@ #include "SWGLocationInformation.h" #include "SWGLoggingInfo.h" #include "SWGMapActions.h" +#include "SWGMapCoordinate.h" #include "SWGMapItem.h" #include "SWGMapItem_2.h" #include "SWGMapSettings.h" @@ -197,6 +202,7 @@ #include "SWGSSBModSettings.h" #include "SWGSampleRate.h" #include "SWGSamplingDevice.h" +#include "SWGSatelliteTrackerSettings.h" #include "SWGSigMFFileInputActions.h" #include "SWGSigMFFileInputReport.h" #include "SWGSigMFFileInputSettings.h" @@ -285,6 +291,18 @@ namespace SWGSDRangel { if(QString("SWGAPRSSettings").compare(type) == 0) { return new SWGAPRSSettings(); } + if(QString("SWGAPTDemodActions").compare(type) == 0) { + return new SWGAPTDemodActions(); + } + if(QString("SWGAPTDemodActions_aos").compare(type) == 0) { + return new SWGAPTDemodActions_aos(); + } + if(QString("SWGAPTDemodActions_los").compare(type) == 0) { + return new SWGAPTDemodActions_los(); + } + if(QString("SWGAPTDemodSettings").compare(type) == 0) { + return new SWGAPTDemodSettings(); + } if(QString("SWGATVDemodSettings").compare(type) == 0) { return new SWGATVDemodSettings(); } @@ -645,6 +663,9 @@ namespace SWGSDRangel { if(QString("SWGMapActions").compare(type) == 0) { return new SWGMapActions(); } + if(QString("SWGMapCoordinate").compare(type) == 0) { + return new SWGMapCoordinate(); + } if(QString("SWGMapItem").compare(type) == 0) { return new SWGMapItem(); } @@ -798,6 +819,9 @@ namespace SWGSDRangel { if(QString("SWGSamplingDevice").compare(type) == 0) { return new SWGSamplingDevice(); } + if(QString("SWGSatelliteTrackerSettings").compare(type) == 0) { + return new SWGSatelliteTrackerSettings(); + } if(QString("SWGSigMFFileInputActions").compare(type) == 0) { return new SWGSigMFFileInputActions(); } diff --git a/swagger/sdrangel/code/qt5/client/SWGSatelliteTrackerSettings.cpp b/swagger/sdrangel/code/qt5/client/SWGSatelliteTrackerSettings.cpp new file mode 100644 index 000000000..c68983687 --- /dev/null +++ b/swagger/sdrangel/code/qt5/client/SWGSatelliteTrackerSettings.cpp @@ -0,0 +1,901 @@ +/** + * 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: 6.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 "SWGSatelliteTrackerSettings.h" + +#include "SWGHelpers.h" + +#include +#include +#include +#include + +namespace SWGSDRangel { + +SWGSatelliteTrackerSettings::SWGSatelliteTrackerSettings(QString* json) { + init(); + this->fromJson(*json); +} + +SWGSatelliteTrackerSettings::SWGSatelliteTrackerSettings() { + latitude = 0.0f; + m_latitude_isSet = false; + longitude = 0.0f; + m_longitude_isSet = false; + height_above_sea_level = 0.0f; + m_height_above_sea_level_isSet = false; + target = nullptr; + m_target_isSet = false; + satellites = nullptr; + m_satellites_isSet = false; + tles = nullptr; + m_tles_isSet = false; + date_time = nullptr; + m_date_time_isSet = false; + min_aos_elevation = 0; + m_min_aos_elevation_isSet = false; + min_pass_elevation = 0; + m_min_pass_elevation_isSet = false; + rotator_max_azimuth = 0; + m_rotator_max_azimuth_isSet = false; + rotator_max_elevation = 0; + m_rotator_max_elevation_isSet = false; + az_el_units = 0; + m_az_el_units_isSet = false; + ground_track_points = 0; + m_ground_track_points_isSet = false; + date_format = nullptr; + m_date_format_isSet = false; + utc = 0; + m_utc_isSet = false; + update_period = 0.0f; + m_update_period_isSet = false; + doppler_period = 0.0f; + m_doppler_period_isSet = false; + prediction_period = 0; + m_prediction_period_isSet = false; + pass_start_time = nullptr; + m_pass_start_time_isSet = false; + pass_finish_time = nullptr; + m_pass_finish_time_isSet = false; + default_frequency = 0.0f; + m_default_frequency_isSet = false; + draw_on_map = 0; + m_draw_on_map_isSet = false; + auto_target = 0; + m_auto_target_isSet = false; + aos_speech = nullptr; + m_aos_speech_isSet = false; + los_speech = nullptr; + m_los_speech_isSet = false; + aos_command = nullptr; + m_aos_command_isSet = false; + los_command = nullptr; + m_los_command_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_device_index = 0; + m_reverse_api_device_index_isSet = false; + reverse_api_channel_index = 0; + m_reverse_api_channel_index_isSet = false; +} + +SWGSatelliteTrackerSettings::~SWGSatelliteTrackerSettings() { + this->cleanup(); +} + +void +SWGSatelliteTrackerSettings::init() { + latitude = 0.0f; + m_latitude_isSet = false; + longitude = 0.0f; + m_longitude_isSet = false; + height_above_sea_level = 0.0f; + m_height_above_sea_level_isSet = false; + target = new QString(""); + m_target_isSet = false; + satellites = new QList(); + m_satellites_isSet = false; + tles = new QList(); + m_tles_isSet = false; + date_time = new QString(""); + m_date_time_isSet = false; + min_aos_elevation = 0; + m_min_aos_elevation_isSet = false; + min_pass_elevation = 0; + m_min_pass_elevation_isSet = false; + rotator_max_azimuth = 0; + m_rotator_max_azimuth_isSet = false; + rotator_max_elevation = 0; + m_rotator_max_elevation_isSet = false; + az_el_units = 0; + m_az_el_units_isSet = false; + ground_track_points = 0; + m_ground_track_points_isSet = false; + date_format = new QString(""); + m_date_format_isSet = false; + utc = 0; + m_utc_isSet = false; + update_period = 0.0f; + m_update_period_isSet = false; + doppler_period = 0.0f; + m_doppler_period_isSet = false; + prediction_period = 0; + m_prediction_period_isSet = false; + pass_start_time = new QString(""); + m_pass_start_time_isSet = false; + pass_finish_time = new QString(""); + m_pass_finish_time_isSet = false; + default_frequency = 0.0f; + m_default_frequency_isSet = false; + draw_on_map = 0; + m_draw_on_map_isSet = false; + auto_target = 0; + m_auto_target_isSet = false; + aos_speech = new QString(""); + m_aos_speech_isSet = false; + los_speech = new QString(""); + m_los_speech_isSet = false; + aos_command = new QString(""); + m_aos_command_isSet = false; + los_command = new QString(""); + m_los_command_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_device_index = 0; + m_reverse_api_device_index_isSet = false; + reverse_api_channel_index = 0; + m_reverse_api_channel_index_isSet = false; +} + +void +SWGSatelliteTrackerSettings::cleanup() { + + + + if(target != nullptr) { + delete target; + } + if(satellites != nullptr) { + auto arr = satellites; + for(auto o: *arr) { + delete o; + } + delete satellites; + } + if(tles != nullptr) { + auto arr = tles; + for(auto o: *arr) { + delete o; + } + delete tles; + } + if(date_time != nullptr) { + delete date_time; + } + + + + + + + if(date_format != nullptr) { + delete date_format; + } + + + + + if(pass_start_time != nullptr) { + delete pass_start_time; + } + if(pass_finish_time != nullptr) { + delete pass_finish_time; + } + + + + if(aos_speech != nullptr) { + delete aos_speech; + } + if(los_speech != nullptr) { + delete los_speech; + } + if(aos_command != nullptr) { + delete aos_command; + } + if(los_command != nullptr) { + delete los_command; + } + if(title != nullptr) { + delete title; + } + + + if(reverse_api_address != nullptr) { + delete reverse_api_address; + } + + + +} + +SWGSatelliteTrackerSettings* +SWGSatelliteTrackerSettings::fromJson(QString &json) { + QByteArray array (json.toStdString().c_str()); + QJsonDocument doc = QJsonDocument::fromJson(array); + QJsonObject jsonObject = doc.object(); + this->fromJsonObject(jsonObject); + return this; +} + +void +SWGSatelliteTrackerSettings::fromJsonObject(QJsonObject &pJson) { + ::SWGSDRangel::setValue(&latitude, pJson["latitude"], "float", ""); + + ::SWGSDRangel::setValue(&longitude, pJson["longitude"], "float", ""); + + ::SWGSDRangel::setValue(&height_above_sea_level, pJson["heightAboveSeaLevel"], "float", ""); + + ::SWGSDRangel::setValue(&target, pJson["target"], "QString", "QString"); + + + ::SWGSDRangel::setValue(&satellites, pJson["satellites"], "QList", "QString"); + + ::SWGSDRangel::setValue(&tles, pJson["tles"], "QList", "QString"); + ::SWGSDRangel::setValue(&date_time, pJson["dateTime"], "QString", "QString"); + + ::SWGSDRangel::setValue(&min_aos_elevation, pJson["minAOSElevation"], "qint32", ""); + + ::SWGSDRangel::setValue(&min_pass_elevation, pJson["minPassElevation"], "qint32", ""); + + ::SWGSDRangel::setValue(&rotator_max_azimuth, pJson["rotatorMaxAzimuth"], "qint32", ""); + + ::SWGSDRangel::setValue(&rotator_max_elevation, pJson["rotatorMaxElevation"], "qint32", ""); + + ::SWGSDRangel::setValue(&az_el_units, pJson["azElUnits"], "qint32", ""); + + ::SWGSDRangel::setValue(&ground_track_points, pJson["groundTrackPoints"], "qint32", ""); + + ::SWGSDRangel::setValue(&date_format, pJson["dateFormat"], "QString", "QString"); + + ::SWGSDRangel::setValue(&utc, pJson["utc"], "qint32", ""); + + ::SWGSDRangel::setValue(&update_period, pJson["updatePeriod"], "float", ""); + + ::SWGSDRangel::setValue(&doppler_period, pJson["dopplerPeriod"], "float", ""); + + ::SWGSDRangel::setValue(&prediction_period, pJson["predictionPeriod"], "qint32", ""); + + ::SWGSDRangel::setValue(&pass_start_time, pJson["passStartTime"], "QString", "QString"); + + ::SWGSDRangel::setValue(&pass_finish_time, pJson["passFinishTime"], "QString", "QString"); + + ::SWGSDRangel::setValue(&default_frequency, pJson["defaultFrequency"], "float", ""); + + ::SWGSDRangel::setValue(&draw_on_map, pJson["drawOnMap"], "qint32", ""); + + ::SWGSDRangel::setValue(&auto_target, pJson["autoTarget"], "qint32", ""); + + ::SWGSDRangel::setValue(&aos_speech, pJson["aosSpeech"], "QString", "QString"); + + ::SWGSDRangel::setValue(&los_speech, pJson["losSpeech"], "QString", "QString"); + + ::SWGSDRangel::setValue(&aos_command, pJson["aosCommand"], "QString", "QString"); + + ::SWGSDRangel::setValue(&los_command, pJson["losCommand"], "QString", "QString"); + + ::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_device_index, pJson["reverseAPIDeviceIndex"], "qint32", ""); + + ::SWGSDRangel::setValue(&reverse_api_channel_index, pJson["reverseAPIChannelIndex"], "qint32", ""); + +} + +QString +SWGSatelliteTrackerSettings::asJson () +{ + QJsonObject* obj = this->asJsonObject(); + + QJsonDocument doc(*obj); + QByteArray bytes = doc.toJson(); + delete obj; + return QString(bytes); +} + +QJsonObject* +SWGSatelliteTrackerSettings::asJsonObject() { + QJsonObject* obj = new QJsonObject(); + if(m_latitude_isSet){ + obj->insert("latitude", QJsonValue(latitude)); + } + if(m_longitude_isSet){ + obj->insert("longitude", QJsonValue(longitude)); + } + if(m_height_above_sea_level_isSet){ + obj->insert("heightAboveSeaLevel", QJsonValue(height_above_sea_level)); + } + if(target != nullptr && *target != QString("")){ + toJsonValue(QString("target"), target, obj, QString("QString")); + } + if(satellites && satellites->size() > 0){ + toJsonArray((QList*)satellites, obj, "satellites", "QString"); + } + if(tles && tles->size() > 0){ + toJsonArray((QList*)tles, obj, "tles", "QString"); + } + if(date_time != nullptr && *date_time != QString("")){ + toJsonValue(QString("dateTime"), date_time, obj, QString("QString")); + } + if(m_min_aos_elevation_isSet){ + obj->insert("minAOSElevation", QJsonValue(min_aos_elevation)); + } + if(m_min_pass_elevation_isSet){ + obj->insert("minPassElevation", QJsonValue(min_pass_elevation)); + } + if(m_rotator_max_azimuth_isSet){ + obj->insert("rotatorMaxAzimuth", QJsonValue(rotator_max_azimuth)); + } + if(m_rotator_max_elevation_isSet){ + obj->insert("rotatorMaxElevation", QJsonValue(rotator_max_elevation)); + } + if(m_az_el_units_isSet){ + obj->insert("azElUnits", QJsonValue(az_el_units)); + } + if(m_ground_track_points_isSet){ + obj->insert("groundTrackPoints", QJsonValue(ground_track_points)); + } + if(date_format != nullptr && *date_format != QString("")){ + toJsonValue(QString("dateFormat"), date_format, obj, QString("QString")); + } + if(m_utc_isSet){ + obj->insert("utc", QJsonValue(utc)); + } + if(m_update_period_isSet){ + obj->insert("updatePeriod", QJsonValue(update_period)); + } + if(m_doppler_period_isSet){ + obj->insert("dopplerPeriod", QJsonValue(doppler_period)); + } + if(m_prediction_period_isSet){ + obj->insert("predictionPeriod", QJsonValue(prediction_period)); + } + if(pass_start_time != nullptr && *pass_start_time != QString("")){ + toJsonValue(QString("passStartTime"), pass_start_time, obj, QString("QString")); + } + if(pass_finish_time != nullptr && *pass_finish_time != QString("")){ + toJsonValue(QString("passFinishTime"), pass_finish_time, obj, QString("QString")); + } + if(m_default_frequency_isSet){ + obj->insert("defaultFrequency", QJsonValue(default_frequency)); + } + if(m_draw_on_map_isSet){ + obj->insert("drawOnMap", QJsonValue(draw_on_map)); + } + if(m_auto_target_isSet){ + obj->insert("autoTarget", QJsonValue(auto_target)); + } + if(aos_speech != nullptr && *aos_speech != QString("")){ + toJsonValue(QString("aosSpeech"), aos_speech, obj, QString("QString")); + } + if(los_speech != nullptr && *los_speech != QString("")){ + toJsonValue(QString("losSpeech"), los_speech, obj, QString("QString")); + } + if(aos_command != nullptr && *aos_command != QString("")){ + toJsonValue(QString("aosCommand"), aos_command, obj, QString("QString")); + } + if(los_command != nullptr && *los_command != QString("")){ + toJsonValue(QString("losCommand"), los_command, obj, QString("QString")); + } + 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_device_index_isSet){ + obj->insert("reverseAPIDeviceIndex", QJsonValue(reverse_api_device_index)); + } + if(m_reverse_api_channel_index_isSet){ + obj->insert("reverseAPIChannelIndex", QJsonValue(reverse_api_channel_index)); + } + + return obj; +} + +float +SWGSatelliteTrackerSettings::getLatitude() { + return latitude; +} +void +SWGSatelliteTrackerSettings::setLatitude(float latitude) { + this->latitude = latitude; + this->m_latitude_isSet = true; +} + +float +SWGSatelliteTrackerSettings::getLongitude() { + return longitude; +} +void +SWGSatelliteTrackerSettings::setLongitude(float longitude) { + this->longitude = longitude; + this->m_longitude_isSet = true; +} + +float +SWGSatelliteTrackerSettings::getHeightAboveSeaLevel() { + return height_above_sea_level; +} +void +SWGSatelliteTrackerSettings::setHeightAboveSeaLevel(float height_above_sea_level) { + this->height_above_sea_level = height_above_sea_level; + this->m_height_above_sea_level_isSet = true; +} + +QString* +SWGSatelliteTrackerSettings::getTarget() { + return target; +} +void +SWGSatelliteTrackerSettings::setTarget(QString* target) { + this->target = target; + this->m_target_isSet = true; +} + +QList* +SWGSatelliteTrackerSettings::getSatellites() { + return satellites; +} +void +SWGSatelliteTrackerSettings::setSatellites(QList* satellites) { + this->satellites = satellites; + this->m_satellites_isSet = true; +} + +QList* +SWGSatelliteTrackerSettings::getTles() { + return tles; +} +void +SWGSatelliteTrackerSettings::setTles(QList* tles) { + this->tles = tles; + this->m_tles_isSet = true; +} + +QString* +SWGSatelliteTrackerSettings::getDateTime() { + return date_time; +} +void +SWGSatelliteTrackerSettings::setDateTime(QString* date_time) { + this->date_time = date_time; + this->m_date_time_isSet = true; +} + +qint32 +SWGSatelliteTrackerSettings::getMinAosElevation() { + return min_aos_elevation; +} +void +SWGSatelliteTrackerSettings::setMinAosElevation(qint32 min_aos_elevation) { + this->min_aos_elevation = min_aos_elevation; + this->m_min_aos_elevation_isSet = true; +} + +qint32 +SWGSatelliteTrackerSettings::getMinPassElevation() { + return min_pass_elevation; +} +void +SWGSatelliteTrackerSettings::setMinPassElevation(qint32 min_pass_elevation) { + this->min_pass_elevation = min_pass_elevation; + this->m_min_pass_elevation_isSet = true; +} + +qint32 +SWGSatelliteTrackerSettings::getRotatorMaxAzimuth() { + return rotator_max_azimuth; +} +void +SWGSatelliteTrackerSettings::setRotatorMaxAzimuth(qint32 rotator_max_azimuth) { + this->rotator_max_azimuth = rotator_max_azimuth; + this->m_rotator_max_azimuth_isSet = true; +} + +qint32 +SWGSatelliteTrackerSettings::getRotatorMaxElevation() { + return rotator_max_elevation; +} +void +SWGSatelliteTrackerSettings::setRotatorMaxElevation(qint32 rotator_max_elevation) { + this->rotator_max_elevation = rotator_max_elevation; + this->m_rotator_max_elevation_isSet = true; +} + +qint32 +SWGSatelliteTrackerSettings::getAzElUnits() { + return az_el_units; +} +void +SWGSatelliteTrackerSettings::setAzElUnits(qint32 az_el_units) { + this->az_el_units = az_el_units; + this->m_az_el_units_isSet = true; +} + +qint32 +SWGSatelliteTrackerSettings::getGroundTrackPoints() { + return ground_track_points; +} +void +SWGSatelliteTrackerSettings::setGroundTrackPoints(qint32 ground_track_points) { + this->ground_track_points = ground_track_points; + this->m_ground_track_points_isSet = true; +} + +QString* +SWGSatelliteTrackerSettings::getDateFormat() { + return date_format; +} +void +SWGSatelliteTrackerSettings::setDateFormat(QString* date_format) { + this->date_format = date_format; + this->m_date_format_isSet = true; +} + +qint32 +SWGSatelliteTrackerSettings::getUtc() { + return utc; +} +void +SWGSatelliteTrackerSettings::setUtc(qint32 utc) { + this->utc = utc; + this->m_utc_isSet = true; +} + +float +SWGSatelliteTrackerSettings::getUpdatePeriod() { + return update_period; +} +void +SWGSatelliteTrackerSettings::setUpdatePeriod(float update_period) { + this->update_period = update_period; + this->m_update_period_isSet = true; +} + +float +SWGSatelliteTrackerSettings::getDopplerPeriod() { + return doppler_period; +} +void +SWGSatelliteTrackerSettings::setDopplerPeriod(float doppler_period) { + this->doppler_period = doppler_period; + this->m_doppler_period_isSet = true; +} + +qint32 +SWGSatelliteTrackerSettings::getPredictionPeriod() { + return prediction_period; +} +void +SWGSatelliteTrackerSettings::setPredictionPeriod(qint32 prediction_period) { + this->prediction_period = prediction_period; + this->m_prediction_period_isSet = true; +} + +QString* +SWGSatelliteTrackerSettings::getPassStartTime() { + return pass_start_time; +} +void +SWGSatelliteTrackerSettings::setPassStartTime(QString* pass_start_time) { + this->pass_start_time = pass_start_time; + this->m_pass_start_time_isSet = true; +} + +QString* +SWGSatelliteTrackerSettings::getPassFinishTime() { + return pass_finish_time; +} +void +SWGSatelliteTrackerSettings::setPassFinishTime(QString* pass_finish_time) { + this->pass_finish_time = pass_finish_time; + this->m_pass_finish_time_isSet = true; +} + +float +SWGSatelliteTrackerSettings::getDefaultFrequency() { + return default_frequency; +} +void +SWGSatelliteTrackerSettings::setDefaultFrequency(float default_frequency) { + this->default_frequency = default_frequency; + this->m_default_frequency_isSet = true; +} + +qint32 +SWGSatelliteTrackerSettings::getDrawOnMap() { + return draw_on_map; +} +void +SWGSatelliteTrackerSettings::setDrawOnMap(qint32 draw_on_map) { + this->draw_on_map = draw_on_map; + this->m_draw_on_map_isSet = true; +} + +qint32 +SWGSatelliteTrackerSettings::getAutoTarget() { + return auto_target; +} +void +SWGSatelliteTrackerSettings::setAutoTarget(qint32 auto_target) { + this->auto_target = auto_target; + this->m_auto_target_isSet = true; +} + +QString* +SWGSatelliteTrackerSettings::getAosSpeech() { + return aos_speech; +} +void +SWGSatelliteTrackerSettings::setAosSpeech(QString* aos_speech) { + this->aos_speech = aos_speech; + this->m_aos_speech_isSet = true; +} + +QString* +SWGSatelliteTrackerSettings::getLosSpeech() { + return los_speech; +} +void +SWGSatelliteTrackerSettings::setLosSpeech(QString* los_speech) { + this->los_speech = los_speech; + this->m_los_speech_isSet = true; +} + +QString* +SWGSatelliteTrackerSettings::getAosCommand() { + return aos_command; +} +void +SWGSatelliteTrackerSettings::setAosCommand(QString* aos_command) { + this->aos_command = aos_command; + this->m_aos_command_isSet = true; +} + +QString* +SWGSatelliteTrackerSettings::getLosCommand() { + return los_command; +} +void +SWGSatelliteTrackerSettings::setLosCommand(QString* los_command) { + this->los_command = los_command; + this->m_los_command_isSet = true; +} + +QString* +SWGSatelliteTrackerSettings::getTitle() { + return title; +} +void +SWGSatelliteTrackerSettings::setTitle(QString* title) { + this->title = title; + this->m_title_isSet = true; +} + +qint32 +SWGSatelliteTrackerSettings::getRgbColor() { + return rgb_color; +} +void +SWGSatelliteTrackerSettings::setRgbColor(qint32 rgb_color) { + this->rgb_color = rgb_color; + this->m_rgb_color_isSet = true; +} + +qint32 +SWGSatelliteTrackerSettings::getUseReverseApi() { + return use_reverse_api; +} +void +SWGSatelliteTrackerSettings::setUseReverseApi(qint32 use_reverse_api) { + this->use_reverse_api = use_reverse_api; + this->m_use_reverse_api_isSet = true; +} + +QString* +SWGSatelliteTrackerSettings::getReverseApiAddress() { + return reverse_api_address; +} +void +SWGSatelliteTrackerSettings::setReverseApiAddress(QString* reverse_api_address) { + this->reverse_api_address = reverse_api_address; + this->m_reverse_api_address_isSet = true; +} + +qint32 +SWGSatelliteTrackerSettings::getReverseApiPort() { + return reverse_api_port; +} +void +SWGSatelliteTrackerSettings::setReverseApiPort(qint32 reverse_api_port) { + this->reverse_api_port = reverse_api_port; + this->m_reverse_api_port_isSet = true; +} + +qint32 +SWGSatelliteTrackerSettings::getReverseApiDeviceIndex() { + return reverse_api_device_index; +} +void +SWGSatelliteTrackerSettings::setReverseApiDeviceIndex(qint32 reverse_api_device_index) { + this->reverse_api_device_index = reverse_api_device_index; + this->m_reverse_api_device_index_isSet = true; +} + +qint32 +SWGSatelliteTrackerSettings::getReverseApiChannelIndex() { + return reverse_api_channel_index; +} +void +SWGSatelliteTrackerSettings::setReverseApiChannelIndex(qint32 reverse_api_channel_index) { + this->reverse_api_channel_index = reverse_api_channel_index; + this->m_reverse_api_channel_index_isSet = true; +} + + +bool +SWGSatelliteTrackerSettings::isSet(){ + bool isObjectUpdated = false; + do{ + if(m_latitude_isSet){ + isObjectUpdated = true; break; + } + if(m_longitude_isSet){ + isObjectUpdated = true; break; + } + if(m_height_above_sea_level_isSet){ + isObjectUpdated = true; break; + } + if(target && *target != QString("")){ + isObjectUpdated = true; break; + } + if(satellites && (satellites->size() > 0)){ + isObjectUpdated = true; break; + } + if(tles && (tles->size() > 0)){ + isObjectUpdated = true; break; + } + if(date_time && *date_time != QString("")){ + isObjectUpdated = true; break; + } + if(m_min_aos_elevation_isSet){ + isObjectUpdated = true; break; + } + if(m_min_pass_elevation_isSet){ + isObjectUpdated = true; break; + } + if(m_rotator_max_azimuth_isSet){ + isObjectUpdated = true; break; + } + if(m_rotator_max_elevation_isSet){ + isObjectUpdated = true; break; + } + if(m_az_el_units_isSet){ + isObjectUpdated = true; break; + } + if(m_ground_track_points_isSet){ + isObjectUpdated = true; break; + } + if(date_format && *date_format != QString("")){ + isObjectUpdated = true; break; + } + if(m_utc_isSet){ + isObjectUpdated = true; break; + } + if(m_update_period_isSet){ + isObjectUpdated = true; break; + } + if(m_doppler_period_isSet){ + isObjectUpdated = true; break; + } + if(m_prediction_period_isSet){ + isObjectUpdated = true; break; + } + if(pass_start_time && *pass_start_time != QString("")){ + isObjectUpdated = true; break; + } + if(pass_finish_time && *pass_finish_time != QString("")){ + isObjectUpdated = true; break; + } + if(m_default_frequency_isSet){ + isObjectUpdated = true; break; + } + if(m_draw_on_map_isSet){ + isObjectUpdated = true; break; + } + if(m_auto_target_isSet){ + isObjectUpdated = true; break; + } + if(aos_speech && *aos_speech != QString("")){ + isObjectUpdated = true; break; + } + if(los_speech && *los_speech != QString("")){ + isObjectUpdated = true; break; + } + if(aos_command && *aos_command != QString("")){ + isObjectUpdated = true; break; + } + if(los_command && *los_command != QString("")){ + 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_device_index_isSet){ + isObjectUpdated = true; break; + } + if(m_reverse_api_channel_index_isSet){ + isObjectUpdated = true; break; + } + }while(false); + return isObjectUpdated; +} +} + diff --git a/swagger/sdrangel/code/qt5/client/SWGSatelliteTrackerSettings.h b/swagger/sdrangel/code/qt5/client/SWGSatelliteTrackerSettings.h new file mode 100644 index 000000000..57f8aaac6 --- /dev/null +++ b/swagger/sdrangel/code/qt5/client/SWGSatelliteTrackerSettings.h @@ -0,0 +1,258 @@ +/** + * 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: 6.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. + */ + +/* + * SWGSatelliteTrackerSettings.h + * + * Satellite Tracker settings + */ + +#ifndef SWGSatelliteTrackerSettings_H_ +#define SWGSatelliteTrackerSettings_H_ + +#include + + +#include +#include + +#include "SWGObject.h" +#include "export.h" + +namespace SWGSDRangel { + +class SWG_API SWGSatelliteTrackerSettings: public SWGObject { +public: + SWGSatelliteTrackerSettings(); + SWGSatelliteTrackerSettings(QString* json); + virtual ~SWGSatelliteTrackerSettings(); + void init(); + void cleanup(); + + virtual QString asJson () override; + virtual QJsonObject* asJsonObject() override; + virtual void fromJsonObject(QJsonObject &json) override; + virtual SWGSatelliteTrackerSettings* fromJson(QString &jsonString) override; + + float getLatitude(); + void setLatitude(float latitude); + + float getLongitude(); + void setLongitude(float longitude); + + float getHeightAboveSeaLevel(); + void setHeightAboveSeaLevel(float height_above_sea_level); + + QString* getTarget(); + void setTarget(QString* target); + + QList* getSatellites(); + void setSatellites(QList* satellites); + + QList* getTles(); + void setTles(QList* tles); + + QString* getDateTime(); + void setDateTime(QString* date_time); + + qint32 getMinAosElevation(); + void setMinAosElevation(qint32 min_aos_elevation); + + qint32 getMinPassElevation(); + void setMinPassElevation(qint32 min_pass_elevation); + + qint32 getRotatorMaxAzimuth(); + void setRotatorMaxAzimuth(qint32 rotator_max_azimuth); + + qint32 getRotatorMaxElevation(); + void setRotatorMaxElevation(qint32 rotator_max_elevation); + + qint32 getAzElUnits(); + void setAzElUnits(qint32 az_el_units); + + qint32 getGroundTrackPoints(); + void setGroundTrackPoints(qint32 ground_track_points); + + QString* getDateFormat(); + void setDateFormat(QString* date_format); + + qint32 getUtc(); + void setUtc(qint32 utc); + + float getUpdatePeriod(); + void setUpdatePeriod(float update_period); + + float getDopplerPeriod(); + void setDopplerPeriod(float doppler_period); + + qint32 getPredictionPeriod(); + void setPredictionPeriod(qint32 prediction_period); + + QString* getPassStartTime(); + void setPassStartTime(QString* pass_start_time); + + QString* getPassFinishTime(); + void setPassFinishTime(QString* pass_finish_time); + + float getDefaultFrequency(); + void setDefaultFrequency(float default_frequency); + + qint32 getDrawOnMap(); + void setDrawOnMap(qint32 draw_on_map); + + qint32 getAutoTarget(); + void setAutoTarget(qint32 auto_target); + + QString* getAosSpeech(); + void setAosSpeech(QString* aos_speech); + + QString* getLosSpeech(); + void setLosSpeech(QString* los_speech); + + QString* getAosCommand(); + void setAosCommand(QString* aos_command); + + QString* getLosCommand(); + void setLosCommand(QString* los_command); + + 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 getReverseApiDeviceIndex(); + void setReverseApiDeviceIndex(qint32 reverse_api_device_index); + + qint32 getReverseApiChannelIndex(); + void setReverseApiChannelIndex(qint32 reverse_api_channel_index); + + + virtual bool isSet() override; + +private: + float latitude; + bool m_latitude_isSet; + + float longitude; + bool m_longitude_isSet; + + float height_above_sea_level; + bool m_height_above_sea_level_isSet; + + QString* target; + bool m_target_isSet; + + QList* satellites; + bool m_satellites_isSet; + + QList* tles; + bool m_tles_isSet; + + QString* date_time; + bool m_date_time_isSet; + + qint32 min_aos_elevation; + bool m_min_aos_elevation_isSet; + + qint32 min_pass_elevation; + bool m_min_pass_elevation_isSet; + + qint32 rotator_max_azimuth; + bool m_rotator_max_azimuth_isSet; + + qint32 rotator_max_elevation; + bool m_rotator_max_elevation_isSet; + + qint32 az_el_units; + bool m_az_el_units_isSet; + + qint32 ground_track_points; + bool m_ground_track_points_isSet; + + QString* date_format; + bool m_date_format_isSet; + + qint32 utc; + bool m_utc_isSet; + + float update_period; + bool m_update_period_isSet; + + float doppler_period; + bool m_doppler_period_isSet; + + qint32 prediction_period; + bool m_prediction_period_isSet; + + QString* pass_start_time; + bool m_pass_start_time_isSet; + + QString* pass_finish_time; + bool m_pass_finish_time_isSet; + + float default_frequency; + bool m_default_frequency_isSet; + + qint32 draw_on_map; + bool m_draw_on_map_isSet; + + qint32 auto_target; + bool m_auto_target_isSet; + + QString* aos_speech; + bool m_aos_speech_isSet; + + QString* los_speech; + bool m_los_speech_isSet; + + QString* aos_command; + bool m_aos_command_isSet; + + QString* los_command; + bool m_los_command_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_device_index; + bool m_reverse_api_device_index_isSet; + + qint32 reverse_api_channel_index; + bool m_reverse_api_channel_index_isSet; + +}; + +} + +#endif /* SWGSatelliteTrackerSettings_H_ */