From cd0deb5bdf2dfefb3ad7f02747d5f2053cb64403 Mon Sep 17 00:00:00 2001 From: srcejon Date: Thu, 8 Feb 2024 09:21:14 +0000 Subject: [PATCH] Add Sky Map yaml --- sdrbase/resources/webapi/doc/html2/index.html | 139 ++++- .../doc/swagger/include/FeatureActions.yaml | 2 + .../doc/swagger/include/FeatureReport.yaml | 2 + .../doc/swagger/include/FeatureSettings.yaml | 6 +- .../webapi/doc/swagger/include/SkyMap.yaml | 121 +++++ .../api/swagger/include/FeatureActions.yaml | 2 + .../api/swagger/include/FeatureReport.yaml | 2 + .../api/swagger/include/FeatureSettings.yaml | 6 +- .../sdrangel/api/swagger/include/SkyMap.yaml | 121 +++++ swagger/sdrangel/code/html2/index.html | 139 ++++- .../code/qt5/client/SWGFeatureActions.cpp | 25 + .../code/qt5/client/SWGFeatureActions.h | 7 + .../code/qt5/client/SWGFeatureReport.cpp | 25 + .../code/qt5/client/SWGFeatureReport.h | 7 + .../code/qt5/client/SWGFeatureSettings.cpp | 73 ++- .../code/qt5/client/SWGFeatureSettings.h | 19 +- .../code/qt5/client/SWGModelFactory.h | 18 + .../code/qt5/client/SWGSkyMapActions.cpp | 110 ++++ .../code/qt5/client/SWGSkyMapActions.h | 59 ++ .../code/qt5/client/SWGSkyMapReport.cpp | 271 +++++++++ .../code/qt5/client/SWGSkyMapReport.h | 101 ++++ .../code/qt5/client/SWGSkyMapSettings.cpp | 513 ++++++++++++++++++ .../code/qt5/client/SWGSkyMapSettings.h | 162 ++++++ 23 files changed, 1888 insertions(+), 42 deletions(-) create mode 100644 sdrbase/resources/webapi/doc/swagger/include/SkyMap.yaml create mode 100644 swagger/sdrangel/api/swagger/include/SkyMap.yaml create mode 100644 swagger/sdrangel/code/qt5/client/SWGSkyMapActions.cpp create mode 100644 swagger/sdrangel/code/qt5/client/SWGSkyMapActions.h create mode 100644 swagger/sdrangel/code/qt5/client/SWGSkyMapReport.cpp create mode 100644 swagger/sdrangel/code/qt5/client/SWGSkyMapReport.h create mode 100644 swagger/sdrangel/code/qt5/client/SWGSkyMapSettings.cpp create mode 100644 swagger/sdrangel/code/qt5/client/SWGSkyMapSettings.h diff --git a/sdrbase/resources/webapi/doc/html2/index.html b/sdrbase/resources/webapi/doc/html2/index.html index 0675d2d30..c4277f808 100644 --- a/sdrbase/resources/webapi/doc/html2/index.html +++ b/sdrbase/resources/webapi/doc/html2/index.html @@ -6249,6 +6249,9 @@ margin-bottom: 20px; "SimplePTTActions" : { "$ref" : "#/definitions/SimplePTTActions" }, + "SkyMapActions" : { + "$ref" : "#/definitions/SkyMapActions" + }, "StarTrackerActions" : { "$ref" : "#/definitions/StarTrackerActions" }, @@ -6394,6 +6397,9 @@ margin-bottom: 20px; "SimplePTTReport" : { "$ref" : "#/definitions/SimplePTTReport" }, + "SkyMapReport" : { + "$ref" : "#/definitions/SkyMapReport" + }, "StarTrackerReport" : { "$ref" : "#/definitions/StarTrackerReport" }, @@ -6495,12 +6501,15 @@ margin-bottom: 20px; "SatelliteTrackerSettings" : { "$ref" : "#/definitions/SatelliteTrackerSettings" }, - "StarTrackerSettings" : { - "$ref" : "#/definitions/StarTrackerSettings" - }, "SimplePTTSettings" : { "$ref" : "#/definitions/SimplePTTSettings" }, + "SkyMapSettings" : { + "$ref" : "#/definitions/SkyMapSettings" + }, + "StarTrackerSettings" : { + "$ref" : "#/definitions/StarTrackerSettings" + }, "VORLocalizerSettings" : { "$ref" : "#/definitions/VORLocalizerSettings" } @@ -14618,6 +14627,128 @@ margin-bottom: 20px; } }, "description" : "Simple PTT settings" +}; + defs.SkyMapActions = { + "properties" : { + "find" : { + "type" : "string", + "description" : "The name of the object or the coordinates to centre the sky map on" + } + }, + "description" : "Sky Map" +}; + defs.SkyMapReport = { + "properties" : { + "dateTime" : { + "type" : "string", + "description" : "Current date and time being used for sky map" + }, + "ra" : { + "type" : "number", + "format" : "float", + "description" : "Right ascension of target (In decimal hours, J2000)" + }, + "dec" : { + "type" : "number", + "format" : "float", + "description" : "Declination of target (In decimal degrees, J2000)" + }, + "latitude" : { + "type" : "number", + "format" : "float", + "description" : "Latitude in decimal degrees (North positive) of observation/antenna location" + }, + "longitude" : { + "type" : "number", + "format" : "float", + "description" : "Longitude in decimal degrees (East positive) of observation/antenna location" + }, + "azimuth" : { + "type" : "number", + "format" : "float", + "description" : "The azimuth angle in degrees to the target" + }, + "elevation" : { + "type" : "number", + "format" : "float", + "description" : "The elevation angle in degrees to the target" + }, + "fov" : { + "type" : "number", + "format" : "float", + "description" : "Current field-of-view in degrees" + } + }, + "description" : "Sky Map" +}; + defs.SkyMapSettings = { + "properties" : { + "displayNames" : { + "type" : "integer", + "description" : "Display names on the sky map (1 for yes, 0 for no)" + }, + "displayConstellations" : { + "type" : "integer", + "description" : "Display constellations on the sky map (1 for yes, 0 for no)" + }, + "displayReticle" : { + "type" : "integer", + "description" : "Display reticle on the sky map (1 for yes, 0 for no)" + }, + "displayGrid" : { + "type" : "integer", + "description" : "Display grid on the sky map (1 for yes, 0 for no)" + }, + "displayAntennaFoV" : { + "type" : "integer", + "description" : "Display antenna field-of-view on the sky map (1 for yes, 0 for no)" + }, + "map" : { + "type" : "string", + "description" : "WWT, ESASky or Aladin" + }, + "background" : { + "type" : "string", + "description" : "Name of background image set" + }, + "projection" : { + "type" : "string" + }, + "source" : { + "type" : "string", + "description" : "Channel or Feature plugin to get target from" + }, + "track" : { + "type" : "integer", + "description" : "Whether to track the specified source plugin" + }, + "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" + }, + "reverseAPIFeatureSetIndex" : { + "type" : "integer" + }, + "reverseAPIFeatureIndex" : { + "type" : "integer" + }, + "rollupState" : { + "$ref" : "#/definitions/RollupState" + } + }, + "description" : "Sky Map" }; defs.SoapySDRFrequencySetting = { "properties" : { @@ -58429,7 +58560,7 @@ except ApiException as e:
- Generated 2024-01-21T13:22:02.160+01:00 + Generated 2024-02-08T10:19:55.419+01:00
diff --git a/sdrbase/resources/webapi/doc/swagger/include/FeatureActions.yaml b/sdrbase/resources/webapi/doc/swagger/include/FeatureActions.yaml index d46ccf17b..75003fcb3 100644 --- a/sdrbase/resources/webapi/doc/swagger/include/FeatureActions.yaml +++ b/sdrbase/resources/webapi/doc/swagger/include/FeatureActions.yaml @@ -31,6 +31,8 @@ FeatureActions: $ref: "/doc/swagger/include/SatelliteTracker.yaml#/SatelliteTrackerActions" SimplePTTActions: $ref: "/doc/swagger/include/SimplePTT.yaml#/SimplePTTActions" + SkyMapActions: + $ref: "/doc/swagger/include/SkyMap.yaml#/SkyMapActions" StarTrackerActions: $ref: "/doc/swagger/include/StarTracker.yaml#/StarTrackerActions" VORLocalizerActions: diff --git a/sdrbase/resources/webapi/doc/swagger/include/FeatureReport.yaml b/sdrbase/resources/webapi/doc/swagger/include/FeatureReport.yaml index c4c63649e..20cfbd37e 100644 --- a/sdrbase/resources/webapi/doc/swagger/include/FeatureReport.yaml +++ b/sdrbase/resources/webapi/doc/swagger/include/FeatureReport.yaml @@ -25,6 +25,8 @@ FeatureReport: $ref: "/doc/swagger/include/SatelliteTracker.yaml#/SatelliteTrackerReport" SimplePTTReport: $ref: "/doc/swagger/include/SimplePTT.yaml#/SimplePTTReport" + SkyMapReport: + $ref: "/doc/swagger/include/SkyMap.yaml#/SkyMapReport" StarTrackerReport: $ref: "/doc/swagger/include/StarTracker.yaml#/StarTrackerReport" VORLocalizerReport: diff --git a/sdrbase/resources/webapi/doc/swagger/include/FeatureSettings.yaml b/sdrbase/resources/webapi/doc/swagger/include/FeatureSettings.yaml index 2bef41e84..c5a5b5eea 100644 --- a/sdrbase/resources/webapi/doc/swagger/include/FeatureSettings.yaml +++ b/sdrbase/resources/webapi/doc/swagger/include/FeatureSettings.yaml @@ -41,9 +41,11 @@ FeatureSettings: $ref: "/doc/swagger/include/RigCtlServer.yaml#/RigCtlServerSettings" SatelliteTrackerSettings: $ref: "/doc/swagger/include/SatelliteTracker.yaml#/SatelliteTrackerSettings" - StarTrackerSettings: - $ref: "/doc/swagger/include/StarTracker.yaml#/StarTrackerSettings" SimplePTTSettings: $ref: "/doc/swagger/include/SimplePTT.yaml#/SimplePTTSettings" + SkyMapSettings: + $ref: "/doc/swagger/include/SkyMap.yaml#/SkyMapSettings" + StarTrackerSettings: + $ref: "/doc/swagger/include/StarTracker.yaml#/StarTrackerSettings" VORLocalizerSettings: $ref: "/doc/swagger/include/VORLocalizer.yaml#/VORLocalizerSettings" diff --git a/sdrbase/resources/webapi/doc/swagger/include/SkyMap.yaml b/sdrbase/resources/webapi/doc/swagger/include/SkyMap.yaml new file mode 100644 index 000000000..84e774289 --- /dev/null +++ b/sdrbase/resources/webapi/doc/swagger/include/SkyMap.yaml @@ -0,0 +1,121 @@ +SkyMapSettings: + description: Sky Map + properties: + displayNames: + description: "Display names on the sky map (1 for yes, 0 for no)" + type: integer + displayConstellations: + description: "Display constellations on the sky map (1 for yes, 0 for no)" + type: integer + displayReticle: + description: "Display reticle on the sky map (1 for yes, 0 for no)" + type: integer + displayGrid: + description: "Display grid on the sky map (1 for yes, 0 for no)" + type: integer + displayReticle: + description: "Display reticle on the sky map (1 for yes, 0 for no)" + type: integer + displayAntennaFoV: + description: "Display antenna field-of-view on the sky map (1 for yes, 0 for no)" + type: integer + map: + description: "WWT, ESASky or Aladin" + type: string + background: + description: "Name of background image set" + type: string + projection: + type: string + source: + description: "Channel or Feature plugin to get target from" + type: string + track: + description: "Whether to track the specified source plugin" + type: integer + title: + type: string + rgbColor: + type: integer + useReverseAPI: + description: Synchronize with reverse API (1 for yes, 0 for no) + type: integer + reverseAPIAddress: + type: string + reverseAPIPort: + type: integer + reverseAPIFeatureSetIndex: + type: integer + reverseAPIFeatureIndex: + type: integer + rollupState: + $ref: "/doc/swagger/include/RollupState.yaml#/RollupState" + +SkyMapReport: + description: Sky Map + properties: + dateTime: + description: "Current date and time being used for sky map" + type: string + ra: + description: "Right ascension of target (In decimal hours, J2000)" + type: number + format: float + dec: + description: "Declination of target (In decimal degrees, J2000)" + type: number + format: float + latitude: + description: "Latitude in decimal degrees (North positive) of observation/antenna location" + type: number + format: float + longitude: + description: "Longitude in decimal degrees (East positive) of observation/antenna location" + type: number + format: float + azimuth: + description: "The azimuth angle in degrees to the target" + type: number + format: float + elevation: + description: "The elevation angle in degrees to the target" + type: number + format: float + fov: + description: "Current field-of-view in degrees" + type: number + format: float + +SkyMapActions: + description: Sky Map + properties: + find: + description: "The name of the object or the coordinates to centre the sky map on" + type: string + +SkyMapTarget: + description: "Sky Map target. Sent by other plugins to skymap.target message queue." + properties: + ra: + description: "Right ascension of target (In decimal hours, J2000)" + type: number + format: float + dec: + description: "Declination of target (In decimal degrees, J2000)" + type: number + format: float + latitude: + description: "Latitude in decimal degrees (North positive) of observation/antenna location" + type: number + format: float + longitude: + description: "Longitude in decimal degrees (East positive) of observation/antenna location" + type: number + format: float + hpbw: + description: "Antenna half-power beam width in degrees" + type: number + format: float + 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 diff --git a/swagger/sdrangel/api/swagger/include/FeatureActions.yaml b/swagger/sdrangel/api/swagger/include/FeatureActions.yaml index b19942023..562154a38 100644 --- a/swagger/sdrangel/api/swagger/include/FeatureActions.yaml +++ b/swagger/sdrangel/api/swagger/include/FeatureActions.yaml @@ -31,6 +31,8 @@ FeatureActions: $ref: "http://swgserver:8081/api/swagger/include/SatelliteTracker.yaml#/SatelliteTrackerActions" SimplePTTActions: $ref: "http://swgserver:8081/api/swagger/include/SimplePTT.yaml#/SimplePTTActions" + SkyMapActions: + $ref: "http://swgserver:8081/api/swagger/include/SkyMap.yaml#/SkyMapActions" StarTrackerActions: $ref: "http://swgserver:8081/api/swagger/include/StarTracker.yaml#/StarTrackerActions" VORLocalizerActions: diff --git a/swagger/sdrangel/api/swagger/include/FeatureReport.yaml b/swagger/sdrangel/api/swagger/include/FeatureReport.yaml index 95fdcea9e..67e19d0ea 100644 --- a/swagger/sdrangel/api/swagger/include/FeatureReport.yaml +++ b/swagger/sdrangel/api/swagger/include/FeatureReport.yaml @@ -25,6 +25,8 @@ FeatureReport: $ref: "http://swgserver:8081/api/swagger/include/SatelliteTracker.yaml#/SatelliteTrackerReport" SimplePTTReport: $ref: "http://swgserver:8081/api/swagger/include/SimplePTT.yaml#/SimplePTTReport" + SkyMapReport: + $ref: "http://swgserver:8081/api/swagger/include/SkyMap.yaml#/SkyMapReport" StarTrackerReport: $ref: "http://swgserver:8081/api/swagger/include/StarTracker.yaml#/StarTrackerReport" VORLocalizerReport: diff --git a/swagger/sdrangel/api/swagger/include/FeatureSettings.yaml b/swagger/sdrangel/api/swagger/include/FeatureSettings.yaml index 6832f8ab4..96929de07 100644 --- a/swagger/sdrangel/api/swagger/include/FeatureSettings.yaml +++ b/swagger/sdrangel/api/swagger/include/FeatureSettings.yaml @@ -41,9 +41,11 @@ FeatureSettings: $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: $ref: "http://swgserver:8081/api/swagger/include/SimplePTT.yaml#/SimplePTTSettings" + SkyMapSettings: + $ref: "http://swgserver:8081/api/swagger/include/SkyMap.yaml#/SkyMapSettings" + StarTrackerSettings: + $ref: "http://swgserver:8081/api/swagger/include/StarTracker.yaml#/StarTrackerSettings" VORLocalizerSettings: $ref: "http://swgserver:8081/api/swagger/include/VORLocalizer.yaml#/VORLocalizerSettings" diff --git a/swagger/sdrangel/api/swagger/include/SkyMap.yaml b/swagger/sdrangel/api/swagger/include/SkyMap.yaml new file mode 100644 index 000000000..ebd4958d7 --- /dev/null +++ b/swagger/sdrangel/api/swagger/include/SkyMap.yaml @@ -0,0 +1,121 @@ +SkyMapSettings: + description: Sky Map + properties: + displayNames: + description: "Display names on the sky map (1 for yes, 0 for no)" + type: integer + displayConstellations: + description: "Display constellations on the sky map (1 for yes, 0 for no)" + type: integer + displayReticle: + description: "Display reticle on the sky map (1 for yes, 0 for no)" + type: integer + displayGrid: + description: "Display grid on the sky map (1 for yes, 0 for no)" + type: integer + displayReticle: + description: "Display reticle on the sky map (1 for yes, 0 for no)" + type: integer + displayAntennaFoV: + description: "Display antenna field-of-view on the sky map (1 for yes, 0 for no)" + type: integer + map: + description: "WWT, ESASky or Aladin" + type: string + background: + description: "Name of background image set" + type: string + projection: + type: string + source: + description: "Channel or Feature plugin to get target from" + type: string + track: + description: "Whether to track the specified source plugin" + type: integer + title: + type: string + rgbColor: + type: integer + useReverseAPI: + description: Synchronize with reverse API (1 for yes, 0 for no) + type: integer + reverseAPIAddress: + type: string + reverseAPIPort: + type: integer + reverseAPIFeatureSetIndex: + type: integer + reverseAPIFeatureIndex: + type: integer + rollupState: + $ref: "http://swgserver:8081/api/swagger/include/RollupState.yaml#/RollupState" + +SkyMapReport: + description: Sky Map + properties: + dateTime: + description: "Current date and time being used for sky map" + type: string + ra: + description: "Right ascension of target (In decimal hours, J2000)" + type: number + format: float + dec: + description: "Declination of target (In decimal degrees, J2000)" + type: number + format: float + latitude: + description: "Latitude in decimal degrees (North positive) of observation/antenna location" + type: number + format: float + longitude: + description: "Longitude in decimal degrees (East positive) of observation/antenna location" + type: number + format: float + azimuth: + description: "The azimuth angle in degrees to the target" + type: number + format: float + elevation: + description: "The elevation angle in degrees to the target" + type: number + format: float + fov: + description: "Current field-of-view in degrees" + type: number + format: float + +SkyMapActions: + description: Sky Map + properties: + find: + description: "The name of the object or the coordinates to centre the sky map on" + type: string + +SkyMapTarget: + description: "Sky Map target. Sent by other plugins to skymap.target message queue." + properties: + ra: + description: "Right ascension of target (In decimal hours, J2000)" + type: number + format: float + dec: + description: "Declination of target (In decimal degrees, J2000)" + type: number + format: float + latitude: + description: "Latitude in decimal degrees (North positive) of observation/antenna location" + type: number + format: float + longitude: + description: "Longitude in decimal degrees (East positive) of observation/antenna location" + type: number + format: float + hpbw: + description: "Antenna half-power beam width in degrees" + type: number + format: float + 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 diff --git a/swagger/sdrangel/code/html2/index.html b/swagger/sdrangel/code/html2/index.html index 0675d2d30..c4277f808 100644 --- a/swagger/sdrangel/code/html2/index.html +++ b/swagger/sdrangel/code/html2/index.html @@ -6249,6 +6249,9 @@ margin-bottom: 20px; "SimplePTTActions" : { "$ref" : "#/definitions/SimplePTTActions" }, + "SkyMapActions" : { + "$ref" : "#/definitions/SkyMapActions" + }, "StarTrackerActions" : { "$ref" : "#/definitions/StarTrackerActions" }, @@ -6394,6 +6397,9 @@ margin-bottom: 20px; "SimplePTTReport" : { "$ref" : "#/definitions/SimplePTTReport" }, + "SkyMapReport" : { + "$ref" : "#/definitions/SkyMapReport" + }, "StarTrackerReport" : { "$ref" : "#/definitions/StarTrackerReport" }, @@ -6495,12 +6501,15 @@ margin-bottom: 20px; "SatelliteTrackerSettings" : { "$ref" : "#/definitions/SatelliteTrackerSettings" }, - "StarTrackerSettings" : { - "$ref" : "#/definitions/StarTrackerSettings" - }, "SimplePTTSettings" : { "$ref" : "#/definitions/SimplePTTSettings" }, + "SkyMapSettings" : { + "$ref" : "#/definitions/SkyMapSettings" + }, + "StarTrackerSettings" : { + "$ref" : "#/definitions/StarTrackerSettings" + }, "VORLocalizerSettings" : { "$ref" : "#/definitions/VORLocalizerSettings" } @@ -14618,6 +14627,128 @@ margin-bottom: 20px; } }, "description" : "Simple PTT settings" +}; + defs.SkyMapActions = { + "properties" : { + "find" : { + "type" : "string", + "description" : "The name of the object or the coordinates to centre the sky map on" + } + }, + "description" : "Sky Map" +}; + defs.SkyMapReport = { + "properties" : { + "dateTime" : { + "type" : "string", + "description" : "Current date and time being used for sky map" + }, + "ra" : { + "type" : "number", + "format" : "float", + "description" : "Right ascension of target (In decimal hours, J2000)" + }, + "dec" : { + "type" : "number", + "format" : "float", + "description" : "Declination of target (In decimal degrees, J2000)" + }, + "latitude" : { + "type" : "number", + "format" : "float", + "description" : "Latitude in decimal degrees (North positive) of observation/antenna location" + }, + "longitude" : { + "type" : "number", + "format" : "float", + "description" : "Longitude in decimal degrees (East positive) of observation/antenna location" + }, + "azimuth" : { + "type" : "number", + "format" : "float", + "description" : "The azimuth angle in degrees to the target" + }, + "elevation" : { + "type" : "number", + "format" : "float", + "description" : "The elevation angle in degrees to the target" + }, + "fov" : { + "type" : "number", + "format" : "float", + "description" : "Current field-of-view in degrees" + } + }, + "description" : "Sky Map" +}; + defs.SkyMapSettings = { + "properties" : { + "displayNames" : { + "type" : "integer", + "description" : "Display names on the sky map (1 for yes, 0 for no)" + }, + "displayConstellations" : { + "type" : "integer", + "description" : "Display constellations on the sky map (1 for yes, 0 for no)" + }, + "displayReticle" : { + "type" : "integer", + "description" : "Display reticle on the sky map (1 for yes, 0 for no)" + }, + "displayGrid" : { + "type" : "integer", + "description" : "Display grid on the sky map (1 for yes, 0 for no)" + }, + "displayAntennaFoV" : { + "type" : "integer", + "description" : "Display antenna field-of-view on the sky map (1 for yes, 0 for no)" + }, + "map" : { + "type" : "string", + "description" : "WWT, ESASky or Aladin" + }, + "background" : { + "type" : "string", + "description" : "Name of background image set" + }, + "projection" : { + "type" : "string" + }, + "source" : { + "type" : "string", + "description" : "Channel or Feature plugin to get target from" + }, + "track" : { + "type" : "integer", + "description" : "Whether to track the specified source plugin" + }, + "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" + }, + "reverseAPIFeatureSetIndex" : { + "type" : "integer" + }, + "reverseAPIFeatureIndex" : { + "type" : "integer" + }, + "rollupState" : { + "$ref" : "#/definitions/RollupState" + } + }, + "description" : "Sky Map" }; defs.SoapySDRFrequencySetting = { "properties" : { @@ -58429,7 +58560,7 @@ except ApiException as e:
- Generated 2024-01-21T13:22:02.160+01:00 + Generated 2024-02-08T10:19:55.419+01:00
diff --git a/swagger/sdrangel/code/qt5/client/SWGFeatureActions.cpp b/swagger/sdrangel/code/qt5/client/SWGFeatureActions.cpp index e3a91bee7..f8d5c86dd 100644 --- a/swagger/sdrangel/code/qt5/client/SWGFeatureActions.cpp +++ b/swagger/sdrangel/code/qt5/client/SWGFeatureActions.cpp @@ -52,6 +52,8 @@ SWGFeatureActions::SWGFeatureActions() { m_satellite_tracker_actions_isSet = false; simple_ptt_actions = nullptr; m_simple_ptt_actions_isSet = false; + sky_map_actions = nullptr; + m_sky_map_actions_isSet = false; star_tracker_actions = nullptr; m_star_tracker_actions_isSet = false; vor_localizer_actions = nullptr; @@ -90,6 +92,8 @@ SWGFeatureActions::init() { m_satellite_tracker_actions_isSet = false; simple_ptt_actions = new SWGSimplePTTActions(); m_simple_ptt_actions_isSet = false; + sky_map_actions = new SWGSkyMapActions(); + m_sky_map_actions_isSet = false; star_tracker_actions = new SWGStarTrackerActions(); m_star_tracker_actions_isSet = false; vor_localizer_actions = new SWGVORLocalizerActions(); @@ -132,6 +136,9 @@ SWGFeatureActions::cleanup() { if(simple_ptt_actions != nullptr) { delete simple_ptt_actions; } + if(sky_map_actions != nullptr) { + delete sky_map_actions; + } if(star_tracker_actions != nullptr) { delete star_tracker_actions; } @@ -178,6 +185,8 @@ SWGFeatureActions::fromJsonObject(QJsonObject &pJson) { ::SWGSDRangel::setValue(&simple_ptt_actions, pJson["SimplePTTActions"], "SWGSimplePTTActions", "SWGSimplePTTActions"); + ::SWGSDRangel::setValue(&sky_map_actions, pJson["SkyMapActions"], "SWGSkyMapActions", "SWGSkyMapActions"); + ::SWGSDRangel::setValue(&star_tracker_actions, pJson["StarTrackerActions"], "SWGStarTrackerActions", "SWGStarTrackerActions"); ::SWGSDRangel::setValue(&vor_localizer_actions, pJson["VORLocalizerActions"], "SWGVORLocalizerActions", "SWGVORLocalizerActions"); @@ -236,6 +245,9 @@ SWGFeatureActions::asJsonObject() { if((simple_ptt_actions != nullptr) && (simple_ptt_actions->isSet())){ toJsonValue(QString("SimplePTTActions"), simple_ptt_actions, obj, QString("SWGSimplePTTActions")); } + if((sky_map_actions != nullptr) && (sky_map_actions->isSet())){ + toJsonValue(QString("SkyMapActions"), sky_map_actions, obj, QString("SWGSkyMapActions")); + } if((star_tracker_actions != nullptr) && (star_tracker_actions->isSet())){ toJsonValue(QString("StarTrackerActions"), star_tracker_actions, obj, QString("SWGStarTrackerActions")); } @@ -369,6 +381,16 @@ SWGFeatureActions::setSimplePttActions(SWGSimplePTTActions* simple_ptt_actions) this->m_simple_ptt_actions_isSet = true; } +SWGSkyMapActions* +SWGFeatureActions::getSkyMapActions() { + return sky_map_actions; +} +void +SWGFeatureActions::setSkyMapActions(SWGSkyMapActions* sky_map_actions) { + this->sky_map_actions = sky_map_actions; + this->m_sky_map_actions_isSet = true; +} + SWGStarTrackerActions* SWGFeatureActions::getStarTrackerActions() { return star_tracker_actions; @@ -440,6 +462,9 @@ SWGFeatureActions::isSet(){ if(simple_ptt_actions && simple_ptt_actions->isSet()){ isObjectUpdated = true; break; } + if(sky_map_actions && sky_map_actions->isSet()){ + isObjectUpdated = true; break; + } if(star_tracker_actions && star_tracker_actions->isSet()){ isObjectUpdated = true; break; } diff --git a/swagger/sdrangel/code/qt5/client/SWGFeatureActions.h b/swagger/sdrangel/code/qt5/client/SWGFeatureActions.h index 065ff5a41..971933eca 100644 --- a/swagger/sdrangel/code/qt5/client/SWGFeatureActions.h +++ b/swagger/sdrangel/code/qt5/client/SWGFeatureActions.h @@ -32,6 +32,7 @@ #include "SWGRigCtlServerActions.h" #include "SWGSatelliteTrackerActions.h" #include "SWGSimplePTTActions.h" +#include "SWGSkyMapActions.h" #include "SWGStarTrackerActions.h" #include "SWGVORLocalizerActions.h" #include @@ -90,6 +91,9 @@ public: SWGSimplePTTActions* getSimplePttActions(); void setSimplePttActions(SWGSimplePTTActions* simple_ptt_actions); + SWGSkyMapActions* getSkyMapActions(); + void setSkyMapActions(SWGSkyMapActions* sky_map_actions); + SWGStarTrackerActions* getStarTrackerActions(); void setStarTrackerActions(SWGStarTrackerActions* star_tracker_actions); @@ -139,6 +143,9 @@ private: SWGSimplePTTActions* simple_ptt_actions; bool m_simple_ptt_actions_isSet; + SWGSkyMapActions* sky_map_actions; + bool m_sky_map_actions_isSet; + SWGStarTrackerActions* star_tracker_actions; bool m_star_tracker_actions_isSet; diff --git a/swagger/sdrangel/code/qt5/client/SWGFeatureReport.cpp b/swagger/sdrangel/code/qt5/client/SWGFeatureReport.cpp index 087a514f0..05da233d8 100644 --- a/swagger/sdrangel/code/qt5/client/SWGFeatureReport.cpp +++ b/swagger/sdrangel/code/qt5/client/SWGFeatureReport.cpp @@ -48,6 +48,8 @@ SWGFeatureReport::SWGFeatureReport() { m_satellite_tracker_report_isSet = false; simple_ptt_report = nullptr; m_simple_ptt_report_isSet = false; + sky_map_report = nullptr; + m_sky_map_report_isSet = false; star_tracker_report = nullptr; m_star_tracker_report_isSet = false; vor_localizer_report = nullptr; @@ -80,6 +82,8 @@ SWGFeatureReport::init() { m_satellite_tracker_report_isSet = false; simple_ptt_report = new SWGSimplePTTReport(); m_simple_ptt_report_isSet = false; + sky_map_report = new SWGSkyMapReport(); + m_sky_map_report_isSet = false; star_tracker_report = new SWGStarTrackerReport(); m_star_tracker_report_isSet = false; vor_localizer_report = new SWGVORLocalizerReport(); @@ -118,6 +122,9 @@ SWGFeatureReport::cleanup() { if(simple_ptt_report != nullptr) { delete simple_ptt_report; } + if(sky_map_report != nullptr) { + delete sky_map_report; + } if(star_tracker_report != nullptr) { delete star_tracker_report; } @@ -157,6 +164,8 @@ SWGFeatureReport::fromJsonObject(QJsonObject &pJson) { ::SWGSDRangel::setValue(&simple_ptt_report, pJson["SimplePTTReport"], "SWGSimplePTTReport", "SWGSimplePTTReport"); + ::SWGSDRangel::setValue(&sky_map_report, pJson["SkyMapReport"], "SWGSkyMapReport", "SWGSkyMapReport"); + ::SWGSDRangel::setValue(&star_tracker_report, pJson["StarTrackerReport"], "SWGStarTrackerReport", "SWGStarTrackerReport"); ::SWGSDRangel::setValue(&vor_localizer_report, pJson["VORLocalizerReport"], "SWGVORLocalizerReport", "SWGVORLocalizerReport"); @@ -207,6 +216,9 @@ SWGFeatureReport::asJsonObject() { if((simple_ptt_report != nullptr) && (simple_ptt_report->isSet())){ toJsonValue(QString("SimplePTTReport"), simple_ptt_report, obj, QString("SWGSimplePTTReport")); } + if((sky_map_report != nullptr) && (sky_map_report->isSet())){ + toJsonValue(QString("SkyMapReport"), sky_map_report, obj, QString("SWGSkyMapReport")); + } if((star_tracker_report != nullptr) && (star_tracker_report->isSet())){ toJsonValue(QString("StarTrackerReport"), star_tracker_report, obj, QString("SWGStarTrackerReport")); } @@ -317,6 +329,16 @@ SWGFeatureReport::setSimplePttReport(SWGSimplePTTReport* simple_ptt_report) { this->m_simple_ptt_report_isSet = true; } +SWGSkyMapReport* +SWGFeatureReport::getSkyMapReport() { + return sky_map_report; +} +void +SWGFeatureReport::setSkyMapReport(SWGSkyMapReport* sky_map_report) { + this->sky_map_report = sky_map_report; + this->m_sky_map_report_isSet = true; +} + SWGStarTrackerReport* SWGFeatureReport::getStarTrackerReport() { return star_tracker_report; @@ -372,6 +394,9 @@ SWGFeatureReport::isSet(){ if(simple_ptt_report && simple_ptt_report->isSet()){ isObjectUpdated = true; break; } + if(sky_map_report && sky_map_report->isSet()){ + isObjectUpdated = true; break; + } if(star_tracker_report && star_tracker_report->isSet()){ isObjectUpdated = true; break; } diff --git a/swagger/sdrangel/code/qt5/client/SWGFeatureReport.h b/swagger/sdrangel/code/qt5/client/SWGFeatureReport.h index 563e26163..d30819af9 100644 --- a/swagger/sdrangel/code/qt5/client/SWGFeatureReport.h +++ b/swagger/sdrangel/code/qt5/client/SWGFeatureReport.h @@ -31,6 +31,7 @@ #include "SWGRigCtlServerReport.h" #include "SWGSatelliteTrackerReport.h" #include "SWGSimplePTTReport.h" +#include "SWGSkyMapReport.h" #include "SWGStarTrackerReport.h" #include "SWGVORLocalizerReport.h" #include @@ -83,6 +84,9 @@ public: SWGSimplePTTReport* getSimplePttReport(); void setSimplePttReport(SWGSimplePTTReport* simple_ptt_report); + SWGSkyMapReport* getSkyMapReport(); + void setSkyMapReport(SWGSkyMapReport* sky_map_report); + SWGStarTrackerReport* getStarTrackerReport(); void setStarTrackerReport(SWGStarTrackerReport* star_tracker_report); @@ -123,6 +127,9 @@ private: SWGSimplePTTReport* simple_ptt_report; bool m_simple_ptt_report_isSet; + SWGSkyMapReport* sky_map_report; + bool m_sky_map_report_isSet; + SWGStarTrackerReport* star_tracker_report; bool m_star_tracker_report_isSet; diff --git a/swagger/sdrangel/code/qt5/client/SWGFeatureSettings.cpp b/swagger/sdrangel/code/qt5/client/SWGFeatureSettings.cpp index 992647cd0..8e007f1ca 100644 --- a/swagger/sdrangel/code/qt5/client/SWGFeatureSettings.cpp +++ b/swagger/sdrangel/code/qt5/client/SWGFeatureSettings.cpp @@ -62,10 +62,12 @@ SWGFeatureSettings::SWGFeatureSettings() { 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; m_simple_ptt_settings_isSet = false; + sky_map_settings = nullptr; + m_sky_map_settings_isSet = false; + star_tracker_settings = nullptr; + m_star_tracker_settings_isSet = false; vor_localizer_settings = nullptr; m_vor_localizer_settings_isSet = false; } @@ -110,10 +112,12 @@ SWGFeatureSettings::init() { 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(); m_simple_ptt_settings_isSet = false; + sky_map_settings = new SWGSkyMapSettings(); + m_sky_map_settings_isSet = false; + star_tracker_settings = new SWGStarTrackerSettings(); + m_star_tracker_settings_isSet = false; vor_localizer_settings = new SWGVORLocalizerSettings(); m_vor_localizer_settings_isSet = false; } @@ -167,12 +171,15 @@ SWGFeatureSettings::cleanup() { if(satellite_tracker_settings != nullptr) { delete satellite_tracker_settings; } - if(star_tracker_settings != nullptr) { - delete star_tracker_settings; - } if(simple_ptt_settings != nullptr) { delete simple_ptt_settings; } + if(sky_map_settings != nullptr) { + delete sky_map_settings; + } + if(star_tracker_settings != nullptr) { + delete star_tracker_settings; + } if(vor_localizer_settings != nullptr) { delete vor_localizer_settings; } @@ -223,10 +230,12 @@ SWGFeatureSettings::fromJsonObject(QJsonObject &pJson) { ::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"); + ::SWGSDRangel::setValue(&sky_map_settings, pJson["SkyMapSettings"], "SWGSkyMapSettings", "SWGSkyMapSettings"); + + ::SWGSDRangel::setValue(&star_tracker_settings, pJson["StarTrackerSettings"], "SWGStarTrackerSettings", "SWGStarTrackerSettings"); + ::SWGSDRangel::setValue(&vor_localizer_settings, pJson["VORLocalizerSettings"], "SWGVORLocalizerSettings", "SWGVORLocalizerSettings"); } @@ -296,12 +305,15 @@ SWGFeatureSettings::asJsonObject() { 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")); - } if((simple_ptt_settings != nullptr) && (simple_ptt_settings->isSet())){ toJsonValue(QString("SimplePTTSettings"), simple_ptt_settings, obj, QString("SWGSimplePTTSettings")); } + if((sky_map_settings != nullptr) && (sky_map_settings->isSet())){ + toJsonValue(QString("SkyMapSettings"), sky_map_settings, obj, QString("SWGSkyMapSettings")); + } + if((star_tracker_settings != nullptr) && (star_tracker_settings->isSet())){ + toJsonValue(QString("StarTrackerSettings"), star_tracker_settings, obj, QString("SWGStarTrackerSettings")); + } if((vor_localizer_settings != nullptr) && (vor_localizer_settings->isSet())){ toJsonValue(QString("VORLocalizerSettings"), vor_localizer_settings, obj, QString("SWGVORLocalizerSettings")); } @@ -479,16 +491,6 @@ SWGFeatureSettings::setSatelliteTrackerSettings(SWGSatelliteTrackerSettings* sat this->m_satellite_tracker_settings_isSet = true; } -SWGStarTrackerSettings* -SWGFeatureSettings::getStarTrackerSettings() { - return star_tracker_settings; -} -void -SWGFeatureSettings::setStarTrackerSettings(SWGStarTrackerSettings* star_tracker_settings) { - this->star_tracker_settings = star_tracker_settings; - this->m_star_tracker_settings_isSet = true; -} - SWGSimplePTTSettings* SWGFeatureSettings::getSimplePttSettings() { return simple_ptt_settings; @@ -499,6 +501,26 @@ SWGFeatureSettings::setSimplePttSettings(SWGSimplePTTSettings* simple_ptt_settin this->m_simple_ptt_settings_isSet = true; } +SWGSkyMapSettings* +SWGFeatureSettings::getSkyMapSettings() { + return sky_map_settings; +} +void +SWGFeatureSettings::setSkyMapSettings(SWGSkyMapSettings* sky_map_settings) { + this->sky_map_settings = sky_map_settings; + this->m_sky_map_settings_isSet = true; +} + +SWGStarTrackerSettings* +SWGFeatureSettings::getStarTrackerSettings() { + return star_tracker_settings; +} +void +SWGFeatureSettings::setStarTrackerSettings(SWGStarTrackerSettings* star_tracker_settings) { + this->star_tracker_settings = star_tracker_settings; + this->m_star_tracker_settings_isSet = true; +} + SWGVORLocalizerSettings* SWGFeatureSettings::getVorLocalizerSettings() { return vor_localizer_settings; @@ -565,10 +587,13 @@ SWGFeatureSettings::isSet(){ if(satellite_tracker_settings && satellite_tracker_settings->isSet()){ isObjectUpdated = true; break; } - if(star_tracker_settings && star_tracker_settings->isSet()){ + if(simple_ptt_settings && simple_ptt_settings->isSet()){ isObjectUpdated = true; break; } - if(simple_ptt_settings && simple_ptt_settings->isSet()){ + if(sky_map_settings && sky_map_settings->isSet()){ + isObjectUpdated = true; break; + } + if(star_tracker_settings && star_tracker_settings->isSet()){ isObjectUpdated = true; break; } if(vor_localizer_settings && vor_localizer_settings->isSet()){ diff --git a/swagger/sdrangel/code/qt5/client/SWGFeatureSettings.h b/swagger/sdrangel/code/qt5/client/SWGFeatureSettings.h index 27b5d305a..9c13ff370 100644 --- a/swagger/sdrangel/code/qt5/client/SWGFeatureSettings.h +++ b/swagger/sdrangel/code/qt5/client/SWGFeatureSettings.h @@ -37,6 +37,7 @@ #include "SWGRigCtlServerSettings.h" #include "SWGSatelliteTrackerSettings.h" #include "SWGSimplePTTSettings.h" +#include "SWGSkyMapSettings.h" #include "SWGStarTrackerSettings.h" #include "SWGVORLocalizerSettings.h" #include @@ -110,12 +111,15 @@ public: SWGSatelliteTrackerSettings* getSatelliteTrackerSettings(); void setSatelliteTrackerSettings(SWGSatelliteTrackerSettings* satellite_tracker_settings); - SWGStarTrackerSettings* getStarTrackerSettings(); - void setStarTrackerSettings(SWGStarTrackerSettings* star_tracker_settings); - SWGSimplePTTSettings* getSimplePttSettings(); void setSimplePttSettings(SWGSimplePTTSettings* simple_ptt_settings); + SWGSkyMapSettings* getSkyMapSettings(); + void setSkyMapSettings(SWGSkyMapSettings* sky_map_settings); + + SWGStarTrackerSettings* getStarTrackerSettings(); + void setStarTrackerSettings(SWGStarTrackerSettings* star_tracker_settings); + SWGVORLocalizerSettings* getVorLocalizerSettings(); void setVorLocalizerSettings(SWGVORLocalizerSettings* vor_localizer_settings); @@ -174,12 +178,15 @@ private: SWGSatelliteTrackerSettings* satellite_tracker_settings; bool m_satellite_tracker_settings_isSet; - SWGStarTrackerSettings* star_tracker_settings; - bool m_star_tracker_settings_isSet; - SWGSimplePTTSettings* simple_ptt_settings; bool m_simple_ptt_settings_isSet; + SWGSkyMapSettings* sky_map_settings; + bool m_sky_map_settings_isSet; + + SWGStarTrackerSettings* star_tracker_settings; + bool m_star_tracker_settings_isSet; + SWGVORLocalizerSettings* vor_localizer_settings; bool m_vor_localizer_settings_isSet; diff --git a/swagger/sdrangel/code/qt5/client/SWGModelFactory.h b/swagger/sdrangel/code/qt5/client/SWGModelFactory.h index 327be9e8b..71b73b330 100644 --- a/swagger/sdrangel/code/qt5/client/SWGModelFactory.h +++ b/swagger/sdrangel/code/qt5/client/SWGModelFactory.h @@ -319,6 +319,9 @@ #include "SWGSimplePTTActions.h" #include "SWGSimplePTTReport.h" #include "SWGSimplePTTSettings.h" +#include "SWGSkyMapActions.h" +#include "SWGSkyMapReport.h" +#include "SWGSkyMapSettings.h" #include "SWGSoapySDRFrequencySetting.h" #include "SWGSoapySDRGainSetting.h" #include "SWGSoapySDRInputSettings.h" @@ -1900,6 +1903,21 @@ namespace SWGSDRangel { obj->init(); return obj; } + if(QString("SWGSkyMapActions").compare(type) == 0) { + SWGSkyMapActions *obj = new SWGSkyMapActions(); + obj->init(); + return obj; + } + if(QString("SWGSkyMapReport").compare(type) == 0) { + SWGSkyMapReport *obj = new SWGSkyMapReport(); + obj->init(); + return obj; + } + if(QString("SWGSkyMapSettings").compare(type) == 0) { + SWGSkyMapSettings *obj = new SWGSkyMapSettings(); + obj->init(); + return obj; + } if(QString("SWGSoapySDRFrequencySetting").compare(type) == 0) { SWGSoapySDRFrequencySetting *obj = new SWGSoapySDRFrequencySetting(); obj->init(); diff --git a/swagger/sdrangel/code/qt5/client/SWGSkyMapActions.cpp b/swagger/sdrangel/code/qt5/client/SWGSkyMapActions.cpp new file mode 100644 index 000000000..979b20df5 --- /dev/null +++ b/swagger/sdrangel/code/qt5/client/SWGSkyMapActions.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: 7.0.0 + * Contact: f4exb06@gmail.com + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +#include "SWGSkyMapActions.h" + +#include "SWGHelpers.h" + +#include +#include +#include +#include + +namespace SWGSDRangel { + +SWGSkyMapActions::SWGSkyMapActions(QString* json) { + init(); + this->fromJson(*json); +} + +SWGSkyMapActions::SWGSkyMapActions() { + find = nullptr; + m_find_isSet = false; +} + +SWGSkyMapActions::~SWGSkyMapActions() { + this->cleanup(); +} + +void +SWGSkyMapActions::init() { + find = new QString(""); + m_find_isSet = false; +} + +void +SWGSkyMapActions::cleanup() { + if(find != nullptr) { + delete find; + } +} + +SWGSkyMapActions* +SWGSkyMapActions::fromJson(QString &json) { + QByteArray array (json.toStdString().c_str()); + QJsonDocument doc = QJsonDocument::fromJson(array); + QJsonObject jsonObject = doc.object(); + this->fromJsonObject(jsonObject); + return this; +} + +void +SWGSkyMapActions::fromJsonObject(QJsonObject &pJson) { + ::SWGSDRangel::setValue(&find, pJson["find"], "QString", "QString"); + +} + +QString +SWGSkyMapActions::asJson () +{ + QJsonObject* obj = this->asJsonObject(); + + QJsonDocument doc(*obj); + QByteArray bytes = doc.toJson(); + delete obj; + return QString(bytes); +} + +QJsonObject* +SWGSkyMapActions::asJsonObject() { + QJsonObject* obj = new QJsonObject(); + if(find != nullptr && *find != QString("")){ + toJsonValue(QString("find"), find, obj, QString("QString")); + } + + return obj; +} + +QString* +SWGSkyMapActions::getFind() { + return find; +} +void +SWGSkyMapActions::setFind(QString* find) { + this->find = find; + this->m_find_isSet = true; +} + + +bool +SWGSkyMapActions::isSet(){ + bool isObjectUpdated = false; + do{ + if(find && *find != QString("")){ + isObjectUpdated = true; break; + } + }while(false); + return isObjectUpdated; +} +} + diff --git a/swagger/sdrangel/code/qt5/client/SWGSkyMapActions.h b/swagger/sdrangel/code/qt5/client/SWGSkyMapActions.h new file mode 100644 index 000000000..baac9faa0 --- /dev/null +++ b/swagger/sdrangel/code/qt5/client/SWGSkyMapActions.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: 7.0.0 + * Contact: f4exb06@gmail.com + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + +/* + * SWGSkyMapActions.h + * + * Sky Map + */ + +#ifndef SWGSkyMapActions_H_ +#define SWGSkyMapActions_H_ + +#include + + +#include + +#include "SWGObject.h" +#include "export.h" + +namespace SWGSDRangel { + +class SWG_API SWGSkyMapActions: public SWGObject { +public: + SWGSkyMapActions(); + SWGSkyMapActions(QString* json); + virtual ~SWGSkyMapActions(); + void init(); + void cleanup(); + + virtual QString asJson () override; + virtual QJsonObject* asJsonObject() override; + virtual void fromJsonObject(QJsonObject &json) override; + virtual SWGSkyMapActions* fromJson(QString &jsonString) override; + + QString* getFind(); + void setFind(QString* find); + + + virtual bool isSet() override; + +private: + QString* find; + bool m_find_isSet; + +}; + +} + +#endif /* SWGSkyMapActions_H_ */ diff --git a/swagger/sdrangel/code/qt5/client/SWGSkyMapReport.cpp b/swagger/sdrangel/code/qt5/client/SWGSkyMapReport.cpp new file mode 100644 index 000000000..7be325228 --- /dev/null +++ b/swagger/sdrangel/code/qt5/client/SWGSkyMapReport.cpp @@ -0,0 +1,271 @@ +/** + * SDRangel + * This is the web REST/JSON API of SDRangel SDR software. SDRangel is an Open Source Qt5/OpenGL 3.0+ (4.3+ in Windows) GUI and server Software Defined Radio and signal analyzer in software. It supports Airspy, BladeRF, HackRF, LimeSDR, PlutoSDR, RTL-SDR, SDRplay RSP1 and FunCube --- Limitations and specifcities: * In SDRangel GUI the first Rx device set cannot be deleted. Conversely the server starts with no device sets and its number of device sets can be reduced to zero by as many calls as necessary to /sdrangel/deviceset with DELETE method. * Preset import and export from/to file is a server only feature. * Device set focus is a GUI only feature. * The following channels are not implemented (status 501 is returned): ATV and DATV demodulators, Channel Analyzer NG, LoRa demodulator * The device settings and report structures contains only the sub-structure corresponding to the device type. The DeviceSettings and DeviceReport structures documented here shows all of them but only one will be or should be present at a time * The channel settings and report structures contains only the sub-structure corresponding to the channel type. The ChannelSettings and ChannelReport structures documented here shows all of them but only one will be or should be present at a time --- + * + * OpenAPI spec version: 7.0.0 + * Contact: f4exb06@gmail.com + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +#include "SWGSkyMapReport.h" + +#include "SWGHelpers.h" + +#include +#include +#include +#include + +namespace SWGSDRangel { + +SWGSkyMapReport::SWGSkyMapReport(QString* json) { + init(); + this->fromJson(*json); +} + +SWGSkyMapReport::SWGSkyMapReport() { + date_time = nullptr; + m_date_time_isSet = false; + ra = 0.0f; + m_ra_isSet = false; + dec = 0.0f; + m_dec_isSet = false; + latitude = 0.0f; + m_latitude_isSet = false; + longitude = 0.0f; + m_longitude_isSet = false; + azimuth = 0.0f; + m_azimuth_isSet = false; + elevation = 0.0f; + m_elevation_isSet = false; + fov = 0.0f; + m_fov_isSet = false; +} + +SWGSkyMapReport::~SWGSkyMapReport() { + this->cleanup(); +} + +void +SWGSkyMapReport::init() { + date_time = new QString(""); + m_date_time_isSet = false; + ra = 0.0f; + m_ra_isSet = false; + dec = 0.0f; + m_dec_isSet = false; + latitude = 0.0f; + m_latitude_isSet = false; + longitude = 0.0f; + m_longitude_isSet = false; + azimuth = 0.0f; + m_azimuth_isSet = false; + elevation = 0.0f; + m_elevation_isSet = false; + fov = 0.0f; + m_fov_isSet = false; +} + +void +SWGSkyMapReport::cleanup() { + if(date_time != nullptr) { + delete date_time; + } + + + + + + + +} + +SWGSkyMapReport* +SWGSkyMapReport::fromJson(QString &json) { + QByteArray array (json.toStdString().c_str()); + QJsonDocument doc = QJsonDocument::fromJson(array); + QJsonObject jsonObject = doc.object(); + this->fromJsonObject(jsonObject); + return this; +} + +void +SWGSkyMapReport::fromJsonObject(QJsonObject &pJson) { + ::SWGSDRangel::setValue(&date_time, pJson["dateTime"], "QString", "QString"); + + ::SWGSDRangel::setValue(&ra, pJson["ra"], "float", ""); + + ::SWGSDRangel::setValue(&dec, pJson["dec"], "float", ""); + + ::SWGSDRangel::setValue(&latitude, pJson["latitude"], "float", ""); + + ::SWGSDRangel::setValue(&longitude, pJson["longitude"], "float", ""); + + ::SWGSDRangel::setValue(&azimuth, pJson["azimuth"], "float", ""); + + ::SWGSDRangel::setValue(&elevation, pJson["elevation"], "float", ""); + + ::SWGSDRangel::setValue(&fov, pJson["fov"], "float", ""); + +} + +QString +SWGSkyMapReport::asJson () +{ + QJsonObject* obj = this->asJsonObject(); + + QJsonDocument doc(*obj); + QByteArray bytes = doc.toJson(); + delete obj; + return QString(bytes); +} + +QJsonObject* +SWGSkyMapReport::asJsonObject() { + QJsonObject* obj = new QJsonObject(); + if(date_time != nullptr && *date_time != QString("")){ + toJsonValue(QString("dateTime"), date_time, obj, QString("QString")); + } + if(m_ra_isSet){ + obj->insert("ra", QJsonValue(ra)); + } + if(m_dec_isSet){ + obj->insert("dec", QJsonValue(dec)); + } + if(m_latitude_isSet){ + obj->insert("latitude", QJsonValue(latitude)); + } + if(m_longitude_isSet){ + obj->insert("longitude", QJsonValue(longitude)); + } + if(m_azimuth_isSet){ + obj->insert("azimuth", QJsonValue(azimuth)); + } + if(m_elevation_isSet){ + obj->insert("elevation", QJsonValue(elevation)); + } + if(m_fov_isSet){ + obj->insert("fov", QJsonValue(fov)); + } + + return obj; +} + +QString* +SWGSkyMapReport::getDateTime() { + return date_time; +} +void +SWGSkyMapReport::setDateTime(QString* date_time) { + this->date_time = date_time; + this->m_date_time_isSet = true; +} + +float +SWGSkyMapReport::getRa() { + return ra; +} +void +SWGSkyMapReport::setRa(float ra) { + this->ra = ra; + this->m_ra_isSet = true; +} + +float +SWGSkyMapReport::getDec() { + return dec; +} +void +SWGSkyMapReport::setDec(float dec) { + this->dec = dec; + this->m_dec_isSet = true; +} + +float +SWGSkyMapReport::getLatitude() { + return latitude; +} +void +SWGSkyMapReport::setLatitude(float latitude) { + this->latitude = latitude; + this->m_latitude_isSet = true; +} + +float +SWGSkyMapReport::getLongitude() { + return longitude; +} +void +SWGSkyMapReport::setLongitude(float longitude) { + this->longitude = longitude; + this->m_longitude_isSet = true; +} + +float +SWGSkyMapReport::getAzimuth() { + return azimuth; +} +void +SWGSkyMapReport::setAzimuth(float azimuth) { + this->azimuth = azimuth; + this->m_azimuth_isSet = true; +} + +float +SWGSkyMapReport::getElevation() { + return elevation; +} +void +SWGSkyMapReport::setElevation(float elevation) { + this->elevation = elevation; + this->m_elevation_isSet = true; +} + +float +SWGSkyMapReport::getFov() { + return fov; +} +void +SWGSkyMapReport::setFov(float fov) { + this->fov = fov; + this->m_fov_isSet = true; +} + + +bool +SWGSkyMapReport::isSet(){ + bool isObjectUpdated = false; + do{ + if(date_time && *date_time != QString("")){ + isObjectUpdated = true; break; + } + if(m_ra_isSet){ + isObjectUpdated = true; break; + } + if(m_dec_isSet){ + isObjectUpdated = true; break; + } + if(m_latitude_isSet){ + isObjectUpdated = true; break; + } + if(m_longitude_isSet){ + isObjectUpdated = true; break; + } + if(m_azimuth_isSet){ + isObjectUpdated = true; break; + } + if(m_elevation_isSet){ + isObjectUpdated = true; break; + } + if(m_fov_isSet){ + isObjectUpdated = true; break; + } + }while(false); + return isObjectUpdated; +} +} + diff --git a/swagger/sdrangel/code/qt5/client/SWGSkyMapReport.h b/swagger/sdrangel/code/qt5/client/SWGSkyMapReport.h new file mode 100644 index 000000000..7a42d8046 --- /dev/null +++ b/swagger/sdrangel/code/qt5/client/SWGSkyMapReport.h @@ -0,0 +1,101 @@ +/** + * SDRangel + * This is the web REST/JSON API of SDRangel SDR software. SDRangel is an Open Source Qt5/OpenGL 3.0+ (4.3+ in Windows) GUI and server Software Defined Radio and signal analyzer in software. It supports Airspy, BladeRF, HackRF, LimeSDR, PlutoSDR, RTL-SDR, SDRplay RSP1 and FunCube --- Limitations and specifcities: * In SDRangel GUI the first Rx device set cannot be deleted. Conversely the server starts with no device sets and its number of device sets can be reduced to zero by as many calls as necessary to /sdrangel/deviceset with DELETE method. * Preset import and export from/to file is a server only feature. * Device set focus is a GUI only feature. * The following channels are not implemented (status 501 is returned): ATV and DATV demodulators, Channel Analyzer NG, LoRa demodulator * The device settings and report structures contains only the sub-structure corresponding to the device type. The DeviceSettings and DeviceReport structures documented here shows all of them but only one will be or should be present at a time * The channel settings and report structures contains only the sub-structure corresponding to the channel type. The ChannelSettings and ChannelReport structures documented here shows all of them but only one will be or should be present at a time --- + * + * OpenAPI spec version: 7.0.0 + * Contact: f4exb06@gmail.com + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + +/* + * SWGSkyMapReport.h + * + * Sky Map + */ + +#ifndef SWGSkyMapReport_H_ +#define SWGSkyMapReport_H_ + +#include + + +#include + +#include "SWGObject.h" +#include "export.h" + +namespace SWGSDRangel { + +class SWG_API SWGSkyMapReport: public SWGObject { +public: + SWGSkyMapReport(); + SWGSkyMapReport(QString* json); + virtual ~SWGSkyMapReport(); + void init(); + void cleanup(); + + virtual QString asJson () override; + virtual QJsonObject* asJsonObject() override; + virtual void fromJsonObject(QJsonObject &json) override; + virtual SWGSkyMapReport* fromJson(QString &jsonString) override; + + QString* getDateTime(); + void setDateTime(QString* date_time); + + float getRa(); + void setRa(float ra); + + float getDec(); + void setDec(float dec); + + float getLatitude(); + void setLatitude(float latitude); + + float getLongitude(); + void setLongitude(float longitude); + + float getAzimuth(); + void setAzimuth(float azimuth); + + float getElevation(); + void setElevation(float elevation); + + float getFov(); + void setFov(float fov); + + + virtual bool isSet() override; + +private: + QString* date_time; + bool m_date_time_isSet; + + float ra; + bool m_ra_isSet; + + float dec; + bool m_dec_isSet; + + float latitude; + bool m_latitude_isSet; + + float longitude; + bool m_longitude_isSet; + + float azimuth; + bool m_azimuth_isSet; + + float elevation; + bool m_elevation_isSet; + + float fov; + bool m_fov_isSet; + +}; + +} + +#endif /* SWGSkyMapReport_H_ */ diff --git a/swagger/sdrangel/code/qt5/client/SWGSkyMapSettings.cpp b/swagger/sdrangel/code/qt5/client/SWGSkyMapSettings.cpp new file mode 100644 index 000000000..608da3cc3 --- /dev/null +++ b/swagger/sdrangel/code/qt5/client/SWGSkyMapSettings.cpp @@ -0,0 +1,513 @@ +/** + * SDRangel + * This is the web REST/JSON API of SDRangel SDR software. SDRangel is an Open Source Qt5/OpenGL 3.0+ (4.3+ in Windows) GUI and server Software Defined Radio and signal analyzer in software. It supports Airspy, BladeRF, HackRF, LimeSDR, PlutoSDR, RTL-SDR, SDRplay RSP1 and FunCube --- Limitations and specifcities: * In SDRangel GUI the first Rx device set cannot be deleted. Conversely the server starts with no device sets and its number of device sets can be reduced to zero by as many calls as necessary to /sdrangel/deviceset with DELETE method. * Preset import and export from/to file is a server only feature. * Device set focus is a GUI only feature. * The following channels are not implemented (status 501 is returned): ATV and DATV demodulators, Channel Analyzer NG, LoRa demodulator * The device settings and report structures contains only the sub-structure corresponding to the device type. The DeviceSettings and DeviceReport structures documented here shows all of them but only one will be or should be present at a time * The channel settings and report structures contains only the sub-structure corresponding to the channel type. The ChannelSettings and ChannelReport structures documented here shows all of them but only one will be or should be present at a time --- + * + * OpenAPI spec version: 7.0.0 + * Contact: f4exb06@gmail.com + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +#include "SWGSkyMapSettings.h" + +#include "SWGHelpers.h" + +#include +#include +#include +#include + +namespace SWGSDRangel { + +SWGSkyMapSettings::SWGSkyMapSettings(QString* json) { + init(); + this->fromJson(*json); +} + +SWGSkyMapSettings::SWGSkyMapSettings() { + display_names = 0; + m_display_names_isSet = false; + display_constellations = 0; + m_display_constellations_isSet = false; + display_reticle = 0; + m_display_reticle_isSet = false; + display_grid = 0; + m_display_grid_isSet = false; + display_antenna_fo_v = 0; + m_display_antenna_fo_v_isSet = false; + map = nullptr; + m_map_isSet = false; + background = nullptr; + m_background_isSet = false; + projection = nullptr; + m_projection_isSet = false; + source = nullptr; + m_source_isSet = false; + track = 0; + m_track_isSet = false; + title = nullptr; + m_title_isSet = false; + rgb_color = 0; + m_rgb_color_isSet = false; + use_reverse_api = 0; + m_use_reverse_api_isSet = false; + reverse_api_address = nullptr; + m_reverse_api_address_isSet = false; + reverse_api_port = 0; + m_reverse_api_port_isSet = false; + reverse_api_feature_set_index = 0; + m_reverse_api_feature_set_index_isSet = false; + reverse_api_feature_index = 0; + m_reverse_api_feature_index_isSet = false; + rollup_state = nullptr; + m_rollup_state_isSet = false; +} + +SWGSkyMapSettings::~SWGSkyMapSettings() { + this->cleanup(); +} + +void +SWGSkyMapSettings::init() { + display_names = 0; + m_display_names_isSet = false; + display_constellations = 0; + m_display_constellations_isSet = false; + display_reticle = 0; + m_display_reticle_isSet = false; + display_grid = 0; + m_display_grid_isSet = false; + display_antenna_fo_v = 0; + m_display_antenna_fo_v_isSet = false; + map = new QString(""); + m_map_isSet = false; + background = new QString(""); + m_background_isSet = false; + projection = new QString(""); + m_projection_isSet = false; + source = new QString(""); + m_source_isSet = false; + track = 0; + m_track_isSet = false; + title = new QString(""); + m_title_isSet = false; + rgb_color = 0; + m_rgb_color_isSet = false; + use_reverse_api = 0; + m_use_reverse_api_isSet = false; + reverse_api_address = new QString(""); + m_reverse_api_address_isSet = false; + reverse_api_port = 0; + m_reverse_api_port_isSet = false; + reverse_api_feature_set_index = 0; + m_reverse_api_feature_set_index_isSet = false; + reverse_api_feature_index = 0; + m_reverse_api_feature_index_isSet = false; + rollup_state = new SWGRollupState(); + m_rollup_state_isSet = false; +} + +void +SWGSkyMapSettings::cleanup() { + + + + + + if(map != nullptr) { + delete map; + } + if(background != nullptr) { + delete background; + } + if(projection != nullptr) { + delete projection; + } + if(source != nullptr) { + delete source; + } + + if(title != nullptr) { + delete title; + } + + + if(reverse_api_address != nullptr) { + delete reverse_api_address; + } + + + + if(rollup_state != nullptr) { + delete rollup_state; + } +} + +SWGSkyMapSettings* +SWGSkyMapSettings::fromJson(QString &json) { + QByteArray array (json.toStdString().c_str()); + QJsonDocument doc = QJsonDocument::fromJson(array); + QJsonObject jsonObject = doc.object(); + this->fromJsonObject(jsonObject); + return this; +} + +void +SWGSkyMapSettings::fromJsonObject(QJsonObject &pJson) { + ::SWGSDRangel::setValue(&display_names, pJson["displayNames"], "qint32", ""); + + ::SWGSDRangel::setValue(&display_constellations, pJson["displayConstellations"], "qint32", ""); + + ::SWGSDRangel::setValue(&display_reticle, pJson["displayReticle"], "qint32", ""); + + ::SWGSDRangel::setValue(&display_grid, pJson["displayGrid"], "qint32", ""); + + ::SWGSDRangel::setValue(&display_antenna_fo_v, pJson["displayAntennaFoV"], "qint32", ""); + + ::SWGSDRangel::setValue(&map, pJson["map"], "QString", "QString"); + + ::SWGSDRangel::setValue(&background, pJson["background"], "QString", "QString"); + + ::SWGSDRangel::setValue(&projection, pJson["projection"], "QString", "QString"); + + ::SWGSDRangel::setValue(&source, pJson["source"], "QString", "QString"); + + ::SWGSDRangel::setValue(&track, pJson["track"], "qint32", ""); + + ::SWGSDRangel::setValue(&title, pJson["title"], "QString", "QString"); + + ::SWGSDRangel::setValue(&rgb_color, pJson["rgbColor"], "qint32", ""); + + ::SWGSDRangel::setValue(&use_reverse_api, pJson["useReverseAPI"], "qint32", ""); + + ::SWGSDRangel::setValue(&reverse_api_address, pJson["reverseAPIAddress"], "QString", "QString"); + + ::SWGSDRangel::setValue(&reverse_api_port, pJson["reverseAPIPort"], "qint32", ""); + + ::SWGSDRangel::setValue(&reverse_api_feature_set_index, pJson["reverseAPIFeatureSetIndex"], "qint32", ""); + + ::SWGSDRangel::setValue(&reverse_api_feature_index, pJson["reverseAPIFeatureIndex"], "qint32", ""); + + ::SWGSDRangel::setValue(&rollup_state, pJson["rollupState"], "SWGRollupState", "SWGRollupState"); + +} + +QString +SWGSkyMapSettings::asJson () +{ + QJsonObject* obj = this->asJsonObject(); + + QJsonDocument doc(*obj); + QByteArray bytes = doc.toJson(); + delete obj; + return QString(bytes); +} + +QJsonObject* +SWGSkyMapSettings::asJsonObject() { + QJsonObject* obj = new QJsonObject(); + if(m_display_names_isSet){ + obj->insert("displayNames", QJsonValue(display_names)); + } + if(m_display_constellations_isSet){ + obj->insert("displayConstellations", QJsonValue(display_constellations)); + } + if(m_display_reticle_isSet){ + obj->insert("displayReticle", QJsonValue(display_reticle)); + } + if(m_display_grid_isSet){ + obj->insert("displayGrid", QJsonValue(display_grid)); + } + if(m_display_antenna_fo_v_isSet){ + obj->insert("displayAntennaFoV", QJsonValue(display_antenna_fo_v)); + } + if(map != nullptr && *map != QString("")){ + toJsonValue(QString("map"), map, obj, QString("QString")); + } + if(background != nullptr && *background != QString("")){ + toJsonValue(QString("background"), background, obj, QString("QString")); + } + if(projection != nullptr && *projection != QString("")){ + toJsonValue(QString("projection"), projection, obj, QString("QString")); + } + if(source != nullptr && *source != QString("")){ + toJsonValue(QString("source"), source, obj, QString("QString")); + } + if(m_track_isSet){ + obj->insert("track", QJsonValue(track)); + } + if(title != nullptr && *title != QString("")){ + toJsonValue(QString("title"), title, obj, QString("QString")); + } + if(m_rgb_color_isSet){ + obj->insert("rgbColor", QJsonValue(rgb_color)); + } + if(m_use_reverse_api_isSet){ + obj->insert("useReverseAPI", QJsonValue(use_reverse_api)); + } + if(reverse_api_address != nullptr && *reverse_api_address != QString("")){ + toJsonValue(QString("reverseAPIAddress"), reverse_api_address, obj, QString("QString")); + } + if(m_reverse_api_port_isSet){ + obj->insert("reverseAPIPort", QJsonValue(reverse_api_port)); + } + if(m_reverse_api_feature_set_index_isSet){ + obj->insert("reverseAPIFeatureSetIndex", QJsonValue(reverse_api_feature_set_index)); + } + if(m_reverse_api_feature_index_isSet){ + obj->insert("reverseAPIFeatureIndex", QJsonValue(reverse_api_feature_index)); + } + if((rollup_state != nullptr) && (rollup_state->isSet())){ + toJsonValue(QString("rollupState"), rollup_state, obj, QString("SWGRollupState")); + } + + return obj; +} + +qint32 +SWGSkyMapSettings::getDisplayNames() { + return display_names; +} +void +SWGSkyMapSettings::setDisplayNames(qint32 display_names) { + this->display_names = display_names; + this->m_display_names_isSet = true; +} + +qint32 +SWGSkyMapSettings::getDisplayConstellations() { + return display_constellations; +} +void +SWGSkyMapSettings::setDisplayConstellations(qint32 display_constellations) { + this->display_constellations = display_constellations; + this->m_display_constellations_isSet = true; +} + +qint32 +SWGSkyMapSettings::getDisplayReticle() { + return display_reticle; +} +void +SWGSkyMapSettings::setDisplayReticle(qint32 display_reticle) { + this->display_reticle = display_reticle; + this->m_display_reticle_isSet = true; +} + +qint32 +SWGSkyMapSettings::getDisplayGrid() { + return display_grid; +} +void +SWGSkyMapSettings::setDisplayGrid(qint32 display_grid) { + this->display_grid = display_grid; + this->m_display_grid_isSet = true; +} + +qint32 +SWGSkyMapSettings::getDisplayAntennaFoV() { + return display_antenna_fo_v; +} +void +SWGSkyMapSettings::setDisplayAntennaFoV(qint32 display_antenna_fo_v) { + this->display_antenna_fo_v = display_antenna_fo_v; + this->m_display_antenna_fo_v_isSet = true; +} + +QString* +SWGSkyMapSettings::getMap() { + return map; +} +void +SWGSkyMapSettings::setMap(QString* map) { + this->map = map; + this->m_map_isSet = true; +} + +QString* +SWGSkyMapSettings::getBackground() { + return background; +} +void +SWGSkyMapSettings::setBackground(QString* background) { + this->background = background; + this->m_background_isSet = true; +} + +QString* +SWGSkyMapSettings::getProjection() { + return projection; +} +void +SWGSkyMapSettings::setProjection(QString* projection) { + this->projection = projection; + this->m_projection_isSet = true; +} + +QString* +SWGSkyMapSettings::getSource() { + return source; +} +void +SWGSkyMapSettings::setSource(QString* source) { + this->source = source; + this->m_source_isSet = true; +} + +qint32 +SWGSkyMapSettings::getTrack() { + return track; +} +void +SWGSkyMapSettings::setTrack(qint32 track) { + this->track = track; + this->m_track_isSet = true; +} + +QString* +SWGSkyMapSettings::getTitle() { + return title; +} +void +SWGSkyMapSettings::setTitle(QString* title) { + this->title = title; + this->m_title_isSet = true; +} + +qint32 +SWGSkyMapSettings::getRgbColor() { + return rgb_color; +} +void +SWGSkyMapSettings::setRgbColor(qint32 rgb_color) { + this->rgb_color = rgb_color; + this->m_rgb_color_isSet = true; +} + +qint32 +SWGSkyMapSettings::getUseReverseApi() { + return use_reverse_api; +} +void +SWGSkyMapSettings::setUseReverseApi(qint32 use_reverse_api) { + this->use_reverse_api = use_reverse_api; + this->m_use_reverse_api_isSet = true; +} + +QString* +SWGSkyMapSettings::getReverseApiAddress() { + return reverse_api_address; +} +void +SWGSkyMapSettings::setReverseApiAddress(QString* reverse_api_address) { + this->reverse_api_address = reverse_api_address; + this->m_reverse_api_address_isSet = true; +} + +qint32 +SWGSkyMapSettings::getReverseApiPort() { + return reverse_api_port; +} +void +SWGSkyMapSettings::setReverseApiPort(qint32 reverse_api_port) { + this->reverse_api_port = reverse_api_port; + this->m_reverse_api_port_isSet = true; +} + +qint32 +SWGSkyMapSettings::getReverseApiFeatureSetIndex() { + return reverse_api_feature_set_index; +} +void +SWGSkyMapSettings::setReverseApiFeatureSetIndex(qint32 reverse_api_feature_set_index) { + this->reverse_api_feature_set_index = reverse_api_feature_set_index; + this->m_reverse_api_feature_set_index_isSet = true; +} + +qint32 +SWGSkyMapSettings::getReverseApiFeatureIndex() { + return reverse_api_feature_index; +} +void +SWGSkyMapSettings::setReverseApiFeatureIndex(qint32 reverse_api_feature_index) { + this->reverse_api_feature_index = reverse_api_feature_index; + this->m_reverse_api_feature_index_isSet = true; +} + +SWGRollupState* +SWGSkyMapSettings::getRollupState() { + return rollup_state; +} +void +SWGSkyMapSettings::setRollupState(SWGRollupState* rollup_state) { + this->rollup_state = rollup_state; + this->m_rollup_state_isSet = true; +} + + +bool +SWGSkyMapSettings::isSet(){ + bool isObjectUpdated = false; + do{ + if(m_display_names_isSet){ + isObjectUpdated = true; break; + } + if(m_display_constellations_isSet){ + isObjectUpdated = true; break; + } + if(m_display_reticle_isSet){ + isObjectUpdated = true; break; + } + if(m_display_grid_isSet){ + isObjectUpdated = true; break; + } + if(m_display_antenna_fo_v_isSet){ + isObjectUpdated = true; break; + } + if(map && *map != QString("")){ + isObjectUpdated = true; break; + } + if(background && *background != QString("")){ + isObjectUpdated = true; break; + } + if(projection && *projection != QString("")){ + isObjectUpdated = true; break; + } + if(source && *source != QString("")){ + isObjectUpdated = true; break; + } + if(m_track_isSet){ + isObjectUpdated = true; break; + } + if(title && *title != QString("")){ + isObjectUpdated = true; break; + } + if(m_rgb_color_isSet){ + isObjectUpdated = true; break; + } + if(m_use_reverse_api_isSet){ + isObjectUpdated = true; break; + } + if(reverse_api_address && *reverse_api_address != QString("")){ + isObjectUpdated = true; break; + } + if(m_reverse_api_port_isSet){ + isObjectUpdated = true; break; + } + if(m_reverse_api_feature_set_index_isSet){ + isObjectUpdated = true; break; + } + if(m_reverse_api_feature_index_isSet){ + isObjectUpdated = true; break; + } + if(rollup_state && rollup_state->isSet()){ + isObjectUpdated = true; break; + } + }while(false); + return isObjectUpdated; +} +} + diff --git a/swagger/sdrangel/code/qt5/client/SWGSkyMapSettings.h b/swagger/sdrangel/code/qt5/client/SWGSkyMapSettings.h new file mode 100644 index 000000000..3fa1c35ed --- /dev/null +++ b/swagger/sdrangel/code/qt5/client/SWGSkyMapSettings.h @@ -0,0 +1,162 @@ +/** + * SDRangel + * This is the web REST/JSON API of SDRangel SDR software. SDRangel is an Open Source Qt5/OpenGL 3.0+ (4.3+ in Windows) GUI and server Software Defined Radio and signal analyzer in software. It supports Airspy, BladeRF, HackRF, LimeSDR, PlutoSDR, RTL-SDR, SDRplay RSP1 and FunCube --- Limitations and specifcities: * In SDRangel GUI the first Rx device set cannot be deleted. Conversely the server starts with no device sets and its number of device sets can be reduced to zero by as many calls as necessary to /sdrangel/deviceset with DELETE method. * Preset import and export from/to file is a server only feature. * Device set focus is a GUI only feature. * The following channels are not implemented (status 501 is returned): ATV and DATV demodulators, Channel Analyzer NG, LoRa demodulator * The device settings and report structures contains only the sub-structure corresponding to the device type. The DeviceSettings and DeviceReport structures documented here shows all of them but only one will be or should be present at a time * The channel settings and report structures contains only the sub-structure corresponding to the channel type. The ChannelSettings and ChannelReport structures documented here shows all of them but only one will be or should be present at a time --- + * + * OpenAPI spec version: 7.0.0 + * Contact: f4exb06@gmail.com + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + +/* + * SWGSkyMapSettings.h + * + * Sky Map + */ + +#ifndef SWGSkyMapSettings_H_ +#define SWGSkyMapSettings_H_ + +#include + + +#include "SWGRollupState.h" +#include + +#include "SWGObject.h" +#include "export.h" + +namespace SWGSDRangel { + +class SWG_API SWGSkyMapSettings: public SWGObject { +public: + SWGSkyMapSettings(); + SWGSkyMapSettings(QString* json); + virtual ~SWGSkyMapSettings(); + void init(); + void cleanup(); + + virtual QString asJson () override; + virtual QJsonObject* asJsonObject() override; + virtual void fromJsonObject(QJsonObject &json) override; + virtual SWGSkyMapSettings* fromJson(QString &jsonString) override; + + qint32 getDisplayNames(); + void setDisplayNames(qint32 display_names); + + qint32 getDisplayConstellations(); + void setDisplayConstellations(qint32 display_constellations); + + qint32 getDisplayReticle(); + void setDisplayReticle(qint32 display_reticle); + + qint32 getDisplayGrid(); + void setDisplayGrid(qint32 display_grid); + + qint32 getDisplayAntennaFoV(); + void setDisplayAntennaFoV(qint32 display_antenna_fo_v); + + QString* getMap(); + void setMap(QString* map); + + QString* getBackground(); + void setBackground(QString* background); + + QString* getProjection(); + void setProjection(QString* projection); + + QString* getSource(); + void setSource(QString* source); + + qint32 getTrack(); + void setTrack(qint32 track); + + QString* getTitle(); + void setTitle(QString* title); + + qint32 getRgbColor(); + void setRgbColor(qint32 rgb_color); + + qint32 getUseReverseApi(); + void setUseReverseApi(qint32 use_reverse_api); + + QString* getReverseApiAddress(); + void setReverseApiAddress(QString* reverse_api_address); + + qint32 getReverseApiPort(); + void setReverseApiPort(qint32 reverse_api_port); + + qint32 getReverseApiFeatureSetIndex(); + void setReverseApiFeatureSetIndex(qint32 reverse_api_feature_set_index); + + qint32 getReverseApiFeatureIndex(); + void setReverseApiFeatureIndex(qint32 reverse_api_feature_index); + + SWGRollupState* getRollupState(); + void setRollupState(SWGRollupState* rollup_state); + + + virtual bool isSet() override; + +private: + qint32 display_names; + bool m_display_names_isSet; + + qint32 display_constellations; + bool m_display_constellations_isSet; + + qint32 display_reticle; + bool m_display_reticle_isSet; + + qint32 display_grid; + bool m_display_grid_isSet; + + qint32 display_antenna_fo_v; + bool m_display_antenna_fo_v_isSet; + + QString* map; + bool m_map_isSet; + + QString* background; + bool m_background_isSet; + + QString* projection; + bool m_projection_isSet; + + QString* source; + bool m_source_isSet; + + qint32 track; + bool m_track_isSet; + + QString* title; + bool m_title_isSet; + + qint32 rgb_color; + bool m_rgb_color_isSet; + + qint32 use_reverse_api; + bool m_use_reverse_api_isSet; + + QString* reverse_api_address; + bool m_reverse_api_address_isSet; + + qint32 reverse_api_port; + bool m_reverse_api_port_isSet; + + qint32 reverse_api_feature_set_index; + bool m_reverse_api_feature_set_index_isSet; + + qint32 reverse_api_feature_index; + bool m_reverse_api_feature_index_isSet; + + SWGRollupState* rollup_state; + bool m_rollup_state_isSet; + +}; + +} + +#endif /* SWGSkyMapSettings_H_ */