mirror of https://github.com/f4exb/sdrangel.git
Update Web API for latest plugins and features
This commit is contained in:
parent
3adea2fd70
commit
721d0a40c2
|
@ -1062,6 +1062,51 @@ margin-bottom: 20px;
|
|||
}
|
||||
},
|
||||
"description" : "AMMod"
|
||||
};
|
||||
defs.APRSSettings = {
|
||||
"properties" : {
|
||||
"igateServer" : {
|
||||
"type" : "string"
|
||||
},
|
||||
"igatePort" : {
|
||||
"type" : "integer"
|
||||
},
|
||||
"igateCallsign" : {
|
||||
"type" : "string"
|
||||
},
|
||||
"igatePasscode" : {
|
||||
"type" : "string"
|
||||
},
|
||||
"igateFilter" : {
|
||||
"type" : "string"
|
||||
},
|
||||
"igateEnabled" : {
|
||||
"type" : "integer"
|
||||
},
|
||||
"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" : "APRS settings"
|
||||
};
|
||||
defs.ATVDemodSettings = {
|
||||
"properties" : {
|
||||
|
@ -2674,6 +2719,9 @@ margin-bottom: 20px;
|
|||
"LocalSourceSettings" : {
|
||||
"$ref" : "#/definitions/LocalSourceSettings"
|
||||
},
|
||||
"PacketDemodSettings" : {
|
||||
"$ref" : "#/definitions/PacketDemodSettings"
|
||||
},
|
||||
"PacketModSettings" : {
|
||||
"$ref" : "#/definitions/PacketModSettings"
|
||||
},
|
||||
|
@ -4018,6 +4066,9 @@ margin-bottom: 20px;
|
|||
"AFCActions" : {
|
||||
"$ref" : "#/definitions/AFCActions"
|
||||
},
|
||||
"MapActions" : {
|
||||
"$ref" : "#/definitions/MapActions"
|
||||
},
|
||||
"SimplePTTActions" : {
|
||||
"$ref" : "#/definitions/SimplePTTActions"
|
||||
}
|
||||
|
@ -4122,15 +4173,24 @@ margin-bottom: 20px;
|
|||
"AFCSettings" : {
|
||||
"$ref" : "#/definitions/AFCSettings"
|
||||
},
|
||||
"APRSSettings" : {
|
||||
"$ref" : "#/definitions/APRSSettings"
|
||||
},
|
||||
"DemodAnalyzerSettings" : {
|
||||
"$ref" : "#/definitions/DemodAnalyzerSettings"
|
||||
},
|
||||
"GS232ControllerSettings" : {
|
||||
"$ref" : "#/definitions/GS232ControllerSettings"
|
||||
},
|
||||
"MapSettings" : {
|
||||
"$ref" : "#/definitions/MapSettings"
|
||||
},
|
||||
"RigCtlServerSettings" : {
|
||||
"$ref" : "#/definitions/RigCtlServerSettings"
|
||||
},
|
||||
"StarTrackerSettings" : {
|
||||
"$ref" : "#/definitions/StarTrackerSettings"
|
||||
},
|
||||
"SimplePTTSettings" : {
|
||||
"$ref" : "#/definitions/SimplePTTSettings"
|
||||
},
|
||||
|
@ -4867,7 +4927,20 @@ margin-bottom: 20px;
|
|||
"description" : "The baud rate to use for the serial connection to the GS-232 controller"
|
||||
},
|
||||
"track" : {
|
||||
"type" : "integer"
|
||||
"type" : "integer",
|
||||
"description" : "Track a target where azimuth and elevation are determined by another plugin (1 for yes, 0 for no)"
|
||||
},
|
||||
"target" : {
|
||||
"type" : "string",
|
||||
"description" : "Identifier of the channel or feature plugin providing target azimuth and elevation (E.g. R0:0 ADSBDemod)"
|
||||
},
|
||||
"azimuthOffset" : {
|
||||
"type" : "integer",
|
||||
"description" : "Azimuth offset in degrees"
|
||||
},
|
||||
"elevationOffset" : {
|
||||
"type" : "integer",
|
||||
"description" : "Elevation offset in degrees"
|
||||
},
|
||||
"title" : {
|
||||
"type" : "string"
|
||||
|
@ -4875,12 +4948,6 @@ margin-bottom: 20px;
|
|||
"rgbColor" : {
|
||||
"type" : "integer"
|
||||
},
|
||||
"deviceIndex" : {
|
||||
"type" : "integer"
|
||||
},
|
||||
"channelIndex" : {
|
||||
"type" : "integer"
|
||||
},
|
||||
"useReverseAPI" : {
|
||||
"type" : "integer",
|
||||
"description" : "Synchronize with reverse API (1 for yes, 0 for no)"
|
||||
|
@ -6156,7 +6223,7 @@ margin-bottom: 20px;
|
|||
"latitude" : {
|
||||
"type" : "number",
|
||||
"format" : "float",
|
||||
"description" : "Lautitude in decimal degrees positive to the north"
|
||||
"description" : "Latitude in decimal degrees positive to the north"
|
||||
},
|
||||
"longitude" : {
|
||||
"type" : "number",
|
||||
|
@ -6186,6 +6253,116 @@ margin-bottom: 20px;
|
|||
}
|
||||
},
|
||||
"description" : "Logging parameters setting"
|
||||
};
|
||||
defs.MapActions = {
|
||||
"properties" : {
|
||||
"find" : {
|
||||
"type" : "string",
|
||||
"description" : "The name of the item or the location to centre the map on"
|
||||
}
|
||||
},
|
||||
"description" : "Map"
|
||||
};
|
||||
defs.MapItem = {
|
||||
"required" : [ "name" ],
|
||||
"properties" : {
|
||||
"name" : {
|
||||
"type" : "string",
|
||||
"description" : "A name for the item"
|
||||
},
|
||||
"image" : {
|
||||
"type" : "string",
|
||||
"description" : "Filename or URL of image to draw on the map"
|
||||
},
|
||||
"imageRotation" : {
|
||||
"type" : "integer",
|
||||
"description" : "Angle to rotate the image by"
|
||||
},
|
||||
"imageFixedSize" : {
|
||||
"type" : "integer",
|
||||
"description" : "Keep the image the same size, regardless of map zoom level (1 for yes, 0 for no)"
|
||||
},
|
||||
"text" : {
|
||||
"type" : "string"
|
||||
},
|
||||
"latitude" : {
|
||||
"type" : "number",
|
||||
"format" : "float",
|
||||
"description" : "Latitude in decimal degrees, positive to the north"
|
||||
},
|
||||
"longitude" : {
|
||||
"type" : "number",
|
||||
"format" : "float",
|
||||
"description" : "Longitude in decimal degrees, positive to the east"
|
||||
}
|
||||
},
|
||||
"description" : "An item to draw on the map. Set image to an empty string to remove item from the map."
|
||||
};
|
||||
defs.MapItem_2 = {
|
||||
"required" : [ "name" ],
|
||||
"properties" : {
|
||||
"name" : {
|
||||
"type" : "string",
|
||||
"description" : "A name for the item"
|
||||
},
|
||||
"image" : {
|
||||
"type" : "string",
|
||||
"description" : "Filename or URL of image to draw on the map"
|
||||
},
|
||||
"imageRotation" : {
|
||||
"type" : "integer",
|
||||
"description" : "Angle to rotate the image by"
|
||||
},
|
||||
"imageFixedSize" : {
|
||||
"type" : "integer",
|
||||
"description" : "Keep the image the same size, regardless of map zoom level (1 for yes, 0 for no)"
|
||||
},
|
||||
"text" : {
|
||||
"type" : "string"
|
||||
},
|
||||
"latitude" : {
|
||||
"type" : "number",
|
||||
"format" : "float",
|
||||
"description" : "Latitude in decimal degrees, positive to the north"
|
||||
},
|
||||
"longitude" : {
|
||||
"type" : "number",
|
||||
"format" : "float",
|
||||
"description" : "Longitude in decimal degrees, positive to the east"
|
||||
}
|
||||
},
|
||||
"description" : "An item to draw on the map. Set image to an empty string to remove item from the map."
|
||||
};
|
||||
defs.MapSettings = {
|
||||
"properties" : {
|
||||
"displayNames" : {
|
||||
"type" : "integer",
|
||||
"description" : "Display object names on the map (1 for yes, 0 for no)"
|
||||
},
|
||||
"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" : "Map"
|
||||
};
|
||||
defs.MetisMISOSettings = {
|
||||
"properties" : {
|
||||
|
@ -6554,6 +6731,53 @@ margin-bottom: 20px;
|
|||
}
|
||||
},
|
||||
"description" : "Enumeration with name for values"
|
||||
};
|
||||
defs.PacketDemodSettings = {
|
||||
"properties" : {
|
||||
"inputFrequencyOffset" : {
|
||||
"type" : "integer",
|
||||
"format" : "int64"
|
||||
},
|
||||
"mode" : {
|
||||
"type" : "string",
|
||||
"description" : "Transmission mode\n * \"1200 AFSK\"\n"
|
||||
},
|
||||
"rfBandwidth" : {
|
||||
"type" : "number",
|
||||
"format" : "float"
|
||||
},
|
||||
"fmDeviation" : {
|
||||
"type" : "number",
|
||||
"format" : "float"
|
||||
},
|
||||
"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" : "PacketDemod"
|
||||
};
|
||||
defs.PacketModActions = {
|
||||
"properties" : {
|
||||
|
@ -8751,6 +8975,121 @@ margin-bottom: 20px;
|
|||
"type" : "integer"
|
||||
}
|
||||
}
|
||||
};
|
||||
defs.StarTrackerSettings = {
|
||||
"properties" : {
|
||||
"target" : {
|
||||
"type" : "string",
|
||||
"description" : "Target object (Sun, Moon or Custom)"
|
||||
},
|
||||
"ra" : {
|
||||
"type" : "string",
|
||||
"description" : "Right ascension of custom target"
|
||||
},
|
||||
"dec" : {
|
||||
"type" : "string",
|
||||
"description" : "Declination of custom target"
|
||||
},
|
||||
"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"
|
||||
},
|
||||
"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."
|
||||
},
|
||||
"refraction" : {
|
||||
"type" : "string",
|
||||
"description" : "Atmospheric refraction correction (None or Saemundsson)"
|
||||
},
|
||||
"pressure" : {
|
||||
"type" : "number",
|
||||
"format" : "float",
|
||||
"description" : "Air pressure in millibars, for refraction"
|
||||
},
|
||||
"temperature" : {
|
||||
"type" : "number",
|
||||
"format" : "float",
|
||||
"description" : "Air temperature in Celsuis, for refraction"
|
||||
},
|
||||
"humidity" : {
|
||||
"type" : "number",
|
||||
"format" : "float",
|
||||
"description" : "Relative humidity in %, for refraction"
|
||||
},
|
||||
"heightAboveSeaLevel" : {
|
||||
"type" : "number",
|
||||
"format" : "float",
|
||||
"description" : "Height above sea level in metres of observation/antenna location"
|
||||
},
|
||||
"temperatureLapseRate" : {
|
||||
"type" : "number",
|
||||
"format" : "float",
|
||||
"description" : "Temperature lapse rate in K/km"
|
||||
},
|
||||
"frequency" : {
|
||||
"type" : "number",
|
||||
"format" : "float",
|
||||
"description" : "Frequency of radio waves being observed in MHz"
|
||||
},
|
||||
"stellariumServerEnabled" : {
|
||||
"type" : "integer"
|
||||
},
|
||||
"stellariumPort" : {
|
||||
"type" : "integer",
|
||||
"description" : "IP port number for Stellarium server to listen on (Default is 10001)."
|
||||
},
|
||||
"updatePeriod" : {
|
||||
"type" : "number",
|
||||
"format" : "float",
|
||||
"description" : "Time in seconds between each calculation of the target's position"
|
||||
},
|
||||
"epoch" : {
|
||||
"type" : "string",
|
||||
"description" : "Epoch for RA and Dec (J2000 or JNOW)"
|
||||
},
|
||||
"drawSunOnMap" : {
|
||||
"type" : "integer",
|
||||
"description" : "Draw the overhead position of the Sun on the Map (1 for yes, 0 for no)"
|
||||
},
|
||||
"drawMoonOnMap" : {
|
||||
"type" : "integer",
|
||||
"description" : "Draw the overhead position of the Moon on the Map (1 for yes, 0 for no)"
|
||||
},
|
||||
"drawStarOnMap" : {
|
||||
"type" : "integer",
|
||||
"description" : "Draw the overhead position of the target Star on the Map (1 for yes, 0 for no)"
|
||||
},
|
||||
"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" : "Star Tracker settings"
|
||||
};
|
||||
defs.SuccessResponse = {
|
||||
"required" : [ "message" ],
|
||||
|
@ -8759,6 +9098,22 @@ margin-bottom: 20px;
|
|||
"type" : "string"
|
||||
}
|
||||
}
|
||||
};
|
||||
defs.TargetAzimuthElevation = {
|
||||
"properties" : {
|
||||
"name" : {
|
||||
"type" : "string"
|
||||
},
|
||||
"azimuth" : {
|
||||
"type" : "number",
|
||||
"format" : "float"
|
||||
},
|
||||
"elevation" : {
|
||||
"type" : "number",
|
||||
"format" : "float"
|
||||
}
|
||||
},
|
||||
"description" : "A target azimuth and elevation"
|
||||
};
|
||||
defs.TestMISettings = {
|
||||
"properties" : {
|
||||
|
@ -44917,7 +45272,7 @@ except ApiException as e:
|
|||
</div>
|
||||
<div id="generator">
|
||||
<div class="content">
|
||||
Generated 2020-12-20T18:34:47.837+01:00
|
||||
Generated 2021-01-13T17:40:49.583+01:00
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -0,0 +1,30 @@
|
|||
APRSSettings:
|
||||
description: "APRS settings"
|
||||
properties:
|
||||
igateServer:
|
||||
type: string
|
||||
igatePort:
|
||||
type: integer
|
||||
igateCallsign:
|
||||
type: string
|
||||
igatePasscode:
|
||||
type: string
|
||||
igateFilter:
|
||||
type: string
|
||||
igateEnabled:
|
||||
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
|
||||
reverseAPIDeviceIndex:
|
||||
type: integer
|
||||
reverseAPIChannelIndex:
|
||||
type: integer
|
|
@ -63,6 +63,8 @@ ChannelSettings:
|
|||
$ref: "/doc/swagger/include/LocalSink.yaml#/LocalSinkSettings"
|
||||
LocalSourceSettings:
|
||||
$ref: "/doc/swagger/include/LocalSource.yaml#/LocalSourceSettings"
|
||||
PacketDemodSettings:
|
||||
$ref: "/doc/swagger/include/PacketDemod.yaml#/PacketDemodSettings"
|
||||
PacketModSettings:
|
||||
$ref: "/doc/swagger/include/PacketMod.yaml#/PacketModSettings"
|
||||
RemoteSinkSettings:
|
||||
|
|
|
@ -15,5 +15,7 @@ FeatureActions:
|
|||
type: integer
|
||||
AFCActions:
|
||||
$ref: "/doc/swagger/include/AFC.yaml#/AFCActions"
|
||||
MapActions:
|
||||
$ref: "/doc/swagger/include/Map.yaml#/MapActions"
|
||||
SimplePTTActions:
|
||||
$ref: "/doc/swagger/include/SimplePTT.yaml#/SimplePTTActions"
|
||||
|
|
|
@ -15,12 +15,18 @@ FeatureSettings:
|
|||
type: integer
|
||||
AFCSettings:
|
||||
$ref: "/doc/swagger/include/AFC.yaml#/AFCSettings"
|
||||
APRSSettings:
|
||||
$ref: "/doc/swagger/include/APRS.yaml#/APRSSettings"
|
||||
DemodAnalyzerSettings:
|
||||
$ref: "/doc/swagger/include/DemodAnalyzer.yaml#/DemodAnalyzerSettings"
|
||||
GS232ControllerSettings:
|
||||
$ref: "/doc/swagger/include/GS232Controller.yaml#/GS232ControllerSettings"
|
||||
MapSettings:
|
||||
$ref: "/doc/swagger/include/Map.yaml#/MapSettings"
|
||||
RigCtlServerSettings:
|
||||
$ref: "/doc/swagger/include/RigCtlServer.yaml#/RigCtlServerSettings"
|
||||
StarTrackerSettings:
|
||||
$ref: "/doc/swagger/include/StarTracker.yaml#/StarTrackerSettings"
|
||||
SimplePTTSettings:
|
||||
$ref: "/doc/swagger/include/SimplePTT.yaml#/SimplePTTSettings"
|
||||
VORLocalizerSettings:
|
||||
|
|
|
@ -14,15 +14,21 @@ GS232ControllerSettings:
|
|||
description: The baud rate to use for the serial connection to the GS-232 controller
|
||||
type: integer
|
||||
track:
|
||||
description: Track a target where azimuth and elevation are determined by another plugin (1 for yes, 0 for no)
|
||||
type: integer
|
||||
target:
|
||||
description: "Identifier of the channel or feature plugin providing target azimuth and elevation (E.g. R0:0 ADSBDemod)"
|
||||
type: string
|
||||
azimuthOffset:
|
||||
description: Azimuth offset in degrees
|
||||
type: integer
|
||||
elevationOffset:
|
||||
description: Elevation offset in degrees
|
||||
type: integer
|
||||
title:
|
||||
type: string
|
||||
rgbColor:
|
||||
type: integer
|
||||
deviceIndex:
|
||||
type: integer
|
||||
channelIndex:
|
||||
type: integer
|
||||
useReverseAPI:
|
||||
description: Synchronize with reverse API (1 for yes, 0 for no)
|
||||
type: integer
|
||||
|
|
|
@ -0,0 +1,57 @@
|
|||
MapSettings:
|
||||
description: Map
|
||||
properties:
|
||||
displayNames:
|
||||
description: Display object names on the map (1 for yes, 0 for no)
|
||||
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
|
||||
reverseAPIDeviceIndex:
|
||||
type: integer
|
||||
reverseAPIChannelIndex:
|
||||
type: integer
|
||||
|
||||
MapActions:
|
||||
description: Map
|
||||
properties:
|
||||
find:
|
||||
description: "The name of the item or the location to centre the map on"
|
||||
type: string
|
||||
|
||||
MapItem:
|
||||
description: "An item to draw on the map. Set image to an empty string to remove item from the map."
|
||||
required:
|
||||
- name
|
||||
properties:
|
||||
name:
|
||||
description: "A name for the item"
|
||||
type: string
|
||||
image:
|
||||
description: "Filename or URL of image to draw on the map"
|
||||
type: string
|
||||
imageRotation:
|
||||
description: "Angle to rotate the image by"
|
||||
type: integer
|
||||
imageFixedSize:
|
||||
description: "Keep the image the same size, regardless of map zoom level (1 for yes, 0 for no)"
|
||||
type: integer
|
||||
text:
|
||||
descrption: "Text to draw on the map when item is selected"
|
||||
type: string
|
||||
latitude:
|
||||
description: "Latitude in decimal degrees, positive to the north"
|
||||
type: number
|
||||
format: float
|
||||
longitude:
|
||||
description: "Longitude in decimal degrees, positive to the east"
|
||||
type: number
|
||||
format: float
|
|
@ -0,0 +1,35 @@
|
|||
PacketDemodSettings:
|
||||
description: PacketDemod
|
||||
properties:
|
||||
inputFrequencyOffset:
|
||||
type: integer
|
||||
format: int64
|
||||
mode:
|
||||
type: string
|
||||
description: >
|
||||
Transmission mode
|
||||
* "1200 AFSK"
|
||||
rfBandwidth:
|
||||
type: number
|
||||
format: float
|
||||
fmDeviation:
|
||||
type: number
|
||||
format: float
|
||||
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
|
|
@ -0,0 +1,87 @@
|
|||
StarTrackerSettings:
|
||||
description: "Star Tracker settings"
|
||||
properties:
|
||||
target:
|
||||
description: "Target object (Sun, Moon or Custom)"
|
||||
type: string
|
||||
ra:
|
||||
description: "Right ascension of custom target"
|
||||
type: string
|
||||
dec:
|
||||
description: "Declination of custom target"
|
||||
type: string
|
||||
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
|
||||
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
|
||||
refraction:
|
||||
description: "Atmospheric refraction correction (None or Saemundsson)"
|
||||
type: string
|
||||
pressure:
|
||||
description: "Air pressure in millibars, for refraction"
|
||||
type: number
|
||||
format: float
|
||||
temperature:
|
||||
description: "Air temperature in Celsuis, for refraction"
|
||||
type: number
|
||||
format: float
|
||||
humidity:
|
||||
description: "Relative humidity in %, for refraction"
|
||||
type: number
|
||||
format: float
|
||||
heightAboveSeaLevel:
|
||||
description: "Height above sea level in metres of observation/antenna location"
|
||||
type: number
|
||||
format: float
|
||||
temperatureLapseRate:
|
||||
description: "Temperature lapse rate in K/km"
|
||||
type: number
|
||||
format: float
|
||||
frequency:
|
||||
description: "Frequency of radio waves being observed in MHz"
|
||||
type: number
|
||||
format: float
|
||||
stellariumServerEnabled:
|
||||
descrption: "Enable Stellarium server (1 for yes, 0 for no)"
|
||||
type: integer
|
||||
stellariumPort:
|
||||
description: "IP port number for Stellarium server to listen on (Default is 10001)."
|
||||
type: integer
|
||||
updatePeriod:
|
||||
description: "Time in seconds between each calculation of the target's position"
|
||||
type: number
|
||||
format: float
|
||||
epoch:
|
||||
description: "Epoch for RA and Dec (J2000 or JNOW)"
|
||||
type: string
|
||||
drawSunOnMap:
|
||||
description: "Draw the overhead position of the Sun on the Map (1 for yes, 0 for no)"
|
||||
type: integer
|
||||
drawMoonOnMap:
|
||||
description: "Draw the overhead position of the Moon on the Map (1 for yes, 0 for no)"
|
||||
type: integer
|
||||
drawStarOnMap:
|
||||
description: "Draw the overhead position of the target Star on the Map (1 for yes, 0 for no)"
|
||||
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
|
||||
reverseAPIDeviceIndex:
|
||||
type: integer
|
||||
reverseAPIChannelIndex:
|
||||
type: integer
|
|
@ -2744,7 +2744,7 @@ definitions:
|
|||
- longitude
|
||||
properties:
|
||||
latitude:
|
||||
description: "Lautitude in decimal degrees positive to the north"
|
||||
description: "Latitude in decimal degrees positive to the north"
|
||||
type: number
|
||||
format: float
|
||||
longitude:
|
||||
|
@ -2818,6 +2818,25 @@ definitions:
|
|||
description: "Serial device name or server address"
|
||||
type: string
|
||||
|
||||
MapItem:
|
||||
$ref: "/doc/swagger/include/Map.yaml#/MapItem"
|
||||
|
||||
# This isn't in GS232Controller, as it may eventually be used by other controllers or features
|
||||
TargetAzimuthElevation:
|
||||
description: "A target azimuth and elevation"
|
||||
properties:
|
||||
name:
|
||||
descrption: "The name of the target"
|
||||
type: string
|
||||
azimuth:
|
||||
descrption: "The azimuth angle in degrees to the target"
|
||||
type: number
|
||||
format: float
|
||||
elevation:
|
||||
descrption: "The elevation angle in degrees to the target"
|
||||
type: number
|
||||
format: float
|
||||
|
||||
Presets:
|
||||
description: "Settings presets"
|
||||
required:
|
||||
|
|
|
@ -3916,6 +3916,11 @@ bool WebAPIRequestMapper::getChannelSettings(
|
|||
channelSettings->setLocalSourceSettings(new SWGSDRangel::SWGLocalSourceSettings());
|
||||
channelSettings->getLocalSourceSettings()->fromJsonObject(settingsJsonObject);
|
||||
}
|
||||
else if (channelSettingsKey == "PacketDemodSettings")
|
||||
{
|
||||
channelSettings->setPacketDemodSettings(new SWGSDRangel::SWGPacketDemodSettings());
|
||||
channelSettings->getPacketDemodSettings()->fromJsonObject(settingsJsonObject);
|
||||
}
|
||||
else if (channelSettingsKey == "PacketModSettings")
|
||||
{
|
||||
channelSettings->setPacketModSettings(new SWGSDRangel::SWGPacketModSettings());
|
||||
|
@ -4370,16 +4375,31 @@ bool WebAPIRequestMapper::getFeatureSettings(
|
|||
QJsonObject settingsJsonObject = featureSettingsJson[featureSettingsKey].toObject();
|
||||
featureSettingsKeys = settingsJsonObject.keys();
|
||||
|
||||
if (featureSettingsKey == "GS232ControllerSettings")
|
||||
if (featureSettingsKey == "APRSSettings")
|
||||
{
|
||||
featureSettings->setAprsSettings(new SWGSDRangel::SWGAPRSSettings());
|
||||
featureSettings->getAprsSettings()->fromJsonObject(settingsJsonObject);
|
||||
}
|
||||
else if (featureSettingsKey == "GS232ControllerSettings")
|
||||
{
|
||||
featureSettings->setGs232ControllerSettings(new SWGSDRangel::SWGGS232ControllerSettings());
|
||||
featureSettings->getGs232ControllerSettings()->fromJsonObject(settingsJsonObject);
|
||||
}
|
||||
else if (featureSettingsKey == "MapSettings")
|
||||
{
|
||||
featureSettings->setMapSettings(new SWGSDRangel::SWGMapSettings());
|
||||
featureSettings->getMapSettings()->fromJsonObject(settingsJsonObject);
|
||||
}
|
||||
else if (featureSettingsKey == "SimplePTTSettings")
|
||||
{
|
||||
featureSettings->setSimplePttSettings(new SWGSDRangel::SWGSimplePTTSettings());
|
||||
featureSettings->getSimplePttSettings()->fromJsonObject(settingsJsonObject);
|
||||
}
|
||||
else if (featureSettingsKey == "StarTrackerSettings")
|
||||
{
|
||||
featureSettings->setStarTrackerSettings(new SWGSDRangel::SWGStarTrackerSettings());
|
||||
featureSettings->getStarTrackerSettings()->fromJsonObject(settingsJsonObject);
|
||||
}
|
||||
else if (featureSettingsKey == "RigCtlServerSettings")
|
||||
{
|
||||
featureSettings->setRigCtlServerSettings(new SWGSDRangel::SWGRigCtlServerSettings());
|
||||
|
@ -4412,7 +4432,12 @@ bool WebAPIRequestMapper::getFeatureActions(
|
|||
QJsonObject actionsJsonObject = featureActionsJson[featureActionsKey].toObject();
|
||||
featureActionsKeys = actionsJsonObject.keys();
|
||||
|
||||
if (featureActionsKey == "SimplePTTActions")
|
||||
if (featureActionsKey == "MapActions")
|
||||
{
|
||||
featureActions->setMapActions(new SWGSDRangel::SWGMapActions());
|
||||
featureActions->getMapActions()->fromJsonObject(actionsJsonObject);
|
||||
}
|
||||
else if (featureActionsKey == "SimplePTTActions")
|
||||
{
|
||||
featureActions->setSimplePttActions(new SWGSDRangel::SWGSimplePTTActions());
|
||||
featureActions->getSimplePttActions()->fromJsonObject(actionsJsonObject);
|
||||
|
@ -4540,6 +4565,7 @@ void WebAPIRequestMapper::resetChannelSettings(SWGSDRangel::SWGChannelSettings&
|
|||
channelSettings.setIeee802154ModSettings(nullptr);
|
||||
channelSettings.setNfmDemodSettings(nullptr);
|
||||
channelSettings.setNfmModSettings(nullptr);
|
||||
channelSettings.setPacketDemodSettings(nullptr);
|
||||
channelSettings.setPacketModSettings(nullptr);
|
||||
channelSettings.setRemoteSinkSettings(nullptr);
|
||||
channelSettings.setRemoteSourceSettings(nullptr);
|
||||
|
@ -4602,7 +4628,12 @@ void WebAPIRequestMapper::resetFeatureSettings(SWGSDRangel::SWGFeatureSettings&
|
|||
{
|
||||
featureSettings.cleanup();
|
||||
featureSettings.setFeatureType(nullptr);
|
||||
featureSettings.setAprsSettings(nullptr);
|
||||
featureSettings.setGs232ControllerSettings(nullptr);
|
||||
featureSettings.setMapSettings(nullptr);
|
||||
featureSettings.setSimplePttSettings(nullptr);
|
||||
featureSettings.setStarTrackerSettings(nullptr);
|
||||
featureSettings.setRigCtlServerSettings(nullptr);
|
||||
}
|
||||
|
||||
void WebAPIRequestMapper::resetFeatureReport(SWGSDRangel::SWGFeatureReport& featureReport)
|
||||
|
@ -4616,6 +4647,7 @@ void WebAPIRequestMapper::resetFeatureActions(SWGSDRangel::SWGFeatureActions& fe
|
|||
{
|
||||
featureActions.cleanup();
|
||||
featureActions.setFeatureType(nullptr);
|
||||
featureActions.setMapActions(nullptr);
|
||||
featureActions.setSimplePttActions(nullptr);
|
||||
}
|
||||
|
||||
|
|
|
@ -47,6 +47,7 @@ const QMap<QString, QString> WebAPIUtils::m_channelURIToSettingsKey = {
|
|||
{"sdrangel.demod.localsink", "LocalSinkSettings"},
|
||||
{"sdrangel.channel.localsink", "LocalSinkSettings"}, // remap
|
||||
{"sdrangel.channel.localsource", "LocalSourceSettings"},
|
||||
{"sdrangel.channelrx.demodpacket", "PacketDemodSettings"},
|
||||
{"sdrangel.channeltx.modpacket", "PacketModSettings"},
|
||||
{"sdrangel.channeltx.mod802.15.4", "IEEE_802_15_4_ModSettings"},
|
||||
{"sdrangel.demod.remotesink", "RemoteSinkSettings"},
|
||||
|
@ -135,6 +136,7 @@ const QMap<QString, QString> WebAPIUtils::m_channelTypeToSettingsKey = {
|
|||
{"IEEE_802_15_4_Mod", "IEEE_802_15_4_ModSettings"},
|
||||
{"NFMDemod", "NFMDemodSettings"},
|
||||
{"NFMMod", "NFMModSettings"},
|
||||
{"PacketDemod", "PacketDemodSettings"},
|
||||
{"PacketMod", "PacketModSettings"},
|
||||
{"LocalSink", "LocalSinkSettings"},
|
||||
{"LocalSource", "LocalSourceSettings"},
|
||||
|
@ -237,16 +239,25 @@ const QMap<QString, QString> WebAPIUtils::m_mimoDeviceHwIdToActionsKey = {
|
|||
};
|
||||
|
||||
const QMap<QString, QString> WebAPIUtils::m_featureTypeToSettingsKey = {
|
||||
{"APRS", "APRSSettings"},
|
||||
{"GS232Controller", "GS232ControllerSettings"},
|
||||
{"Map", "MapSettings"},
|
||||
{"SimplePTT", "SimplePTTSettings"},
|
||||
{"StarTracker", "StarTrackerSettings"},
|
||||
{"RigCtlServer", "RigCtlServerSettings"}
|
||||
};
|
||||
|
||||
const QMap<QString, QString> WebAPIUtils::m_featureTypeToActionsKey = {
|
||||
{"Map", "MapActions"},
|
||||
{"SimplePTT", "SimplePTTActions"}
|
||||
};
|
||||
|
||||
const QMap<QString, QString> WebAPIUtils::m_featureURIToSettingsKey = {
|
||||
{"sdrangel.feature.aprs", "APRSSettings"},
|
||||
{"sdrangel.feature.gs232controller", "GS232ControllerSettings"},
|
||||
{"sdrangel.feature.map", "MapSettings"},
|
||||
{"sdrangel.feature.simpleptt", "SimplePTTSettings"},
|
||||
{"sdrangel.feature.startracker", "StarTrackerSettings"},
|
||||
{"sdrangel.feature.rigctlserver", "RigCtlServerSettings"}
|
||||
};
|
||||
|
||||
|
|
|
@ -0,0 +1,30 @@
|
|||
APRSSettings:
|
||||
description: "APRS settings"
|
||||
properties:
|
||||
igateServer:
|
||||
type: string
|
||||
igatePort:
|
||||
type: integer
|
||||
igateCallsign:
|
||||
type: string
|
||||
igatePasscode:
|
||||
type: string
|
||||
igateFilter:
|
||||
type: string
|
||||
igateEnabled:
|
||||
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
|
||||
reverseAPIDeviceIndex:
|
||||
type: integer
|
||||
reverseAPIChannelIndex:
|
||||
type: integer
|
|
@ -63,6 +63,8 @@ ChannelSettings:
|
|||
$ref: "http://swgserver:8081/api/swagger/include/LocalSink.yaml#/LocalSinkSettings"
|
||||
LocalSourceSettings:
|
||||
$ref: "http://swgserver:8081/api/swagger/include/LocalSource.yaml#/LocalSourceSettings"
|
||||
PacketDemodSettings:
|
||||
$ref: "http://swgserver:8081/api/swagger/include/PacketDemod.yaml#/PacketDemodSettings"
|
||||
PacketModSettings:
|
||||
$ref: "http://swgserver:8081/api/swagger/include/PacketMod.yaml#/PacketModSettings"
|
||||
RemoteSinkSettings:
|
||||
|
|
|
@ -15,5 +15,7 @@ FeatureActions:
|
|||
type: integer
|
||||
AFCActions:
|
||||
$ref: "http://swgserver:8081/api/swagger/include/AFC.yaml#/AFCActions"
|
||||
MapActions:
|
||||
$ref: "http://swgserver:8081/api/swagger/include/Map.yaml#/MapActions"
|
||||
SimplePTTActions:
|
||||
$ref: "http://swgserver:8081/api/swagger/include/SimplePTT.yaml#/SimplePTTActions"
|
||||
|
|
|
@ -15,12 +15,18 @@ FeatureSettings:
|
|||
type: integer
|
||||
AFCSettings:
|
||||
$ref: "http://swgserver:8081/api/swagger/include/AFC.yaml#/AFCSettings"
|
||||
APRSSettings:
|
||||
$ref: "http://swgserver:8081/api/swagger/include/APRS.yaml#/APRSSettings"
|
||||
DemodAnalyzerSettings:
|
||||
$ref: "http://swgserver:8081/api/swagger/include/DemodAnalyzer.yaml#/DemodAnalyzerSettings"
|
||||
GS232ControllerSettings:
|
||||
$ref: "http://swgserver:8081/api/swagger/include/GS232Controller.yaml#/GS232ControllerSettings"
|
||||
MapSettings:
|
||||
$ref: "http://swgserver:8081/api/swagger/include/Map.yaml#/MapSettings"
|
||||
RigCtlServerSettings:
|
||||
$ref: "http://swgserver:8081/api/swagger/include/RigCtlServer.yaml#/RigCtlServerSettings"
|
||||
StarTrackerSettings:
|
||||
$ref: "http://swgserver:8081/api/swagger/include/StarTracker.yaml#/StarTrackerSettings"
|
||||
SimplePTTSettings:
|
||||
$ref: "http://swgserver:8081/api/swagger/include/SimplePTT.yaml#/SimplePTTSettings"
|
||||
VORLocalizerSettings:
|
||||
|
|
|
@ -14,15 +14,21 @@ GS232ControllerSettings:
|
|||
description: The baud rate to use for the serial connection to the GS-232 controller
|
||||
type: integer
|
||||
track:
|
||||
description: Track a target where azimuth and elevation are determined by another plugin (1 for yes, 0 for no)
|
||||
type: integer
|
||||
target:
|
||||
description: "Identifier of the channel or feature plugin providing target azimuth and elevation (E.g. R0:0 ADSBDemod)"
|
||||
type: string
|
||||
azimuthOffset:
|
||||
description: Azimuth offset in degrees
|
||||
type: integer
|
||||
elevationOffset:
|
||||
description: Elevation offset in degrees
|
||||
type: integer
|
||||
title:
|
||||
type: string
|
||||
rgbColor:
|
||||
type: integer
|
||||
deviceIndex:
|
||||
type: integer
|
||||
channelIndex:
|
||||
type: integer
|
||||
useReverseAPI:
|
||||
description: Synchronize with reverse API (1 for yes, 0 for no)
|
||||
type: integer
|
||||
|
|
|
@ -0,0 +1,57 @@
|
|||
MapSettings:
|
||||
description: Map
|
||||
properties:
|
||||
displayNames:
|
||||
description: Display object names on the map (1 for yes, 0 for no)
|
||||
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
|
||||
reverseAPIDeviceIndex:
|
||||
type: integer
|
||||
reverseAPIChannelIndex:
|
||||
type: integer
|
||||
|
||||
MapActions:
|
||||
description: Map
|
||||
properties:
|
||||
find:
|
||||
description: "The name of the item or the location to centre the map on"
|
||||
type: string
|
||||
|
||||
MapItem:
|
||||
description: "An item to draw on the map. Set image to an empty string to remove item from the map."
|
||||
required:
|
||||
- name
|
||||
properties:
|
||||
name:
|
||||
description: "A name for the item"
|
||||
type: string
|
||||
image:
|
||||
description: "Filename or URL of image to draw on the map"
|
||||
type: string
|
||||
imageRotation:
|
||||
description: "Angle to rotate the image by"
|
||||
type: integer
|
||||
imageFixedSize:
|
||||
description: "Keep the image the same size, regardless of map zoom level (1 for yes, 0 for no)"
|
||||
type: integer
|
||||
text:
|
||||
descrption: "Text to draw on the map when item is selected"
|
||||
type: string
|
||||
latitude:
|
||||
description: "Latitude in decimal degrees, positive to the north"
|
||||
type: number
|
||||
format: float
|
||||
longitude:
|
||||
description: "Longitude in decimal degrees, positive to the east"
|
||||
type: number
|
||||
format: float
|
|
@ -0,0 +1,35 @@
|
|||
PacketDemodSettings:
|
||||
description: PacketDemod
|
||||
properties:
|
||||
inputFrequencyOffset:
|
||||
type: integer
|
||||
format: int64
|
||||
mode:
|
||||
type: string
|
||||
description: >
|
||||
Transmission mode
|
||||
* "1200 AFSK"
|
||||
rfBandwidth:
|
||||
type: number
|
||||
format: float
|
||||
fmDeviation:
|
||||
type: number
|
||||
format: float
|
||||
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
|
|
@ -0,0 +1,87 @@
|
|||
StarTrackerSettings:
|
||||
description: "Star Tracker settings"
|
||||
properties:
|
||||
target:
|
||||
description: "Target object (Sun, Moon or Custom)"
|
||||
type: string
|
||||
ra:
|
||||
description: "Right ascension of custom target"
|
||||
type: string
|
||||
dec:
|
||||
description: "Declination of custom target"
|
||||
type: string
|
||||
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
|
||||
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
|
||||
refraction:
|
||||
description: "Atmospheric refraction correction (None or Saemundsson)"
|
||||
type: string
|
||||
pressure:
|
||||
description: "Air pressure in millibars, for refraction"
|
||||
type: number
|
||||
format: float
|
||||
temperature:
|
||||
description: "Air temperature in Celsuis, for refraction"
|
||||
type: number
|
||||
format: float
|
||||
humidity:
|
||||
description: "Relative humidity in %, for refraction"
|
||||
type: number
|
||||
format: float
|
||||
heightAboveSeaLevel:
|
||||
description: "Height above sea level in metres of observation/antenna location"
|
||||
type: number
|
||||
format: float
|
||||
temperatureLapseRate:
|
||||
description: "Temperature lapse rate in K/km"
|
||||
type: number
|
||||
format: float
|
||||
frequency:
|
||||
description: "Frequency of radio waves being observed in MHz"
|
||||
type: number
|
||||
format: float
|
||||
stellariumServerEnabled:
|
||||
descrption: "Enable Stellarium server (1 for yes, 0 for no)"
|
||||
type: integer
|
||||
stellariumPort:
|
||||
description: "IP port number for Stellarium server to listen on (Default is 10001)."
|
||||
type: integer
|
||||
updatePeriod:
|
||||
description: "Time in seconds between each calculation of the target's position"
|
||||
type: number
|
||||
format: float
|
||||
epoch:
|
||||
description: "Epoch for RA and Dec (J2000 or JNOW)"
|
||||
type: string
|
||||
drawSunOnMap:
|
||||
description: "Draw the overhead position of the Sun on the Map (1 for yes, 0 for no)"
|
||||
type: integer
|
||||
drawMoonOnMap:
|
||||
description: "Draw the overhead position of the Moon on the Map (1 for yes, 0 for no)"
|
||||
type: integer
|
||||
drawStarOnMap:
|
||||
description: "Draw the overhead position of the target Star on the Map (1 for yes, 0 for no)"
|
||||
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
|
||||
reverseAPIDeviceIndex:
|
||||
type: integer
|
||||
reverseAPIChannelIndex:
|
||||
type: integer
|
|
@ -2744,7 +2744,7 @@ definitions:
|
|||
- longitude
|
||||
properties:
|
||||
latitude:
|
||||
description: "Lautitude in decimal degrees positive to the north"
|
||||
description: "Latitude in decimal degrees positive to the north"
|
||||
type: number
|
||||
format: float
|
||||
longitude:
|
||||
|
@ -2818,6 +2818,25 @@ definitions:
|
|||
description: "Serial device name or server address"
|
||||
type: string
|
||||
|
||||
MapItem:
|
||||
$ref: "http://swgserver:8081/api/swagger/include/Map.yaml#/MapItem"
|
||||
|
||||
# This isn't in GS232Controller, as it may eventually be used by other controllers or features
|
||||
TargetAzimuthElevation:
|
||||
description: "A target azimuth and elevation"
|
||||
properties:
|
||||
name:
|
||||
descrption: "The name of the target"
|
||||
type: string
|
||||
azimuth:
|
||||
descrption: "The azimuth angle in degrees to the target"
|
||||
type: number
|
||||
format: float
|
||||
elevation:
|
||||
descrption: "The elevation angle in degrees to the target"
|
||||
type: number
|
||||
format: float
|
||||
|
||||
Presets:
|
||||
description: "Settings presets"
|
||||
required:
|
||||
|
|
|
@ -1062,6 +1062,51 @@ margin-bottom: 20px;
|
|||
}
|
||||
},
|
||||
"description" : "AMMod"
|
||||
};
|
||||
defs.APRSSettings = {
|
||||
"properties" : {
|
||||
"igateServer" : {
|
||||
"type" : "string"
|
||||
},
|
||||
"igatePort" : {
|
||||
"type" : "integer"
|
||||
},
|
||||
"igateCallsign" : {
|
||||
"type" : "string"
|
||||
},
|
||||
"igatePasscode" : {
|
||||
"type" : "string"
|
||||
},
|
||||
"igateFilter" : {
|
||||
"type" : "string"
|
||||
},
|
||||
"igateEnabled" : {
|
||||
"type" : "integer"
|
||||
},
|
||||
"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" : "APRS settings"
|
||||
};
|
||||
defs.ATVDemodSettings = {
|
||||
"properties" : {
|
||||
|
@ -2674,6 +2719,9 @@ margin-bottom: 20px;
|
|||
"LocalSourceSettings" : {
|
||||
"$ref" : "#/definitions/LocalSourceSettings"
|
||||
},
|
||||
"PacketDemodSettings" : {
|
||||
"$ref" : "#/definitions/PacketDemodSettings"
|
||||
},
|
||||
"PacketModSettings" : {
|
||||
"$ref" : "#/definitions/PacketModSettings"
|
||||
},
|
||||
|
@ -4018,6 +4066,9 @@ margin-bottom: 20px;
|
|||
"AFCActions" : {
|
||||
"$ref" : "#/definitions/AFCActions"
|
||||
},
|
||||
"MapActions" : {
|
||||
"$ref" : "#/definitions/MapActions"
|
||||
},
|
||||
"SimplePTTActions" : {
|
||||
"$ref" : "#/definitions/SimplePTTActions"
|
||||
}
|
||||
|
@ -4122,15 +4173,24 @@ margin-bottom: 20px;
|
|||
"AFCSettings" : {
|
||||
"$ref" : "#/definitions/AFCSettings"
|
||||
},
|
||||
"APRSSettings" : {
|
||||
"$ref" : "#/definitions/APRSSettings"
|
||||
},
|
||||
"DemodAnalyzerSettings" : {
|
||||
"$ref" : "#/definitions/DemodAnalyzerSettings"
|
||||
},
|
||||
"GS232ControllerSettings" : {
|
||||
"$ref" : "#/definitions/GS232ControllerSettings"
|
||||
},
|
||||
"MapSettings" : {
|
||||
"$ref" : "#/definitions/MapSettings"
|
||||
},
|
||||
"RigCtlServerSettings" : {
|
||||
"$ref" : "#/definitions/RigCtlServerSettings"
|
||||
},
|
||||
"StarTrackerSettings" : {
|
||||
"$ref" : "#/definitions/StarTrackerSettings"
|
||||
},
|
||||
"SimplePTTSettings" : {
|
||||
"$ref" : "#/definitions/SimplePTTSettings"
|
||||
},
|
||||
|
@ -4867,7 +4927,20 @@ margin-bottom: 20px;
|
|||
"description" : "The baud rate to use for the serial connection to the GS-232 controller"
|
||||
},
|
||||
"track" : {
|
||||
"type" : "integer"
|
||||
"type" : "integer",
|
||||
"description" : "Track a target where azimuth and elevation are determined by another plugin (1 for yes, 0 for no)"
|
||||
},
|
||||
"target" : {
|
||||
"type" : "string",
|
||||
"description" : "Identifier of the channel or feature plugin providing target azimuth and elevation (E.g. R0:0 ADSBDemod)"
|
||||
},
|
||||
"azimuthOffset" : {
|
||||
"type" : "integer",
|
||||
"description" : "Azimuth offset in degrees"
|
||||
},
|
||||
"elevationOffset" : {
|
||||
"type" : "integer",
|
||||
"description" : "Elevation offset in degrees"
|
||||
},
|
||||
"title" : {
|
||||
"type" : "string"
|
||||
|
@ -4875,12 +4948,6 @@ margin-bottom: 20px;
|
|||
"rgbColor" : {
|
||||
"type" : "integer"
|
||||
},
|
||||
"deviceIndex" : {
|
||||
"type" : "integer"
|
||||
},
|
||||
"channelIndex" : {
|
||||
"type" : "integer"
|
||||
},
|
||||
"useReverseAPI" : {
|
||||
"type" : "integer",
|
||||
"description" : "Synchronize with reverse API (1 for yes, 0 for no)"
|
||||
|
@ -6156,7 +6223,7 @@ margin-bottom: 20px;
|
|||
"latitude" : {
|
||||
"type" : "number",
|
||||
"format" : "float",
|
||||
"description" : "Lautitude in decimal degrees positive to the north"
|
||||
"description" : "Latitude in decimal degrees positive to the north"
|
||||
},
|
||||
"longitude" : {
|
||||
"type" : "number",
|
||||
|
@ -6186,6 +6253,116 @@ margin-bottom: 20px;
|
|||
}
|
||||
},
|
||||
"description" : "Logging parameters setting"
|
||||
};
|
||||
defs.MapActions = {
|
||||
"properties" : {
|
||||
"find" : {
|
||||
"type" : "string",
|
||||
"description" : "The name of the item or the location to centre the map on"
|
||||
}
|
||||
},
|
||||
"description" : "Map"
|
||||
};
|
||||
defs.MapItem = {
|
||||
"required" : [ "name" ],
|
||||
"properties" : {
|
||||
"name" : {
|
||||
"type" : "string",
|
||||
"description" : "A name for the item"
|
||||
},
|
||||
"image" : {
|
||||
"type" : "string",
|
||||
"description" : "Filename or URL of image to draw on the map"
|
||||
},
|
||||
"imageRotation" : {
|
||||
"type" : "integer",
|
||||
"description" : "Angle to rotate the image by"
|
||||
},
|
||||
"imageFixedSize" : {
|
||||
"type" : "integer",
|
||||
"description" : "Keep the image the same size, regardless of map zoom level (1 for yes, 0 for no)"
|
||||
},
|
||||
"text" : {
|
||||
"type" : "string"
|
||||
},
|
||||
"latitude" : {
|
||||
"type" : "number",
|
||||
"format" : "float",
|
||||
"description" : "Latitude in decimal degrees, positive to the north"
|
||||
},
|
||||
"longitude" : {
|
||||
"type" : "number",
|
||||
"format" : "float",
|
||||
"description" : "Longitude in decimal degrees, positive to the east"
|
||||
}
|
||||
},
|
||||
"description" : "An item to draw on the map. Set image to an empty string to remove item from the map."
|
||||
};
|
||||
defs.MapItem_2 = {
|
||||
"required" : [ "name" ],
|
||||
"properties" : {
|
||||
"name" : {
|
||||
"type" : "string",
|
||||
"description" : "A name for the item"
|
||||
},
|
||||
"image" : {
|
||||
"type" : "string",
|
||||
"description" : "Filename or URL of image to draw on the map"
|
||||
},
|
||||
"imageRotation" : {
|
||||
"type" : "integer",
|
||||
"description" : "Angle to rotate the image by"
|
||||
},
|
||||
"imageFixedSize" : {
|
||||
"type" : "integer",
|
||||
"description" : "Keep the image the same size, regardless of map zoom level (1 for yes, 0 for no)"
|
||||
},
|
||||
"text" : {
|
||||
"type" : "string"
|
||||
},
|
||||
"latitude" : {
|
||||
"type" : "number",
|
||||
"format" : "float",
|
||||
"description" : "Latitude in decimal degrees, positive to the north"
|
||||
},
|
||||
"longitude" : {
|
||||
"type" : "number",
|
||||
"format" : "float",
|
||||
"description" : "Longitude in decimal degrees, positive to the east"
|
||||
}
|
||||
},
|
||||
"description" : "An item to draw on the map. Set image to an empty string to remove item from the map."
|
||||
};
|
||||
defs.MapSettings = {
|
||||
"properties" : {
|
||||
"displayNames" : {
|
||||
"type" : "integer",
|
||||
"description" : "Display object names on the map (1 for yes, 0 for no)"
|
||||
},
|
||||
"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" : "Map"
|
||||
};
|
||||
defs.MetisMISOSettings = {
|
||||
"properties" : {
|
||||
|
@ -6554,6 +6731,53 @@ margin-bottom: 20px;
|
|||
}
|
||||
},
|
||||
"description" : "Enumeration with name for values"
|
||||
};
|
||||
defs.PacketDemodSettings = {
|
||||
"properties" : {
|
||||
"inputFrequencyOffset" : {
|
||||
"type" : "integer",
|
||||
"format" : "int64"
|
||||
},
|
||||
"mode" : {
|
||||
"type" : "string",
|
||||
"description" : "Transmission mode\n * \"1200 AFSK\"\n"
|
||||
},
|
||||
"rfBandwidth" : {
|
||||
"type" : "number",
|
||||
"format" : "float"
|
||||
},
|
||||
"fmDeviation" : {
|
||||
"type" : "number",
|
||||
"format" : "float"
|
||||
},
|
||||
"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" : "PacketDemod"
|
||||
};
|
||||
defs.PacketModActions = {
|
||||
"properties" : {
|
||||
|
@ -8751,6 +8975,121 @@ margin-bottom: 20px;
|
|||
"type" : "integer"
|
||||
}
|
||||
}
|
||||
};
|
||||
defs.StarTrackerSettings = {
|
||||
"properties" : {
|
||||
"target" : {
|
||||
"type" : "string",
|
||||
"description" : "Target object (Sun, Moon or Custom)"
|
||||
},
|
||||
"ra" : {
|
||||
"type" : "string",
|
||||
"description" : "Right ascension of custom target"
|
||||
},
|
||||
"dec" : {
|
||||
"type" : "string",
|
||||
"description" : "Declination of custom target"
|
||||
},
|
||||
"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"
|
||||
},
|
||||
"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."
|
||||
},
|
||||
"refraction" : {
|
||||
"type" : "string",
|
||||
"description" : "Atmospheric refraction correction (None or Saemundsson)"
|
||||
},
|
||||
"pressure" : {
|
||||
"type" : "number",
|
||||
"format" : "float",
|
||||
"description" : "Air pressure in millibars, for refraction"
|
||||
},
|
||||
"temperature" : {
|
||||
"type" : "number",
|
||||
"format" : "float",
|
||||
"description" : "Air temperature in Celsuis, for refraction"
|
||||
},
|
||||
"humidity" : {
|
||||
"type" : "number",
|
||||
"format" : "float",
|
||||
"description" : "Relative humidity in %, for refraction"
|
||||
},
|
||||
"heightAboveSeaLevel" : {
|
||||
"type" : "number",
|
||||
"format" : "float",
|
||||
"description" : "Height above sea level in metres of observation/antenna location"
|
||||
},
|
||||
"temperatureLapseRate" : {
|
||||
"type" : "number",
|
||||
"format" : "float",
|
||||
"description" : "Temperature lapse rate in K/km"
|
||||
},
|
||||
"frequency" : {
|
||||
"type" : "number",
|
||||
"format" : "float",
|
||||
"description" : "Frequency of radio waves being observed in MHz"
|
||||
},
|
||||
"stellariumServerEnabled" : {
|
||||
"type" : "integer"
|
||||
},
|
||||
"stellariumPort" : {
|
||||
"type" : "integer",
|
||||
"description" : "IP port number for Stellarium server to listen on (Default is 10001)."
|
||||
},
|
||||
"updatePeriod" : {
|
||||
"type" : "number",
|
||||
"format" : "float",
|
||||
"description" : "Time in seconds between each calculation of the target's position"
|
||||
},
|
||||
"epoch" : {
|
||||
"type" : "string",
|
||||
"description" : "Epoch for RA and Dec (J2000 or JNOW)"
|
||||
},
|
||||
"drawSunOnMap" : {
|
||||
"type" : "integer",
|
||||
"description" : "Draw the overhead position of the Sun on the Map (1 for yes, 0 for no)"
|
||||
},
|
||||
"drawMoonOnMap" : {
|
||||
"type" : "integer",
|
||||
"description" : "Draw the overhead position of the Moon on the Map (1 for yes, 0 for no)"
|
||||
},
|
||||
"drawStarOnMap" : {
|
||||
"type" : "integer",
|
||||
"description" : "Draw the overhead position of the target Star on the Map (1 for yes, 0 for no)"
|
||||
},
|
||||
"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" : "Star Tracker settings"
|
||||
};
|
||||
defs.SuccessResponse = {
|
||||
"required" : [ "message" ],
|
||||
|
@ -8759,6 +9098,22 @@ margin-bottom: 20px;
|
|||
"type" : "string"
|
||||
}
|
||||
}
|
||||
};
|
||||
defs.TargetAzimuthElevation = {
|
||||
"properties" : {
|
||||
"name" : {
|
||||
"type" : "string"
|
||||
},
|
||||
"azimuth" : {
|
||||
"type" : "number",
|
||||
"format" : "float"
|
||||
},
|
||||
"elevation" : {
|
||||
"type" : "number",
|
||||
"format" : "float"
|
||||
}
|
||||
},
|
||||
"description" : "A target azimuth and elevation"
|
||||
};
|
||||
defs.TestMISettings = {
|
||||
"properties" : {
|
||||
|
@ -44917,7 +45272,7 @@ except ApiException as e:
|
|||
</div>
|
||||
<div id="generator">
|
||||
<div class="content">
|
||||
Generated 2020-12-20T18:34:47.837+01:00
|
||||
Generated 2021-01-13T17:40:49.583+01:00
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -0,0 +1,396 @@
|
|||
/**
|
||||
* 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 "SWGAPRSSettings.h"
|
||||
|
||||
#include "SWGHelpers.h"
|
||||
|
||||
#include <QJsonDocument>
|
||||
#include <QJsonArray>
|
||||
#include <QObject>
|
||||
#include <QDebug>
|
||||
|
||||
namespace SWGSDRangel {
|
||||
|
||||
SWGAPRSSettings::SWGAPRSSettings(QString* json) {
|
||||
init();
|
||||
this->fromJson(*json);
|
||||
}
|
||||
|
||||
SWGAPRSSettings::SWGAPRSSettings() {
|
||||
igate_server = nullptr;
|
||||
m_igate_server_isSet = false;
|
||||
igate_port = 0;
|
||||
m_igate_port_isSet = false;
|
||||
igate_callsign = nullptr;
|
||||
m_igate_callsign_isSet = false;
|
||||
igate_passcode = nullptr;
|
||||
m_igate_passcode_isSet = false;
|
||||
igate_filter = nullptr;
|
||||
m_igate_filter_isSet = false;
|
||||
igate_enabled = 0;
|
||||
m_igate_enabled_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;
|
||||
}
|
||||
|
||||
SWGAPRSSettings::~SWGAPRSSettings() {
|
||||
this->cleanup();
|
||||
}
|
||||
|
||||
void
|
||||
SWGAPRSSettings::init() {
|
||||
igate_server = new QString("");
|
||||
m_igate_server_isSet = false;
|
||||
igate_port = 0;
|
||||
m_igate_port_isSet = false;
|
||||
igate_callsign = new QString("");
|
||||
m_igate_callsign_isSet = false;
|
||||
igate_passcode = new QString("");
|
||||
m_igate_passcode_isSet = false;
|
||||
igate_filter = new QString("");
|
||||
m_igate_filter_isSet = false;
|
||||
igate_enabled = 0;
|
||||
m_igate_enabled_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
|
||||
SWGAPRSSettings::cleanup() {
|
||||
if(igate_server != nullptr) {
|
||||
delete igate_server;
|
||||
}
|
||||
|
||||
if(igate_callsign != nullptr) {
|
||||
delete igate_callsign;
|
||||
}
|
||||
if(igate_passcode != nullptr) {
|
||||
delete igate_passcode;
|
||||
}
|
||||
if(igate_filter != nullptr) {
|
||||
delete igate_filter;
|
||||
}
|
||||
|
||||
if(title != nullptr) {
|
||||
delete title;
|
||||
}
|
||||
|
||||
|
||||
if(reverse_api_address != nullptr) {
|
||||
delete reverse_api_address;
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
SWGAPRSSettings*
|
||||
SWGAPRSSettings::fromJson(QString &json) {
|
||||
QByteArray array (json.toStdString().c_str());
|
||||
QJsonDocument doc = QJsonDocument::fromJson(array);
|
||||
QJsonObject jsonObject = doc.object();
|
||||
this->fromJsonObject(jsonObject);
|
||||
return this;
|
||||
}
|
||||
|
||||
void
|
||||
SWGAPRSSettings::fromJsonObject(QJsonObject &pJson) {
|
||||
::SWGSDRangel::setValue(&igate_server, pJson["igateServer"], "QString", "QString");
|
||||
|
||||
::SWGSDRangel::setValue(&igate_port, pJson["igatePort"], "qint32", "");
|
||||
|
||||
::SWGSDRangel::setValue(&igate_callsign, pJson["igateCallsign"], "QString", "QString");
|
||||
|
||||
::SWGSDRangel::setValue(&igate_passcode, pJson["igatePasscode"], "QString", "QString");
|
||||
|
||||
::SWGSDRangel::setValue(&igate_filter, pJson["igateFilter"], "QString", "QString");
|
||||
|
||||
::SWGSDRangel::setValue(&igate_enabled, pJson["igateEnabled"], "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_device_index, pJson["reverseAPIDeviceIndex"], "qint32", "");
|
||||
|
||||
::SWGSDRangel::setValue(&reverse_api_channel_index, pJson["reverseAPIChannelIndex"], "qint32", "");
|
||||
|
||||
}
|
||||
|
||||
QString
|
||||
SWGAPRSSettings::asJson ()
|
||||
{
|
||||
QJsonObject* obj = this->asJsonObject();
|
||||
|
||||
QJsonDocument doc(*obj);
|
||||
QByteArray bytes = doc.toJson();
|
||||
delete obj;
|
||||
return QString(bytes);
|
||||
}
|
||||
|
||||
QJsonObject*
|
||||
SWGAPRSSettings::asJsonObject() {
|
||||
QJsonObject* obj = new QJsonObject();
|
||||
if(igate_server != nullptr && *igate_server != QString("")){
|
||||
toJsonValue(QString("igateServer"), igate_server, obj, QString("QString"));
|
||||
}
|
||||
if(m_igate_port_isSet){
|
||||
obj->insert("igatePort", QJsonValue(igate_port));
|
||||
}
|
||||
if(igate_callsign != nullptr && *igate_callsign != QString("")){
|
||||
toJsonValue(QString("igateCallsign"), igate_callsign, obj, QString("QString"));
|
||||
}
|
||||
if(igate_passcode != nullptr && *igate_passcode != QString("")){
|
||||
toJsonValue(QString("igatePasscode"), igate_passcode, obj, QString("QString"));
|
||||
}
|
||||
if(igate_filter != nullptr && *igate_filter != QString("")){
|
||||
toJsonValue(QString("igateFilter"), igate_filter, obj, QString("QString"));
|
||||
}
|
||||
if(m_igate_enabled_isSet){
|
||||
obj->insert("igateEnabled", QJsonValue(igate_enabled));
|
||||
}
|
||||
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;
|
||||
}
|
||||
|
||||
QString*
|
||||
SWGAPRSSettings::getIgateServer() {
|
||||
return igate_server;
|
||||
}
|
||||
void
|
||||
SWGAPRSSettings::setIgateServer(QString* igate_server) {
|
||||
this->igate_server = igate_server;
|
||||
this->m_igate_server_isSet = true;
|
||||
}
|
||||
|
||||
qint32
|
||||
SWGAPRSSettings::getIgatePort() {
|
||||
return igate_port;
|
||||
}
|
||||
void
|
||||
SWGAPRSSettings::setIgatePort(qint32 igate_port) {
|
||||
this->igate_port = igate_port;
|
||||
this->m_igate_port_isSet = true;
|
||||
}
|
||||
|
||||
QString*
|
||||
SWGAPRSSettings::getIgateCallsign() {
|
||||
return igate_callsign;
|
||||
}
|
||||
void
|
||||
SWGAPRSSettings::setIgateCallsign(QString* igate_callsign) {
|
||||
this->igate_callsign = igate_callsign;
|
||||
this->m_igate_callsign_isSet = true;
|
||||
}
|
||||
|
||||
QString*
|
||||
SWGAPRSSettings::getIgatePasscode() {
|
||||
return igate_passcode;
|
||||
}
|
||||
void
|
||||
SWGAPRSSettings::setIgatePasscode(QString* igate_passcode) {
|
||||
this->igate_passcode = igate_passcode;
|
||||
this->m_igate_passcode_isSet = true;
|
||||
}
|
||||
|
||||
QString*
|
||||
SWGAPRSSettings::getIgateFilter() {
|
||||
return igate_filter;
|
||||
}
|
||||
void
|
||||
SWGAPRSSettings::setIgateFilter(QString* igate_filter) {
|
||||
this->igate_filter = igate_filter;
|
||||
this->m_igate_filter_isSet = true;
|
||||
}
|
||||
|
||||
qint32
|
||||
SWGAPRSSettings::getIgateEnabled() {
|
||||
return igate_enabled;
|
||||
}
|
||||
void
|
||||
SWGAPRSSettings::setIgateEnabled(qint32 igate_enabled) {
|
||||
this->igate_enabled = igate_enabled;
|
||||
this->m_igate_enabled_isSet = true;
|
||||
}
|
||||
|
||||
QString*
|
||||
SWGAPRSSettings::getTitle() {
|
||||
return title;
|
||||
}
|
||||
void
|
||||
SWGAPRSSettings::setTitle(QString* title) {
|
||||
this->title = title;
|
||||
this->m_title_isSet = true;
|
||||
}
|
||||
|
||||
qint32
|
||||
SWGAPRSSettings::getRgbColor() {
|
||||
return rgb_color;
|
||||
}
|
||||
void
|
||||
SWGAPRSSettings::setRgbColor(qint32 rgb_color) {
|
||||
this->rgb_color = rgb_color;
|
||||
this->m_rgb_color_isSet = true;
|
||||
}
|
||||
|
||||
qint32
|
||||
SWGAPRSSettings::getUseReverseApi() {
|
||||
return use_reverse_api;
|
||||
}
|
||||
void
|
||||
SWGAPRSSettings::setUseReverseApi(qint32 use_reverse_api) {
|
||||
this->use_reverse_api = use_reverse_api;
|
||||
this->m_use_reverse_api_isSet = true;
|
||||
}
|
||||
|
||||
QString*
|
||||
SWGAPRSSettings::getReverseApiAddress() {
|
||||
return reverse_api_address;
|
||||
}
|
||||
void
|
||||
SWGAPRSSettings::setReverseApiAddress(QString* reverse_api_address) {
|
||||
this->reverse_api_address = reverse_api_address;
|
||||
this->m_reverse_api_address_isSet = true;
|
||||
}
|
||||
|
||||
qint32
|
||||
SWGAPRSSettings::getReverseApiPort() {
|
||||
return reverse_api_port;
|
||||
}
|
||||
void
|
||||
SWGAPRSSettings::setReverseApiPort(qint32 reverse_api_port) {
|
||||
this->reverse_api_port = reverse_api_port;
|
||||
this->m_reverse_api_port_isSet = true;
|
||||
}
|
||||
|
||||
qint32
|
||||
SWGAPRSSettings::getReverseApiDeviceIndex() {
|
||||
return reverse_api_device_index;
|
||||
}
|
||||
void
|
||||
SWGAPRSSettings::setReverseApiDeviceIndex(qint32 reverse_api_device_index) {
|
||||
this->reverse_api_device_index = reverse_api_device_index;
|
||||
this->m_reverse_api_device_index_isSet = true;
|
||||
}
|
||||
|
||||
qint32
|
||||
SWGAPRSSettings::getReverseApiChannelIndex() {
|
||||
return reverse_api_channel_index;
|
||||
}
|
||||
void
|
||||
SWGAPRSSettings::setReverseApiChannelIndex(qint32 reverse_api_channel_index) {
|
||||
this->reverse_api_channel_index = reverse_api_channel_index;
|
||||
this->m_reverse_api_channel_index_isSet = true;
|
||||
}
|
||||
|
||||
|
||||
bool
|
||||
SWGAPRSSettings::isSet(){
|
||||
bool isObjectUpdated = false;
|
||||
do{
|
||||
if(igate_server && *igate_server != QString("")){
|
||||
isObjectUpdated = true; break;
|
||||
}
|
||||
if(m_igate_port_isSet){
|
||||
isObjectUpdated = true; break;
|
||||
}
|
||||
if(igate_callsign && *igate_callsign != QString("")){
|
||||
isObjectUpdated = true; break;
|
||||
}
|
||||
if(igate_passcode && *igate_passcode != QString("")){
|
||||
isObjectUpdated = true; break;
|
||||
}
|
||||
if(igate_filter && *igate_filter != QString("")){
|
||||
isObjectUpdated = true; break;
|
||||
}
|
||||
if(m_igate_enabled_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_device_index_isSet){
|
||||
isObjectUpdated = true; break;
|
||||
}
|
||||
if(m_reverse_api_channel_index_isSet){
|
||||
isObjectUpdated = true; break;
|
||||
}
|
||||
}while(false);
|
||||
return isObjectUpdated;
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,131 @@
|
|||
/**
|
||||
* SDRangel
|
||||
* This is the web REST/JSON API of SDRangel SDR software. SDRangel is an Open Source Qt5/OpenGL 3.0+ (4.3+ in Windows) GUI and server Software Defined Radio and signal analyzer in software. It supports Airspy, BladeRF, HackRF, LimeSDR, PlutoSDR, RTL-SDR, SDRplay RSP1 and FunCube --- Limitations and specifcities: * In SDRangel GUI the first Rx device set cannot be deleted. Conversely the server starts with no device sets and its number of device sets can be reduced to zero by as many calls as necessary to /sdrangel/deviceset with DELETE method. * Preset import and export from/to file is a server only feature. * Device set focus is a GUI only feature. * The following channels are not implemented (status 501 is returned): ATV and DATV demodulators, Channel Analyzer NG, LoRa demodulator * The device settings and report structures contains only the sub-structure corresponding to the device type. The DeviceSettings and DeviceReport structures documented here shows all of them but only one will be or should be present at a time * The channel settings and report structures contains only the sub-structure corresponding to the channel type. The ChannelSettings and ChannelReport structures documented here shows all of them but only one will be or should be present at a time ---
|
||||
*
|
||||
* OpenAPI spec version: 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.
|
||||
*/
|
||||
|
||||
/*
|
||||
* SWGAPRSSettings.h
|
||||
*
|
||||
* APRS settings
|
||||
*/
|
||||
|
||||
#ifndef SWGAPRSSettings_H_
|
||||
#define SWGAPRSSettings_H_
|
||||
|
||||
#include <QJsonObject>
|
||||
|
||||
|
||||
#include <QString>
|
||||
|
||||
#include "SWGObject.h"
|
||||
#include "export.h"
|
||||
|
||||
namespace SWGSDRangel {
|
||||
|
||||
class SWG_API SWGAPRSSettings: public SWGObject {
|
||||
public:
|
||||
SWGAPRSSettings();
|
||||
SWGAPRSSettings(QString* json);
|
||||
virtual ~SWGAPRSSettings();
|
||||
void init();
|
||||
void cleanup();
|
||||
|
||||
virtual QString asJson () override;
|
||||
virtual QJsonObject* asJsonObject() override;
|
||||
virtual void fromJsonObject(QJsonObject &json) override;
|
||||
virtual SWGAPRSSettings* fromJson(QString &jsonString) override;
|
||||
|
||||
QString* getIgateServer();
|
||||
void setIgateServer(QString* igate_server);
|
||||
|
||||
qint32 getIgatePort();
|
||||
void setIgatePort(qint32 igate_port);
|
||||
|
||||
QString* getIgateCallsign();
|
||||
void setIgateCallsign(QString* igate_callsign);
|
||||
|
||||
QString* getIgatePasscode();
|
||||
void setIgatePasscode(QString* igate_passcode);
|
||||
|
||||
QString* getIgateFilter();
|
||||
void setIgateFilter(QString* igate_filter);
|
||||
|
||||
qint32 getIgateEnabled();
|
||||
void setIgateEnabled(qint32 igate_enabled);
|
||||
|
||||
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:
|
||||
QString* igate_server;
|
||||
bool m_igate_server_isSet;
|
||||
|
||||
qint32 igate_port;
|
||||
bool m_igate_port_isSet;
|
||||
|
||||
QString* igate_callsign;
|
||||
bool m_igate_callsign_isSet;
|
||||
|
||||
QString* igate_passcode;
|
||||
bool m_igate_passcode_isSet;
|
||||
|
||||
QString* igate_filter;
|
||||
bool m_igate_filter_isSet;
|
||||
|
||||
qint32 igate_enabled;
|
||||
bool m_igate_enabled_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 /* SWGAPRSSettings_H_ */
|
|
@ -82,6 +82,8 @@ SWGChannelSettings::SWGChannelSettings() {
|
|||
m_local_sink_settings_isSet = false;
|
||||
local_source_settings = nullptr;
|
||||
m_local_source_settings_isSet = false;
|
||||
packet_demod_settings = nullptr;
|
||||
m_packet_demod_settings_isSet = false;
|
||||
packet_mod_settings = nullptr;
|
||||
m_packet_mod_settings_isSet = false;
|
||||
remote_sink_settings = nullptr;
|
||||
|
@ -168,6 +170,8 @@ SWGChannelSettings::init() {
|
|||
m_local_sink_settings_isSet = false;
|
||||
local_source_settings = new SWGLocalSourceSettings();
|
||||
m_local_source_settings_isSet = false;
|
||||
packet_demod_settings = new SWGPacketDemodSettings();
|
||||
m_packet_demod_settings_isSet = false;
|
||||
packet_mod_settings = new SWGPacketModSettings();
|
||||
m_packet_mod_settings_isSet = false;
|
||||
remote_sink_settings = new SWGRemoteSinkSettings();
|
||||
|
@ -271,6 +275,9 @@ SWGChannelSettings::cleanup() {
|
|||
if(local_source_settings != nullptr) {
|
||||
delete local_source_settings;
|
||||
}
|
||||
if(packet_demod_settings != nullptr) {
|
||||
delete packet_demod_settings;
|
||||
}
|
||||
if(packet_mod_settings != nullptr) {
|
||||
delete packet_mod_settings;
|
||||
}
|
||||
|
@ -374,6 +381,8 @@ SWGChannelSettings::fromJsonObject(QJsonObject &pJson) {
|
|||
|
||||
::SWGSDRangel::setValue(&local_source_settings, pJson["LocalSourceSettings"], "SWGLocalSourceSettings", "SWGLocalSourceSettings");
|
||||
|
||||
::SWGSDRangel::setValue(&packet_demod_settings, pJson["PacketDemodSettings"], "SWGPacketDemodSettings", "SWGPacketDemodSettings");
|
||||
|
||||
::SWGSDRangel::setValue(&packet_mod_settings, pJson["PacketModSettings"], "SWGPacketModSettings", "SWGPacketModSettings");
|
||||
|
||||
::SWGSDRangel::setValue(&remote_sink_settings, pJson["RemoteSinkSettings"], "SWGRemoteSinkSettings", "SWGRemoteSinkSettings");
|
||||
|
@ -495,6 +504,9 @@ SWGChannelSettings::asJsonObject() {
|
|||
if((local_source_settings != nullptr) && (local_source_settings->isSet())){
|
||||
toJsonValue(QString("LocalSourceSettings"), local_source_settings, obj, QString("SWGLocalSourceSettings"));
|
||||
}
|
||||
if((packet_demod_settings != nullptr) && (packet_demod_settings->isSet())){
|
||||
toJsonValue(QString("PacketDemodSettings"), packet_demod_settings, obj, QString("SWGPacketDemodSettings"));
|
||||
}
|
||||
if((packet_mod_settings != nullptr) && (packet_mod_settings->isSet())){
|
||||
toJsonValue(QString("PacketModSettings"), packet_mod_settings, obj, QString("SWGPacketModSettings"));
|
||||
}
|
||||
|
@ -805,6 +817,16 @@ SWGChannelSettings::setLocalSourceSettings(SWGLocalSourceSettings* local_source_
|
|||
this->m_local_source_settings_isSet = true;
|
||||
}
|
||||
|
||||
SWGPacketDemodSettings*
|
||||
SWGChannelSettings::getPacketDemodSettings() {
|
||||
return packet_demod_settings;
|
||||
}
|
||||
void
|
||||
SWGChannelSettings::setPacketDemodSettings(SWGPacketDemodSettings* packet_demod_settings) {
|
||||
this->packet_demod_settings = packet_demod_settings;
|
||||
this->m_packet_demod_settings_isSet = true;
|
||||
}
|
||||
|
||||
SWGPacketModSettings*
|
||||
SWGChannelSettings::getPacketModSettings() {
|
||||
return packet_mod_settings;
|
||||
|
@ -1011,6 +1033,9 @@ SWGChannelSettings::isSet(){
|
|||
if(local_source_settings && local_source_settings->isSet()){
|
||||
isObjectUpdated = true; break;
|
||||
}
|
||||
if(packet_demod_settings && packet_demod_settings->isSet()){
|
||||
isObjectUpdated = true; break;
|
||||
}
|
||||
if(packet_mod_settings && packet_mod_settings->isSet()){
|
||||
isObjectUpdated = true; break;
|
||||
}
|
||||
|
|
|
@ -45,6 +45,7 @@
|
|||
#include "SWGLocalSourceSettings.h"
|
||||
#include "SWGNFMDemodSettings.h"
|
||||
#include "SWGNFMModSettings.h"
|
||||
#include "SWGPacketDemodSettings.h"
|
||||
#include "SWGPacketModSettings.h"
|
||||
#include "SWGRemoteSinkSettings.h"
|
||||
#include "SWGRemoteSourceSettings.h"
|
||||
|
@ -158,6 +159,9 @@ public:
|
|||
SWGLocalSourceSettings* getLocalSourceSettings();
|
||||
void setLocalSourceSettings(SWGLocalSourceSettings* local_source_settings);
|
||||
|
||||
SWGPacketDemodSettings* getPacketDemodSettings();
|
||||
void setPacketDemodSettings(SWGPacketDemodSettings* packet_demod_settings);
|
||||
|
||||
SWGPacketModSettings* getPacketModSettings();
|
||||
void setPacketModSettings(SWGPacketModSettings* packet_mod_settings);
|
||||
|
||||
|
@ -279,6 +283,9 @@ private:
|
|||
SWGLocalSourceSettings* local_source_settings;
|
||||
bool m_local_source_settings_isSet;
|
||||
|
||||
SWGPacketDemodSettings* packet_demod_settings;
|
||||
bool m_packet_demod_settings_isSet;
|
||||
|
||||
SWGPacketModSettings* packet_mod_settings;
|
||||
bool m_packet_mod_settings_isSet;
|
||||
|
||||
|
|
|
@ -36,6 +36,8 @@ SWGFeatureActions::SWGFeatureActions() {
|
|||
m_originator_feature_index_isSet = false;
|
||||
afc_actions = nullptr;
|
||||
m_afc_actions_isSet = false;
|
||||
map_actions = nullptr;
|
||||
m_map_actions_isSet = false;
|
||||
simple_ptt_actions = nullptr;
|
||||
m_simple_ptt_actions_isSet = false;
|
||||
}
|
||||
|
@ -54,6 +56,8 @@ SWGFeatureActions::init() {
|
|||
m_originator_feature_index_isSet = false;
|
||||
afc_actions = new SWGAFCActions();
|
||||
m_afc_actions_isSet = false;
|
||||
map_actions = new SWGMapActions();
|
||||
m_map_actions_isSet = false;
|
||||
simple_ptt_actions = new SWGSimplePTTActions();
|
||||
m_simple_ptt_actions_isSet = false;
|
||||
}
|
||||
|
@ -68,6 +72,9 @@ SWGFeatureActions::cleanup() {
|
|||
if(afc_actions != nullptr) {
|
||||
delete afc_actions;
|
||||
}
|
||||
if(map_actions != nullptr) {
|
||||
delete map_actions;
|
||||
}
|
||||
if(simple_ptt_actions != nullptr) {
|
||||
delete simple_ptt_actions;
|
||||
}
|
||||
|
@ -92,6 +99,8 @@ SWGFeatureActions::fromJsonObject(QJsonObject &pJson) {
|
|||
|
||||
::SWGSDRangel::setValue(&afc_actions, pJson["AFCActions"], "SWGAFCActions", "SWGAFCActions");
|
||||
|
||||
::SWGSDRangel::setValue(&map_actions, pJson["MapActions"], "SWGMapActions", "SWGMapActions");
|
||||
|
||||
::SWGSDRangel::setValue(&simple_ptt_actions, pJson["SimplePTTActions"], "SWGSimplePTTActions", "SWGSimplePTTActions");
|
||||
|
||||
}
|
||||
|
@ -122,6 +131,9 @@ SWGFeatureActions::asJsonObject() {
|
|||
if((afc_actions != nullptr) && (afc_actions->isSet())){
|
||||
toJsonValue(QString("AFCActions"), afc_actions, obj, QString("SWGAFCActions"));
|
||||
}
|
||||
if((map_actions != nullptr) && (map_actions->isSet())){
|
||||
toJsonValue(QString("MapActions"), map_actions, obj, QString("SWGMapActions"));
|
||||
}
|
||||
if((simple_ptt_actions != nullptr) && (simple_ptt_actions->isSet())){
|
||||
toJsonValue(QString("SimplePTTActions"), simple_ptt_actions, obj, QString("SWGSimplePTTActions"));
|
||||
}
|
||||
|
@ -169,6 +181,16 @@ SWGFeatureActions::setAfcActions(SWGAFCActions* afc_actions) {
|
|||
this->m_afc_actions_isSet = true;
|
||||
}
|
||||
|
||||
SWGMapActions*
|
||||
SWGFeatureActions::getMapActions() {
|
||||
return map_actions;
|
||||
}
|
||||
void
|
||||
SWGFeatureActions::setMapActions(SWGMapActions* map_actions) {
|
||||
this->map_actions = map_actions;
|
||||
this->m_map_actions_isSet = true;
|
||||
}
|
||||
|
||||
SWGSimplePTTActions*
|
||||
SWGFeatureActions::getSimplePttActions() {
|
||||
return simple_ptt_actions;
|
||||
|
@ -196,6 +218,9 @@ SWGFeatureActions::isSet(){
|
|||
if(afc_actions && afc_actions->isSet()){
|
||||
isObjectUpdated = true; break;
|
||||
}
|
||||
if(map_actions && map_actions->isSet()){
|
||||
isObjectUpdated = true; break;
|
||||
}
|
||||
if(simple_ptt_actions && simple_ptt_actions->isSet()){
|
||||
isObjectUpdated = true; break;
|
||||
}
|
||||
|
|
|
@ -23,6 +23,7 @@
|
|||
|
||||
|
||||
#include "SWGAFCActions.h"
|
||||
#include "SWGMapActions.h"
|
||||
#include "SWGSimplePTTActions.h"
|
||||
#include <QString>
|
||||
|
||||
|
@ -56,6 +57,9 @@ public:
|
|||
SWGAFCActions* getAfcActions();
|
||||
void setAfcActions(SWGAFCActions* afc_actions);
|
||||
|
||||
SWGMapActions* getMapActions();
|
||||
void setMapActions(SWGMapActions* map_actions);
|
||||
|
||||
SWGSimplePTTActions* getSimplePttActions();
|
||||
void setSimplePttActions(SWGSimplePTTActions* simple_ptt_actions);
|
||||
|
||||
|
@ -75,6 +79,9 @@ private:
|
|||
SWGAFCActions* afc_actions;
|
||||
bool m_afc_actions_isSet;
|
||||
|
||||
SWGMapActions* map_actions;
|
||||
bool m_map_actions_isSet;
|
||||
|
||||
SWGSimplePTTActions* simple_ptt_actions;
|
||||
bool m_simple_ptt_actions_isSet;
|
||||
|
||||
|
|
|
@ -36,12 +36,18 @@ SWGFeatureSettings::SWGFeatureSettings() {
|
|||
m_originator_feature_index_isSet = false;
|
||||
afc_settings = nullptr;
|
||||
m_afc_settings_isSet = false;
|
||||
aprs_settings = nullptr;
|
||||
m_aprs_settings_isSet = false;
|
||||
demod_analyzer_settings = nullptr;
|
||||
m_demod_analyzer_settings_isSet = false;
|
||||
gs232_controller_settings = nullptr;
|
||||
m_gs232_controller_settings_isSet = false;
|
||||
map_settings = nullptr;
|
||||
m_map_settings_isSet = false;
|
||||
rig_ctl_server_settings = nullptr;
|
||||
m_rig_ctl_server_settings_isSet = false;
|
||||
star_tracker_settings = nullptr;
|
||||
m_star_tracker_settings_isSet = false;
|
||||
simple_ptt_settings = nullptr;
|
||||
m_simple_ptt_settings_isSet = false;
|
||||
vor_localizer_settings = nullptr;
|
||||
|
@ -62,12 +68,18 @@ SWGFeatureSettings::init() {
|
|||
m_originator_feature_index_isSet = false;
|
||||
afc_settings = new SWGAFCSettings();
|
||||
m_afc_settings_isSet = false;
|
||||
aprs_settings = new SWGAPRSSettings();
|
||||
m_aprs_settings_isSet = false;
|
||||
demod_analyzer_settings = new SWGDemodAnalyzerSettings();
|
||||
m_demod_analyzer_settings_isSet = false;
|
||||
gs232_controller_settings = new SWGGS232ControllerSettings();
|
||||
m_gs232_controller_settings_isSet = false;
|
||||
map_settings = new SWGMapSettings();
|
||||
m_map_settings_isSet = false;
|
||||
rig_ctl_server_settings = new SWGRigCtlServerSettings();
|
||||
m_rig_ctl_server_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;
|
||||
vor_localizer_settings = new SWGVORLocalizerSettings();
|
||||
|
@ -84,15 +96,24 @@ SWGFeatureSettings::cleanup() {
|
|||
if(afc_settings != nullptr) {
|
||||
delete afc_settings;
|
||||
}
|
||||
if(aprs_settings != nullptr) {
|
||||
delete aprs_settings;
|
||||
}
|
||||
if(demod_analyzer_settings != nullptr) {
|
||||
delete demod_analyzer_settings;
|
||||
}
|
||||
if(gs232_controller_settings != nullptr) {
|
||||
delete gs232_controller_settings;
|
||||
}
|
||||
if(map_settings != nullptr) {
|
||||
delete map_settings;
|
||||
}
|
||||
if(rig_ctl_server_settings != nullptr) {
|
||||
delete rig_ctl_server_settings;
|
||||
}
|
||||
if(star_tracker_settings != nullptr) {
|
||||
delete star_tracker_settings;
|
||||
}
|
||||
if(simple_ptt_settings != nullptr) {
|
||||
delete simple_ptt_settings;
|
||||
}
|
||||
|
@ -120,12 +141,18 @@ SWGFeatureSettings::fromJsonObject(QJsonObject &pJson) {
|
|||
|
||||
::SWGSDRangel::setValue(&afc_settings, pJson["AFCSettings"], "SWGAFCSettings", "SWGAFCSettings");
|
||||
|
||||
::SWGSDRangel::setValue(&aprs_settings, pJson["APRSSettings"], "SWGAPRSSettings", "SWGAPRSSettings");
|
||||
|
||||
::SWGSDRangel::setValue(&demod_analyzer_settings, pJson["DemodAnalyzerSettings"], "SWGDemodAnalyzerSettings", "SWGDemodAnalyzerSettings");
|
||||
|
||||
::SWGSDRangel::setValue(&gs232_controller_settings, pJson["GS232ControllerSettings"], "SWGGS232ControllerSettings", "SWGGS232ControllerSettings");
|
||||
|
||||
::SWGSDRangel::setValue(&map_settings, pJson["MapSettings"], "SWGMapSettings", "SWGMapSettings");
|
||||
|
||||
::SWGSDRangel::setValue(&rig_ctl_server_settings, pJson["RigCtlServerSettings"], "SWGRigCtlServerSettings", "SWGRigCtlServerSettings");
|
||||
|
||||
::SWGSDRangel::setValue(&star_tracker_settings, pJson["StarTrackerSettings"], "SWGStarTrackerSettings", "SWGStarTrackerSettings");
|
||||
|
||||
::SWGSDRangel::setValue(&simple_ptt_settings, pJson["SimplePTTSettings"], "SWGSimplePTTSettings", "SWGSimplePTTSettings");
|
||||
|
||||
::SWGSDRangel::setValue(&vor_localizer_settings, pJson["VORLocalizerSettings"], "SWGVORLocalizerSettings", "SWGVORLocalizerSettings");
|
||||
|
@ -158,15 +185,24 @@ SWGFeatureSettings::asJsonObject() {
|
|||
if((afc_settings != nullptr) && (afc_settings->isSet())){
|
||||
toJsonValue(QString("AFCSettings"), afc_settings, obj, QString("SWGAFCSettings"));
|
||||
}
|
||||
if((aprs_settings != nullptr) && (aprs_settings->isSet())){
|
||||
toJsonValue(QString("APRSSettings"), aprs_settings, obj, QString("SWGAPRSSettings"));
|
||||
}
|
||||
if((demod_analyzer_settings != nullptr) && (demod_analyzer_settings->isSet())){
|
||||
toJsonValue(QString("DemodAnalyzerSettings"), demod_analyzer_settings, obj, QString("SWGDemodAnalyzerSettings"));
|
||||
}
|
||||
if((gs232_controller_settings != nullptr) && (gs232_controller_settings->isSet())){
|
||||
toJsonValue(QString("GS232ControllerSettings"), gs232_controller_settings, obj, QString("SWGGS232ControllerSettings"));
|
||||
}
|
||||
if((map_settings != nullptr) && (map_settings->isSet())){
|
||||
toJsonValue(QString("MapSettings"), map_settings, obj, QString("SWGMapSettings"));
|
||||
}
|
||||
if((rig_ctl_server_settings != nullptr) && (rig_ctl_server_settings->isSet())){
|
||||
toJsonValue(QString("RigCtlServerSettings"), rig_ctl_server_settings, obj, QString("SWGRigCtlServerSettings"));
|
||||
}
|
||||
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"));
|
||||
}
|
||||
|
@ -217,6 +253,16 @@ SWGFeatureSettings::setAfcSettings(SWGAFCSettings* afc_settings) {
|
|||
this->m_afc_settings_isSet = true;
|
||||
}
|
||||
|
||||
SWGAPRSSettings*
|
||||
SWGFeatureSettings::getAprsSettings() {
|
||||
return aprs_settings;
|
||||
}
|
||||
void
|
||||
SWGFeatureSettings::setAprsSettings(SWGAPRSSettings* aprs_settings) {
|
||||
this->aprs_settings = aprs_settings;
|
||||
this->m_aprs_settings_isSet = true;
|
||||
}
|
||||
|
||||
SWGDemodAnalyzerSettings*
|
||||
SWGFeatureSettings::getDemodAnalyzerSettings() {
|
||||
return demod_analyzer_settings;
|
||||
|
@ -237,6 +283,16 @@ SWGFeatureSettings::setGs232ControllerSettings(SWGGS232ControllerSettings* gs232
|
|||
this->m_gs232_controller_settings_isSet = true;
|
||||
}
|
||||
|
||||
SWGMapSettings*
|
||||
SWGFeatureSettings::getMapSettings() {
|
||||
return map_settings;
|
||||
}
|
||||
void
|
||||
SWGFeatureSettings::setMapSettings(SWGMapSettings* map_settings) {
|
||||
this->map_settings = map_settings;
|
||||
this->m_map_settings_isSet = true;
|
||||
}
|
||||
|
||||
SWGRigCtlServerSettings*
|
||||
SWGFeatureSettings::getRigCtlServerSettings() {
|
||||
return rig_ctl_server_settings;
|
||||
|
@ -247,6 +303,16 @@ SWGFeatureSettings::setRigCtlServerSettings(SWGRigCtlServerSettings* rig_ctl_ser
|
|||
this->m_rig_ctl_server_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;
|
||||
|
@ -284,15 +350,24 @@ SWGFeatureSettings::isSet(){
|
|||
if(afc_settings && afc_settings->isSet()){
|
||||
isObjectUpdated = true; break;
|
||||
}
|
||||
if(aprs_settings && aprs_settings->isSet()){
|
||||
isObjectUpdated = true; break;
|
||||
}
|
||||
if(demod_analyzer_settings && demod_analyzer_settings->isSet()){
|
||||
isObjectUpdated = true; break;
|
||||
}
|
||||
if(gs232_controller_settings && gs232_controller_settings->isSet()){
|
||||
isObjectUpdated = true; break;
|
||||
}
|
||||
if(map_settings && map_settings->isSet()){
|
||||
isObjectUpdated = true; break;
|
||||
}
|
||||
if(rig_ctl_server_settings && rig_ctl_server_settings->isSet()){
|
||||
isObjectUpdated = true; break;
|
||||
}
|
||||
if(star_tracker_settings && star_tracker_settings->isSet()){
|
||||
isObjectUpdated = true; break;
|
||||
}
|
||||
if(simple_ptt_settings && simple_ptt_settings->isSet()){
|
||||
isObjectUpdated = true; break;
|
||||
}
|
||||
|
|
|
@ -23,10 +23,13 @@
|
|||
|
||||
|
||||
#include "SWGAFCSettings.h"
|
||||
#include "SWGAPRSSettings.h"
|
||||
#include "SWGDemodAnalyzerSettings.h"
|
||||
#include "SWGGS232ControllerSettings.h"
|
||||
#include "SWGMapSettings.h"
|
||||
#include "SWGRigCtlServerSettings.h"
|
||||
#include "SWGSimplePTTSettings.h"
|
||||
#include "SWGStarTrackerSettings.h"
|
||||
#include "SWGVORLocalizerSettings.h"
|
||||
#include <QString>
|
||||
|
||||
|
@ -60,15 +63,24 @@ public:
|
|||
SWGAFCSettings* getAfcSettings();
|
||||
void setAfcSettings(SWGAFCSettings* afc_settings);
|
||||
|
||||
SWGAPRSSettings* getAprsSettings();
|
||||
void setAprsSettings(SWGAPRSSettings* aprs_settings);
|
||||
|
||||
SWGDemodAnalyzerSettings* getDemodAnalyzerSettings();
|
||||
void setDemodAnalyzerSettings(SWGDemodAnalyzerSettings* demod_analyzer_settings);
|
||||
|
||||
SWGGS232ControllerSettings* getGs232ControllerSettings();
|
||||
void setGs232ControllerSettings(SWGGS232ControllerSettings* gs232_controller_settings);
|
||||
|
||||
SWGMapSettings* getMapSettings();
|
||||
void setMapSettings(SWGMapSettings* map_settings);
|
||||
|
||||
SWGRigCtlServerSettings* getRigCtlServerSettings();
|
||||
void setRigCtlServerSettings(SWGRigCtlServerSettings* rig_ctl_server_settings);
|
||||
|
||||
SWGStarTrackerSettings* getStarTrackerSettings();
|
||||
void setStarTrackerSettings(SWGStarTrackerSettings* star_tracker_settings);
|
||||
|
||||
SWGSimplePTTSettings* getSimplePttSettings();
|
||||
void setSimplePttSettings(SWGSimplePTTSettings* simple_ptt_settings);
|
||||
|
||||
|
@ -91,15 +103,24 @@ private:
|
|||
SWGAFCSettings* afc_settings;
|
||||
bool m_afc_settings_isSet;
|
||||
|
||||
SWGAPRSSettings* aprs_settings;
|
||||
bool m_aprs_settings_isSet;
|
||||
|
||||
SWGDemodAnalyzerSettings* demod_analyzer_settings;
|
||||
bool m_demod_analyzer_settings_isSet;
|
||||
|
||||
SWGGS232ControllerSettings* gs232_controller_settings;
|
||||
bool m_gs232_controller_settings_isSet;
|
||||
|
||||
SWGMapSettings* map_settings;
|
||||
bool m_map_settings_isSet;
|
||||
|
||||
SWGRigCtlServerSettings* rig_ctl_server_settings;
|
||||
bool m_rig_ctl_server_settings_isSet;
|
||||
|
||||
SWGStarTrackerSettings* star_tracker_settings;
|
||||
bool m_star_tracker_settings_isSet;
|
||||
|
||||
SWGSimplePTTSettings* simple_ptt_settings;
|
||||
bool m_simple_ptt_settings_isSet;
|
||||
|
||||
|
|
|
@ -38,14 +38,16 @@ SWGGS232ControllerSettings::SWGGS232ControllerSettings() {
|
|||
m_baud_rate_isSet = false;
|
||||
track = 0;
|
||||
m_track_isSet = false;
|
||||
target = nullptr;
|
||||
m_target_isSet = false;
|
||||
azimuth_offset = 0;
|
||||
m_azimuth_offset_isSet = false;
|
||||
elevation_offset = 0;
|
||||
m_elevation_offset_isSet = false;
|
||||
title = nullptr;
|
||||
m_title_isSet = false;
|
||||
rgb_color = 0;
|
||||
m_rgb_color_isSet = false;
|
||||
device_index = 0;
|
||||
m_device_index_isSet = false;
|
||||
channel_index = 0;
|
||||
m_channel_index_isSet = false;
|
||||
use_reverse_api = 0;
|
||||
m_use_reverse_api_isSet = false;
|
||||
reverse_api_address = nullptr;
|
||||
|
@ -74,14 +76,16 @@ SWGGS232ControllerSettings::init() {
|
|||
m_baud_rate_isSet = false;
|
||||
track = 0;
|
||||
m_track_isSet = false;
|
||||
target = new QString("");
|
||||
m_target_isSet = false;
|
||||
azimuth_offset = 0;
|
||||
m_azimuth_offset_isSet = false;
|
||||
elevation_offset = 0;
|
||||
m_elevation_offset_isSet = false;
|
||||
title = new QString("");
|
||||
m_title_isSet = false;
|
||||
rgb_color = 0;
|
||||
m_rgb_color_isSet = false;
|
||||
device_index = 0;
|
||||
m_device_index_isSet = false;
|
||||
channel_index = 0;
|
||||
m_channel_index_isSet = false;
|
||||
use_reverse_api = 0;
|
||||
m_use_reverse_api_isSet = false;
|
||||
reverse_api_address = new QString("");
|
||||
|
@ -103,11 +107,14 @@ SWGGS232ControllerSettings::cleanup() {
|
|||
}
|
||||
|
||||
|
||||
if(title != nullptr) {
|
||||
delete title;
|
||||
if(target != nullptr) {
|
||||
delete target;
|
||||
}
|
||||
|
||||
|
||||
if(title != nullptr) {
|
||||
delete title;
|
||||
}
|
||||
|
||||
|
||||
if(reverse_api_address != nullptr) {
|
||||
|
@ -139,14 +146,16 @@ SWGGS232ControllerSettings::fromJsonObject(QJsonObject &pJson) {
|
|||
|
||||
::SWGSDRangel::setValue(&track, pJson["track"], "qint32", "");
|
||||
|
||||
::SWGSDRangel::setValue(&target, pJson["target"], "QString", "QString");
|
||||
|
||||
::SWGSDRangel::setValue(&azimuth_offset, pJson["azimuthOffset"], "qint32", "");
|
||||
|
||||
::SWGSDRangel::setValue(&elevation_offset, pJson["elevationOffset"], "qint32", "");
|
||||
|
||||
::SWGSDRangel::setValue(&title, pJson["title"], "QString", "QString");
|
||||
|
||||
::SWGSDRangel::setValue(&rgb_color, pJson["rgbColor"], "qint32", "");
|
||||
|
||||
::SWGSDRangel::setValue(&device_index, pJson["deviceIndex"], "qint32", "");
|
||||
|
||||
::SWGSDRangel::setValue(&channel_index, pJson["channelIndex"], "qint32", "");
|
||||
|
||||
::SWGSDRangel::setValue(&use_reverse_api, pJson["useReverseAPI"], "qint32", "");
|
||||
|
||||
::SWGSDRangel::setValue(&reverse_api_address, pJson["reverseAPIAddress"], "QString", "QString");
|
||||
|
@ -188,18 +197,21 @@ SWGGS232ControllerSettings::asJsonObject() {
|
|||
if(m_track_isSet){
|
||||
obj->insert("track", QJsonValue(track));
|
||||
}
|
||||
if(target != nullptr && *target != QString("")){
|
||||
toJsonValue(QString("target"), target, obj, QString("QString"));
|
||||
}
|
||||
if(m_azimuth_offset_isSet){
|
||||
obj->insert("azimuthOffset", QJsonValue(azimuth_offset));
|
||||
}
|
||||
if(m_elevation_offset_isSet){
|
||||
obj->insert("elevationOffset", QJsonValue(elevation_offset));
|
||||
}
|
||||
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_device_index_isSet){
|
||||
obj->insert("deviceIndex", QJsonValue(device_index));
|
||||
}
|
||||
if(m_channel_index_isSet){
|
||||
obj->insert("channelIndex", QJsonValue(channel_index));
|
||||
}
|
||||
if(m_use_reverse_api_isSet){
|
||||
obj->insert("useReverseAPI", QJsonValue(use_reverse_api));
|
||||
}
|
||||
|
@ -269,6 +281,36 @@ SWGGS232ControllerSettings::setTrack(qint32 track) {
|
|||
this->m_track_isSet = true;
|
||||
}
|
||||
|
||||
QString*
|
||||
SWGGS232ControllerSettings::getTarget() {
|
||||
return target;
|
||||
}
|
||||
void
|
||||
SWGGS232ControllerSettings::setTarget(QString* target) {
|
||||
this->target = target;
|
||||
this->m_target_isSet = true;
|
||||
}
|
||||
|
||||
qint32
|
||||
SWGGS232ControllerSettings::getAzimuthOffset() {
|
||||
return azimuth_offset;
|
||||
}
|
||||
void
|
||||
SWGGS232ControllerSettings::setAzimuthOffset(qint32 azimuth_offset) {
|
||||
this->azimuth_offset = azimuth_offset;
|
||||
this->m_azimuth_offset_isSet = true;
|
||||
}
|
||||
|
||||
qint32
|
||||
SWGGS232ControllerSettings::getElevationOffset() {
|
||||
return elevation_offset;
|
||||
}
|
||||
void
|
||||
SWGGS232ControllerSettings::setElevationOffset(qint32 elevation_offset) {
|
||||
this->elevation_offset = elevation_offset;
|
||||
this->m_elevation_offset_isSet = true;
|
||||
}
|
||||
|
||||
QString*
|
||||
SWGGS232ControllerSettings::getTitle() {
|
||||
return title;
|
||||
|
@ -289,26 +331,6 @@ SWGGS232ControllerSettings::setRgbColor(qint32 rgb_color) {
|
|||
this->m_rgb_color_isSet = true;
|
||||
}
|
||||
|
||||
qint32
|
||||
SWGGS232ControllerSettings::getDeviceIndex() {
|
||||
return device_index;
|
||||
}
|
||||
void
|
||||
SWGGS232ControllerSettings::setDeviceIndex(qint32 device_index) {
|
||||
this->device_index = device_index;
|
||||
this->m_device_index_isSet = true;
|
||||
}
|
||||
|
||||
qint32
|
||||
SWGGS232ControllerSettings::getChannelIndex() {
|
||||
return channel_index;
|
||||
}
|
||||
void
|
||||
SWGGS232ControllerSettings::setChannelIndex(qint32 channel_index) {
|
||||
this->channel_index = channel_index;
|
||||
this->m_channel_index_isSet = true;
|
||||
}
|
||||
|
||||
qint32
|
||||
SWGGS232ControllerSettings::getUseReverseApi() {
|
||||
return use_reverse_api;
|
||||
|
@ -379,18 +401,21 @@ SWGGS232ControllerSettings::isSet(){
|
|||
if(m_track_isSet){
|
||||
isObjectUpdated = true; break;
|
||||
}
|
||||
if(target && *target != QString("")){
|
||||
isObjectUpdated = true; break;
|
||||
}
|
||||
if(m_azimuth_offset_isSet){
|
||||
isObjectUpdated = true; break;
|
||||
}
|
||||
if(m_elevation_offset_isSet){
|
||||
isObjectUpdated = true; break;
|
||||
}
|
||||
if(title && *title != QString("")){
|
||||
isObjectUpdated = true; break;
|
||||
}
|
||||
if(m_rgb_color_isSet){
|
||||
isObjectUpdated = true; break;
|
||||
}
|
||||
if(m_device_index_isSet){
|
||||
isObjectUpdated = true; break;
|
||||
}
|
||||
if(m_channel_index_isSet){
|
||||
isObjectUpdated = true; break;
|
||||
}
|
||||
if(m_use_reverse_api_isSet){
|
||||
isObjectUpdated = true; break;
|
||||
}
|
||||
|
|
|
@ -57,18 +57,21 @@ public:
|
|||
qint32 getTrack();
|
||||
void setTrack(qint32 track);
|
||||
|
||||
QString* getTarget();
|
||||
void setTarget(QString* target);
|
||||
|
||||
qint32 getAzimuthOffset();
|
||||
void setAzimuthOffset(qint32 azimuth_offset);
|
||||
|
||||
qint32 getElevationOffset();
|
||||
void setElevationOffset(qint32 elevation_offset);
|
||||
|
||||
QString* getTitle();
|
||||
void setTitle(QString* title);
|
||||
|
||||
qint32 getRgbColor();
|
||||
void setRgbColor(qint32 rgb_color);
|
||||
|
||||
qint32 getDeviceIndex();
|
||||
void setDeviceIndex(qint32 device_index);
|
||||
|
||||
qint32 getChannelIndex();
|
||||
void setChannelIndex(qint32 channel_index);
|
||||
|
||||
qint32 getUseReverseApi();
|
||||
void setUseReverseApi(qint32 use_reverse_api);
|
||||
|
||||
|
@ -103,18 +106,21 @@ private:
|
|||
qint32 track;
|
||||
bool m_track_isSet;
|
||||
|
||||
QString* target;
|
||||
bool m_target_isSet;
|
||||
|
||||
qint32 azimuth_offset;
|
||||
bool m_azimuth_offset_isSet;
|
||||
|
||||
qint32 elevation_offset;
|
||||
bool m_elevation_offset_isSet;
|
||||
|
||||
QString* title;
|
||||
bool m_title_isSet;
|
||||
|
||||
qint32 rgb_color;
|
||||
bool m_rgb_color_isSet;
|
||||
|
||||
qint32 device_index;
|
||||
bool m_device_index_isSet;
|
||||
|
||||
qint32 channel_index;
|
||||
bool m_channel_index_isSet;
|
||||
|
||||
qint32 use_reverse_api;
|
||||
bool m_use_reverse_api_isSet;
|
||||
|
||||
|
|
|
@ -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 "SWGMapActions.h"
|
||||
|
||||
#include "SWGHelpers.h"
|
||||
|
||||
#include <QJsonDocument>
|
||||
#include <QJsonArray>
|
||||
#include <QObject>
|
||||
#include <QDebug>
|
||||
|
||||
namespace SWGSDRangel {
|
||||
|
||||
SWGMapActions::SWGMapActions(QString* json) {
|
||||
init();
|
||||
this->fromJson(*json);
|
||||
}
|
||||
|
||||
SWGMapActions::SWGMapActions() {
|
||||
find = nullptr;
|
||||
m_find_isSet = false;
|
||||
}
|
||||
|
||||
SWGMapActions::~SWGMapActions() {
|
||||
this->cleanup();
|
||||
}
|
||||
|
||||
void
|
||||
SWGMapActions::init() {
|
||||
find = new QString("");
|
||||
m_find_isSet = false;
|
||||
}
|
||||
|
||||
void
|
||||
SWGMapActions::cleanup() {
|
||||
if(find != nullptr) {
|
||||
delete find;
|
||||
}
|
||||
}
|
||||
|
||||
SWGMapActions*
|
||||
SWGMapActions::fromJson(QString &json) {
|
||||
QByteArray array (json.toStdString().c_str());
|
||||
QJsonDocument doc = QJsonDocument::fromJson(array);
|
||||
QJsonObject jsonObject = doc.object();
|
||||
this->fromJsonObject(jsonObject);
|
||||
return this;
|
||||
}
|
||||
|
||||
void
|
||||
SWGMapActions::fromJsonObject(QJsonObject &pJson) {
|
||||
::SWGSDRangel::setValue(&find, pJson["find"], "QString", "QString");
|
||||
|
||||
}
|
||||
|
||||
QString
|
||||
SWGMapActions::asJson ()
|
||||
{
|
||||
QJsonObject* obj = this->asJsonObject();
|
||||
|
||||
QJsonDocument doc(*obj);
|
||||
QByteArray bytes = doc.toJson();
|
||||
delete obj;
|
||||
return QString(bytes);
|
||||
}
|
||||
|
||||
QJsonObject*
|
||||
SWGMapActions::asJsonObject() {
|
||||
QJsonObject* obj = new QJsonObject();
|
||||
if(find != nullptr && *find != QString("")){
|
||||
toJsonValue(QString("find"), find, obj, QString("QString"));
|
||||
}
|
||||
|
||||
return obj;
|
||||
}
|
||||
|
||||
QString*
|
||||
SWGMapActions::getFind() {
|
||||
return find;
|
||||
}
|
||||
void
|
||||
SWGMapActions::setFind(QString* find) {
|
||||
this->find = find;
|
||||
this->m_find_isSet = true;
|
||||
}
|
||||
|
||||
|
||||
bool
|
||||
SWGMapActions::isSet(){
|
||||
bool isObjectUpdated = false;
|
||||
do{
|
||||
if(find && *find != QString("")){
|
||||
isObjectUpdated = true; break;
|
||||
}
|
||||
}while(false);
|
||||
return isObjectUpdated;
|
||||
}
|
||||
}
|
||||
|
|
@ -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.
|
||||
*/
|
||||
|
||||
/*
|
||||
* SWGMapActions.h
|
||||
*
|
||||
* Map
|
||||
*/
|
||||
|
||||
#ifndef SWGMapActions_H_
|
||||
#define SWGMapActions_H_
|
||||
|
||||
#include <QJsonObject>
|
||||
|
||||
|
||||
#include <QString>
|
||||
|
||||
#include "SWGObject.h"
|
||||
#include "export.h"
|
||||
|
||||
namespace SWGSDRangel {
|
||||
|
||||
class SWG_API SWGMapActions: public SWGObject {
|
||||
public:
|
||||
SWGMapActions();
|
||||
SWGMapActions(QString* json);
|
||||
virtual ~SWGMapActions();
|
||||
void init();
|
||||
void cleanup();
|
||||
|
||||
virtual QString asJson () override;
|
||||
virtual QJsonObject* asJsonObject() override;
|
||||
virtual void fromJsonObject(QJsonObject &json) override;
|
||||
virtual SWGMapActions* fromJson(QString &jsonString) override;
|
||||
|
||||
QString* getFind();
|
||||
void setFind(QString* find);
|
||||
|
||||
|
||||
virtual bool isSet() override;
|
||||
|
||||
private:
|
||||
QString* find;
|
||||
bool m_find_isSet;
|
||||
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
#endif /* SWGMapActions_H_ */
|
|
@ -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 "SWGMapActions_find.h"
|
||||
|
||||
#include "SWGHelpers.h"
|
||||
|
||||
#include <QJsonDocument>
|
||||
#include <QJsonArray>
|
||||
#include <QObject>
|
||||
#include <QDebug>
|
||||
|
||||
namespace SWGSDRangel {
|
||||
|
||||
SWGMapActions_find::SWGMapActions_find(QString* json) {
|
||||
init();
|
||||
this->fromJson(*json);
|
||||
}
|
||||
|
||||
SWGMapActions_find::SWGMapActions_find() {
|
||||
id = nullptr;
|
||||
m_id_isSet = false;
|
||||
}
|
||||
|
||||
SWGMapActions_find::~SWGMapActions_find() {
|
||||
this->cleanup();
|
||||
}
|
||||
|
||||
void
|
||||
SWGMapActions_find::init() {
|
||||
id = new QString("");
|
||||
m_id_isSet = false;
|
||||
}
|
||||
|
||||
void
|
||||
SWGMapActions_find::cleanup() {
|
||||
if(id != nullptr) {
|
||||
delete id;
|
||||
}
|
||||
}
|
||||
|
||||
SWGMapActions_find*
|
||||
SWGMapActions_find::fromJson(QString &json) {
|
||||
QByteArray array (json.toStdString().c_str());
|
||||
QJsonDocument doc = QJsonDocument::fromJson(array);
|
||||
QJsonObject jsonObject = doc.object();
|
||||
this->fromJsonObject(jsonObject);
|
||||
return this;
|
||||
}
|
||||
|
||||
void
|
||||
SWGMapActions_find::fromJsonObject(QJsonObject &pJson) {
|
||||
::SWGSDRangel::setValue(&id, pJson["id"], "QString", "QString");
|
||||
|
||||
}
|
||||
|
||||
QString
|
||||
SWGMapActions_find::asJson ()
|
||||
{
|
||||
QJsonObject* obj = this->asJsonObject();
|
||||
|
||||
QJsonDocument doc(*obj);
|
||||
QByteArray bytes = doc.toJson();
|
||||
delete obj;
|
||||
return QString(bytes);
|
||||
}
|
||||
|
||||
QJsonObject*
|
||||
SWGMapActions_find::asJsonObject() {
|
||||
QJsonObject* obj = new QJsonObject();
|
||||
if(id != nullptr && *id != QString("")){
|
||||
toJsonValue(QString("id"), id, obj, QString("QString"));
|
||||
}
|
||||
|
||||
return obj;
|
||||
}
|
||||
|
||||
QString*
|
||||
SWGMapActions_find::getId() {
|
||||
return id;
|
||||
}
|
||||
void
|
||||
SWGMapActions_find::setId(QString* id) {
|
||||
this->id = id;
|
||||
this->m_id_isSet = true;
|
||||
}
|
||||
|
||||
|
||||
bool
|
||||
SWGMapActions_find::isSet(){
|
||||
bool isObjectUpdated = false;
|
||||
do{
|
||||
if(id && *id != QString("")){
|
||||
isObjectUpdated = true; break;
|
||||
}
|
||||
}while(false);
|
||||
return isObjectUpdated;
|
||||
}
|
||||
}
|
||||
|
|
@ -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.
|
||||
*/
|
||||
|
||||
/*
|
||||
* SWGMapActions_find.h
|
||||
*
|
||||
* A request to centre the map on an item.
|
||||
*/
|
||||
|
||||
#ifndef SWGMapActions_find_H_
|
||||
#define SWGMapActions_find_H_
|
||||
|
||||
#include <QJsonObject>
|
||||
|
||||
|
||||
#include <QString>
|
||||
|
||||
#include "SWGObject.h"
|
||||
#include "export.h"
|
||||
|
||||
namespace SWGSDRangel {
|
||||
|
||||
class SWG_API SWGMapActions_find: public SWGObject {
|
||||
public:
|
||||
SWGMapActions_find();
|
||||
SWGMapActions_find(QString* json);
|
||||
virtual ~SWGMapActions_find();
|
||||
void init();
|
||||
void cleanup();
|
||||
|
||||
virtual QString asJson () override;
|
||||
virtual QJsonObject* asJsonObject() override;
|
||||
virtual void fromJsonObject(QJsonObject &json) override;
|
||||
virtual SWGMapActions_find* fromJson(QString &jsonString) override;
|
||||
|
||||
QString* getId();
|
||||
void setId(QString* id);
|
||||
|
||||
|
||||
virtual bool isSet() override;
|
||||
|
||||
private:
|
||||
QString* id;
|
||||
bool m_id_isSet;
|
||||
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
#endif /* SWGMapActions_find_H_ */
|
|
@ -0,0 +1,252 @@
|
|||
/**
|
||||
* 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.h"
|
||||
|
||||
#include "SWGHelpers.h"
|
||||
|
||||
#include <QJsonDocument>
|
||||
#include <QJsonArray>
|
||||
#include <QObject>
|
||||
#include <QDebug>
|
||||
|
||||
namespace SWGSDRangel {
|
||||
|
||||
SWGMapItem::SWGMapItem(QString* json) {
|
||||
init();
|
||||
this->fromJson(*json);
|
||||
}
|
||||
|
||||
SWGMapItem::SWGMapItem() {
|
||||
name = nullptr;
|
||||
m_name_isSet = false;
|
||||
image = nullptr;
|
||||
m_image_isSet = false;
|
||||
image_rotation = 0;
|
||||
m_image_rotation_isSet = false;
|
||||
image_fixed_size = 0;
|
||||
m_image_fixed_size_isSet = false;
|
||||
text = nullptr;
|
||||
m_text_isSet = false;
|
||||
latitude = 0.0f;
|
||||
m_latitude_isSet = false;
|
||||
longitude = 0.0f;
|
||||
m_longitude_isSet = false;
|
||||
}
|
||||
|
||||
SWGMapItem::~SWGMapItem() {
|
||||
this->cleanup();
|
||||
}
|
||||
|
||||
void
|
||||
SWGMapItem::init() {
|
||||
name = new QString("");
|
||||
m_name_isSet = false;
|
||||
image = new QString("");
|
||||
m_image_isSet = false;
|
||||
image_rotation = 0;
|
||||
m_image_rotation_isSet = false;
|
||||
image_fixed_size = 0;
|
||||
m_image_fixed_size_isSet = false;
|
||||
text = new QString("");
|
||||
m_text_isSet = false;
|
||||
latitude = 0.0f;
|
||||
m_latitude_isSet = false;
|
||||
longitude = 0.0f;
|
||||
m_longitude_isSet = false;
|
||||
}
|
||||
|
||||
void
|
||||
SWGMapItem::cleanup() {
|
||||
if(name != nullptr) {
|
||||
delete name;
|
||||
}
|
||||
if(image != nullptr) {
|
||||
delete image;
|
||||
}
|
||||
|
||||
|
||||
if(text != nullptr) {
|
||||
delete text;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
SWGMapItem*
|
||||
SWGMapItem::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::fromJsonObject(QJsonObject &pJson) {
|
||||
::SWGSDRangel::setValue(&name, pJson["name"], "QString", "QString");
|
||||
|
||||
::SWGSDRangel::setValue(&image, pJson["image"], "QString", "QString");
|
||||
|
||||
::SWGSDRangel::setValue(&image_rotation, pJson["imageRotation"], "qint32", "");
|
||||
|
||||
::SWGSDRangel::setValue(&image_fixed_size, pJson["imageFixedSize"], "qint32", "");
|
||||
|
||||
::SWGSDRangel::setValue(&text, pJson["text"], "QString", "QString");
|
||||
|
||||
::SWGSDRangel::setValue(&latitude, pJson["latitude"], "float", "");
|
||||
|
||||
::SWGSDRangel::setValue(&longitude, pJson["longitude"], "float", "");
|
||||
|
||||
}
|
||||
|
||||
QString
|
||||
SWGMapItem::asJson ()
|
||||
{
|
||||
QJsonObject* obj = this->asJsonObject();
|
||||
|
||||
QJsonDocument doc(*obj);
|
||||
QByteArray bytes = doc.toJson();
|
||||
delete obj;
|
||||
return QString(bytes);
|
||||
}
|
||||
|
||||
QJsonObject*
|
||||
SWGMapItem::asJsonObject() {
|
||||
QJsonObject* obj = new QJsonObject();
|
||||
if(name != nullptr && *name != QString("")){
|
||||
toJsonValue(QString("name"), name, obj, QString("QString"));
|
||||
}
|
||||
if(image != nullptr && *image != QString("")){
|
||||
toJsonValue(QString("image"), image, obj, QString("QString"));
|
||||
}
|
||||
if(m_image_rotation_isSet){
|
||||
obj->insert("imageRotation", QJsonValue(image_rotation));
|
||||
}
|
||||
if(m_image_fixed_size_isSet){
|
||||
obj->insert("imageFixedSize", QJsonValue(image_fixed_size));
|
||||
}
|
||||
if(text != nullptr && *text != QString("")){
|
||||
toJsonValue(QString("text"), text, obj, QString("QString"));
|
||||
}
|
||||
if(m_latitude_isSet){
|
||||
obj->insert("latitude", QJsonValue(latitude));
|
||||
}
|
||||
if(m_longitude_isSet){
|
||||
obj->insert("longitude", QJsonValue(longitude));
|
||||
}
|
||||
|
||||
return obj;
|
||||
}
|
||||
|
||||
QString*
|
||||
SWGMapItem::getName() {
|
||||
return name;
|
||||
}
|
||||
void
|
||||
SWGMapItem::setName(QString* name) {
|
||||
this->name = name;
|
||||
this->m_name_isSet = true;
|
||||
}
|
||||
|
||||
QString*
|
||||
SWGMapItem::getImage() {
|
||||
return image;
|
||||
}
|
||||
void
|
||||
SWGMapItem::setImage(QString* image) {
|
||||
this->image = image;
|
||||
this->m_image_isSet = true;
|
||||
}
|
||||
|
||||
qint32
|
||||
SWGMapItem::getImageRotation() {
|
||||
return image_rotation;
|
||||
}
|
||||
void
|
||||
SWGMapItem::setImageRotation(qint32 image_rotation) {
|
||||
this->image_rotation = image_rotation;
|
||||
this->m_image_rotation_isSet = true;
|
||||
}
|
||||
|
||||
qint32
|
||||
SWGMapItem::getImageFixedSize() {
|
||||
return image_fixed_size;
|
||||
}
|
||||
void
|
||||
SWGMapItem::setImageFixedSize(qint32 image_fixed_size) {
|
||||
this->image_fixed_size = image_fixed_size;
|
||||
this->m_image_fixed_size_isSet = true;
|
||||
}
|
||||
|
||||
QString*
|
||||
SWGMapItem::getText() {
|
||||
return text;
|
||||
}
|
||||
void
|
||||
SWGMapItem::setText(QString* text) {
|
||||
this->text = text;
|
||||
this->m_text_isSet = true;
|
||||
}
|
||||
|
||||
float
|
||||
SWGMapItem::getLatitude() {
|
||||
return latitude;
|
||||
}
|
||||
void
|
||||
SWGMapItem::setLatitude(float latitude) {
|
||||
this->latitude = latitude;
|
||||
this->m_latitude_isSet = true;
|
||||
}
|
||||
|
||||
float
|
||||
SWGMapItem::getLongitude() {
|
||||
return longitude;
|
||||
}
|
||||
void
|
||||
SWGMapItem::setLongitude(float longitude) {
|
||||
this->longitude = longitude;
|
||||
this->m_longitude_isSet = true;
|
||||
}
|
||||
|
||||
|
||||
bool
|
||||
SWGMapItem::isSet(){
|
||||
bool isObjectUpdated = false;
|
||||
do{
|
||||
if(name && *name != QString("")){
|
||||
isObjectUpdated = true; break;
|
||||
}
|
||||
if(image && *image != QString("")){
|
||||
isObjectUpdated = true; break;
|
||||
}
|
||||
if(m_image_rotation_isSet){
|
||||
isObjectUpdated = true; break;
|
||||
}
|
||||
if(m_image_fixed_size_isSet){
|
||||
isObjectUpdated = true; break;
|
||||
}
|
||||
if(text && *text != QString("")){
|
||||
isObjectUpdated = true; break;
|
||||
}
|
||||
if(m_latitude_isSet){
|
||||
isObjectUpdated = true; break;
|
||||
}
|
||||
if(m_longitude_isSet){
|
||||
isObjectUpdated = true; break;
|
||||
}
|
||||
}while(false);
|
||||
return isObjectUpdated;
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,95 @@
|
|||
/**
|
||||
* 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.h
|
||||
*
|
||||
* An item to draw on the map. Set image to an empty string to remove item from the map.
|
||||
*/
|
||||
|
||||
#ifndef SWGMapItem_H_
|
||||
#define SWGMapItem_H_
|
||||
|
||||
#include <QJsonObject>
|
||||
|
||||
|
||||
#include <QString>
|
||||
|
||||
#include "SWGObject.h"
|
||||
#include "export.h"
|
||||
|
||||
namespace SWGSDRangel {
|
||||
|
||||
class SWG_API SWGMapItem: public SWGObject {
|
||||
public:
|
||||
SWGMapItem();
|
||||
SWGMapItem(QString* json);
|
||||
virtual ~SWGMapItem();
|
||||
void init();
|
||||
void cleanup();
|
||||
|
||||
virtual QString asJson () override;
|
||||
virtual QJsonObject* asJsonObject() override;
|
||||
virtual void fromJsonObject(QJsonObject &json) override;
|
||||
virtual SWGMapItem* fromJson(QString &jsonString) override;
|
||||
|
||||
QString* getName();
|
||||
void setName(QString* name);
|
||||
|
||||
QString* getImage();
|
||||
void setImage(QString* image);
|
||||
|
||||
qint32 getImageRotation();
|
||||
void setImageRotation(qint32 image_rotation);
|
||||
|
||||
qint32 getImageFixedSize();
|
||||
void setImageFixedSize(qint32 image_fixed_size);
|
||||
|
||||
QString* getText();
|
||||
void setText(QString* text);
|
||||
|
||||
float getLatitude();
|
||||
void setLatitude(float latitude);
|
||||
|
||||
float getLongitude();
|
||||
void setLongitude(float longitude);
|
||||
|
||||
|
||||
virtual bool isSet() override;
|
||||
|
||||
private:
|
||||
QString* name;
|
||||
bool m_name_isSet;
|
||||
|
||||
QString* image;
|
||||
bool m_image_isSet;
|
||||
|
||||
qint32 image_rotation;
|
||||
bool m_image_rotation_isSet;
|
||||
|
||||
qint32 image_fixed_size;
|
||||
bool m_image_fixed_size_isSet;
|
||||
|
||||
QString* text;
|
||||
bool m_text_isSet;
|
||||
|
||||
float latitude;
|
||||
bool m_latitude_isSet;
|
||||
|
||||
float longitude;
|
||||
bool m_longitude_isSet;
|
||||
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
#endif /* SWGMapItem_H_ */
|
|
@ -0,0 +1,252 @@
|
|||
/**
|
||||
* 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_2.h"
|
||||
|
||||
#include "SWGHelpers.h"
|
||||
|
||||
#include <QJsonDocument>
|
||||
#include <QJsonArray>
|
||||
#include <QObject>
|
||||
#include <QDebug>
|
||||
|
||||
namespace SWGSDRangel {
|
||||
|
||||
SWGMapItem_2::SWGMapItem_2(QString* json) {
|
||||
init();
|
||||
this->fromJson(*json);
|
||||
}
|
||||
|
||||
SWGMapItem_2::SWGMapItem_2() {
|
||||
name = nullptr;
|
||||
m_name_isSet = false;
|
||||
image = nullptr;
|
||||
m_image_isSet = false;
|
||||
image_rotation = 0;
|
||||
m_image_rotation_isSet = false;
|
||||
image_fixed_size = 0;
|
||||
m_image_fixed_size_isSet = false;
|
||||
text = nullptr;
|
||||
m_text_isSet = false;
|
||||
latitude = 0.0f;
|
||||
m_latitude_isSet = false;
|
||||
longitude = 0.0f;
|
||||
m_longitude_isSet = false;
|
||||
}
|
||||
|
||||
SWGMapItem_2::~SWGMapItem_2() {
|
||||
this->cleanup();
|
||||
}
|
||||
|
||||
void
|
||||
SWGMapItem_2::init() {
|
||||
name = new QString("");
|
||||
m_name_isSet = false;
|
||||
image = new QString("");
|
||||
m_image_isSet = false;
|
||||
image_rotation = 0;
|
||||
m_image_rotation_isSet = false;
|
||||
image_fixed_size = 0;
|
||||
m_image_fixed_size_isSet = false;
|
||||
text = new QString("");
|
||||
m_text_isSet = false;
|
||||
latitude = 0.0f;
|
||||
m_latitude_isSet = false;
|
||||
longitude = 0.0f;
|
||||
m_longitude_isSet = false;
|
||||
}
|
||||
|
||||
void
|
||||
SWGMapItem_2::cleanup() {
|
||||
if(name != nullptr) {
|
||||
delete name;
|
||||
}
|
||||
if(image != nullptr) {
|
||||
delete image;
|
||||
}
|
||||
|
||||
|
||||
if(text != nullptr) {
|
||||
delete text;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
SWGMapItem_2*
|
||||
SWGMapItem_2::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_2::fromJsonObject(QJsonObject &pJson) {
|
||||
::SWGSDRangel::setValue(&name, pJson["name"], "QString", "QString");
|
||||
|
||||
::SWGSDRangel::setValue(&image, pJson["image"], "QString", "QString");
|
||||
|
||||
::SWGSDRangel::setValue(&image_rotation, pJson["imageRotation"], "qint32", "");
|
||||
|
||||
::SWGSDRangel::setValue(&image_fixed_size, pJson["imageFixedSize"], "qint32", "");
|
||||
|
||||
::SWGSDRangel::setValue(&text, pJson["text"], "QString", "QString");
|
||||
|
||||
::SWGSDRangel::setValue(&latitude, pJson["latitude"], "float", "");
|
||||
|
||||
::SWGSDRangel::setValue(&longitude, pJson["longitude"], "float", "");
|
||||
|
||||
}
|
||||
|
||||
QString
|
||||
SWGMapItem_2::asJson ()
|
||||
{
|
||||
QJsonObject* obj = this->asJsonObject();
|
||||
|
||||
QJsonDocument doc(*obj);
|
||||
QByteArray bytes = doc.toJson();
|
||||
delete obj;
|
||||
return QString(bytes);
|
||||
}
|
||||
|
||||
QJsonObject*
|
||||
SWGMapItem_2::asJsonObject() {
|
||||
QJsonObject* obj = new QJsonObject();
|
||||
if(name != nullptr && *name != QString("")){
|
||||
toJsonValue(QString("name"), name, obj, QString("QString"));
|
||||
}
|
||||
if(image != nullptr && *image != QString("")){
|
||||
toJsonValue(QString("image"), image, obj, QString("QString"));
|
||||
}
|
||||
if(m_image_rotation_isSet){
|
||||
obj->insert("imageRotation", QJsonValue(image_rotation));
|
||||
}
|
||||
if(m_image_fixed_size_isSet){
|
||||
obj->insert("imageFixedSize", QJsonValue(image_fixed_size));
|
||||
}
|
||||
if(text != nullptr && *text != QString("")){
|
||||
toJsonValue(QString("text"), text, obj, QString("QString"));
|
||||
}
|
||||
if(m_latitude_isSet){
|
||||
obj->insert("latitude", QJsonValue(latitude));
|
||||
}
|
||||
if(m_longitude_isSet){
|
||||
obj->insert("longitude", QJsonValue(longitude));
|
||||
}
|
||||
|
||||
return obj;
|
||||
}
|
||||
|
||||
QString*
|
||||
SWGMapItem_2::getName() {
|
||||
return name;
|
||||
}
|
||||
void
|
||||
SWGMapItem_2::setName(QString* name) {
|
||||
this->name = name;
|
||||
this->m_name_isSet = true;
|
||||
}
|
||||
|
||||
QString*
|
||||
SWGMapItem_2::getImage() {
|
||||
return image;
|
||||
}
|
||||
void
|
||||
SWGMapItem_2::setImage(QString* image) {
|
||||
this->image = image;
|
||||
this->m_image_isSet = true;
|
||||
}
|
||||
|
||||
qint32
|
||||
SWGMapItem_2::getImageRotation() {
|
||||
return image_rotation;
|
||||
}
|
||||
void
|
||||
SWGMapItem_2::setImageRotation(qint32 image_rotation) {
|
||||
this->image_rotation = image_rotation;
|
||||
this->m_image_rotation_isSet = true;
|
||||
}
|
||||
|
||||
qint32
|
||||
SWGMapItem_2::getImageFixedSize() {
|
||||
return image_fixed_size;
|
||||
}
|
||||
void
|
||||
SWGMapItem_2::setImageFixedSize(qint32 image_fixed_size) {
|
||||
this->image_fixed_size = image_fixed_size;
|
||||
this->m_image_fixed_size_isSet = true;
|
||||
}
|
||||
|
||||
QString*
|
||||
SWGMapItem_2::getText() {
|
||||
return text;
|
||||
}
|
||||
void
|
||||
SWGMapItem_2::setText(QString* text) {
|
||||
this->text = text;
|
||||
this->m_text_isSet = true;
|
||||
}
|
||||
|
||||
float
|
||||
SWGMapItem_2::getLatitude() {
|
||||
return latitude;
|
||||
}
|
||||
void
|
||||
SWGMapItem_2::setLatitude(float latitude) {
|
||||
this->latitude = latitude;
|
||||
this->m_latitude_isSet = true;
|
||||
}
|
||||
|
||||
float
|
||||
SWGMapItem_2::getLongitude() {
|
||||
return longitude;
|
||||
}
|
||||
void
|
||||
SWGMapItem_2::setLongitude(float longitude) {
|
||||
this->longitude = longitude;
|
||||
this->m_longitude_isSet = true;
|
||||
}
|
||||
|
||||
|
||||
bool
|
||||
SWGMapItem_2::isSet(){
|
||||
bool isObjectUpdated = false;
|
||||
do{
|
||||
if(name && *name != QString("")){
|
||||
isObjectUpdated = true; break;
|
||||
}
|
||||
if(image && *image != QString("")){
|
||||
isObjectUpdated = true; break;
|
||||
}
|
||||
if(m_image_rotation_isSet){
|
||||
isObjectUpdated = true; break;
|
||||
}
|
||||
if(m_image_fixed_size_isSet){
|
||||
isObjectUpdated = true; break;
|
||||
}
|
||||
if(text && *text != QString("")){
|
||||
isObjectUpdated = true; break;
|
||||
}
|
||||
if(m_latitude_isSet){
|
||||
isObjectUpdated = true; break;
|
||||
}
|
||||
if(m_longitude_isSet){
|
||||
isObjectUpdated = true; break;
|
||||
}
|
||||
}while(false);
|
||||
return isObjectUpdated;
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,95 @@
|
|||
/**
|
||||
* 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_2.h
|
||||
*
|
||||
* An item to draw on the map. Set image to an empty string to remove item from the map.
|
||||
*/
|
||||
|
||||
#ifndef SWGMapItem_2_H_
|
||||
#define SWGMapItem_2_H_
|
||||
|
||||
#include <QJsonObject>
|
||||
|
||||
|
||||
#include <QString>
|
||||
|
||||
#include "SWGObject.h"
|
||||
#include "export.h"
|
||||
|
||||
namespace SWGSDRangel {
|
||||
|
||||
class SWG_API SWGMapItem_2: public SWGObject {
|
||||
public:
|
||||
SWGMapItem_2();
|
||||
SWGMapItem_2(QString* json);
|
||||
virtual ~SWGMapItem_2();
|
||||
void init();
|
||||
void cleanup();
|
||||
|
||||
virtual QString asJson () override;
|
||||
virtual QJsonObject* asJsonObject() override;
|
||||
virtual void fromJsonObject(QJsonObject &json) override;
|
||||
virtual SWGMapItem_2* fromJson(QString &jsonString) override;
|
||||
|
||||
QString* getName();
|
||||
void setName(QString* name);
|
||||
|
||||
QString* getImage();
|
||||
void setImage(QString* image);
|
||||
|
||||
qint32 getImageRotation();
|
||||
void setImageRotation(qint32 image_rotation);
|
||||
|
||||
qint32 getImageFixedSize();
|
||||
void setImageFixedSize(qint32 image_fixed_size);
|
||||
|
||||
QString* getText();
|
||||
void setText(QString* text);
|
||||
|
||||
float getLatitude();
|
||||
void setLatitude(float latitude);
|
||||
|
||||
float getLongitude();
|
||||
void setLongitude(float longitude);
|
||||
|
||||
|
||||
virtual bool isSet() override;
|
||||
|
||||
private:
|
||||
QString* name;
|
||||
bool m_name_isSet;
|
||||
|
||||
QString* image;
|
||||
bool m_image_isSet;
|
||||
|
||||
qint32 image_rotation;
|
||||
bool m_image_rotation_isSet;
|
||||
|
||||
qint32 image_fixed_size;
|
||||
bool m_image_fixed_size_isSet;
|
||||
|
||||
QString* text;
|
||||
bool m_text_isSet;
|
||||
|
||||
float latitude;
|
||||
bool m_latitude_isSet;
|
||||
|
||||
float longitude;
|
||||
bool m_longitude_isSet;
|
||||
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
#endif /* SWGMapItem_2_H_ */
|
|
@ -0,0 +1,273 @@
|
|||
/**
|
||||
* 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 "SWGMapSettings.h"
|
||||
|
||||
#include "SWGHelpers.h"
|
||||
|
||||
#include <QJsonDocument>
|
||||
#include <QJsonArray>
|
||||
#include <QObject>
|
||||
#include <QDebug>
|
||||
|
||||
namespace SWGSDRangel {
|
||||
|
||||
SWGMapSettings::SWGMapSettings(QString* json) {
|
||||
init();
|
||||
this->fromJson(*json);
|
||||
}
|
||||
|
||||
SWGMapSettings::SWGMapSettings() {
|
||||
display_names = 0;
|
||||
m_display_names_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;
|
||||
}
|
||||
|
||||
SWGMapSettings::~SWGMapSettings() {
|
||||
this->cleanup();
|
||||
}
|
||||
|
||||
void
|
||||
SWGMapSettings::init() {
|
||||
display_names = 0;
|
||||
m_display_names_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
|
||||
SWGMapSettings::cleanup() {
|
||||
|
||||
if(title != nullptr) {
|
||||
delete title;
|
||||
}
|
||||
|
||||
|
||||
if(reverse_api_address != nullptr) {
|
||||
delete reverse_api_address;
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
SWGMapSettings*
|
||||
SWGMapSettings::fromJson(QString &json) {
|
||||
QByteArray array (json.toStdString().c_str());
|
||||
QJsonDocument doc = QJsonDocument::fromJson(array);
|
||||
QJsonObject jsonObject = doc.object();
|
||||
this->fromJsonObject(jsonObject);
|
||||
return this;
|
||||
}
|
||||
|
||||
void
|
||||
SWGMapSettings::fromJsonObject(QJsonObject &pJson) {
|
||||
::SWGSDRangel::setValue(&display_names, pJson["displayNames"], "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_device_index, pJson["reverseAPIDeviceIndex"], "qint32", "");
|
||||
|
||||
::SWGSDRangel::setValue(&reverse_api_channel_index, pJson["reverseAPIChannelIndex"], "qint32", "");
|
||||
|
||||
}
|
||||
|
||||
QString
|
||||
SWGMapSettings::asJson ()
|
||||
{
|
||||
QJsonObject* obj = this->asJsonObject();
|
||||
|
||||
QJsonDocument doc(*obj);
|
||||
QByteArray bytes = doc.toJson();
|
||||
delete obj;
|
||||
return QString(bytes);
|
||||
}
|
||||
|
||||
QJsonObject*
|
||||
SWGMapSettings::asJsonObject() {
|
||||
QJsonObject* obj = new QJsonObject();
|
||||
if(m_display_names_isSet){
|
||||
obj->insert("displayNames", QJsonValue(display_names));
|
||||
}
|
||||
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;
|
||||
}
|
||||
|
||||
qint32
|
||||
SWGMapSettings::getDisplayNames() {
|
||||
return display_names;
|
||||
}
|
||||
void
|
||||
SWGMapSettings::setDisplayNames(qint32 display_names) {
|
||||
this->display_names = display_names;
|
||||
this->m_display_names_isSet = true;
|
||||
}
|
||||
|
||||
QString*
|
||||
SWGMapSettings::getTitle() {
|
||||
return title;
|
||||
}
|
||||
void
|
||||
SWGMapSettings::setTitle(QString* title) {
|
||||
this->title = title;
|
||||
this->m_title_isSet = true;
|
||||
}
|
||||
|
||||
qint32
|
||||
SWGMapSettings::getRgbColor() {
|
||||
return rgb_color;
|
||||
}
|
||||
void
|
||||
SWGMapSettings::setRgbColor(qint32 rgb_color) {
|
||||
this->rgb_color = rgb_color;
|
||||
this->m_rgb_color_isSet = true;
|
||||
}
|
||||
|
||||
qint32
|
||||
SWGMapSettings::getUseReverseApi() {
|
||||
return use_reverse_api;
|
||||
}
|
||||
void
|
||||
SWGMapSettings::setUseReverseApi(qint32 use_reverse_api) {
|
||||
this->use_reverse_api = use_reverse_api;
|
||||
this->m_use_reverse_api_isSet = true;
|
||||
}
|
||||
|
||||
QString*
|
||||
SWGMapSettings::getReverseApiAddress() {
|
||||
return reverse_api_address;
|
||||
}
|
||||
void
|
||||
SWGMapSettings::setReverseApiAddress(QString* reverse_api_address) {
|
||||
this->reverse_api_address = reverse_api_address;
|
||||
this->m_reverse_api_address_isSet = true;
|
||||
}
|
||||
|
||||
qint32
|
||||
SWGMapSettings::getReverseApiPort() {
|
||||
return reverse_api_port;
|
||||
}
|
||||
void
|
||||
SWGMapSettings::setReverseApiPort(qint32 reverse_api_port) {
|
||||
this->reverse_api_port = reverse_api_port;
|
||||
this->m_reverse_api_port_isSet = true;
|
||||
}
|
||||
|
||||
qint32
|
||||
SWGMapSettings::getReverseApiDeviceIndex() {
|
||||
return reverse_api_device_index;
|
||||
}
|
||||
void
|
||||
SWGMapSettings::setReverseApiDeviceIndex(qint32 reverse_api_device_index) {
|
||||
this->reverse_api_device_index = reverse_api_device_index;
|
||||
this->m_reverse_api_device_index_isSet = true;
|
||||
}
|
||||
|
||||
qint32
|
||||
SWGMapSettings::getReverseApiChannelIndex() {
|
||||
return reverse_api_channel_index;
|
||||
}
|
||||
void
|
||||
SWGMapSettings::setReverseApiChannelIndex(qint32 reverse_api_channel_index) {
|
||||
this->reverse_api_channel_index = reverse_api_channel_index;
|
||||
this->m_reverse_api_channel_index_isSet = true;
|
||||
}
|
||||
|
||||
|
||||
bool
|
||||
SWGMapSettings::isSet(){
|
||||
bool isObjectUpdated = false;
|
||||
do{
|
||||
if(m_display_names_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_device_index_isSet){
|
||||
isObjectUpdated = true; break;
|
||||
}
|
||||
if(m_reverse_api_channel_index_isSet){
|
||||
isObjectUpdated = true; break;
|
||||
}
|
||||
}while(false);
|
||||
return isObjectUpdated;
|
||||
}
|
||||
}
|
||||
|
|
@ -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: 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.
|
||||
*/
|
||||
|
||||
/*
|
||||
* SWGMapSettings.h
|
||||
*
|
||||
* Map
|
||||
*/
|
||||
|
||||
#ifndef SWGMapSettings_H_
|
||||
#define SWGMapSettings_H_
|
||||
|
||||
#include <QJsonObject>
|
||||
|
||||
|
||||
#include <QString>
|
||||
|
||||
#include "SWGObject.h"
|
||||
#include "export.h"
|
||||
|
||||
namespace SWGSDRangel {
|
||||
|
||||
class SWG_API SWGMapSettings: public SWGObject {
|
||||
public:
|
||||
SWGMapSettings();
|
||||
SWGMapSettings(QString* json);
|
||||
virtual ~SWGMapSettings();
|
||||
void init();
|
||||
void cleanup();
|
||||
|
||||
virtual QString asJson () override;
|
||||
virtual QJsonObject* asJsonObject() override;
|
||||
virtual void fromJsonObject(QJsonObject &json) override;
|
||||
virtual SWGMapSettings* fromJson(QString &jsonString) override;
|
||||
|
||||
qint32 getDisplayNames();
|
||||
void setDisplayNames(qint32 display_names);
|
||||
|
||||
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:
|
||||
qint32 display_names;
|
||||
bool m_display_names_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 /* SWGMapSettings_H_ */
|
|
@ -25,6 +25,7 @@
|
|||
#include "SWGAMDemodSettings.h"
|
||||
#include "SWGAMModReport.h"
|
||||
#include "SWGAMModSettings.h"
|
||||
#include "SWGAPRSSettings.h"
|
||||
#include "SWGATVDemodSettings.h"
|
||||
#include "SWGATVModReport.h"
|
||||
#include "SWGATVModSettings.h"
|
||||
|
@ -144,12 +145,17 @@
|
|||
#include "SWGLocalSourceSettings.h"
|
||||
#include "SWGLocationInformation.h"
|
||||
#include "SWGLoggingInfo.h"
|
||||
#include "SWGMapActions.h"
|
||||
#include "SWGMapItem.h"
|
||||
#include "SWGMapItem_2.h"
|
||||
#include "SWGMapSettings.h"
|
||||
#include "SWGMetisMISOSettings.h"
|
||||
#include "SWGNFMDemodReport.h"
|
||||
#include "SWGNFMDemodSettings.h"
|
||||
#include "SWGNFMModReport.h"
|
||||
#include "SWGNFMModSettings.h"
|
||||
#include "SWGNamedEnum.h"
|
||||
#include "SWGPacketDemodSettings.h"
|
||||
#include "SWGPacketModActions.h"
|
||||
#include "SWGPacketModActions_tx.h"
|
||||
#include "SWGPacketModReport.h"
|
||||
|
@ -207,7 +213,9 @@
|
|||
#include "SWGSoapySDRReport.h"
|
||||
#include "SWGSpectrumServer.h"
|
||||
#include "SWGSpectrumServer_clients.h"
|
||||
#include "SWGStarTrackerSettings.h"
|
||||
#include "SWGSuccessResponse.h"
|
||||
#include "SWGTargetAzimuthElevation.h"
|
||||
#include "SWGTestMISettings.h"
|
||||
#include "SWGTestMOSyncSettings.h"
|
||||
#include "SWGTestMiStreamSettings.h"
|
||||
|
@ -274,6 +282,9 @@ namespace SWGSDRangel {
|
|||
if(QString("SWGAMModSettings").compare(type) == 0) {
|
||||
return new SWGAMModSettings();
|
||||
}
|
||||
if(QString("SWGAPRSSettings").compare(type) == 0) {
|
||||
return new SWGAPRSSettings();
|
||||
}
|
||||
if(QString("SWGATVDemodSettings").compare(type) == 0) {
|
||||
return new SWGATVDemodSettings();
|
||||
}
|
||||
|
@ -631,6 +642,18 @@ namespace SWGSDRangel {
|
|||
if(QString("SWGLoggingInfo").compare(type) == 0) {
|
||||
return new SWGLoggingInfo();
|
||||
}
|
||||
if(QString("SWGMapActions").compare(type) == 0) {
|
||||
return new SWGMapActions();
|
||||
}
|
||||
if(QString("SWGMapItem").compare(type) == 0) {
|
||||
return new SWGMapItem();
|
||||
}
|
||||
if(QString("SWGMapItem_2").compare(type) == 0) {
|
||||
return new SWGMapItem_2();
|
||||
}
|
||||
if(QString("SWGMapSettings").compare(type) == 0) {
|
||||
return new SWGMapSettings();
|
||||
}
|
||||
if(QString("SWGMetisMISOSettings").compare(type) == 0) {
|
||||
return new SWGMetisMISOSettings();
|
||||
}
|
||||
|
@ -649,6 +672,9 @@ namespace SWGSDRangel {
|
|||
if(QString("SWGNamedEnum").compare(type) == 0) {
|
||||
return new SWGNamedEnum();
|
||||
}
|
||||
if(QString("SWGPacketDemodSettings").compare(type) == 0) {
|
||||
return new SWGPacketDemodSettings();
|
||||
}
|
||||
if(QString("SWGPacketModActions").compare(type) == 0) {
|
||||
return new SWGPacketModActions();
|
||||
}
|
||||
|
@ -820,9 +846,15 @@ namespace SWGSDRangel {
|
|||
if(QString("SWGSpectrumServer_clients").compare(type) == 0) {
|
||||
return new SWGSpectrumServer_clients();
|
||||
}
|
||||
if(QString("SWGStarTrackerSettings").compare(type) == 0) {
|
||||
return new SWGStarTrackerSettings();
|
||||
}
|
||||
if(QString("SWGSuccessResponse").compare(type) == 0) {
|
||||
return new SWGSuccessResponse();
|
||||
}
|
||||
if(QString("SWGTargetAzimuthElevation").compare(type) == 0) {
|
||||
return new SWGTargetAzimuthElevation();
|
||||
}
|
||||
if(QString("SWGTestMISettings").compare(type) == 0) {
|
||||
return new SWGTestMISettings();
|
||||
}
|
||||
|
|
|
@ -0,0 +1,367 @@
|
|||
/**
|
||||
* 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 "SWGPacketDemodSettings.h"
|
||||
|
||||
#include "SWGHelpers.h"
|
||||
|
||||
#include <QJsonDocument>
|
||||
#include <QJsonArray>
|
||||
#include <QObject>
|
||||
#include <QDebug>
|
||||
|
||||
namespace SWGSDRangel {
|
||||
|
||||
SWGPacketDemodSettings::SWGPacketDemodSettings(QString* json) {
|
||||
init();
|
||||
this->fromJson(*json);
|
||||
}
|
||||
|
||||
SWGPacketDemodSettings::SWGPacketDemodSettings() {
|
||||
input_frequency_offset = 0L;
|
||||
m_input_frequency_offset_isSet = false;
|
||||
mode = nullptr;
|
||||
m_mode_isSet = false;
|
||||
rf_bandwidth = 0.0f;
|
||||
m_rf_bandwidth_isSet = false;
|
||||
fm_deviation = 0.0f;
|
||||
m_fm_deviation_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;
|
||||
}
|
||||
|
||||
SWGPacketDemodSettings::~SWGPacketDemodSettings() {
|
||||
this->cleanup();
|
||||
}
|
||||
|
||||
void
|
||||
SWGPacketDemodSettings::init() {
|
||||
input_frequency_offset = 0L;
|
||||
m_input_frequency_offset_isSet = false;
|
||||
mode = new QString("");
|
||||
m_mode_isSet = false;
|
||||
rf_bandwidth = 0.0f;
|
||||
m_rf_bandwidth_isSet = false;
|
||||
fm_deviation = 0.0f;
|
||||
m_fm_deviation_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
|
||||
SWGPacketDemodSettings::cleanup() {
|
||||
|
||||
if(mode != nullptr) {
|
||||
delete mode;
|
||||
}
|
||||
|
||||
|
||||
|
||||
if(title != nullptr) {
|
||||
delete title;
|
||||
}
|
||||
|
||||
|
||||
if(reverse_api_address != nullptr) {
|
||||
delete reverse_api_address;
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
SWGPacketDemodSettings*
|
||||
SWGPacketDemodSettings::fromJson(QString &json) {
|
||||
QByteArray array (json.toStdString().c_str());
|
||||
QJsonDocument doc = QJsonDocument::fromJson(array);
|
||||
QJsonObject jsonObject = doc.object();
|
||||
this->fromJsonObject(jsonObject);
|
||||
return this;
|
||||
}
|
||||
|
||||
void
|
||||
SWGPacketDemodSettings::fromJsonObject(QJsonObject &pJson) {
|
||||
::SWGSDRangel::setValue(&input_frequency_offset, pJson["inputFrequencyOffset"], "qint64", "");
|
||||
|
||||
::SWGSDRangel::setValue(&mode, pJson["mode"], "QString", "QString");
|
||||
|
||||
::SWGSDRangel::setValue(&rf_bandwidth, pJson["rfBandwidth"], "float", "");
|
||||
|
||||
::SWGSDRangel::setValue(&fm_deviation, pJson["fmDeviation"], "float", "");
|
||||
|
||||
::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
|
||||
SWGPacketDemodSettings::asJson ()
|
||||
{
|
||||
QJsonObject* obj = this->asJsonObject();
|
||||
|
||||
QJsonDocument doc(*obj);
|
||||
QByteArray bytes = doc.toJson();
|
||||
delete obj;
|
||||
return QString(bytes);
|
||||
}
|
||||
|
||||
QJsonObject*
|
||||
SWGPacketDemodSettings::asJsonObject() {
|
||||
QJsonObject* obj = new QJsonObject();
|
||||
if(m_input_frequency_offset_isSet){
|
||||
obj->insert("inputFrequencyOffset", QJsonValue(input_frequency_offset));
|
||||
}
|
||||
if(mode != nullptr && *mode != QString("")){
|
||||
toJsonValue(QString("mode"), mode, obj, QString("QString"));
|
||||
}
|
||||
if(m_rf_bandwidth_isSet){
|
||||
obj->insert("rfBandwidth", QJsonValue(rf_bandwidth));
|
||||
}
|
||||
if(m_fm_deviation_isSet){
|
||||
obj->insert("fmDeviation", QJsonValue(fm_deviation));
|
||||
}
|
||||
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
|
||||
SWGPacketDemodSettings::getInputFrequencyOffset() {
|
||||
return input_frequency_offset;
|
||||
}
|
||||
void
|
||||
SWGPacketDemodSettings::setInputFrequencyOffset(qint64 input_frequency_offset) {
|
||||
this->input_frequency_offset = input_frequency_offset;
|
||||
this->m_input_frequency_offset_isSet = true;
|
||||
}
|
||||
|
||||
QString*
|
||||
SWGPacketDemodSettings::getMode() {
|
||||
return mode;
|
||||
}
|
||||
void
|
||||
SWGPacketDemodSettings::setMode(QString* mode) {
|
||||
this->mode = mode;
|
||||
this->m_mode_isSet = true;
|
||||
}
|
||||
|
||||
float
|
||||
SWGPacketDemodSettings::getRfBandwidth() {
|
||||
return rf_bandwidth;
|
||||
}
|
||||
void
|
||||
SWGPacketDemodSettings::setRfBandwidth(float rf_bandwidth) {
|
||||
this->rf_bandwidth = rf_bandwidth;
|
||||
this->m_rf_bandwidth_isSet = true;
|
||||
}
|
||||
|
||||
float
|
||||
SWGPacketDemodSettings::getFmDeviation() {
|
||||
return fm_deviation;
|
||||
}
|
||||
void
|
||||
SWGPacketDemodSettings::setFmDeviation(float fm_deviation) {
|
||||
this->fm_deviation = fm_deviation;
|
||||
this->m_fm_deviation_isSet = true;
|
||||
}
|
||||
|
||||
qint32
|
||||
SWGPacketDemodSettings::getRgbColor() {
|
||||
return rgb_color;
|
||||
}
|
||||
void
|
||||
SWGPacketDemodSettings::setRgbColor(qint32 rgb_color) {
|
||||
this->rgb_color = rgb_color;
|
||||
this->m_rgb_color_isSet = true;
|
||||
}
|
||||
|
||||
QString*
|
||||
SWGPacketDemodSettings::getTitle() {
|
||||
return title;
|
||||
}
|
||||
void
|
||||
SWGPacketDemodSettings::setTitle(QString* title) {
|
||||
this->title = title;
|
||||
this->m_title_isSet = true;
|
||||
}
|
||||
|
||||
qint32
|
||||
SWGPacketDemodSettings::getStreamIndex() {
|
||||
return stream_index;
|
||||
}
|
||||
void
|
||||
SWGPacketDemodSettings::setStreamIndex(qint32 stream_index) {
|
||||
this->stream_index = stream_index;
|
||||
this->m_stream_index_isSet = true;
|
||||
}
|
||||
|
||||
qint32
|
||||
SWGPacketDemodSettings::getUseReverseApi() {
|
||||
return use_reverse_api;
|
||||
}
|
||||
void
|
||||
SWGPacketDemodSettings::setUseReverseApi(qint32 use_reverse_api) {
|
||||
this->use_reverse_api = use_reverse_api;
|
||||
this->m_use_reverse_api_isSet = true;
|
||||
}
|
||||
|
||||
QString*
|
||||
SWGPacketDemodSettings::getReverseApiAddress() {
|
||||
return reverse_api_address;
|
||||
}
|
||||
void
|
||||
SWGPacketDemodSettings::setReverseApiAddress(QString* reverse_api_address) {
|
||||
this->reverse_api_address = reverse_api_address;
|
||||
this->m_reverse_api_address_isSet = true;
|
||||
}
|
||||
|
||||
qint32
|
||||
SWGPacketDemodSettings::getReverseApiPort() {
|
||||
return reverse_api_port;
|
||||
}
|
||||
void
|
||||
SWGPacketDemodSettings::setReverseApiPort(qint32 reverse_api_port) {
|
||||
this->reverse_api_port = reverse_api_port;
|
||||
this->m_reverse_api_port_isSet = true;
|
||||
}
|
||||
|
||||
qint32
|
||||
SWGPacketDemodSettings::getReverseApiDeviceIndex() {
|
||||
return reverse_api_device_index;
|
||||
}
|
||||
void
|
||||
SWGPacketDemodSettings::setReverseApiDeviceIndex(qint32 reverse_api_device_index) {
|
||||
this->reverse_api_device_index = reverse_api_device_index;
|
||||
this->m_reverse_api_device_index_isSet = true;
|
||||
}
|
||||
|
||||
qint32
|
||||
SWGPacketDemodSettings::getReverseApiChannelIndex() {
|
||||
return reverse_api_channel_index;
|
||||
}
|
||||
void
|
||||
SWGPacketDemodSettings::setReverseApiChannelIndex(qint32 reverse_api_channel_index) {
|
||||
this->reverse_api_channel_index = reverse_api_channel_index;
|
||||
this->m_reverse_api_channel_index_isSet = true;
|
||||
}
|
||||
|
||||
|
||||
bool
|
||||
SWGPacketDemodSettings::isSet(){
|
||||
bool isObjectUpdated = false;
|
||||
do{
|
||||
if(m_input_frequency_offset_isSet){
|
||||
isObjectUpdated = true; break;
|
||||
}
|
||||
if(mode && *mode != QString("")){
|
||||
isObjectUpdated = true; break;
|
||||
}
|
||||
if(m_rf_bandwidth_isSet){
|
||||
isObjectUpdated = true; break;
|
||||
}
|
||||
if(m_fm_deviation_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;
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,125 @@
|
|||
/**
|
||||
* 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.
|
||||
*/
|
||||
|
||||
/*
|
||||
* SWGPacketDemodSettings.h
|
||||
*
|
||||
* PacketDemod
|
||||
*/
|
||||
|
||||
#ifndef SWGPacketDemodSettings_H_
|
||||
#define SWGPacketDemodSettings_H_
|
||||
|
||||
#include <QJsonObject>
|
||||
|
||||
|
||||
#include <QString>
|
||||
|
||||
#include "SWGObject.h"
|
||||
#include "export.h"
|
||||
|
||||
namespace SWGSDRangel {
|
||||
|
||||
class SWG_API SWGPacketDemodSettings: public SWGObject {
|
||||
public:
|
||||
SWGPacketDemodSettings();
|
||||
SWGPacketDemodSettings(QString* json);
|
||||
virtual ~SWGPacketDemodSettings();
|
||||
void init();
|
||||
void cleanup();
|
||||
|
||||
virtual QString asJson () override;
|
||||
virtual QJsonObject* asJsonObject() override;
|
||||
virtual void fromJsonObject(QJsonObject &json) override;
|
||||
virtual SWGPacketDemodSettings* fromJson(QString &jsonString) override;
|
||||
|
||||
qint64 getInputFrequencyOffset();
|
||||
void setInputFrequencyOffset(qint64 input_frequency_offset);
|
||||
|
||||
QString* getMode();
|
||||
void setMode(QString* mode);
|
||||
|
||||
float getRfBandwidth();
|
||||
void setRfBandwidth(float rf_bandwidth);
|
||||
|
||||
float getFmDeviation();
|
||||
void setFmDeviation(float fm_deviation);
|
||||
|
||||
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;
|
||||
|
||||
QString* mode;
|
||||
bool m_mode_isSet;
|
||||
|
||||
float rf_bandwidth;
|
||||
bool m_rf_bandwidth_isSet;
|
||||
|
||||
float fm_deviation;
|
||||
bool m_fm_deviation_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 /* SWGPacketDemodSettings_H_ */
|
|
@ -0,0 +1,722 @@
|
|||
/**
|
||||
* 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 "SWGStarTrackerSettings.h"
|
||||
|
||||
#include "SWGHelpers.h"
|
||||
|
||||
#include <QJsonDocument>
|
||||
#include <QJsonArray>
|
||||
#include <QObject>
|
||||
#include <QDebug>
|
||||
|
||||
namespace SWGSDRangel {
|
||||
|
||||
SWGStarTrackerSettings::SWGStarTrackerSettings(QString* json) {
|
||||
init();
|
||||
this->fromJson(*json);
|
||||
}
|
||||
|
||||
SWGStarTrackerSettings::SWGStarTrackerSettings() {
|
||||
target = nullptr;
|
||||
m_target_isSet = false;
|
||||
ra = nullptr;
|
||||
m_ra_isSet = false;
|
||||
dec = nullptr;
|
||||
m_dec_isSet = false;
|
||||
latitude = 0.0f;
|
||||
m_latitude_isSet = false;
|
||||
longitude = 0.0f;
|
||||
m_longitude_isSet = false;
|
||||
date_time = nullptr;
|
||||
m_date_time_isSet = false;
|
||||
refraction = nullptr;
|
||||
m_refraction_isSet = false;
|
||||
pressure = 0.0f;
|
||||
m_pressure_isSet = false;
|
||||
temperature = 0.0f;
|
||||
m_temperature_isSet = false;
|
||||
humidity = 0.0f;
|
||||
m_humidity_isSet = false;
|
||||
height_above_sea_level = 0.0f;
|
||||
m_height_above_sea_level_isSet = false;
|
||||
temperature_lapse_rate = 0.0f;
|
||||
m_temperature_lapse_rate_isSet = false;
|
||||
frequency = 0.0f;
|
||||
m_frequency_isSet = false;
|
||||
stellarium_server_enabled = 0;
|
||||
m_stellarium_server_enabled_isSet = false;
|
||||
stellarium_port = 0;
|
||||
m_stellarium_port_isSet = false;
|
||||
update_period = 0.0f;
|
||||
m_update_period_isSet = false;
|
||||
epoch = nullptr;
|
||||
m_epoch_isSet = false;
|
||||
draw_sun_on_map = 0;
|
||||
m_draw_sun_on_map_isSet = false;
|
||||
draw_moon_on_map = 0;
|
||||
m_draw_moon_on_map_isSet = false;
|
||||
draw_star_on_map = 0;
|
||||
m_draw_star_on_map_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;
|
||||
}
|
||||
|
||||
SWGStarTrackerSettings::~SWGStarTrackerSettings() {
|
||||
this->cleanup();
|
||||
}
|
||||
|
||||
void
|
||||
SWGStarTrackerSettings::init() {
|
||||
target = new QString("");
|
||||
m_target_isSet = false;
|
||||
ra = new QString("");
|
||||
m_ra_isSet = false;
|
||||
dec = new QString("");
|
||||
m_dec_isSet = false;
|
||||
latitude = 0.0f;
|
||||
m_latitude_isSet = false;
|
||||
longitude = 0.0f;
|
||||
m_longitude_isSet = false;
|
||||
date_time = new QString("");
|
||||
m_date_time_isSet = false;
|
||||
refraction = new QString("");
|
||||
m_refraction_isSet = false;
|
||||
pressure = 0.0f;
|
||||
m_pressure_isSet = false;
|
||||
temperature = 0.0f;
|
||||
m_temperature_isSet = false;
|
||||
humidity = 0.0f;
|
||||
m_humidity_isSet = false;
|
||||
height_above_sea_level = 0.0f;
|
||||
m_height_above_sea_level_isSet = false;
|
||||
temperature_lapse_rate = 0.0f;
|
||||
m_temperature_lapse_rate_isSet = false;
|
||||
frequency = 0.0f;
|
||||
m_frequency_isSet = false;
|
||||
stellarium_server_enabled = 0;
|
||||
m_stellarium_server_enabled_isSet = false;
|
||||
stellarium_port = 0;
|
||||
m_stellarium_port_isSet = false;
|
||||
update_period = 0.0f;
|
||||
m_update_period_isSet = false;
|
||||
epoch = new QString("");
|
||||
m_epoch_isSet = false;
|
||||
draw_sun_on_map = 0;
|
||||
m_draw_sun_on_map_isSet = false;
|
||||
draw_moon_on_map = 0;
|
||||
m_draw_moon_on_map_isSet = false;
|
||||
draw_star_on_map = 0;
|
||||
m_draw_star_on_map_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
|
||||
SWGStarTrackerSettings::cleanup() {
|
||||
if(target != nullptr) {
|
||||
delete target;
|
||||
}
|
||||
if(ra != nullptr) {
|
||||
delete ra;
|
||||
}
|
||||
if(dec != nullptr) {
|
||||
delete dec;
|
||||
}
|
||||
|
||||
|
||||
if(date_time != nullptr) {
|
||||
delete date_time;
|
||||
}
|
||||
if(refraction != nullptr) {
|
||||
delete refraction;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
if(epoch != nullptr) {
|
||||
delete epoch;
|
||||
}
|
||||
|
||||
|
||||
|
||||
if(title != nullptr) {
|
||||
delete title;
|
||||
}
|
||||
|
||||
|
||||
if(reverse_api_address != nullptr) {
|
||||
delete reverse_api_address;
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
SWGStarTrackerSettings*
|
||||
SWGStarTrackerSettings::fromJson(QString &json) {
|
||||
QByteArray array (json.toStdString().c_str());
|
||||
QJsonDocument doc = QJsonDocument::fromJson(array);
|
||||
QJsonObject jsonObject = doc.object();
|
||||
this->fromJsonObject(jsonObject);
|
||||
return this;
|
||||
}
|
||||
|
||||
void
|
||||
SWGStarTrackerSettings::fromJsonObject(QJsonObject &pJson) {
|
||||
::SWGSDRangel::setValue(&target, pJson["target"], "QString", "QString");
|
||||
|
||||
::SWGSDRangel::setValue(&ra, pJson["ra"], "QString", "QString");
|
||||
|
||||
::SWGSDRangel::setValue(&dec, pJson["dec"], "QString", "QString");
|
||||
|
||||
::SWGSDRangel::setValue(&latitude, pJson["latitude"], "float", "");
|
||||
|
||||
::SWGSDRangel::setValue(&longitude, pJson["longitude"], "float", "");
|
||||
|
||||
::SWGSDRangel::setValue(&date_time, pJson["dateTime"], "QString", "QString");
|
||||
|
||||
::SWGSDRangel::setValue(&refraction, pJson["refraction"], "QString", "QString");
|
||||
|
||||
::SWGSDRangel::setValue(&pressure, pJson["pressure"], "float", "");
|
||||
|
||||
::SWGSDRangel::setValue(&temperature, pJson["temperature"], "float", "");
|
||||
|
||||
::SWGSDRangel::setValue(&humidity, pJson["humidity"], "float", "");
|
||||
|
||||
::SWGSDRangel::setValue(&height_above_sea_level, pJson["heightAboveSeaLevel"], "float", "");
|
||||
|
||||
::SWGSDRangel::setValue(&temperature_lapse_rate, pJson["temperatureLapseRate"], "float", "");
|
||||
|
||||
::SWGSDRangel::setValue(&frequency, pJson["frequency"], "float", "");
|
||||
|
||||
::SWGSDRangel::setValue(&stellarium_server_enabled, pJson["stellariumServerEnabled"], "qint32", "");
|
||||
|
||||
::SWGSDRangel::setValue(&stellarium_port, pJson["stellariumPort"], "qint32", "");
|
||||
|
||||
::SWGSDRangel::setValue(&update_period, pJson["updatePeriod"], "float", "");
|
||||
|
||||
::SWGSDRangel::setValue(&epoch, pJson["epoch"], "QString", "QString");
|
||||
|
||||
::SWGSDRangel::setValue(&draw_sun_on_map, pJson["drawSunOnMap"], "qint32", "");
|
||||
|
||||
::SWGSDRangel::setValue(&draw_moon_on_map, pJson["drawMoonOnMap"], "qint32", "");
|
||||
|
||||
::SWGSDRangel::setValue(&draw_star_on_map, pJson["drawStarOnMap"], "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_device_index, pJson["reverseAPIDeviceIndex"], "qint32", "");
|
||||
|
||||
::SWGSDRangel::setValue(&reverse_api_channel_index, pJson["reverseAPIChannelIndex"], "qint32", "");
|
||||
|
||||
}
|
||||
|
||||
QString
|
||||
SWGStarTrackerSettings::asJson ()
|
||||
{
|
||||
QJsonObject* obj = this->asJsonObject();
|
||||
|
||||
QJsonDocument doc(*obj);
|
||||
QByteArray bytes = doc.toJson();
|
||||
delete obj;
|
||||
return QString(bytes);
|
||||
}
|
||||
|
||||
QJsonObject*
|
||||
SWGStarTrackerSettings::asJsonObject() {
|
||||
QJsonObject* obj = new QJsonObject();
|
||||
if(target != nullptr && *target != QString("")){
|
||||
toJsonValue(QString("target"), target, obj, QString("QString"));
|
||||
}
|
||||
if(ra != nullptr && *ra != QString("")){
|
||||
toJsonValue(QString("ra"), ra, obj, QString("QString"));
|
||||
}
|
||||
if(dec != nullptr && *dec != QString("")){
|
||||
toJsonValue(QString("dec"), dec, obj, QString("QString"));
|
||||
}
|
||||
if(m_latitude_isSet){
|
||||
obj->insert("latitude", QJsonValue(latitude));
|
||||
}
|
||||
if(m_longitude_isSet){
|
||||
obj->insert("longitude", QJsonValue(longitude));
|
||||
}
|
||||
if(date_time != nullptr && *date_time != QString("")){
|
||||
toJsonValue(QString("dateTime"), date_time, obj, QString("QString"));
|
||||
}
|
||||
if(refraction != nullptr && *refraction != QString("")){
|
||||
toJsonValue(QString("refraction"), refraction, obj, QString("QString"));
|
||||
}
|
||||
if(m_pressure_isSet){
|
||||
obj->insert("pressure", QJsonValue(pressure));
|
||||
}
|
||||
if(m_temperature_isSet){
|
||||
obj->insert("temperature", QJsonValue(temperature));
|
||||
}
|
||||
if(m_humidity_isSet){
|
||||
obj->insert("humidity", QJsonValue(humidity));
|
||||
}
|
||||
if(m_height_above_sea_level_isSet){
|
||||
obj->insert("heightAboveSeaLevel", QJsonValue(height_above_sea_level));
|
||||
}
|
||||
if(m_temperature_lapse_rate_isSet){
|
||||
obj->insert("temperatureLapseRate", QJsonValue(temperature_lapse_rate));
|
||||
}
|
||||
if(m_frequency_isSet){
|
||||
obj->insert("frequency", QJsonValue(frequency));
|
||||
}
|
||||
if(m_stellarium_server_enabled_isSet){
|
||||
obj->insert("stellariumServerEnabled", QJsonValue(stellarium_server_enabled));
|
||||
}
|
||||
if(m_stellarium_port_isSet){
|
||||
obj->insert("stellariumPort", QJsonValue(stellarium_port));
|
||||
}
|
||||
if(m_update_period_isSet){
|
||||
obj->insert("updatePeriod", QJsonValue(update_period));
|
||||
}
|
||||
if(epoch != nullptr && *epoch != QString("")){
|
||||
toJsonValue(QString("epoch"), epoch, obj, QString("QString"));
|
||||
}
|
||||
if(m_draw_sun_on_map_isSet){
|
||||
obj->insert("drawSunOnMap", QJsonValue(draw_sun_on_map));
|
||||
}
|
||||
if(m_draw_moon_on_map_isSet){
|
||||
obj->insert("drawMoonOnMap", QJsonValue(draw_moon_on_map));
|
||||
}
|
||||
if(m_draw_star_on_map_isSet){
|
||||
obj->insert("drawStarOnMap", QJsonValue(draw_star_on_map));
|
||||
}
|
||||
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;
|
||||
}
|
||||
|
||||
QString*
|
||||
SWGStarTrackerSettings::getTarget() {
|
||||
return target;
|
||||
}
|
||||
void
|
||||
SWGStarTrackerSettings::setTarget(QString* target) {
|
||||
this->target = target;
|
||||
this->m_target_isSet = true;
|
||||
}
|
||||
|
||||
QString*
|
||||
SWGStarTrackerSettings::getRa() {
|
||||
return ra;
|
||||
}
|
||||
void
|
||||
SWGStarTrackerSettings::setRa(QString* ra) {
|
||||
this->ra = ra;
|
||||
this->m_ra_isSet = true;
|
||||
}
|
||||
|
||||
QString*
|
||||
SWGStarTrackerSettings::getDec() {
|
||||
return dec;
|
||||
}
|
||||
void
|
||||
SWGStarTrackerSettings::setDec(QString* dec) {
|
||||
this->dec = dec;
|
||||
this->m_dec_isSet = true;
|
||||
}
|
||||
|
||||
float
|
||||
SWGStarTrackerSettings::getLatitude() {
|
||||
return latitude;
|
||||
}
|
||||
void
|
||||
SWGStarTrackerSettings::setLatitude(float latitude) {
|
||||
this->latitude = latitude;
|
||||
this->m_latitude_isSet = true;
|
||||
}
|
||||
|
||||
float
|
||||
SWGStarTrackerSettings::getLongitude() {
|
||||
return longitude;
|
||||
}
|
||||
void
|
||||
SWGStarTrackerSettings::setLongitude(float longitude) {
|
||||
this->longitude = longitude;
|
||||
this->m_longitude_isSet = true;
|
||||
}
|
||||
|
||||
QString*
|
||||
SWGStarTrackerSettings::getDateTime() {
|
||||
return date_time;
|
||||
}
|
||||
void
|
||||
SWGStarTrackerSettings::setDateTime(QString* date_time) {
|
||||
this->date_time = date_time;
|
||||
this->m_date_time_isSet = true;
|
||||
}
|
||||
|
||||
QString*
|
||||
SWGStarTrackerSettings::getRefraction() {
|
||||
return refraction;
|
||||
}
|
||||
void
|
||||
SWGStarTrackerSettings::setRefraction(QString* refraction) {
|
||||
this->refraction = refraction;
|
||||
this->m_refraction_isSet = true;
|
||||
}
|
||||
|
||||
float
|
||||
SWGStarTrackerSettings::getPressure() {
|
||||
return pressure;
|
||||
}
|
||||
void
|
||||
SWGStarTrackerSettings::setPressure(float pressure) {
|
||||
this->pressure = pressure;
|
||||
this->m_pressure_isSet = true;
|
||||
}
|
||||
|
||||
float
|
||||
SWGStarTrackerSettings::getTemperature() {
|
||||
return temperature;
|
||||
}
|
||||
void
|
||||
SWGStarTrackerSettings::setTemperature(float temperature) {
|
||||
this->temperature = temperature;
|
||||
this->m_temperature_isSet = true;
|
||||
}
|
||||
|
||||
float
|
||||
SWGStarTrackerSettings::getHumidity() {
|
||||
return humidity;
|
||||
}
|
||||
void
|
||||
SWGStarTrackerSettings::setHumidity(float humidity) {
|
||||
this->humidity = humidity;
|
||||
this->m_humidity_isSet = true;
|
||||
}
|
||||
|
||||
float
|
||||
SWGStarTrackerSettings::getHeightAboveSeaLevel() {
|
||||
return height_above_sea_level;
|
||||
}
|
||||
void
|
||||
SWGStarTrackerSettings::setHeightAboveSeaLevel(float height_above_sea_level) {
|
||||
this->height_above_sea_level = height_above_sea_level;
|
||||
this->m_height_above_sea_level_isSet = true;
|
||||
}
|
||||
|
||||
float
|
||||
SWGStarTrackerSettings::getTemperatureLapseRate() {
|
||||
return temperature_lapse_rate;
|
||||
}
|
||||
void
|
||||
SWGStarTrackerSettings::setTemperatureLapseRate(float temperature_lapse_rate) {
|
||||
this->temperature_lapse_rate = temperature_lapse_rate;
|
||||
this->m_temperature_lapse_rate_isSet = true;
|
||||
}
|
||||
|
||||
float
|
||||
SWGStarTrackerSettings::getFrequency() {
|
||||
return frequency;
|
||||
}
|
||||
void
|
||||
SWGStarTrackerSettings::setFrequency(float frequency) {
|
||||
this->frequency = frequency;
|
||||
this->m_frequency_isSet = true;
|
||||
}
|
||||
|
||||
qint32
|
||||
SWGStarTrackerSettings::getStellariumServerEnabled() {
|
||||
return stellarium_server_enabled;
|
||||
}
|
||||
void
|
||||
SWGStarTrackerSettings::setStellariumServerEnabled(qint32 stellarium_server_enabled) {
|
||||
this->stellarium_server_enabled = stellarium_server_enabled;
|
||||
this->m_stellarium_server_enabled_isSet = true;
|
||||
}
|
||||
|
||||
qint32
|
||||
SWGStarTrackerSettings::getStellariumPort() {
|
||||
return stellarium_port;
|
||||
}
|
||||
void
|
||||
SWGStarTrackerSettings::setStellariumPort(qint32 stellarium_port) {
|
||||
this->stellarium_port = stellarium_port;
|
||||
this->m_stellarium_port_isSet = true;
|
||||
}
|
||||
|
||||
float
|
||||
SWGStarTrackerSettings::getUpdatePeriod() {
|
||||
return update_period;
|
||||
}
|
||||
void
|
||||
SWGStarTrackerSettings::setUpdatePeriod(float update_period) {
|
||||
this->update_period = update_period;
|
||||
this->m_update_period_isSet = true;
|
||||
}
|
||||
|
||||
QString*
|
||||
SWGStarTrackerSettings::getEpoch() {
|
||||
return epoch;
|
||||
}
|
||||
void
|
||||
SWGStarTrackerSettings::setEpoch(QString* epoch) {
|
||||
this->epoch = epoch;
|
||||
this->m_epoch_isSet = true;
|
||||
}
|
||||
|
||||
qint32
|
||||
SWGStarTrackerSettings::getDrawSunOnMap() {
|
||||
return draw_sun_on_map;
|
||||
}
|
||||
void
|
||||
SWGStarTrackerSettings::setDrawSunOnMap(qint32 draw_sun_on_map) {
|
||||
this->draw_sun_on_map = draw_sun_on_map;
|
||||
this->m_draw_sun_on_map_isSet = true;
|
||||
}
|
||||
|
||||
qint32
|
||||
SWGStarTrackerSettings::getDrawMoonOnMap() {
|
||||
return draw_moon_on_map;
|
||||
}
|
||||
void
|
||||
SWGStarTrackerSettings::setDrawMoonOnMap(qint32 draw_moon_on_map) {
|
||||
this->draw_moon_on_map = draw_moon_on_map;
|
||||
this->m_draw_moon_on_map_isSet = true;
|
||||
}
|
||||
|
||||
qint32
|
||||
SWGStarTrackerSettings::getDrawStarOnMap() {
|
||||
return draw_star_on_map;
|
||||
}
|
||||
void
|
||||
SWGStarTrackerSettings::setDrawStarOnMap(qint32 draw_star_on_map) {
|
||||
this->draw_star_on_map = draw_star_on_map;
|
||||
this->m_draw_star_on_map_isSet = true;
|
||||
}
|
||||
|
||||
QString*
|
||||
SWGStarTrackerSettings::getTitle() {
|
||||
return title;
|
||||
}
|
||||
void
|
||||
SWGStarTrackerSettings::setTitle(QString* title) {
|
||||
this->title = title;
|
||||
this->m_title_isSet = true;
|
||||
}
|
||||
|
||||
qint32
|
||||
SWGStarTrackerSettings::getRgbColor() {
|
||||
return rgb_color;
|
||||
}
|
||||
void
|
||||
SWGStarTrackerSettings::setRgbColor(qint32 rgb_color) {
|
||||
this->rgb_color = rgb_color;
|
||||
this->m_rgb_color_isSet = true;
|
||||
}
|
||||
|
||||
qint32
|
||||
SWGStarTrackerSettings::getUseReverseApi() {
|
||||
return use_reverse_api;
|
||||
}
|
||||
void
|
||||
SWGStarTrackerSettings::setUseReverseApi(qint32 use_reverse_api) {
|
||||
this->use_reverse_api = use_reverse_api;
|
||||
this->m_use_reverse_api_isSet = true;
|
||||
}
|
||||
|
||||
QString*
|
||||
SWGStarTrackerSettings::getReverseApiAddress() {
|
||||
return reverse_api_address;
|
||||
}
|
||||
void
|
||||
SWGStarTrackerSettings::setReverseApiAddress(QString* reverse_api_address) {
|
||||
this->reverse_api_address = reverse_api_address;
|
||||
this->m_reverse_api_address_isSet = true;
|
||||
}
|
||||
|
||||
qint32
|
||||
SWGStarTrackerSettings::getReverseApiPort() {
|
||||
return reverse_api_port;
|
||||
}
|
||||
void
|
||||
SWGStarTrackerSettings::setReverseApiPort(qint32 reverse_api_port) {
|
||||
this->reverse_api_port = reverse_api_port;
|
||||
this->m_reverse_api_port_isSet = true;
|
||||
}
|
||||
|
||||
qint32
|
||||
SWGStarTrackerSettings::getReverseApiDeviceIndex() {
|
||||
return reverse_api_device_index;
|
||||
}
|
||||
void
|
||||
SWGStarTrackerSettings::setReverseApiDeviceIndex(qint32 reverse_api_device_index) {
|
||||
this->reverse_api_device_index = reverse_api_device_index;
|
||||
this->m_reverse_api_device_index_isSet = true;
|
||||
}
|
||||
|
||||
qint32
|
||||
SWGStarTrackerSettings::getReverseApiChannelIndex() {
|
||||
return reverse_api_channel_index;
|
||||
}
|
||||
void
|
||||
SWGStarTrackerSettings::setReverseApiChannelIndex(qint32 reverse_api_channel_index) {
|
||||
this->reverse_api_channel_index = reverse_api_channel_index;
|
||||
this->m_reverse_api_channel_index_isSet = true;
|
||||
}
|
||||
|
||||
|
||||
bool
|
||||
SWGStarTrackerSettings::isSet(){
|
||||
bool isObjectUpdated = false;
|
||||
do{
|
||||
if(target && *target != QString("")){
|
||||
isObjectUpdated = true; break;
|
||||
}
|
||||
if(ra && *ra != QString("")){
|
||||
isObjectUpdated = true; break;
|
||||
}
|
||||
if(dec && *dec != QString("")){
|
||||
isObjectUpdated = true; break;
|
||||
}
|
||||
if(m_latitude_isSet){
|
||||
isObjectUpdated = true; break;
|
||||
}
|
||||
if(m_longitude_isSet){
|
||||
isObjectUpdated = true; break;
|
||||
}
|
||||
if(date_time && *date_time != QString("")){
|
||||
isObjectUpdated = true; break;
|
||||
}
|
||||
if(refraction && *refraction != QString("")){
|
||||
isObjectUpdated = true; break;
|
||||
}
|
||||
if(m_pressure_isSet){
|
||||
isObjectUpdated = true; break;
|
||||
}
|
||||
if(m_temperature_isSet){
|
||||
isObjectUpdated = true; break;
|
||||
}
|
||||
if(m_humidity_isSet){
|
||||
isObjectUpdated = true; break;
|
||||
}
|
||||
if(m_height_above_sea_level_isSet){
|
||||
isObjectUpdated = true; break;
|
||||
}
|
||||
if(m_temperature_lapse_rate_isSet){
|
||||
isObjectUpdated = true; break;
|
||||
}
|
||||
if(m_frequency_isSet){
|
||||
isObjectUpdated = true; break;
|
||||
}
|
||||
if(m_stellarium_server_enabled_isSet){
|
||||
isObjectUpdated = true; break;
|
||||
}
|
||||
if(m_stellarium_port_isSet){
|
||||
isObjectUpdated = true; break;
|
||||
}
|
||||
if(m_update_period_isSet){
|
||||
isObjectUpdated = true; break;
|
||||
}
|
||||
if(epoch && *epoch != QString("")){
|
||||
isObjectUpdated = true; break;
|
||||
}
|
||||
if(m_draw_sun_on_map_isSet){
|
||||
isObjectUpdated = true; break;
|
||||
}
|
||||
if(m_draw_moon_on_map_isSet){
|
||||
isObjectUpdated = true; break;
|
||||
}
|
||||
if(m_draw_star_on_map_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_device_index_isSet){
|
||||
isObjectUpdated = true; break;
|
||||
}
|
||||
if(m_reverse_api_channel_index_isSet){
|
||||
isObjectUpdated = true; break;
|
||||
}
|
||||
}while(false);
|
||||
return isObjectUpdated;
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,215 @@
|
|||
/**
|
||||
* 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.
|
||||
*/
|
||||
|
||||
/*
|
||||
* SWGStarTrackerSettings.h
|
||||
*
|
||||
* Star Tracker settings
|
||||
*/
|
||||
|
||||
#ifndef SWGStarTrackerSettings_H_
|
||||
#define SWGStarTrackerSettings_H_
|
||||
|
||||
#include <QJsonObject>
|
||||
|
||||
|
||||
#include <QString>
|
||||
|
||||
#include "SWGObject.h"
|
||||
#include "export.h"
|
||||
|
||||
namespace SWGSDRangel {
|
||||
|
||||
class SWG_API SWGStarTrackerSettings: public SWGObject {
|
||||
public:
|
||||
SWGStarTrackerSettings();
|
||||
SWGStarTrackerSettings(QString* json);
|
||||
virtual ~SWGStarTrackerSettings();
|
||||
void init();
|
||||
void cleanup();
|
||||
|
||||
virtual QString asJson () override;
|
||||
virtual QJsonObject* asJsonObject() override;
|
||||
virtual void fromJsonObject(QJsonObject &json) override;
|
||||
virtual SWGStarTrackerSettings* fromJson(QString &jsonString) override;
|
||||
|
||||
QString* getTarget();
|
||||
void setTarget(QString* target);
|
||||
|
||||
QString* getRa();
|
||||
void setRa(QString* ra);
|
||||
|
||||
QString* getDec();
|
||||
void setDec(QString* dec);
|
||||
|
||||
float getLatitude();
|
||||
void setLatitude(float latitude);
|
||||
|
||||
float getLongitude();
|
||||
void setLongitude(float longitude);
|
||||
|
||||
QString* getDateTime();
|
||||
void setDateTime(QString* date_time);
|
||||
|
||||
QString* getRefraction();
|
||||
void setRefraction(QString* refraction);
|
||||
|
||||
float getPressure();
|
||||
void setPressure(float pressure);
|
||||
|
||||
float getTemperature();
|
||||
void setTemperature(float temperature);
|
||||
|
||||
float getHumidity();
|
||||
void setHumidity(float humidity);
|
||||
|
||||
float getHeightAboveSeaLevel();
|
||||
void setHeightAboveSeaLevel(float height_above_sea_level);
|
||||
|
||||
float getTemperatureLapseRate();
|
||||
void setTemperatureLapseRate(float temperature_lapse_rate);
|
||||
|
||||
float getFrequency();
|
||||
void setFrequency(float frequency);
|
||||
|
||||
qint32 getStellariumServerEnabled();
|
||||
void setStellariumServerEnabled(qint32 stellarium_server_enabled);
|
||||
|
||||
qint32 getStellariumPort();
|
||||
void setStellariumPort(qint32 stellarium_port);
|
||||
|
||||
float getUpdatePeriod();
|
||||
void setUpdatePeriod(float update_period);
|
||||
|
||||
QString* getEpoch();
|
||||
void setEpoch(QString* epoch);
|
||||
|
||||
qint32 getDrawSunOnMap();
|
||||
void setDrawSunOnMap(qint32 draw_sun_on_map);
|
||||
|
||||
qint32 getDrawMoonOnMap();
|
||||
void setDrawMoonOnMap(qint32 draw_moon_on_map);
|
||||
|
||||
qint32 getDrawStarOnMap();
|
||||
void setDrawStarOnMap(qint32 draw_star_on_map);
|
||||
|
||||
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:
|
||||
QString* target;
|
||||
bool m_target_isSet;
|
||||
|
||||
QString* ra;
|
||||
bool m_ra_isSet;
|
||||
|
||||
QString* dec;
|
||||
bool m_dec_isSet;
|
||||
|
||||
float latitude;
|
||||
bool m_latitude_isSet;
|
||||
|
||||
float longitude;
|
||||
bool m_longitude_isSet;
|
||||
|
||||
QString* date_time;
|
||||
bool m_date_time_isSet;
|
||||
|
||||
QString* refraction;
|
||||
bool m_refraction_isSet;
|
||||
|
||||
float pressure;
|
||||
bool m_pressure_isSet;
|
||||
|
||||
float temperature;
|
||||
bool m_temperature_isSet;
|
||||
|
||||
float humidity;
|
||||
bool m_humidity_isSet;
|
||||
|
||||
float height_above_sea_level;
|
||||
bool m_height_above_sea_level_isSet;
|
||||
|
||||
float temperature_lapse_rate;
|
||||
bool m_temperature_lapse_rate_isSet;
|
||||
|
||||
float frequency;
|
||||
bool m_frequency_isSet;
|
||||
|
||||
qint32 stellarium_server_enabled;
|
||||
bool m_stellarium_server_enabled_isSet;
|
||||
|
||||
qint32 stellarium_port;
|
||||
bool m_stellarium_port_isSet;
|
||||
|
||||
float update_period;
|
||||
bool m_update_period_isSet;
|
||||
|
||||
QString* epoch;
|
||||
bool m_epoch_isSet;
|
||||
|
||||
qint32 draw_sun_on_map;
|
||||
bool m_draw_sun_on_map_isSet;
|
||||
|
||||
qint32 draw_moon_on_map;
|
||||
bool m_draw_moon_on_map_isSet;
|
||||
|
||||
qint32 draw_star_on_map;
|
||||
bool m_draw_star_on_map_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 /* SWGStarTrackerSettings_H_ */
|
|
@ -0,0 +1,156 @@
|
|||
/**
|
||||
* 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 "SWGTargetAzimuthElevation.h"
|
||||
|
||||
#include "SWGHelpers.h"
|
||||
|
||||
#include <QJsonDocument>
|
||||
#include <QJsonArray>
|
||||
#include <QObject>
|
||||
#include <QDebug>
|
||||
|
||||
namespace SWGSDRangel {
|
||||
|
||||
SWGTargetAzimuthElevation::SWGTargetAzimuthElevation(QString* json) {
|
||||
init();
|
||||
this->fromJson(*json);
|
||||
}
|
||||
|
||||
SWGTargetAzimuthElevation::SWGTargetAzimuthElevation() {
|
||||
name = nullptr;
|
||||
m_name_isSet = false;
|
||||
azimuth = 0.0f;
|
||||
m_azimuth_isSet = false;
|
||||
elevation = 0.0f;
|
||||
m_elevation_isSet = false;
|
||||
}
|
||||
|
||||
SWGTargetAzimuthElevation::~SWGTargetAzimuthElevation() {
|
||||
this->cleanup();
|
||||
}
|
||||
|
||||
void
|
||||
SWGTargetAzimuthElevation::init() {
|
||||
name = new QString("");
|
||||
m_name_isSet = false;
|
||||
azimuth = 0.0f;
|
||||
m_azimuth_isSet = false;
|
||||
elevation = 0.0f;
|
||||
m_elevation_isSet = false;
|
||||
}
|
||||
|
||||
void
|
||||
SWGTargetAzimuthElevation::cleanup() {
|
||||
if(name != nullptr) {
|
||||
delete name;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
SWGTargetAzimuthElevation*
|
||||
SWGTargetAzimuthElevation::fromJson(QString &json) {
|
||||
QByteArray array (json.toStdString().c_str());
|
||||
QJsonDocument doc = QJsonDocument::fromJson(array);
|
||||
QJsonObject jsonObject = doc.object();
|
||||
this->fromJsonObject(jsonObject);
|
||||
return this;
|
||||
}
|
||||
|
||||
void
|
||||
SWGTargetAzimuthElevation::fromJsonObject(QJsonObject &pJson) {
|
||||
::SWGSDRangel::setValue(&name, pJson["name"], "QString", "QString");
|
||||
|
||||
::SWGSDRangel::setValue(&azimuth, pJson["azimuth"], "float", "");
|
||||
|
||||
::SWGSDRangel::setValue(&elevation, pJson["elevation"], "float", "");
|
||||
|
||||
}
|
||||
|
||||
QString
|
||||
SWGTargetAzimuthElevation::asJson ()
|
||||
{
|
||||
QJsonObject* obj = this->asJsonObject();
|
||||
|
||||
QJsonDocument doc(*obj);
|
||||
QByteArray bytes = doc.toJson();
|
||||
delete obj;
|
||||
return QString(bytes);
|
||||
}
|
||||
|
||||
QJsonObject*
|
||||
SWGTargetAzimuthElevation::asJsonObject() {
|
||||
QJsonObject* obj = new QJsonObject();
|
||||
if(name != nullptr && *name != QString("")){
|
||||
toJsonValue(QString("name"), name, obj, QString("QString"));
|
||||
}
|
||||
if(m_azimuth_isSet){
|
||||
obj->insert("azimuth", QJsonValue(azimuth));
|
||||
}
|
||||
if(m_elevation_isSet){
|
||||
obj->insert("elevation", QJsonValue(elevation));
|
||||
}
|
||||
|
||||
return obj;
|
||||
}
|
||||
|
||||
QString*
|
||||
SWGTargetAzimuthElevation::getName() {
|
||||
return name;
|
||||
}
|
||||
void
|
||||
SWGTargetAzimuthElevation::setName(QString* name) {
|
||||
this->name = name;
|
||||
this->m_name_isSet = true;
|
||||
}
|
||||
|
||||
float
|
||||
SWGTargetAzimuthElevation::getAzimuth() {
|
||||
return azimuth;
|
||||
}
|
||||
void
|
||||
SWGTargetAzimuthElevation::setAzimuth(float azimuth) {
|
||||
this->azimuth = azimuth;
|
||||
this->m_azimuth_isSet = true;
|
||||
}
|
||||
|
||||
float
|
||||
SWGTargetAzimuthElevation::getElevation() {
|
||||
return elevation;
|
||||
}
|
||||
void
|
||||
SWGTargetAzimuthElevation::setElevation(float elevation) {
|
||||
this->elevation = elevation;
|
||||
this->m_elevation_isSet = true;
|
||||
}
|
||||
|
||||
|
||||
bool
|
||||
SWGTargetAzimuthElevation::isSet(){
|
||||
bool isObjectUpdated = false;
|
||||
do{
|
||||
if(name && *name != QString("")){
|
||||
isObjectUpdated = true; break;
|
||||
}
|
||||
if(m_azimuth_isSet){
|
||||
isObjectUpdated = true; break;
|
||||
}
|
||||
if(m_elevation_isSet){
|
||||
isObjectUpdated = true; break;
|
||||
}
|
||||
}while(false);
|
||||
return isObjectUpdated;
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,71 @@
|
|||
/**
|
||||
* SDRangel
|
||||
* This is the web REST/JSON API of SDRangel SDR software. SDRangel is an Open Source Qt5/OpenGL 3.0+ (4.3+ in Windows) GUI and server Software Defined Radio and signal analyzer in software. It supports Airspy, BladeRF, HackRF, LimeSDR, PlutoSDR, RTL-SDR, SDRplay RSP1 and FunCube --- Limitations and specifcities: * In SDRangel GUI the first Rx device set cannot be deleted. Conversely the server starts with no device sets and its number of device sets can be reduced to zero by as many calls as necessary to /sdrangel/deviceset with DELETE method. * Preset import and export from/to file is a server only feature. * Device set focus is a GUI only feature. * The following channels are not implemented (status 501 is returned): ATV and DATV demodulators, Channel Analyzer NG, LoRa demodulator * The device settings and report structures contains only the sub-structure corresponding to the device type. The DeviceSettings and DeviceReport structures documented here shows all of them but only one will be or should be present at a time * The channel settings and report structures contains only the sub-structure corresponding to the channel type. The ChannelSettings and ChannelReport structures documented here shows all of them but only one will be or should be present at a time ---
|
||||
*
|
||||
* OpenAPI spec version: 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.
|
||||
*/
|
||||
|
||||
/*
|
||||
* SWGTargetAzimuthElevation.h
|
||||
*
|
||||
* A target azimuth and elevation
|
||||
*/
|
||||
|
||||
#ifndef SWGTargetAzimuthElevation_H_
|
||||
#define SWGTargetAzimuthElevation_H_
|
||||
|
||||
#include <QJsonObject>
|
||||
|
||||
|
||||
#include <QString>
|
||||
|
||||
#include "SWGObject.h"
|
||||
#include "export.h"
|
||||
|
||||
namespace SWGSDRangel {
|
||||
|
||||
class SWG_API SWGTargetAzimuthElevation: public SWGObject {
|
||||
public:
|
||||
SWGTargetAzimuthElevation();
|
||||
SWGTargetAzimuthElevation(QString* json);
|
||||
virtual ~SWGTargetAzimuthElevation();
|
||||
void init();
|
||||
void cleanup();
|
||||
|
||||
virtual QString asJson () override;
|
||||
virtual QJsonObject* asJsonObject() override;
|
||||
virtual void fromJsonObject(QJsonObject &json) override;
|
||||
virtual SWGTargetAzimuthElevation* fromJson(QString &jsonString) override;
|
||||
|
||||
QString* getName();
|
||||
void setName(QString* name);
|
||||
|
||||
float getAzimuth();
|
||||
void setAzimuth(float azimuth);
|
||||
|
||||
float getElevation();
|
||||
void setElevation(float elevation);
|
||||
|
||||
|
||||
virtual bool isSet() override;
|
||||
|
||||
private:
|
||||
QString* name;
|
||||
bool m_name_isSet;
|
||||
|
||||
float azimuth;
|
||||
bool m_azimuth_isSet;
|
||||
|
||||
float elevation;
|
||||
bool m_elevation_isSet;
|
||||
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
#endif /* SWGTargetAzimuthElevation_H_ */
|
Loading…
Reference in New Issue