mirror of
https://github.com/f4exb/sdrangel.git
synced 2025-04-16 00:18:29 -04:00
REST API device and channel actions: extension of record action: swagger generated code
This commit is contained in:
parent
d821c3eb50
commit
ba08ff5090
@ -1134,6 +1134,24 @@ margin-bottom: 20px;
|
||||
}
|
||||
},
|
||||
"description" : "ATVMod"
|
||||
};
|
||||
defs.AirspyActions = {
|
||||
"properties" : {
|
||||
"record" : {
|
||||
"type" : "integer",
|
||||
"description" : "Record IQ stream action\n * 0 - stop recording\n * 1 - start recording\n"
|
||||
}
|
||||
},
|
||||
"description" : "Airspy"
|
||||
};
|
||||
defs.AirspyHFActions = {
|
||||
"properties" : {
|
||||
"record" : {
|
||||
"type" : "integer",
|
||||
"description" : "Record IQ stream action\n * 0 - stop recording\n * 1 - start recording"
|
||||
}
|
||||
},
|
||||
"description" : "AirspyHF"
|
||||
};
|
||||
defs.AirspyHFReport = {
|
||||
"properties" : {
|
||||
@ -1567,6 +1585,15 @@ margin-bottom: 20px;
|
||||
}
|
||||
},
|
||||
"description" : "A bandwidth expressed in Hertz (Hz)"
|
||||
};
|
||||
defs.BladeRF1InputActions = {
|
||||
"properties" : {
|
||||
"record" : {
|
||||
"type" : "integer",
|
||||
"description" : "Record IQ stream action\n * 0 - stop recording\n * 1 - start recording\n"
|
||||
}
|
||||
},
|
||||
"description" : "BladeRF1"
|
||||
};
|
||||
defs.BladeRF1InputSettings = {
|
||||
"properties" : {
|
||||
@ -2645,8 +2672,56 @@ margin-bottom: 20px;
|
||||
"type" : "integer",
|
||||
"description" : "Optional for reverse API. This is the device set index from where the message comes from."
|
||||
},
|
||||
"airspyActions" : {
|
||||
"$ref" : "#/definitions/AirspyActions"
|
||||
},
|
||||
"airspyHFActions" : {
|
||||
"$ref" : "#/definitions/AirspyHFActions"
|
||||
},
|
||||
"bladeRF1InputActions" : {
|
||||
"$ref" : "#/definitions/BladeRF1InputActions"
|
||||
},
|
||||
"fcdProActions" : {
|
||||
"$ref" : "#/definitions/FCDProActions"
|
||||
},
|
||||
"fcdProPlusActions" : {
|
||||
"$ref" : "#/definitions/FCDProPlusActions"
|
||||
},
|
||||
"hackRFInputActions" : {
|
||||
"$ref" : "#/definitions/HackRFInputActions"
|
||||
},
|
||||
"kiwiSDRActions" : {
|
||||
"$ref" : "#/definitions/KiwiSDRActions"
|
||||
},
|
||||
"limeSdrInputActions" : {
|
||||
"$ref" : "#/definitions/LimeSdrInputActions"
|
||||
},
|
||||
"localInputActions" : {
|
||||
"$ref" : "#/definitions/LocalInputActions"
|
||||
},
|
||||
"perseusActions" : {
|
||||
"$ref" : "#/definitions/PerseusActions"
|
||||
},
|
||||
"plutoSdrInputActions" : {
|
||||
"$ref" : "#/definitions/PlutoSdrInputActions"
|
||||
},
|
||||
"remoteInputActions" : {
|
||||
"$ref" : "#/definitions/RemoteInputActions"
|
||||
},
|
||||
"rtlSdrActions" : {
|
||||
"$ref" : "#/definitions/RtlSdrActions"
|
||||
},
|
||||
"sdrPlayActions" : {
|
||||
"$ref" : "#/definitions/SDRPlayActions"
|
||||
},
|
||||
"soapySDRInputActions" : {
|
||||
"$ref" : "#/definitions/SoapySDRInputActions"
|
||||
},
|
||||
"testSourceActions" : {
|
||||
"$ref" : "#/definitions/TestSourceActions"
|
||||
},
|
||||
"xtrxInputActions" : {
|
||||
"$ref" : "#/definitions/XtrxInputActions"
|
||||
}
|
||||
},
|
||||
"description" : "Base device actions. Only the device actions corresponding to the device specified in the deviceHwType field is or should be present."
|
||||
@ -2950,6 +3025,24 @@ margin-bottom: 20px;
|
||||
"example" : "KO"
|
||||
}
|
||||
}
|
||||
};
|
||||
defs.FCDProActions = {
|
||||
"properties" : {
|
||||
"record" : {
|
||||
"type" : "integer",
|
||||
"description" : "Record IQ stream action\n * 0 - stop recording\n * 1 - start recording\n"
|
||||
}
|
||||
},
|
||||
"description" : "FCDPro"
|
||||
};
|
||||
defs.FCDProPlusActions = {
|
||||
"properties" : {
|
||||
"record" : {
|
||||
"type" : "integer",
|
||||
"description" : "Record IQ stream action\n * 0 - stop recording\n * 1 - start recording\n"
|
||||
}
|
||||
},
|
||||
"description" : "FCDProPlus"
|
||||
};
|
||||
defs.FCDProPlusSettings = {
|
||||
"properties" : {
|
||||
@ -3702,6 +3795,15 @@ margin-bottom: 20px;
|
||||
}
|
||||
},
|
||||
"description" : "A gain expressed in centi-Bels (tenths of dB)"
|
||||
};
|
||||
defs.HackRFInputActions = {
|
||||
"properties" : {
|
||||
"record" : {
|
||||
"type" : "integer",
|
||||
"description" : "Record IQ stream action\n * 0 - stop recording\n * 1 - start recording\n"
|
||||
}
|
||||
},
|
||||
"description" : "HackRF"
|
||||
};
|
||||
defs.HackRFInputSettings = {
|
||||
"properties" : {
|
||||
@ -3921,6 +4023,15 @@ margin-bottom: 20px;
|
||||
}
|
||||
},
|
||||
"description" : "Summarized information about this SDRangel instance"
|
||||
};
|
||||
defs.KiwiSDRActions = {
|
||||
"properties" : {
|
||||
"record" : {
|
||||
"type" : "integer",
|
||||
"description" : "Record IQ stream action\n * 0 - stop recording\n * 1 - start recording\n"
|
||||
}
|
||||
},
|
||||
"description" : "KiwiSDR"
|
||||
};
|
||||
defs.KiwiSDRReport = {
|
||||
"properties" : {
|
||||
@ -4080,6 +4191,15 @@ margin-bottom: 20px;
|
||||
}
|
||||
},
|
||||
"description" : "LimeRFE"
|
||||
};
|
||||
defs.LimeSdrInputActions = {
|
||||
"properties" : {
|
||||
"record" : {
|
||||
"type" : "integer",
|
||||
"description" : "Record IQ stream action\n * 0 - stop recording\n * 1 - start recording\n"
|
||||
}
|
||||
},
|
||||
"description" : "LimeSDR"
|
||||
};
|
||||
defs.LimeSdrInputReport = {
|
||||
"properties" : {
|
||||
@ -4345,6 +4465,15 @@ margin-bottom: 20px;
|
||||
}
|
||||
},
|
||||
"description" : "LimeSDR"
|
||||
};
|
||||
defs.LocalInputActions = {
|
||||
"properties" : {
|
||||
"record" : {
|
||||
"type" : "integer",
|
||||
"description" : "Record IQ stream action\n * 0 - stop recording\n * 1 - start recording"
|
||||
}
|
||||
},
|
||||
"description" : "LocalInput"
|
||||
};
|
||||
defs.LocalInputReport = {
|
||||
"properties" : {
|
||||
@ -4749,6 +4878,15 @@ margin-bottom: 20px;
|
||||
}
|
||||
},
|
||||
"description" : "Enumeration with name for values"
|
||||
};
|
||||
defs.PerseusActions = {
|
||||
"properties" : {
|
||||
"record" : {
|
||||
"type" : "integer",
|
||||
"description" : "Record IQ stream action\n * 0 - stop recording\n * 1 - start recording"
|
||||
}
|
||||
},
|
||||
"description" : "Perseus"
|
||||
};
|
||||
defs.PerseusReport = {
|
||||
"properties" : {
|
||||
@ -4817,6 +4955,15 @@ margin-bottom: 20px;
|
||||
}
|
||||
},
|
||||
"description" : "Perseus"
|
||||
};
|
||||
defs.PlutoSdrInputActions = {
|
||||
"properties" : {
|
||||
"record" : {
|
||||
"type" : "integer",
|
||||
"description" : "Record IQ stream action\n * 0 - stop recording\n * 1 - start recording\n"
|
||||
}
|
||||
},
|
||||
"description" : "PlutoSDR"
|
||||
};
|
||||
defs.PlutoSdrInputReport = {
|
||||
"properties" : {
|
||||
@ -5314,6 +5461,15 @@ margin-bottom: 20px;
|
||||
}
|
||||
},
|
||||
"description" : "An arbitrary range of floating point values"
|
||||
};
|
||||
defs.RemoteInputActions = {
|
||||
"properties" : {
|
||||
"record" : {
|
||||
"type" : "integer",
|
||||
"description" : "Record IQ stream action\n * 0 - stop recording\n * 1 - start recording"
|
||||
}
|
||||
},
|
||||
"description" : "RemoteInput"
|
||||
};
|
||||
defs.RemoteInputReport = {
|
||||
"properties" : {
|
||||
@ -5683,6 +5839,15 @@ margin-bottom: 20px;
|
||||
}
|
||||
},
|
||||
"description" : "RTLSDR"
|
||||
};
|
||||
defs.SDRPlayActions = {
|
||||
"properties" : {
|
||||
"record" : {
|
||||
"type" : "integer",
|
||||
"description" : "Record IQ stream action\n * 0 - stop recording\n * 1 - start recording"
|
||||
}
|
||||
},
|
||||
"description" : "SDRplay1"
|
||||
};
|
||||
defs.SDRPlayReport = {
|
||||
"properties" : {
|
||||
@ -6077,6 +6242,15 @@ margin-bottom: 20px;
|
||||
}
|
||||
},
|
||||
"description" : "A named gain setting specified by its range"
|
||||
};
|
||||
defs.SoapySDRInputActions = {
|
||||
"properties" : {
|
||||
"record" : {
|
||||
"type" : "integer",
|
||||
"description" : "Record IQ stream action\n * 0 - stop recording\n * 1 - start recording"
|
||||
}
|
||||
},
|
||||
"description" : "SoapySDR"
|
||||
};
|
||||
defs.SoapySDRInputSettings = {
|
||||
"properties" : {
|
||||
@ -6355,6 +6529,15 @@ margin-bottom: 20px;
|
||||
"type" : "string"
|
||||
}
|
||||
}
|
||||
};
|
||||
defs.TestSourceActions = {
|
||||
"properties" : {
|
||||
"record" : {
|
||||
"type" : "integer",
|
||||
"description" : "Record IQ stream action\n * 0 - stop recording\n * 1 - start recording"
|
||||
}
|
||||
},
|
||||
"description" : "TestSource"
|
||||
};
|
||||
defs.TestSourceSettings = {
|
||||
"properties" : {
|
||||
@ -6988,6 +7171,15 @@ margin-bottom: 20px;
|
||||
}
|
||||
},
|
||||
"description" : "WFMMod"
|
||||
};
|
||||
defs.XtrxInputActions = {
|
||||
"properties" : {
|
||||
"record" : {
|
||||
"type" : "integer",
|
||||
"description" : "Record IQ stream action\n * 0 - stop recording\n * 1 - start recording\n"
|
||||
}
|
||||
},
|
||||
"description" : "XTRX"
|
||||
};
|
||||
defs.XtrxInputReport = {
|
||||
"properties" : {
|
||||
@ -33188,7 +33380,7 @@ except ApiException as e:
|
||||
</div>
|
||||
<div id="generator">
|
||||
<div class="content">
|
||||
Generated 2020-03-10T15:52:04.190+01:00
|
||||
Generated 2020-03-10T19:38:19.250+01:00
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -56,3 +56,13 @@ AirspyReport:
|
||||
type: array
|
||||
items:
|
||||
$ref: "/doc/swagger/include/Structs.yaml#/SampleRate"
|
||||
|
||||
AirspyActions:
|
||||
description: Airspy
|
||||
properties:
|
||||
record:
|
||||
type: integer
|
||||
description: >
|
||||
Record IQ stream action
|
||||
* 0 - stop recording
|
||||
* 1 - start recording
|
||||
|
@ -55,3 +55,13 @@ AirspyHFReport:
|
||||
type: array
|
||||
items:
|
||||
$ref: "/doc/swagger/include/Structs.yaml#/SampleRate"
|
||||
|
||||
AirspyHFActions:
|
||||
description: AirspyHF
|
||||
properties:
|
||||
record:
|
||||
type: integer
|
||||
description: >
|
||||
Record IQ stream action
|
||||
* 0 - stop recording
|
||||
* 1 - start recording
|
@ -40,6 +40,16 @@ BladeRF1InputSettings:
|
||||
reverseAPIDeviceIndex:
|
||||
type: integer
|
||||
|
||||
BladeRF1InputActions:
|
||||
description: BladeRF1
|
||||
properties:
|
||||
record:
|
||||
type: integer
|
||||
description: >
|
||||
Record IQ stream action
|
||||
* 0 - stop recording
|
||||
* 1 - start recording
|
||||
|
||||
BladeRF1OutputSettings:
|
||||
description: BladeRF1
|
||||
properties:
|
||||
|
@ -14,5 +14,37 @@ DeviceActions:
|
||||
originatorIndex:
|
||||
description: Optional for reverse API. This is the device set index from where the message comes from.
|
||||
type: integer
|
||||
airspyActions:
|
||||
$ref: "/doc/swagger/include/Airspy.yaml#/AirspyActions"
|
||||
airspyHFActions:
|
||||
$ref: "/doc/swagger/include/AirspyHF.yaml#/AirspyHFActions"
|
||||
bladeRF1InputActions:
|
||||
$ref: "/doc/swagger/include/BladeRF1.yaml#/BladeRF1InputActions"
|
||||
fcdProActions:
|
||||
$ref: "/doc/swagger/include/FCDPro.yaml#/FCDProActions"
|
||||
fcdProPlusActions:
|
||||
$ref: "/doc/swagger/include/FCDProPlus.yaml#/FCDProPlusActions"
|
||||
hackRFInputActions:
|
||||
$ref: "/doc/swagger/include/HackRF.yaml#/HackRFInputActions"
|
||||
kiwiSDRActions:
|
||||
$ref: "/doc/swagger/include/KiwiSDR.yaml#/KiwiSDRActions"
|
||||
limeSdrInputActions:
|
||||
$ref: "/doc/swagger/include/LimeSdr.yaml#/LimeSdrInputActions"
|
||||
localInputActions:
|
||||
$ref: "/doc/swagger/include/LocalInput.yaml#/LocalInputActions"
|
||||
perseusActions:
|
||||
$ref: "/doc/swagger/include/Perseus.yaml#/PerseusActions"
|
||||
plutoSdrInputActions:
|
||||
$ref: "/doc/swagger/include/PlutoSdr.yaml#/PlutoSdrInputActions"
|
||||
remoteInputActions:
|
||||
$ref: "/doc/swagger/include/RemoteInput.yaml#/RemoteInputActions"
|
||||
rtlSdrActions:
|
||||
$ref: "/doc/swagger/include/RtlSdr.yaml#/RtlSdrActions"
|
||||
sdrPlayActions:
|
||||
$ref: "/doc/swagger/include/SDRPlay.yaml#/SDRPlayActions"
|
||||
soapySDRInputActions:
|
||||
$ref: "/doc/swagger/include/SoapySDR.yaml#/SoapySDRInputActions"
|
||||
testSourceActions:
|
||||
$ref: "/doc/swagger/include/TestSource.yaml#/TestSourceActions"
|
||||
xtrxInputActions:
|
||||
$ref: "/doc/swagger/include/Xtrx.yaml#/XtrxInputActions"
|
||||
|
@ -63,3 +63,12 @@ FCDProSettings:
|
||||
reverseAPIDeviceIndex:
|
||||
type: integer
|
||||
|
||||
FCDProActions:
|
||||
description: FCDPro
|
||||
properties:
|
||||
record:
|
||||
type: integer
|
||||
description: >
|
||||
Record IQ stream action
|
||||
* 0 - stop recording
|
||||
* 1 - start recording
|
||||
|
@ -48,3 +48,13 @@ FCDProPlusSettings:
|
||||
type: integer
|
||||
reverseAPIDeviceIndex:
|
||||
type: integer
|
||||
|
||||
FCDProPlusActions:
|
||||
description: FCDProPlus
|
||||
properties:
|
||||
record:
|
||||
type: integer
|
||||
description: >
|
||||
Record IQ stream action
|
||||
* 0 - stop recording
|
||||
* 1 - start recording
|
||||
|
@ -44,6 +44,16 @@ HackRFInputSettings:
|
||||
reverseAPIDeviceIndex:
|
||||
type: integer
|
||||
|
||||
HackRFInputActions:
|
||||
description: HackRF
|
||||
properties:
|
||||
record:
|
||||
type: integer
|
||||
description: >
|
||||
Record IQ stream action
|
||||
* 0 - stop recording
|
||||
* 1 - start recording
|
||||
|
||||
HackRFOutputSettings:
|
||||
description: HackRF
|
||||
properties:
|
||||
@ -81,3 +91,4 @@ HackRFOutputSettings:
|
||||
type: integer
|
||||
reverseAPIDeviceIndex:
|
||||
type: integer
|
||||
|
||||
|
@ -32,3 +32,13 @@ KiwiSDRReport:
|
||||
status:
|
||||
description: 0 for Idle, 1 for Connecting, 2 for Connected, 3 for Error, 4 for Disconnected
|
||||
type: integer
|
||||
|
||||
KiwiSDRActions:
|
||||
description: KiwiSDR
|
||||
properties:
|
||||
record:
|
||||
type: integer
|
||||
description: >
|
||||
Record IQ stream action
|
||||
* 0 - stop recording
|
||||
* 1 - start recording
|
||||
|
@ -1,6 +1,6 @@
|
||||
LimeSdrInputSettings:
|
||||
description: LimeSDR
|
||||
properties:
|
||||
properties:
|
||||
centerFrequency:
|
||||
type: integer
|
||||
format: int64
|
||||
@ -14,37 +14,37 @@ LimeSdrInputSettings:
|
||||
type: integer
|
||||
log2SoftDecim:
|
||||
type: integer
|
||||
lpfBW:
|
||||
lpfBW:
|
||||
type: integer
|
||||
lpfFIREnable:
|
||||
lpfFIREnable:
|
||||
type: integer
|
||||
lpfFIRBW:
|
||||
lpfFIRBW:
|
||||
type: integer
|
||||
gain:
|
||||
gain:
|
||||
type: integer
|
||||
ncoEnable:
|
||||
ncoEnable:
|
||||
type: integer
|
||||
ncoFrequency:
|
||||
ncoFrequency:
|
||||
type: integer
|
||||
antennaPath:
|
||||
type: integer
|
||||
gainMode:
|
||||
gainMode:
|
||||
type: integer
|
||||
lnaGain:
|
||||
lnaGain:
|
||||
type: integer
|
||||
tiaGain:
|
||||
tiaGain:
|
||||
type: integer
|
||||
pgaGain:
|
||||
pgaGain:
|
||||
type: integer
|
||||
extClock:
|
||||
extClock:
|
||||
type: integer
|
||||
extClockFreq:
|
||||
extClockFreq:
|
||||
type: integer
|
||||
transverterMode:
|
||||
type: integer
|
||||
transverterDeltaFrequency:
|
||||
type: integer
|
||||
format: int64
|
||||
format: int64
|
||||
fileRecordName:
|
||||
type: string
|
||||
gpioDir:
|
||||
@ -61,11 +61,11 @@ LimeSdrInputSettings:
|
||||
reverseAPIPort:
|
||||
type: integer
|
||||
reverseAPIDeviceIndex:
|
||||
type: integer
|
||||
|
||||
type: integer
|
||||
|
||||
LimeSdrOutputSettings:
|
||||
description: LimeSDR
|
||||
properties:
|
||||
properties:
|
||||
centerFrequency:
|
||||
type: integer
|
||||
format: int64
|
||||
@ -75,29 +75,29 @@ LimeSdrOutputSettings:
|
||||
type: integer
|
||||
log2SoftInterp:
|
||||
type: integer
|
||||
lpfBW:
|
||||
lpfBW:
|
||||
type: integer
|
||||
lpfFIREnable:
|
||||
lpfFIREnable:
|
||||
type: integer
|
||||
lpfFIRBW:
|
||||
lpfFIRBW:
|
||||
type: integer
|
||||
gain:
|
||||
gain:
|
||||
type: integer
|
||||
ncoEnable:
|
||||
ncoEnable:
|
||||
type: integer
|
||||
ncoFrequency:
|
||||
ncoFrequency:
|
||||
type: integer
|
||||
antennaPath:
|
||||
type: integer
|
||||
extClock:
|
||||
extClock:
|
||||
type: integer
|
||||
extClockFreq:
|
||||
extClockFreq:
|
||||
type: integer
|
||||
transverterMode:
|
||||
type: integer
|
||||
transverterDeltaFrequency:
|
||||
type: integer
|
||||
format: int64
|
||||
format: int64
|
||||
gpioDir:
|
||||
type: integer
|
||||
format: int8
|
||||
@ -112,11 +112,11 @@ LimeSdrOutputSettings:
|
||||
reverseAPIPort:
|
||||
type: integer
|
||||
reverseAPIDeviceIndex:
|
||||
type: integer
|
||||
type: integer
|
||||
|
||||
LimeSdrInputReport:
|
||||
description: LimeSDR
|
||||
properties:
|
||||
properties:
|
||||
success:
|
||||
description: 1 if info was successfullt retrieved else 0
|
||||
type: integer
|
||||
@ -127,11 +127,11 @@ LimeSdrInputReport:
|
||||
type: integer
|
||||
fifoFill:
|
||||
type: integer
|
||||
underrunCount:
|
||||
underrunCount:
|
||||
type: integer
|
||||
overrunCount:
|
||||
overrunCount:
|
||||
type: integer
|
||||
droppedPacketsCount:
|
||||
droppedPacketsCount:
|
||||
type: integer
|
||||
linkRate:
|
||||
type: number
|
||||
@ -145,14 +145,24 @@ LimeSdrInputReport:
|
||||
format: float
|
||||
gpioDir:
|
||||
type: integer
|
||||
format: int8
|
||||
format: int8
|
||||
gpioPins:
|
||||
type: integer
|
||||
format: int8
|
||||
|
||||
LimeSdrInputActions:
|
||||
description: LimeSDR
|
||||
properties:
|
||||
record:
|
||||
type: integer
|
||||
description: >
|
||||
Record IQ stream action
|
||||
* 0 - stop recording
|
||||
* 1 - start recording
|
||||
|
||||
LimeSdrOutputReport:
|
||||
description: LimeSDR
|
||||
properties:
|
||||
properties:
|
||||
success:
|
||||
description: 1 if info was successfullt retrieved else 0
|
||||
type: integer
|
||||
@ -163,11 +173,11 @@ LimeSdrOutputReport:
|
||||
type: integer
|
||||
fifoFill:
|
||||
type: integer
|
||||
underrunCount:
|
||||
underrunCount:
|
||||
type: integer
|
||||
overrunCount:
|
||||
overrunCount:
|
||||
type: integer
|
||||
droppedPacketsCount:
|
||||
droppedPacketsCount:
|
||||
type: integer
|
||||
linkRate:
|
||||
type: number
|
||||
@ -178,11 +188,10 @@ LimeSdrOutputReport:
|
||||
format: uint64
|
||||
temperature:
|
||||
type: number
|
||||
format: float
|
||||
format: float
|
||||
gpioDir:
|
||||
type: integer
|
||||
format: int8
|
||||
format: int8
|
||||
gpioPins:
|
||||
type: integer
|
||||
format: int8
|
||||
|
@ -25,3 +25,13 @@ LocalInputReport:
|
||||
format: uint64
|
||||
sampleRate:
|
||||
type: integer
|
||||
|
||||
LocalInputActions:
|
||||
description: LocalInput
|
||||
properties:
|
||||
record:
|
||||
type: integer
|
||||
description: >
|
||||
Record IQ stream action
|
||||
* 0 - stop recording
|
||||
* 1 - start recording
|
@ -46,3 +46,13 @@ PerseusReport:
|
||||
type: array
|
||||
items:
|
||||
$ref: "/doc/swagger/include/Structs.yaml#/SampleRate"
|
||||
|
||||
PerseusActions:
|
||||
description: Perseus
|
||||
properties:
|
||||
record:
|
||||
type: integer
|
||||
description: >
|
||||
Record IQ stream action
|
||||
* 0 - stop recording
|
||||
* 1 - start recording
|
@ -131,4 +131,14 @@ PlutoSdrOutputReport:
|
||||
type: string
|
||||
temperature:
|
||||
type: number
|
||||
format: float
|
||||
format: float
|
||||
|
||||
PlutoSdrInputActions:
|
||||
description: PlutoSDR
|
||||
properties:
|
||||
record:
|
||||
type: integer
|
||||
description: >
|
||||
Record IQ stream action
|
||||
* 0 - stop recording
|
||||
* 1 - start recording
|
||||
|
@ -45,3 +45,13 @@ RemoteInputReport:
|
||||
maxNbRecovery:
|
||||
description: Maximum number of recovery blocks used per frame
|
||||
type: integer
|
||||
|
||||
RemoteInputActions:
|
||||
description: RemoteInput
|
||||
properties:
|
||||
record:
|
||||
type: integer
|
||||
description: >
|
||||
Record IQ stream action
|
||||
* 0 - stop recording
|
||||
* 1 - start recording
|
@ -64,3 +64,13 @@ SDRPlayReport:
|
||||
type: array
|
||||
items:
|
||||
$ref: "/doc/swagger/include/Structs.yaml#/FrequencyBand"
|
||||
|
||||
SDRPlayActions:
|
||||
description: SDRplay1
|
||||
properties:
|
||||
record:
|
||||
type: integer
|
||||
description: >
|
||||
Record IQ stream action
|
||||
* 0 - stop recording
|
||||
* 1 - start recording
|
@ -245,4 +245,12 @@ definitions:
|
||||
items:
|
||||
type: string
|
||||
|
||||
|
||||
SoapySDRInputActions:
|
||||
description: SoapySDR
|
||||
properties:
|
||||
record:
|
||||
type: integer
|
||||
description: >
|
||||
Record IQ stream action
|
||||
* 0 - stop recording
|
||||
* 1 - start recording
|
@ -28,7 +28,7 @@ TestSourceSettings:
|
||||
type: integer
|
||||
dcFactor:
|
||||
type: number
|
||||
format: float
|
||||
format: float
|
||||
iFactor:
|
||||
type: number
|
||||
format: float
|
||||
@ -48,5 +48,14 @@ TestSourceSettings:
|
||||
reverseAPIPort:
|
||||
type: integer
|
||||
reverseAPIDeviceIndex:
|
||||
type: integer
|
||||
|
||||
type: integer
|
||||
|
||||
TestSourceActions:
|
||||
description: TestSource
|
||||
properties:
|
||||
record:
|
||||
type: integer
|
||||
description: >
|
||||
Record IQ stream action
|
||||
* 0 - stop recording
|
||||
* 1 - start recording
|
@ -1,6 +1,6 @@
|
||||
XtrxInputSettings:
|
||||
description: XTRX
|
||||
properties:
|
||||
properties:
|
||||
centerFrequency:
|
||||
type: integer
|
||||
format: int64
|
||||
@ -24,16 +24,16 @@ XtrxInputSettings:
|
||||
type: integer
|
||||
ncoEnable:
|
||||
description: Enable TSP NCO and mixing (1 for yes, 0 for no)
|
||||
type: integer
|
||||
type: integer
|
||||
ncoFrequency:
|
||||
description: Frequency shift from LO
|
||||
type: integer
|
||||
antennaPath:
|
||||
description: Antenna selected (enum value from xtrx_antenna_t)
|
||||
type: integer
|
||||
type: integer
|
||||
gainMode:
|
||||
description: Gain mode auto or manual (enum value from GainMode)
|
||||
type: integer
|
||||
type: integer
|
||||
lnaGain:
|
||||
description: Manual LNA gain
|
||||
type: integer
|
||||
@ -42,16 +42,16 @@ XtrxInputSettings:
|
||||
type: integer
|
||||
pgaGain:
|
||||
description: Manual PGA gain
|
||||
type: integer
|
||||
type: integer
|
||||
extClock:
|
||||
description: Use external clock source (1 for yes, 0 for no)
|
||||
type: integer
|
||||
type: integer
|
||||
extClockFreq:
|
||||
description: Frequency (Hz) of external clock source
|
||||
type: integer
|
||||
pwrmode:
|
||||
description: LMS power mode (0 save max to 7 perf max)
|
||||
type: integer
|
||||
type: integer
|
||||
fileRecordName:
|
||||
type: string
|
||||
useReverseAPI:
|
||||
@ -62,11 +62,11 @@ XtrxInputSettings:
|
||||
reverseAPIPort:
|
||||
type: integer
|
||||
reverseAPIDeviceIndex:
|
||||
type: integer
|
||||
type: integer
|
||||
|
||||
XtrxInputReport:
|
||||
description: XTRX
|
||||
properties:
|
||||
properties:
|
||||
success:
|
||||
description: 1 if info was successfully retrieved else 0
|
||||
type: integer
|
||||
@ -80,10 +80,20 @@ XtrxInputReport:
|
||||
gpsLock:
|
||||
description: 1 if GPSDO is locked else 0
|
||||
type: integer
|
||||
|
||||
|
||||
XtrxInputActions:
|
||||
description: XTRX
|
||||
properties:
|
||||
record:
|
||||
type: integer
|
||||
description: >
|
||||
Record IQ stream action
|
||||
* 0 - stop recording
|
||||
* 1 - start recording
|
||||
|
||||
XtrxOutputSettings:
|
||||
description: XTRX
|
||||
properties:
|
||||
properties:
|
||||
centerFrequency:
|
||||
type: integer
|
||||
format: int64
|
||||
@ -101,22 +111,22 @@ XtrxOutputSettings:
|
||||
type: integer
|
||||
ncoEnable:
|
||||
description: Enable TSP NCO and mixing (1 for yes, 0 for no)
|
||||
type: integer
|
||||
type: integer
|
||||
ncoFrequency:
|
||||
description: Frequency shift from LO
|
||||
type: integer
|
||||
antennaPath:
|
||||
description: Antenna selected (enum value from xtrx_antenna_t)
|
||||
type: integer
|
||||
type: integer
|
||||
extClock:
|
||||
description: Use external clock source (1 for yes, 0 for no)
|
||||
type: integer
|
||||
type: integer
|
||||
extClockFreq:
|
||||
description: Frequency (Hz) of external clock source
|
||||
type: integer
|
||||
pwrmode:
|
||||
description: LMS power mode (0 save max to 7 perf max)
|
||||
type: integer
|
||||
type: integer
|
||||
useReverseAPI:
|
||||
description: Synchronize with reverse API (1 for yes, 0 for no)
|
||||
type: integer
|
||||
@ -125,11 +135,11 @@ XtrxOutputSettings:
|
||||
reverseAPIPort:
|
||||
type: integer
|
||||
reverseAPIDeviceIndex:
|
||||
type: integer
|
||||
type: integer
|
||||
|
||||
XtrxOutputReport:
|
||||
description: XTRX
|
||||
properties:
|
||||
properties:
|
||||
success:
|
||||
description: 1 if info was successfully retrieved else 0
|
||||
type: integer
|
||||
@ -142,4 +152,4 @@ XtrxOutputReport:
|
||||
format: float
|
||||
gpsLock:
|
||||
description: 1 if GPSDO is locked else 0
|
||||
type: integer
|
||||
type: integer
|
@ -1134,6 +1134,24 @@ margin-bottom: 20px;
|
||||
}
|
||||
},
|
||||
"description" : "ATVMod"
|
||||
};
|
||||
defs.AirspyActions = {
|
||||
"properties" : {
|
||||
"record" : {
|
||||
"type" : "integer",
|
||||
"description" : "Record IQ stream action\n * 0 - stop recording\n * 1 - start recording\n"
|
||||
}
|
||||
},
|
||||
"description" : "Airspy"
|
||||
};
|
||||
defs.AirspyHFActions = {
|
||||
"properties" : {
|
||||
"record" : {
|
||||
"type" : "integer",
|
||||
"description" : "Record IQ stream action\n * 0 - stop recording\n * 1 - start recording"
|
||||
}
|
||||
},
|
||||
"description" : "AirspyHF"
|
||||
};
|
||||
defs.AirspyHFReport = {
|
||||
"properties" : {
|
||||
@ -1567,6 +1585,15 @@ margin-bottom: 20px;
|
||||
}
|
||||
},
|
||||
"description" : "A bandwidth expressed in Hertz (Hz)"
|
||||
};
|
||||
defs.BladeRF1InputActions = {
|
||||
"properties" : {
|
||||
"record" : {
|
||||
"type" : "integer",
|
||||
"description" : "Record IQ stream action\n * 0 - stop recording\n * 1 - start recording\n"
|
||||
}
|
||||
},
|
||||
"description" : "BladeRF1"
|
||||
};
|
||||
defs.BladeRF1InputSettings = {
|
||||
"properties" : {
|
||||
@ -2645,8 +2672,56 @@ margin-bottom: 20px;
|
||||
"type" : "integer",
|
||||
"description" : "Optional for reverse API. This is the device set index from where the message comes from."
|
||||
},
|
||||
"airspyActions" : {
|
||||
"$ref" : "#/definitions/AirspyActions"
|
||||
},
|
||||
"airspyHFActions" : {
|
||||
"$ref" : "#/definitions/AirspyHFActions"
|
||||
},
|
||||
"bladeRF1InputActions" : {
|
||||
"$ref" : "#/definitions/BladeRF1InputActions"
|
||||
},
|
||||
"fcdProActions" : {
|
||||
"$ref" : "#/definitions/FCDProActions"
|
||||
},
|
||||
"fcdProPlusActions" : {
|
||||
"$ref" : "#/definitions/FCDProPlusActions"
|
||||
},
|
||||
"hackRFInputActions" : {
|
||||
"$ref" : "#/definitions/HackRFInputActions"
|
||||
},
|
||||
"kiwiSDRActions" : {
|
||||
"$ref" : "#/definitions/KiwiSDRActions"
|
||||
},
|
||||
"limeSdrInputActions" : {
|
||||
"$ref" : "#/definitions/LimeSdrInputActions"
|
||||
},
|
||||
"localInputActions" : {
|
||||
"$ref" : "#/definitions/LocalInputActions"
|
||||
},
|
||||
"perseusActions" : {
|
||||
"$ref" : "#/definitions/PerseusActions"
|
||||
},
|
||||
"plutoSdrInputActions" : {
|
||||
"$ref" : "#/definitions/PlutoSdrInputActions"
|
||||
},
|
||||
"remoteInputActions" : {
|
||||
"$ref" : "#/definitions/RemoteInputActions"
|
||||
},
|
||||
"rtlSdrActions" : {
|
||||
"$ref" : "#/definitions/RtlSdrActions"
|
||||
},
|
||||
"sdrPlayActions" : {
|
||||
"$ref" : "#/definitions/SDRPlayActions"
|
||||
},
|
||||
"soapySDRInputActions" : {
|
||||
"$ref" : "#/definitions/SoapySDRInputActions"
|
||||
},
|
||||
"testSourceActions" : {
|
||||
"$ref" : "#/definitions/TestSourceActions"
|
||||
},
|
||||
"xtrxInputActions" : {
|
||||
"$ref" : "#/definitions/XtrxInputActions"
|
||||
}
|
||||
},
|
||||
"description" : "Base device actions. Only the device actions corresponding to the device specified in the deviceHwType field is or should be present."
|
||||
@ -2950,6 +3025,24 @@ margin-bottom: 20px;
|
||||
"example" : "KO"
|
||||
}
|
||||
}
|
||||
};
|
||||
defs.FCDProActions = {
|
||||
"properties" : {
|
||||
"record" : {
|
||||
"type" : "integer",
|
||||
"description" : "Record IQ stream action\n * 0 - stop recording\n * 1 - start recording\n"
|
||||
}
|
||||
},
|
||||
"description" : "FCDPro"
|
||||
};
|
||||
defs.FCDProPlusActions = {
|
||||
"properties" : {
|
||||
"record" : {
|
||||
"type" : "integer",
|
||||
"description" : "Record IQ stream action\n * 0 - stop recording\n * 1 - start recording\n"
|
||||
}
|
||||
},
|
||||
"description" : "FCDProPlus"
|
||||
};
|
||||
defs.FCDProPlusSettings = {
|
||||
"properties" : {
|
||||
@ -3702,6 +3795,15 @@ margin-bottom: 20px;
|
||||
}
|
||||
},
|
||||
"description" : "A gain expressed in centi-Bels (tenths of dB)"
|
||||
};
|
||||
defs.HackRFInputActions = {
|
||||
"properties" : {
|
||||
"record" : {
|
||||
"type" : "integer",
|
||||
"description" : "Record IQ stream action\n * 0 - stop recording\n * 1 - start recording\n"
|
||||
}
|
||||
},
|
||||
"description" : "HackRF"
|
||||
};
|
||||
defs.HackRFInputSettings = {
|
||||
"properties" : {
|
||||
@ -3921,6 +4023,15 @@ margin-bottom: 20px;
|
||||
}
|
||||
},
|
||||
"description" : "Summarized information about this SDRangel instance"
|
||||
};
|
||||
defs.KiwiSDRActions = {
|
||||
"properties" : {
|
||||
"record" : {
|
||||
"type" : "integer",
|
||||
"description" : "Record IQ stream action\n * 0 - stop recording\n * 1 - start recording\n"
|
||||
}
|
||||
},
|
||||
"description" : "KiwiSDR"
|
||||
};
|
||||
defs.KiwiSDRReport = {
|
||||
"properties" : {
|
||||
@ -4080,6 +4191,15 @@ margin-bottom: 20px;
|
||||
}
|
||||
},
|
||||
"description" : "LimeRFE"
|
||||
};
|
||||
defs.LimeSdrInputActions = {
|
||||
"properties" : {
|
||||
"record" : {
|
||||
"type" : "integer",
|
||||
"description" : "Record IQ stream action\n * 0 - stop recording\n * 1 - start recording\n"
|
||||
}
|
||||
},
|
||||
"description" : "LimeSDR"
|
||||
};
|
||||
defs.LimeSdrInputReport = {
|
||||
"properties" : {
|
||||
@ -4345,6 +4465,15 @@ margin-bottom: 20px;
|
||||
}
|
||||
},
|
||||
"description" : "LimeSDR"
|
||||
};
|
||||
defs.LocalInputActions = {
|
||||
"properties" : {
|
||||
"record" : {
|
||||
"type" : "integer",
|
||||
"description" : "Record IQ stream action\n * 0 - stop recording\n * 1 - start recording"
|
||||
}
|
||||
},
|
||||
"description" : "LocalInput"
|
||||
};
|
||||
defs.LocalInputReport = {
|
||||
"properties" : {
|
||||
@ -4749,6 +4878,15 @@ margin-bottom: 20px;
|
||||
}
|
||||
},
|
||||
"description" : "Enumeration with name for values"
|
||||
};
|
||||
defs.PerseusActions = {
|
||||
"properties" : {
|
||||
"record" : {
|
||||
"type" : "integer",
|
||||
"description" : "Record IQ stream action\n * 0 - stop recording\n * 1 - start recording"
|
||||
}
|
||||
},
|
||||
"description" : "Perseus"
|
||||
};
|
||||
defs.PerseusReport = {
|
||||
"properties" : {
|
||||
@ -4817,6 +4955,15 @@ margin-bottom: 20px;
|
||||
}
|
||||
},
|
||||
"description" : "Perseus"
|
||||
};
|
||||
defs.PlutoSdrInputActions = {
|
||||
"properties" : {
|
||||
"record" : {
|
||||
"type" : "integer",
|
||||
"description" : "Record IQ stream action\n * 0 - stop recording\n * 1 - start recording\n"
|
||||
}
|
||||
},
|
||||
"description" : "PlutoSDR"
|
||||
};
|
||||
defs.PlutoSdrInputReport = {
|
||||
"properties" : {
|
||||
@ -5314,6 +5461,15 @@ margin-bottom: 20px;
|
||||
}
|
||||
},
|
||||
"description" : "An arbitrary range of floating point values"
|
||||
};
|
||||
defs.RemoteInputActions = {
|
||||
"properties" : {
|
||||
"record" : {
|
||||
"type" : "integer",
|
||||
"description" : "Record IQ stream action\n * 0 - stop recording\n * 1 - start recording"
|
||||
}
|
||||
},
|
||||
"description" : "RemoteInput"
|
||||
};
|
||||
defs.RemoteInputReport = {
|
||||
"properties" : {
|
||||
@ -5683,6 +5839,15 @@ margin-bottom: 20px;
|
||||
}
|
||||
},
|
||||
"description" : "RTLSDR"
|
||||
};
|
||||
defs.SDRPlayActions = {
|
||||
"properties" : {
|
||||
"record" : {
|
||||
"type" : "integer",
|
||||
"description" : "Record IQ stream action\n * 0 - stop recording\n * 1 - start recording"
|
||||
}
|
||||
},
|
||||
"description" : "SDRplay1"
|
||||
};
|
||||
defs.SDRPlayReport = {
|
||||
"properties" : {
|
||||
@ -6077,6 +6242,15 @@ margin-bottom: 20px;
|
||||
}
|
||||
},
|
||||
"description" : "A named gain setting specified by its range"
|
||||
};
|
||||
defs.SoapySDRInputActions = {
|
||||
"properties" : {
|
||||
"record" : {
|
||||
"type" : "integer",
|
||||
"description" : "Record IQ stream action\n * 0 - stop recording\n * 1 - start recording"
|
||||
}
|
||||
},
|
||||
"description" : "SoapySDR"
|
||||
};
|
||||
defs.SoapySDRInputSettings = {
|
||||
"properties" : {
|
||||
@ -6355,6 +6529,15 @@ margin-bottom: 20px;
|
||||
"type" : "string"
|
||||
}
|
||||
}
|
||||
};
|
||||
defs.TestSourceActions = {
|
||||
"properties" : {
|
||||
"record" : {
|
||||
"type" : "integer",
|
||||
"description" : "Record IQ stream action\n * 0 - stop recording\n * 1 - start recording"
|
||||
}
|
||||
},
|
||||
"description" : "TestSource"
|
||||
};
|
||||
defs.TestSourceSettings = {
|
||||
"properties" : {
|
||||
@ -6988,6 +7171,15 @@ margin-bottom: 20px;
|
||||
}
|
||||
},
|
||||
"description" : "WFMMod"
|
||||
};
|
||||
defs.XtrxInputActions = {
|
||||
"properties" : {
|
||||
"record" : {
|
||||
"type" : "integer",
|
||||
"description" : "Record IQ stream action\n * 0 - stop recording\n * 1 - start recording\n"
|
||||
}
|
||||
},
|
||||
"description" : "XTRX"
|
||||
};
|
||||
defs.XtrxInputReport = {
|
||||
"properties" : {
|
||||
@ -33188,7 +33380,7 @@ except ApiException as e:
|
||||
</div>
|
||||
<div id="generator">
|
||||
<div class="content">
|
||||
Generated 2020-03-10T15:52:04.190+01:00
|
||||
Generated 2020-03-10T19:38:19.250+01:00
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
108
swagger/sdrangel/code/qt5/client/SWGAirspyActions.cpp
Normal file
108
swagger/sdrangel/code/qt5/client/SWGAirspyActions.cpp
Normal file
@ -0,0 +1,108 @@
|
||||
/**
|
||||
* 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: 4.13.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 "SWGAirspyActions.h"
|
||||
|
||||
#include "SWGHelpers.h"
|
||||
|
||||
#include <QJsonDocument>
|
||||
#include <QJsonArray>
|
||||
#include <QObject>
|
||||
#include <QDebug>
|
||||
|
||||
namespace SWGSDRangel {
|
||||
|
||||
SWGAirspyActions::SWGAirspyActions(QString* json) {
|
||||
init();
|
||||
this->fromJson(*json);
|
||||
}
|
||||
|
||||
SWGAirspyActions::SWGAirspyActions() {
|
||||
record = 0;
|
||||
m_record_isSet = false;
|
||||
}
|
||||
|
||||
SWGAirspyActions::~SWGAirspyActions() {
|
||||
this->cleanup();
|
||||
}
|
||||
|
||||
void
|
||||
SWGAirspyActions::init() {
|
||||
record = 0;
|
||||
m_record_isSet = false;
|
||||
}
|
||||
|
||||
void
|
||||
SWGAirspyActions::cleanup() {
|
||||
|
||||
}
|
||||
|
||||
SWGAirspyActions*
|
||||
SWGAirspyActions::fromJson(QString &json) {
|
||||
QByteArray array (json.toStdString().c_str());
|
||||
QJsonDocument doc = QJsonDocument::fromJson(array);
|
||||
QJsonObject jsonObject = doc.object();
|
||||
this->fromJsonObject(jsonObject);
|
||||
return this;
|
||||
}
|
||||
|
||||
void
|
||||
SWGAirspyActions::fromJsonObject(QJsonObject &pJson) {
|
||||
::SWGSDRangel::setValue(&record, pJson["record"], "qint32", "");
|
||||
|
||||
}
|
||||
|
||||
QString
|
||||
SWGAirspyActions::asJson ()
|
||||
{
|
||||
QJsonObject* obj = this->asJsonObject();
|
||||
|
||||
QJsonDocument doc(*obj);
|
||||
QByteArray bytes = doc.toJson();
|
||||
delete obj;
|
||||
return QString(bytes);
|
||||
}
|
||||
|
||||
QJsonObject*
|
||||
SWGAirspyActions::asJsonObject() {
|
||||
QJsonObject* obj = new QJsonObject();
|
||||
if(m_record_isSet){
|
||||
obj->insert("record", QJsonValue(record));
|
||||
}
|
||||
|
||||
return obj;
|
||||
}
|
||||
|
||||
qint32
|
||||
SWGAirspyActions::getRecord() {
|
||||
return record;
|
||||
}
|
||||
void
|
||||
SWGAirspyActions::setRecord(qint32 record) {
|
||||
this->record = record;
|
||||
this->m_record_isSet = true;
|
||||
}
|
||||
|
||||
|
||||
bool
|
||||
SWGAirspyActions::isSet(){
|
||||
bool isObjectUpdated = false;
|
||||
do{
|
||||
if(m_record_isSet){
|
||||
isObjectUpdated = true; break;
|
||||
}
|
||||
}while(false);
|
||||
return isObjectUpdated;
|
||||
}
|
||||
}
|
||||
|
58
swagger/sdrangel/code/qt5/client/SWGAirspyActions.h
Normal file
58
swagger/sdrangel/code/qt5/client/SWGAirspyActions.h
Normal file
@ -0,0 +1,58 @@
|
||||
/**
|
||||
* 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: 4.13.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.
|
||||
*/
|
||||
|
||||
/*
|
||||
* SWGAirspyActions.h
|
||||
*
|
||||
* Airspy
|
||||
*/
|
||||
|
||||
#ifndef SWGAirspyActions_H_
|
||||
#define SWGAirspyActions_H_
|
||||
|
||||
#include <QJsonObject>
|
||||
|
||||
|
||||
|
||||
#include "SWGObject.h"
|
||||
#include "export.h"
|
||||
|
||||
namespace SWGSDRangel {
|
||||
|
||||
class SWG_API SWGAirspyActions: public SWGObject {
|
||||
public:
|
||||
SWGAirspyActions();
|
||||
SWGAirspyActions(QString* json);
|
||||
virtual ~SWGAirspyActions();
|
||||
void init();
|
||||
void cleanup();
|
||||
|
||||
virtual QString asJson () override;
|
||||
virtual QJsonObject* asJsonObject() override;
|
||||
virtual void fromJsonObject(QJsonObject &json) override;
|
||||
virtual SWGAirspyActions* fromJson(QString &jsonString) override;
|
||||
|
||||
qint32 getRecord();
|
||||
void setRecord(qint32 record);
|
||||
|
||||
|
||||
virtual bool isSet() override;
|
||||
|
||||
private:
|
||||
qint32 record;
|
||||
bool m_record_isSet;
|
||||
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
#endif /* SWGAirspyActions_H_ */
|
108
swagger/sdrangel/code/qt5/client/SWGAirspyHFActions.cpp
Normal file
108
swagger/sdrangel/code/qt5/client/SWGAirspyHFActions.cpp
Normal file
@ -0,0 +1,108 @@
|
||||
/**
|
||||
* 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: 4.13.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 "SWGAirspyHFActions.h"
|
||||
|
||||
#include "SWGHelpers.h"
|
||||
|
||||
#include <QJsonDocument>
|
||||
#include <QJsonArray>
|
||||
#include <QObject>
|
||||
#include <QDebug>
|
||||
|
||||
namespace SWGSDRangel {
|
||||
|
||||
SWGAirspyHFActions::SWGAirspyHFActions(QString* json) {
|
||||
init();
|
||||
this->fromJson(*json);
|
||||
}
|
||||
|
||||
SWGAirspyHFActions::SWGAirspyHFActions() {
|
||||
record = 0;
|
||||
m_record_isSet = false;
|
||||
}
|
||||
|
||||
SWGAirspyHFActions::~SWGAirspyHFActions() {
|
||||
this->cleanup();
|
||||
}
|
||||
|
||||
void
|
||||
SWGAirspyHFActions::init() {
|
||||
record = 0;
|
||||
m_record_isSet = false;
|
||||
}
|
||||
|
||||
void
|
||||
SWGAirspyHFActions::cleanup() {
|
||||
|
||||
}
|
||||
|
||||
SWGAirspyHFActions*
|
||||
SWGAirspyHFActions::fromJson(QString &json) {
|
||||
QByteArray array (json.toStdString().c_str());
|
||||
QJsonDocument doc = QJsonDocument::fromJson(array);
|
||||
QJsonObject jsonObject = doc.object();
|
||||
this->fromJsonObject(jsonObject);
|
||||
return this;
|
||||
}
|
||||
|
||||
void
|
||||
SWGAirspyHFActions::fromJsonObject(QJsonObject &pJson) {
|
||||
::SWGSDRangel::setValue(&record, pJson["record"], "qint32", "");
|
||||
|
||||
}
|
||||
|
||||
QString
|
||||
SWGAirspyHFActions::asJson ()
|
||||
{
|
||||
QJsonObject* obj = this->asJsonObject();
|
||||
|
||||
QJsonDocument doc(*obj);
|
||||
QByteArray bytes = doc.toJson();
|
||||
delete obj;
|
||||
return QString(bytes);
|
||||
}
|
||||
|
||||
QJsonObject*
|
||||
SWGAirspyHFActions::asJsonObject() {
|
||||
QJsonObject* obj = new QJsonObject();
|
||||
if(m_record_isSet){
|
||||
obj->insert("record", QJsonValue(record));
|
||||
}
|
||||
|
||||
return obj;
|
||||
}
|
||||
|
||||
qint32
|
||||
SWGAirspyHFActions::getRecord() {
|
||||
return record;
|
||||
}
|
||||
void
|
||||
SWGAirspyHFActions::setRecord(qint32 record) {
|
||||
this->record = record;
|
||||
this->m_record_isSet = true;
|
||||
}
|
||||
|
||||
|
||||
bool
|
||||
SWGAirspyHFActions::isSet(){
|
||||
bool isObjectUpdated = false;
|
||||
do{
|
||||
if(m_record_isSet){
|
||||
isObjectUpdated = true; break;
|
||||
}
|
||||
}while(false);
|
||||
return isObjectUpdated;
|
||||
}
|
||||
}
|
||||
|
58
swagger/sdrangel/code/qt5/client/SWGAirspyHFActions.h
Normal file
58
swagger/sdrangel/code/qt5/client/SWGAirspyHFActions.h
Normal file
@ -0,0 +1,58 @@
|
||||
/**
|
||||
* 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: 4.13.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.
|
||||
*/
|
||||
|
||||
/*
|
||||
* SWGAirspyHFActions.h
|
||||
*
|
||||
* AirspyHF
|
||||
*/
|
||||
|
||||
#ifndef SWGAirspyHFActions_H_
|
||||
#define SWGAirspyHFActions_H_
|
||||
|
||||
#include <QJsonObject>
|
||||
|
||||
|
||||
|
||||
#include "SWGObject.h"
|
||||
#include "export.h"
|
||||
|
||||
namespace SWGSDRangel {
|
||||
|
||||
class SWG_API SWGAirspyHFActions: public SWGObject {
|
||||
public:
|
||||
SWGAirspyHFActions();
|
||||
SWGAirspyHFActions(QString* json);
|
||||
virtual ~SWGAirspyHFActions();
|
||||
void init();
|
||||
void cleanup();
|
||||
|
||||
virtual QString asJson () override;
|
||||
virtual QJsonObject* asJsonObject() override;
|
||||
virtual void fromJsonObject(QJsonObject &json) override;
|
||||
virtual SWGAirspyHFActions* fromJson(QString &jsonString) override;
|
||||
|
||||
qint32 getRecord();
|
||||
void setRecord(qint32 record);
|
||||
|
||||
|
||||
virtual bool isSet() override;
|
||||
|
||||
private:
|
||||
qint32 record;
|
||||
bool m_record_isSet;
|
||||
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
#endif /* SWGAirspyHFActions_H_ */
|
108
swagger/sdrangel/code/qt5/client/SWGBladeRF1InputActions.cpp
Normal file
108
swagger/sdrangel/code/qt5/client/SWGBladeRF1InputActions.cpp
Normal file
@ -0,0 +1,108 @@
|
||||
/**
|
||||
* 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: 4.13.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 "SWGBladeRF1InputActions.h"
|
||||
|
||||
#include "SWGHelpers.h"
|
||||
|
||||
#include <QJsonDocument>
|
||||
#include <QJsonArray>
|
||||
#include <QObject>
|
||||
#include <QDebug>
|
||||
|
||||
namespace SWGSDRangel {
|
||||
|
||||
SWGBladeRF1InputActions::SWGBladeRF1InputActions(QString* json) {
|
||||
init();
|
||||
this->fromJson(*json);
|
||||
}
|
||||
|
||||
SWGBladeRF1InputActions::SWGBladeRF1InputActions() {
|
||||
record = 0;
|
||||
m_record_isSet = false;
|
||||
}
|
||||
|
||||
SWGBladeRF1InputActions::~SWGBladeRF1InputActions() {
|
||||
this->cleanup();
|
||||
}
|
||||
|
||||
void
|
||||
SWGBladeRF1InputActions::init() {
|
||||
record = 0;
|
||||
m_record_isSet = false;
|
||||
}
|
||||
|
||||
void
|
||||
SWGBladeRF1InputActions::cleanup() {
|
||||
|
||||
}
|
||||
|
||||
SWGBladeRF1InputActions*
|
||||
SWGBladeRF1InputActions::fromJson(QString &json) {
|
||||
QByteArray array (json.toStdString().c_str());
|
||||
QJsonDocument doc = QJsonDocument::fromJson(array);
|
||||
QJsonObject jsonObject = doc.object();
|
||||
this->fromJsonObject(jsonObject);
|
||||
return this;
|
||||
}
|
||||
|
||||
void
|
||||
SWGBladeRF1InputActions::fromJsonObject(QJsonObject &pJson) {
|
||||
::SWGSDRangel::setValue(&record, pJson["record"], "qint32", "");
|
||||
|
||||
}
|
||||
|
||||
QString
|
||||
SWGBladeRF1InputActions::asJson ()
|
||||
{
|
||||
QJsonObject* obj = this->asJsonObject();
|
||||
|
||||
QJsonDocument doc(*obj);
|
||||
QByteArray bytes = doc.toJson();
|
||||
delete obj;
|
||||
return QString(bytes);
|
||||
}
|
||||
|
||||
QJsonObject*
|
||||
SWGBladeRF1InputActions::asJsonObject() {
|
||||
QJsonObject* obj = new QJsonObject();
|
||||
if(m_record_isSet){
|
||||
obj->insert("record", QJsonValue(record));
|
||||
}
|
||||
|
||||
return obj;
|
||||
}
|
||||
|
||||
qint32
|
||||
SWGBladeRF1InputActions::getRecord() {
|
||||
return record;
|
||||
}
|
||||
void
|
||||
SWGBladeRF1InputActions::setRecord(qint32 record) {
|
||||
this->record = record;
|
||||
this->m_record_isSet = true;
|
||||
}
|
||||
|
||||
|
||||
bool
|
||||
SWGBladeRF1InputActions::isSet(){
|
||||
bool isObjectUpdated = false;
|
||||
do{
|
||||
if(m_record_isSet){
|
||||
isObjectUpdated = true; break;
|
||||
}
|
||||
}while(false);
|
||||
return isObjectUpdated;
|
||||
}
|
||||
}
|
||||
|
58
swagger/sdrangel/code/qt5/client/SWGBladeRF1InputActions.h
Normal file
58
swagger/sdrangel/code/qt5/client/SWGBladeRF1InputActions.h
Normal file
@ -0,0 +1,58 @@
|
||||
/**
|
||||
* 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: 4.13.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.
|
||||
*/
|
||||
|
||||
/*
|
||||
* SWGBladeRF1InputActions.h
|
||||
*
|
||||
* BladeRF1
|
||||
*/
|
||||
|
||||
#ifndef SWGBladeRF1InputActions_H_
|
||||
#define SWGBladeRF1InputActions_H_
|
||||
|
||||
#include <QJsonObject>
|
||||
|
||||
|
||||
|
||||
#include "SWGObject.h"
|
||||
#include "export.h"
|
||||
|
||||
namespace SWGSDRangel {
|
||||
|
||||
class SWG_API SWGBladeRF1InputActions: public SWGObject {
|
||||
public:
|
||||
SWGBladeRF1InputActions();
|
||||
SWGBladeRF1InputActions(QString* json);
|
||||
virtual ~SWGBladeRF1InputActions();
|
||||
void init();
|
||||
void cleanup();
|
||||
|
||||
virtual QString asJson () override;
|
||||
virtual QJsonObject* asJsonObject() override;
|
||||
virtual void fromJsonObject(QJsonObject &json) override;
|
||||
virtual SWGBladeRF1InputActions* fromJson(QString &jsonString) override;
|
||||
|
||||
qint32 getRecord();
|
||||
void setRecord(qint32 record);
|
||||
|
||||
|
||||
virtual bool isSet() override;
|
||||
|
||||
private:
|
||||
qint32 record;
|
||||
bool m_record_isSet;
|
||||
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
#endif /* SWGBladeRF1InputActions_H_ */
|
@ -34,8 +34,40 @@ SWGDeviceActions::SWGDeviceActions() {
|
||||
m_direction_isSet = false;
|
||||
originator_index = 0;
|
||||
m_originator_index_isSet = false;
|
||||
airspy_actions = nullptr;
|
||||
m_airspy_actions_isSet = false;
|
||||
airspy_hf_actions = nullptr;
|
||||
m_airspy_hf_actions_isSet = false;
|
||||
blade_rf1_input_actions = nullptr;
|
||||
m_blade_rf1_input_actions_isSet = false;
|
||||
fcd_pro_actions = nullptr;
|
||||
m_fcd_pro_actions_isSet = false;
|
||||
fcd_pro_plus_actions = nullptr;
|
||||
m_fcd_pro_plus_actions_isSet = false;
|
||||
hack_rf_input_actions = nullptr;
|
||||
m_hack_rf_input_actions_isSet = false;
|
||||
kiwi_sdr_actions = nullptr;
|
||||
m_kiwi_sdr_actions_isSet = false;
|
||||
lime_sdr_input_actions = nullptr;
|
||||
m_lime_sdr_input_actions_isSet = false;
|
||||
local_input_actions = nullptr;
|
||||
m_local_input_actions_isSet = false;
|
||||
perseus_actions = nullptr;
|
||||
m_perseus_actions_isSet = false;
|
||||
pluto_sdr_input_actions = nullptr;
|
||||
m_pluto_sdr_input_actions_isSet = false;
|
||||
remote_input_actions = nullptr;
|
||||
m_remote_input_actions_isSet = false;
|
||||
rtl_sdr_actions = nullptr;
|
||||
m_rtl_sdr_actions_isSet = false;
|
||||
sdr_play_actions = nullptr;
|
||||
m_sdr_play_actions_isSet = false;
|
||||
soapy_sdr_input_actions = nullptr;
|
||||
m_soapy_sdr_input_actions_isSet = false;
|
||||
test_source_actions = nullptr;
|
||||
m_test_source_actions_isSet = false;
|
||||
xtrx_input_actions = nullptr;
|
||||
m_xtrx_input_actions_isSet = false;
|
||||
}
|
||||
|
||||
SWGDeviceActions::~SWGDeviceActions() {
|
||||
@ -50,8 +82,40 @@ SWGDeviceActions::init() {
|
||||
m_direction_isSet = false;
|
||||
originator_index = 0;
|
||||
m_originator_index_isSet = false;
|
||||
airspy_actions = new SWGAirspyActions();
|
||||
m_airspy_actions_isSet = false;
|
||||
airspy_hf_actions = new SWGAirspyHFActions();
|
||||
m_airspy_hf_actions_isSet = false;
|
||||
blade_rf1_input_actions = new SWGBladeRF1InputActions();
|
||||
m_blade_rf1_input_actions_isSet = false;
|
||||
fcd_pro_actions = new SWGFCDProActions();
|
||||
m_fcd_pro_actions_isSet = false;
|
||||
fcd_pro_plus_actions = new SWGFCDProPlusActions();
|
||||
m_fcd_pro_plus_actions_isSet = false;
|
||||
hack_rf_input_actions = new SWGHackRFInputActions();
|
||||
m_hack_rf_input_actions_isSet = false;
|
||||
kiwi_sdr_actions = new SWGKiwiSDRActions();
|
||||
m_kiwi_sdr_actions_isSet = false;
|
||||
lime_sdr_input_actions = new SWGLimeSdrInputActions();
|
||||
m_lime_sdr_input_actions_isSet = false;
|
||||
local_input_actions = new SWGLocalInputActions();
|
||||
m_local_input_actions_isSet = false;
|
||||
perseus_actions = new SWGPerseusActions();
|
||||
m_perseus_actions_isSet = false;
|
||||
pluto_sdr_input_actions = new SWGPlutoSdrInputActions();
|
||||
m_pluto_sdr_input_actions_isSet = false;
|
||||
remote_input_actions = new SWGRemoteInputActions();
|
||||
m_remote_input_actions_isSet = false;
|
||||
rtl_sdr_actions = new SWGRtlSdrActions();
|
||||
m_rtl_sdr_actions_isSet = false;
|
||||
sdr_play_actions = new SWGSDRPlayActions();
|
||||
m_sdr_play_actions_isSet = false;
|
||||
soapy_sdr_input_actions = new SWGSoapySDRInputActions();
|
||||
m_soapy_sdr_input_actions_isSet = false;
|
||||
test_source_actions = new SWGTestSourceActions();
|
||||
m_test_source_actions_isSet = false;
|
||||
xtrx_input_actions = new SWGXtrxInputActions();
|
||||
m_xtrx_input_actions_isSet = false;
|
||||
}
|
||||
|
||||
void
|
||||
@ -61,9 +125,57 @@ SWGDeviceActions::cleanup() {
|
||||
}
|
||||
|
||||
|
||||
if(airspy_actions != nullptr) {
|
||||
delete airspy_actions;
|
||||
}
|
||||
if(airspy_hf_actions != nullptr) {
|
||||
delete airspy_hf_actions;
|
||||
}
|
||||
if(blade_rf1_input_actions != nullptr) {
|
||||
delete blade_rf1_input_actions;
|
||||
}
|
||||
if(fcd_pro_actions != nullptr) {
|
||||
delete fcd_pro_actions;
|
||||
}
|
||||
if(fcd_pro_plus_actions != nullptr) {
|
||||
delete fcd_pro_plus_actions;
|
||||
}
|
||||
if(hack_rf_input_actions != nullptr) {
|
||||
delete hack_rf_input_actions;
|
||||
}
|
||||
if(kiwi_sdr_actions != nullptr) {
|
||||
delete kiwi_sdr_actions;
|
||||
}
|
||||
if(lime_sdr_input_actions != nullptr) {
|
||||
delete lime_sdr_input_actions;
|
||||
}
|
||||
if(local_input_actions != nullptr) {
|
||||
delete local_input_actions;
|
||||
}
|
||||
if(perseus_actions != nullptr) {
|
||||
delete perseus_actions;
|
||||
}
|
||||
if(pluto_sdr_input_actions != nullptr) {
|
||||
delete pluto_sdr_input_actions;
|
||||
}
|
||||
if(remote_input_actions != nullptr) {
|
||||
delete remote_input_actions;
|
||||
}
|
||||
if(rtl_sdr_actions != nullptr) {
|
||||
delete rtl_sdr_actions;
|
||||
}
|
||||
if(sdr_play_actions != nullptr) {
|
||||
delete sdr_play_actions;
|
||||
}
|
||||
if(soapy_sdr_input_actions != nullptr) {
|
||||
delete soapy_sdr_input_actions;
|
||||
}
|
||||
if(test_source_actions != nullptr) {
|
||||
delete test_source_actions;
|
||||
}
|
||||
if(xtrx_input_actions != nullptr) {
|
||||
delete xtrx_input_actions;
|
||||
}
|
||||
}
|
||||
|
||||
SWGDeviceActions*
|
||||
@ -83,8 +195,40 @@ SWGDeviceActions::fromJsonObject(QJsonObject &pJson) {
|
||||
|
||||
::SWGSDRangel::setValue(&originator_index, pJson["originatorIndex"], "qint32", "");
|
||||
|
||||
::SWGSDRangel::setValue(&airspy_actions, pJson["airspyActions"], "SWGAirspyActions", "SWGAirspyActions");
|
||||
|
||||
::SWGSDRangel::setValue(&airspy_hf_actions, pJson["airspyHFActions"], "SWGAirspyHFActions", "SWGAirspyHFActions");
|
||||
|
||||
::SWGSDRangel::setValue(&blade_rf1_input_actions, pJson["bladeRF1InputActions"], "SWGBladeRF1InputActions", "SWGBladeRF1InputActions");
|
||||
|
||||
::SWGSDRangel::setValue(&fcd_pro_actions, pJson["fcdProActions"], "SWGFCDProActions", "SWGFCDProActions");
|
||||
|
||||
::SWGSDRangel::setValue(&fcd_pro_plus_actions, pJson["fcdProPlusActions"], "SWGFCDProPlusActions", "SWGFCDProPlusActions");
|
||||
|
||||
::SWGSDRangel::setValue(&hack_rf_input_actions, pJson["hackRFInputActions"], "SWGHackRFInputActions", "SWGHackRFInputActions");
|
||||
|
||||
::SWGSDRangel::setValue(&kiwi_sdr_actions, pJson["kiwiSDRActions"], "SWGKiwiSDRActions", "SWGKiwiSDRActions");
|
||||
|
||||
::SWGSDRangel::setValue(&lime_sdr_input_actions, pJson["limeSdrInputActions"], "SWGLimeSdrInputActions", "SWGLimeSdrInputActions");
|
||||
|
||||
::SWGSDRangel::setValue(&local_input_actions, pJson["localInputActions"], "SWGLocalInputActions", "SWGLocalInputActions");
|
||||
|
||||
::SWGSDRangel::setValue(&perseus_actions, pJson["perseusActions"], "SWGPerseusActions", "SWGPerseusActions");
|
||||
|
||||
::SWGSDRangel::setValue(&pluto_sdr_input_actions, pJson["plutoSdrInputActions"], "SWGPlutoSdrInputActions", "SWGPlutoSdrInputActions");
|
||||
|
||||
::SWGSDRangel::setValue(&remote_input_actions, pJson["remoteInputActions"], "SWGRemoteInputActions", "SWGRemoteInputActions");
|
||||
|
||||
::SWGSDRangel::setValue(&rtl_sdr_actions, pJson["rtlSdrActions"], "SWGRtlSdrActions", "SWGRtlSdrActions");
|
||||
|
||||
::SWGSDRangel::setValue(&sdr_play_actions, pJson["sdrPlayActions"], "SWGSDRPlayActions", "SWGSDRPlayActions");
|
||||
|
||||
::SWGSDRangel::setValue(&soapy_sdr_input_actions, pJson["soapySDRInputActions"], "SWGSoapySDRInputActions", "SWGSoapySDRInputActions");
|
||||
|
||||
::SWGSDRangel::setValue(&test_source_actions, pJson["testSourceActions"], "SWGTestSourceActions", "SWGTestSourceActions");
|
||||
|
||||
::SWGSDRangel::setValue(&xtrx_input_actions, pJson["xtrxInputActions"], "SWGXtrxInputActions", "SWGXtrxInputActions");
|
||||
|
||||
}
|
||||
|
||||
QString
|
||||
@ -110,9 +254,57 @@ SWGDeviceActions::asJsonObject() {
|
||||
if(m_originator_index_isSet){
|
||||
obj->insert("originatorIndex", QJsonValue(originator_index));
|
||||
}
|
||||
if((airspy_actions != nullptr) && (airspy_actions->isSet())){
|
||||
toJsonValue(QString("airspyActions"), airspy_actions, obj, QString("SWGAirspyActions"));
|
||||
}
|
||||
if((airspy_hf_actions != nullptr) && (airspy_hf_actions->isSet())){
|
||||
toJsonValue(QString("airspyHFActions"), airspy_hf_actions, obj, QString("SWGAirspyHFActions"));
|
||||
}
|
||||
if((blade_rf1_input_actions != nullptr) && (blade_rf1_input_actions->isSet())){
|
||||
toJsonValue(QString("bladeRF1InputActions"), blade_rf1_input_actions, obj, QString("SWGBladeRF1InputActions"));
|
||||
}
|
||||
if((fcd_pro_actions != nullptr) && (fcd_pro_actions->isSet())){
|
||||
toJsonValue(QString("fcdProActions"), fcd_pro_actions, obj, QString("SWGFCDProActions"));
|
||||
}
|
||||
if((fcd_pro_plus_actions != nullptr) && (fcd_pro_plus_actions->isSet())){
|
||||
toJsonValue(QString("fcdProPlusActions"), fcd_pro_plus_actions, obj, QString("SWGFCDProPlusActions"));
|
||||
}
|
||||
if((hack_rf_input_actions != nullptr) && (hack_rf_input_actions->isSet())){
|
||||
toJsonValue(QString("hackRFInputActions"), hack_rf_input_actions, obj, QString("SWGHackRFInputActions"));
|
||||
}
|
||||
if((kiwi_sdr_actions != nullptr) && (kiwi_sdr_actions->isSet())){
|
||||
toJsonValue(QString("kiwiSDRActions"), kiwi_sdr_actions, obj, QString("SWGKiwiSDRActions"));
|
||||
}
|
||||
if((lime_sdr_input_actions != nullptr) && (lime_sdr_input_actions->isSet())){
|
||||
toJsonValue(QString("limeSdrInputActions"), lime_sdr_input_actions, obj, QString("SWGLimeSdrInputActions"));
|
||||
}
|
||||
if((local_input_actions != nullptr) && (local_input_actions->isSet())){
|
||||
toJsonValue(QString("localInputActions"), local_input_actions, obj, QString("SWGLocalInputActions"));
|
||||
}
|
||||
if((perseus_actions != nullptr) && (perseus_actions->isSet())){
|
||||
toJsonValue(QString("perseusActions"), perseus_actions, obj, QString("SWGPerseusActions"));
|
||||
}
|
||||
if((pluto_sdr_input_actions != nullptr) && (pluto_sdr_input_actions->isSet())){
|
||||
toJsonValue(QString("plutoSdrInputActions"), pluto_sdr_input_actions, obj, QString("SWGPlutoSdrInputActions"));
|
||||
}
|
||||
if((remote_input_actions != nullptr) && (remote_input_actions->isSet())){
|
||||
toJsonValue(QString("remoteInputActions"), remote_input_actions, obj, QString("SWGRemoteInputActions"));
|
||||
}
|
||||
if((rtl_sdr_actions != nullptr) && (rtl_sdr_actions->isSet())){
|
||||
toJsonValue(QString("rtlSdrActions"), rtl_sdr_actions, obj, QString("SWGRtlSdrActions"));
|
||||
}
|
||||
if((sdr_play_actions != nullptr) && (sdr_play_actions->isSet())){
|
||||
toJsonValue(QString("sdrPlayActions"), sdr_play_actions, obj, QString("SWGSDRPlayActions"));
|
||||
}
|
||||
if((soapy_sdr_input_actions != nullptr) && (soapy_sdr_input_actions->isSet())){
|
||||
toJsonValue(QString("soapySDRInputActions"), soapy_sdr_input_actions, obj, QString("SWGSoapySDRInputActions"));
|
||||
}
|
||||
if((test_source_actions != nullptr) && (test_source_actions->isSet())){
|
||||
toJsonValue(QString("testSourceActions"), test_source_actions, obj, QString("SWGTestSourceActions"));
|
||||
}
|
||||
if((xtrx_input_actions != nullptr) && (xtrx_input_actions->isSet())){
|
||||
toJsonValue(QString("xtrxInputActions"), xtrx_input_actions, obj, QString("SWGXtrxInputActions"));
|
||||
}
|
||||
|
||||
return obj;
|
||||
}
|
||||
@ -147,6 +339,126 @@ SWGDeviceActions::setOriginatorIndex(qint32 originator_index) {
|
||||
this->m_originator_index_isSet = true;
|
||||
}
|
||||
|
||||
SWGAirspyActions*
|
||||
SWGDeviceActions::getAirspyActions() {
|
||||
return airspy_actions;
|
||||
}
|
||||
void
|
||||
SWGDeviceActions::setAirspyActions(SWGAirspyActions* airspy_actions) {
|
||||
this->airspy_actions = airspy_actions;
|
||||
this->m_airspy_actions_isSet = true;
|
||||
}
|
||||
|
||||
SWGAirspyHFActions*
|
||||
SWGDeviceActions::getAirspyHfActions() {
|
||||
return airspy_hf_actions;
|
||||
}
|
||||
void
|
||||
SWGDeviceActions::setAirspyHfActions(SWGAirspyHFActions* airspy_hf_actions) {
|
||||
this->airspy_hf_actions = airspy_hf_actions;
|
||||
this->m_airspy_hf_actions_isSet = true;
|
||||
}
|
||||
|
||||
SWGBladeRF1InputActions*
|
||||
SWGDeviceActions::getBladeRf1InputActions() {
|
||||
return blade_rf1_input_actions;
|
||||
}
|
||||
void
|
||||
SWGDeviceActions::setBladeRf1InputActions(SWGBladeRF1InputActions* blade_rf1_input_actions) {
|
||||
this->blade_rf1_input_actions = blade_rf1_input_actions;
|
||||
this->m_blade_rf1_input_actions_isSet = true;
|
||||
}
|
||||
|
||||
SWGFCDProActions*
|
||||
SWGDeviceActions::getFcdProActions() {
|
||||
return fcd_pro_actions;
|
||||
}
|
||||
void
|
||||
SWGDeviceActions::setFcdProActions(SWGFCDProActions* fcd_pro_actions) {
|
||||
this->fcd_pro_actions = fcd_pro_actions;
|
||||
this->m_fcd_pro_actions_isSet = true;
|
||||
}
|
||||
|
||||
SWGFCDProPlusActions*
|
||||
SWGDeviceActions::getFcdProPlusActions() {
|
||||
return fcd_pro_plus_actions;
|
||||
}
|
||||
void
|
||||
SWGDeviceActions::setFcdProPlusActions(SWGFCDProPlusActions* fcd_pro_plus_actions) {
|
||||
this->fcd_pro_plus_actions = fcd_pro_plus_actions;
|
||||
this->m_fcd_pro_plus_actions_isSet = true;
|
||||
}
|
||||
|
||||
SWGHackRFInputActions*
|
||||
SWGDeviceActions::getHackRfInputActions() {
|
||||
return hack_rf_input_actions;
|
||||
}
|
||||
void
|
||||
SWGDeviceActions::setHackRfInputActions(SWGHackRFInputActions* hack_rf_input_actions) {
|
||||
this->hack_rf_input_actions = hack_rf_input_actions;
|
||||
this->m_hack_rf_input_actions_isSet = true;
|
||||
}
|
||||
|
||||
SWGKiwiSDRActions*
|
||||
SWGDeviceActions::getKiwiSdrActions() {
|
||||
return kiwi_sdr_actions;
|
||||
}
|
||||
void
|
||||
SWGDeviceActions::setKiwiSdrActions(SWGKiwiSDRActions* kiwi_sdr_actions) {
|
||||
this->kiwi_sdr_actions = kiwi_sdr_actions;
|
||||
this->m_kiwi_sdr_actions_isSet = true;
|
||||
}
|
||||
|
||||
SWGLimeSdrInputActions*
|
||||
SWGDeviceActions::getLimeSdrInputActions() {
|
||||
return lime_sdr_input_actions;
|
||||
}
|
||||
void
|
||||
SWGDeviceActions::setLimeSdrInputActions(SWGLimeSdrInputActions* lime_sdr_input_actions) {
|
||||
this->lime_sdr_input_actions = lime_sdr_input_actions;
|
||||
this->m_lime_sdr_input_actions_isSet = true;
|
||||
}
|
||||
|
||||
SWGLocalInputActions*
|
||||
SWGDeviceActions::getLocalInputActions() {
|
||||
return local_input_actions;
|
||||
}
|
||||
void
|
||||
SWGDeviceActions::setLocalInputActions(SWGLocalInputActions* local_input_actions) {
|
||||
this->local_input_actions = local_input_actions;
|
||||
this->m_local_input_actions_isSet = true;
|
||||
}
|
||||
|
||||
SWGPerseusActions*
|
||||
SWGDeviceActions::getPerseusActions() {
|
||||
return perseus_actions;
|
||||
}
|
||||
void
|
||||
SWGDeviceActions::setPerseusActions(SWGPerseusActions* perseus_actions) {
|
||||
this->perseus_actions = perseus_actions;
|
||||
this->m_perseus_actions_isSet = true;
|
||||
}
|
||||
|
||||
SWGPlutoSdrInputActions*
|
||||
SWGDeviceActions::getPlutoSdrInputActions() {
|
||||
return pluto_sdr_input_actions;
|
||||
}
|
||||
void
|
||||
SWGDeviceActions::setPlutoSdrInputActions(SWGPlutoSdrInputActions* pluto_sdr_input_actions) {
|
||||
this->pluto_sdr_input_actions = pluto_sdr_input_actions;
|
||||
this->m_pluto_sdr_input_actions_isSet = true;
|
||||
}
|
||||
|
||||
SWGRemoteInputActions*
|
||||
SWGDeviceActions::getRemoteInputActions() {
|
||||
return remote_input_actions;
|
||||
}
|
||||
void
|
||||
SWGDeviceActions::setRemoteInputActions(SWGRemoteInputActions* remote_input_actions) {
|
||||
this->remote_input_actions = remote_input_actions;
|
||||
this->m_remote_input_actions_isSet = true;
|
||||
}
|
||||
|
||||
SWGRtlSdrActions*
|
||||
SWGDeviceActions::getRtlSdrActions() {
|
||||
return rtl_sdr_actions;
|
||||
@ -157,6 +469,46 @@ SWGDeviceActions::setRtlSdrActions(SWGRtlSdrActions* rtl_sdr_actions) {
|
||||
this->m_rtl_sdr_actions_isSet = true;
|
||||
}
|
||||
|
||||
SWGSDRPlayActions*
|
||||
SWGDeviceActions::getSdrPlayActions() {
|
||||
return sdr_play_actions;
|
||||
}
|
||||
void
|
||||
SWGDeviceActions::setSdrPlayActions(SWGSDRPlayActions* sdr_play_actions) {
|
||||
this->sdr_play_actions = sdr_play_actions;
|
||||
this->m_sdr_play_actions_isSet = true;
|
||||
}
|
||||
|
||||
SWGSoapySDRInputActions*
|
||||
SWGDeviceActions::getSoapySdrInputActions() {
|
||||
return soapy_sdr_input_actions;
|
||||
}
|
||||
void
|
||||
SWGDeviceActions::setSoapySdrInputActions(SWGSoapySDRInputActions* soapy_sdr_input_actions) {
|
||||
this->soapy_sdr_input_actions = soapy_sdr_input_actions;
|
||||
this->m_soapy_sdr_input_actions_isSet = true;
|
||||
}
|
||||
|
||||
SWGTestSourceActions*
|
||||
SWGDeviceActions::getTestSourceActions() {
|
||||
return test_source_actions;
|
||||
}
|
||||
void
|
||||
SWGDeviceActions::setTestSourceActions(SWGTestSourceActions* test_source_actions) {
|
||||
this->test_source_actions = test_source_actions;
|
||||
this->m_test_source_actions_isSet = true;
|
||||
}
|
||||
|
||||
SWGXtrxInputActions*
|
||||
SWGDeviceActions::getXtrxInputActions() {
|
||||
return xtrx_input_actions;
|
||||
}
|
||||
void
|
||||
SWGDeviceActions::setXtrxInputActions(SWGXtrxInputActions* xtrx_input_actions) {
|
||||
this->xtrx_input_actions = xtrx_input_actions;
|
||||
this->m_xtrx_input_actions_isSet = true;
|
||||
}
|
||||
|
||||
|
||||
bool
|
||||
SWGDeviceActions::isSet(){
|
||||
@ -171,9 +523,57 @@ SWGDeviceActions::isSet(){
|
||||
if(m_originator_index_isSet){
|
||||
isObjectUpdated = true; break;
|
||||
}
|
||||
if(airspy_actions && airspy_actions->isSet()){
|
||||
isObjectUpdated = true; break;
|
||||
}
|
||||
if(airspy_hf_actions && airspy_hf_actions->isSet()){
|
||||
isObjectUpdated = true; break;
|
||||
}
|
||||
if(blade_rf1_input_actions && blade_rf1_input_actions->isSet()){
|
||||
isObjectUpdated = true; break;
|
||||
}
|
||||
if(fcd_pro_actions && fcd_pro_actions->isSet()){
|
||||
isObjectUpdated = true; break;
|
||||
}
|
||||
if(fcd_pro_plus_actions && fcd_pro_plus_actions->isSet()){
|
||||
isObjectUpdated = true; break;
|
||||
}
|
||||
if(hack_rf_input_actions && hack_rf_input_actions->isSet()){
|
||||
isObjectUpdated = true; break;
|
||||
}
|
||||
if(kiwi_sdr_actions && kiwi_sdr_actions->isSet()){
|
||||
isObjectUpdated = true; break;
|
||||
}
|
||||
if(lime_sdr_input_actions && lime_sdr_input_actions->isSet()){
|
||||
isObjectUpdated = true; break;
|
||||
}
|
||||
if(local_input_actions && local_input_actions->isSet()){
|
||||
isObjectUpdated = true; break;
|
||||
}
|
||||
if(perseus_actions && perseus_actions->isSet()){
|
||||
isObjectUpdated = true; break;
|
||||
}
|
||||
if(pluto_sdr_input_actions && pluto_sdr_input_actions->isSet()){
|
||||
isObjectUpdated = true; break;
|
||||
}
|
||||
if(remote_input_actions && remote_input_actions->isSet()){
|
||||
isObjectUpdated = true; break;
|
||||
}
|
||||
if(rtl_sdr_actions && rtl_sdr_actions->isSet()){
|
||||
isObjectUpdated = true; break;
|
||||
}
|
||||
if(sdr_play_actions && sdr_play_actions->isSet()){
|
||||
isObjectUpdated = true; break;
|
||||
}
|
||||
if(soapy_sdr_input_actions && soapy_sdr_input_actions->isSet()){
|
||||
isObjectUpdated = true; break;
|
||||
}
|
||||
if(test_source_actions && test_source_actions->isSet()){
|
||||
isObjectUpdated = true; break;
|
||||
}
|
||||
if(xtrx_input_actions && xtrx_input_actions->isSet()){
|
||||
isObjectUpdated = true; break;
|
||||
}
|
||||
}while(false);
|
||||
return isObjectUpdated;
|
||||
}
|
||||
|
@ -22,7 +22,23 @@
|
||||
#include <QJsonObject>
|
||||
|
||||
|
||||
#include "SWGAirspyActions.h"
|
||||
#include "SWGAirspyHFActions.h"
|
||||
#include "SWGBladeRF1InputActions.h"
|
||||
#include "SWGFCDProActions.h"
|
||||
#include "SWGFCDProPlusActions.h"
|
||||
#include "SWGHackRFInputActions.h"
|
||||
#include "SWGKiwiSDRActions.h"
|
||||
#include "SWGLimeSdrInputActions.h"
|
||||
#include "SWGLocalInputActions.h"
|
||||
#include "SWGPerseusActions.h"
|
||||
#include "SWGPlutoSdrInputActions.h"
|
||||
#include "SWGRemoteInputActions.h"
|
||||
#include "SWGRtlSdrActions.h"
|
||||
#include "SWGSDRPlayActions.h"
|
||||
#include "SWGSoapySDRInputActions.h"
|
||||
#include "SWGTestSourceActions.h"
|
||||
#include "SWGXtrxInputActions.h"
|
||||
#include <QString>
|
||||
|
||||
#include "SWGObject.h"
|
||||
@ -52,9 +68,57 @@ public:
|
||||
qint32 getOriginatorIndex();
|
||||
void setOriginatorIndex(qint32 originator_index);
|
||||
|
||||
SWGAirspyActions* getAirspyActions();
|
||||
void setAirspyActions(SWGAirspyActions* airspy_actions);
|
||||
|
||||
SWGAirspyHFActions* getAirspyHfActions();
|
||||
void setAirspyHfActions(SWGAirspyHFActions* airspy_hf_actions);
|
||||
|
||||
SWGBladeRF1InputActions* getBladeRf1InputActions();
|
||||
void setBladeRf1InputActions(SWGBladeRF1InputActions* blade_rf1_input_actions);
|
||||
|
||||
SWGFCDProActions* getFcdProActions();
|
||||
void setFcdProActions(SWGFCDProActions* fcd_pro_actions);
|
||||
|
||||
SWGFCDProPlusActions* getFcdProPlusActions();
|
||||
void setFcdProPlusActions(SWGFCDProPlusActions* fcd_pro_plus_actions);
|
||||
|
||||
SWGHackRFInputActions* getHackRfInputActions();
|
||||
void setHackRfInputActions(SWGHackRFInputActions* hack_rf_input_actions);
|
||||
|
||||
SWGKiwiSDRActions* getKiwiSdrActions();
|
||||
void setKiwiSdrActions(SWGKiwiSDRActions* kiwi_sdr_actions);
|
||||
|
||||
SWGLimeSdrInputActions* getLimeSdrInputActions();
|
||||
void setLimeSdrInputActions(SWGLimeSdrInputActions* lime_sdr_input_actions);
|
||||
|
||||
SWGLocalInputActions* getLocalInputActions();
|
||||
void setLocalInputActions(SWGLocalInputActions* local_input_actions);
|
||||
|
||||
SWGPerseusActions* getPerseusActions();
|
||||
void setPerseusActions(SWGPerseusActions* perseus_actions);
|
||||
|
||||
SWGPlutoSdrInputActions* getPlutoSdrInputActions();
|
||||
void setPlutoSdrInputActions(SWGPlutoSdrInputActions* pluto_sdr_input_actions);
|
||||
|
||||
SWGRemoteInputActions* getRemoteInputActions();
|
||||
void setRemoteInputActions(SWGRemoteInputActions* remote_input_actions);
|
||||
|
||||
SWGRtlSdrActions* getRtlSdrActions();
|
||||
void setRtlSdrActions(SWGRtlSdrActions* rtl_sdr_actions);
|
||||
|
||||
SWGSDRPlayActions* getSdrPlayActions();
|
||||
void setSdrPlayActions(SWGSDRPlayActions* sdr_play_actions);
|
||||
|
||||
SWGSoapySDRInputActions* getSoapySdrInputActions();
|
||||
void setSoapySdrInputActions(SWGSoapySDRInputActions* soapy_sdr_input_actions);
|
||||
|
||||
SWGTestSourceActions* getTestSourceActions();
|
||||
void setTestSourceActions(SWGTestSourceActions* test_source_actions);
|
||||
|
||||
SWGXtrxInputActions* getXtrxInputActions();
|
||||
void setXtrxInputActions(SWGXtrxInputActions* xtrx_input_actions);
|
||||
|
||||
|
||||
virtual bool isSet() override;
|
||||
|
||||
@ -68,9 +132,57 @@ private:
|
||||
qint32 originator_index;
|
||||
bool m_originator_index_isSet;
|
||||
|
||||
SWGAirspyActions* airspy_actions;
|
||||
bool m_airspy_actions_isSet;
|
||||
|
||||
SWGAirspyHFActions* airspy_hf_actions;
|
||||
bool m_airspy_hf_actions_isSet;
|
||||
|
||||
SWGBladeRF1InputActions* blade_rf1_input_actions;
|
||||
bool m_blade_rf1_input_actions_isSet;
|
||||
|
||||
SWGFCDProActions* fcd_pro_actions;
|
||||
bool m_fcd_pro_actions_isSet;
|
||||
|
||||
SWGFCDProPlusActions* fcd_pro_plus_actions;
|
||||
bool m_fcd_pro_plus_actions_isSet;
|
||||
|
||||
SWGHackRFInputActions* hack_rf_input_actions;
|
||||
bool m_hack_rf_input_actions_isSet;
|
||||
|
||||
SWGKiwiSDRActions* kiwi_sdr_actions;
|
||||
bool m_kiwi_sdr_actions_isSet;
|
||||
|
||||
SWGLimeSdrInputActions* lime_sdr_input_actions;
|
||||
bool m_lime_sdr_input_actions_isSet;
|
||||
|
||||
SWGLocalInputActions* local_input_actions;
|
||||
bool m_local_input_actions_isSet;
|
||||
|
||||
SWGPerseusActions* perseus_actions;
|
||||
bool m_perseus_actions_isSet;
|
||||
|
||||
SWGPlutoSdrInputActions* pluto_sdr_input_actions;
|
||||
bool m_pluto_sdr_input_actions_isSet;
|
||||
|
||||
SWGRemoteInputActions* remote_input_actions;
|
||||
bool m_remote_input_actions_isSet;
|
||||
|
||||
SWGRtlSdrActions* rtl_sdr_actions;
|
||||
bool m_rtl_sdr_actions_isSet;
|
||||
|
||||
SWGSDRPlayActions* sdr_play_actions;
|
||||
bool m_sdr_play_actions_isSet;
|
||||
|
||||
SWGSoapySDRInputActions* soapy_sdr_input_actions;
|
||||
bool m_soapy_sdr_input_actions_isSet;
|
||||
|
||||
SWGTestSourceActions* test_source_actions;
|
||||
bool m_test_source_actions_isSet;
|
||||
|
||||
SWGXtrxInputActions* xtrx_input_actions;
|
||||
bool m_xtrx_input_actions_isSet;
|
||||
|
||||
};
|
||||
|
||||
}
|
||||
|
108
swagger/sdrangel/code/qt5/client/SWGFCDProActions.cpp
Normal file
108
swagger/sdrangel/code/qt5/client/SWGFCDProActions.cpp
Normal file
@ -0,0 +1,108 @@
|
||||
/**
|
||||
* 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: 4.13.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 "SWGFCDProActions.h"
|
||||
|
||||
#include "SWGHelpers.h"
|
||||
|
||||
#include <QJsonDocument>
|
||||
#include <QJsonArray>
|
||||
#include <QObject>
|
||||
#include <QDebug>
|
||||
|
||||
namespace SWGSDRangel {
|
||||
|
||||
SWGFCDProActions::SWGFCDProActions(QString* json) {
|
||||
init();
|
||||
this->fromJson(*json);
|
||||
}
|
||||
|
||||
SWGFCDProActions::SWGFCDProActions() {
|
||||
record = 0;
|
||||
m_record_isSet = false;
|
||||
}
|
||||
|
||||
SWGFCDProActions::~SWGFCDProActions() {
|
||||
this->cleanup();
|
||||
}
|
||||
|
||||
void
|
||||
SWGFCDProActions::init() {
|
||||
record = 0;
|
||||
m_record_isSet = false;
|
||||
}
|
||||
|
||||
void
|
||||
SWGFCDProActions::cleanup() {
|
||||
|
||||
}
|
||||
|
||||
SWGFCDProActions*
|
||||
SWGFCDProActions::fromJson(QString &json) {
|
||||
QByteArray array (json.toStdString().c_str());
|
||||
QJsonDocument doc = QJsonDocument::fromJson(array);
|
||||
QJsonObject jsonObject = doc.object();
|
||||
this->fromJsonObject(jsonObject);
|
||||
return this;
|
||||
}
|
||||
|
||||
void
|
||||
SWGFCDProActions::fromJsonObject(QJsonObject &pJson) {
|
||||
::SWGSDRangel::setValue(&record, pJson["record"], "qint32", "");
|
||||
|
||||
}
|
||||
|
||||
QString
|
||||
SWGFCDProActions::asJson ()
|
||||
{
|
||||
QJsonObject* obj = this->asJsonObject();
|
||||
|
||||
QJsonDocument doc(*obj);
|
||||
QByteArray bytes = doc.toJson();
|
||||
delete obj;
|
||||
return QString(bytes);
|
||||
}
|
||||
|
||||
QJsonObject*
|
||||
SWGFCDProActions::asJsonObject() {
|
||||
QJsonObject* obj = new QJsonObject();
|
||||
if(m_record_isSet){
|
||||
obj->insert("record", QJsonValue(record));
|
||||
}
|
||||
|
||||
return obj;
|
||||
}
|
||||
|
||||
qint32
|
||||
SWGFCDProActions::getRecord() {
|
||||
return record;
|
||||
}
|
||||
void
|
||||
SWGFCDProActions::setRecord(qint32 record) {
|
||||
this->record = record;
|
||||
this->m_record_isSet = true;
|
||||
}
|
||||
|
||||
|
||||
bool
|
||||
SWGFCDProActions::isSet(){
|
||||
bool isObjectUpdated = false;
|
||||
do{
|
||||
if(m_record_isSet){
|
||||
isObjectUpdated = true; break;
|
||||
}
|
||||
}while(false);
|
||||
return isObjectUpdated;
|
||||
}
|
||||
}
|
||||
|
58
swagger/sdrangel/code/qt5/client/SWGFCDProActions.h
Normal file
58
swagger/sdrangel/code/qt5/client/SWGFCDProActions.h
Normal file
@ -0,0 +1,58 @@
|
||||
/**
|
||||
* 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: 4.13.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.
|
||||
*/
|
||||
|
||||
/*
|
||||
* SWGFCDProActions.h
|
||||
*
|
||||
* FCDPro
|
||||
*/
|
||||
|
||||
#ifndef SWGFCDProActions_H_
|
||||
#define SWGFCDProActions_H_
|
||||
|
||||
#include <QJsonObject>
|
||||
|
||||
|
||||
|
||||
#include "SWGObject.h"
|
||||
#include "export.h"
|
||||
|
||||
namespace SWGSDRangel {
|
||||
|
||||
class SWG_API SWGFCDProActions: public SWGObject {
|
||||
public:
|
||||
SWGFCDProActions();
|
||||
SWGFCDProActions(QString* json);
|
||||
virtual ~SWGFCDProActions();
|
||||
void init();
|
||||
void cleanup();
|
||||
|
||||
virtual QString asJson () override;
|
||||
virtual QJsonObject* asJsonObject() override;
|
||||
virtual void fromJsonObject(QJsonObject &json) override;
|
||||
virtual SWGFCDProActions* fromJson(QString &jsonString) override;
|
||||
|
||||
qint32 getRecord();
|
||||
void setRecord(qint32 record);
|
||||
|
||||
|
||||
virtual bool isSet() override;
|
||||
|
||||
private:
|
||||
qint32 record;
|
||||
bool m_record_isSet;
|
||||
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
#endif /* SWGFCDProActions_H_ */
|
108
swagger/sdrangel/code/qt5/client/SWGFCDProPlusActions.cpp
Normal file
108
swagger/sdrangel/code/qt5/client/SWGFCDProPlusActions.cpp
Normal file
@ -0,0 +1,108 @@
|
||||
/**
|
||||
* 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: 4.13.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 "SWGFCDProPlusActions.h"
|
||||
|
||||
#include "SWGHelpers.h"
|
||||
|
||||
#include <QJsonDocument>
|
||||
#include <QJsonArray>
|
||||
#include <QObject>
|
||||
#include <QDebug>
|
||||
|
||||
namespace SWGSDRangel {
|
||||
|
||||
SWGFCDProPlusActions::SWGFCDProPlusActions(QString* json) {
|
||||
init();
|
||||
this->fromJson(*json);
|
||||
}
|
||||
|
||||
SWGFCDProPlusActions::SWGFCDProPlusActions() {
|
||||
record = 0;
|
||||
m_record_isSet = false;
|
||||
}
|
||||
|
||||
SWGFCDProPlusActions::~SWGFCDProPlusActions() {
|
||||
this->cleanup();
|
||||
}
|
||||
|
||||
void
|
||||
SWGFCDProPlusActions::init() {
|
||||
record = 0;
|
||||
m_record_isSet = false;
|
||||
}
|
||||
|
||||
void
|
||||
SWGFCDProPlusActions::cleanup() {
|
||||
|
||||
}
|
||||
|
||||
SWGFCDProPlusActions*
|
||||
SWGFCDProPlusActions::fromJson(QString &json) {
|
||||
QByteArray array (json.toStdString().c_str());
|
||||
QJsonDocument doc = QJsonDocument::fromJson(array);
|
||||
QJsonObject jsonObject = doc.object();
|
||||
this->fromJsonObject(jsonObject);
|
||||
return this;
|
||||
}
|
||||
|
||||
void
|
||||
SWGFCDProPlusActions::fromJsonObject(QJsonObject &pJson) {
|
||||
::SWGSDRangel::setValue(&record, pJson["record"], "qint32", "");
|
||||
|
||||
}
|
||||
|
||||
QString
|
||||
SWGFCDProPlusActions::asJson ()
|
||||
{
|
||||
QJsonObject* obj = this->asJsonObject();
|
||||
|
||||
QJsonDocument doc(*obj);
|
||||
QByteArray bytes = doc.toJson();
|
||||
delete obj;
|
||||
return QString(bytes);
|
||||
}
|
||||
|
||||
QJsonObject*
|
||||
SWGFCDProPlusActions::asJsonObject() {
|
||||
QJsonObject* obj = new QJsonObject();
|
||||
if(m_record_isSet){
|
||||
obj->insert("record", QJsonValue(record));
|
||||
}
|
||||
|
||||
return obj;
|
||||
}
|
||||
|
||||
qint32
|
||||
SWGFCDProPlusActions::getRecord() {
|
||||
return record;
|
||||
}
|
||||
void
|
||||
SWGFCDProPlusActions::setRecord(qint32 record) {
|
||||
this->record = record;
|
||||
this->m_record_isSet = true;
|
||||
}
|
||||
|
||||
|
||||
bool
|
||||
SWGFCDProPlusActions::isSet(){
|
||||
bool isObjectUpdated = false;
|
||||
do{
|
||||
if(m_record_isSet){
|
||||
isObjectUpdated = true; break;
|
||||
}
|
||||
}while(false);
|
||||
return isObjectUpdated;
|
||||
}
|
||||
}
|
||||
|
58
swagger/sdrangel/code/qt5/client/SWGFCDProPlusActions.h
Normal file
58
swagger/sdrangel/code/qt5/client/SWGFCDProPlusActions.h
Normal file
@ -0,0 +1,58 @@
|
||||
/**
|
||||
* 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: 4.13.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.
|
||||
*/
|
||||
|
||||
/*
|
||||
* SWGFCDProPlusActions.h
|
||||
*
|
||||
* FCDProPlus
|
||||
*/
|
||||
|
||||
#ifndef SWGFCDProPlusActions_H_
|
||||
#define SWGFCDProPlusActions_H_
|
||||
|
||||
#include <QJsonObject>
|
||||
|
||||
|
||||
|
||||
#include "SWGObject.h"
|
||||
#include "export.h"
|
||||
|
||||
namespace SWGSDRangel {
|
||||
|
||||
class SWG_API SWGFCDProPlusActions: public SWGObject {
|
||||
public:
|
||||
SWGFCDProPlusActions();
|
||||
SWGFCDProPlusActions(QString* json);
|
||||
virtual ~SWGFCDProPlusActions();
|
||||
void init();
|
||||
void cleanup();
|
||||
|
||||
virtual QString asJson () override;
|
||||
virtual QJsonObject* asJsonObject() override;
|
||||
virtual void fromJsonObject(QJsonObject &json) override;
|
||||
virtual SWGFCDProPlusActions* fromJson(QString &jsonString) override;
|
||||
|
||||
qint32 getRecord();
|
||||
void setRecord(qint32 record);
|
||||
|
||||
|
||||
virtual bool isSet() override;
|
||||
|
||||
private:
|
||||
qint32 record;
|
||||
bool m_record_isSet;
|
||||
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
#endif /* SWGFCDProPlusActions_H_ */
|
108
swagger/sdrangel/code/qt5/client/SWGHackRFInputActions.cpp
Normal file
108
swagger/sdrangel/code/qt5/client/SWGHackRFInputActions.cpp
Normal file
@ -0,0 +1,108 @@
|
||||
/**
|
||||
* 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: 4.13.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 "SWGHackRFInputActions.h"
|
||||
|
||||
#include "SWGHelpers.h"
|
||||
|
||||
#include <QJsonDocument>
|
||||
#include <QJsonArray>
|
||||
#include <QObject>
|
||||
#include <QDebug>
|
||||
|
||||
namespace SWGSDRangel {
|
||||
|
||||
SWGHackRFInputActions::SWGHackRFInputActions(QString* json) {
|
||||
init();
|
||||
this->fromJson(*json);
|
||||
}
|
||||
|
||||
SWGHackRFInputActions::SWGHackRFInputActions() {
|
||||
record = 0;
|
||||
m_record_isSet = false;
|
||||
}
|
||||
|
||||
SWGHackRFInputActions::~SWGHackRFInputActions() {
|
||||
this->cleanup();
|
||||
}
|
||||
|
||||
void
|
||||
SWGHackRFInputActions::init() {
|
||||
record = 0;
|
||||
m_record_isSet = false;
|
||||
}
|
||||
|
||||
void
|
||||
SWGHackRFInputActions::cleanup() {
|
||||
|
||||
}
|
||||
|
||||
SWGHackRFInputActions*
|
||||
SWGHackRFInputActions::fromJson(QString &json) {
|
||||
QByteArray array (json.toStdString().c_str());
|
||||
QJsonDocument doc = QJsonDocument::fromJson(array);
|
||||
QJsonObject jsonObject = doc.object();
|
||||
this->fromJsonObject(jsonObject);
|
||||
return this;
|
||||
}
|
||||
|
||||
void
|
||||
SWGHackRFInputActions::fromJsonObject(QJsonObject &pJson) {
|
||||
::SWGSDRangel::setValue(&record, pJson["record"], "qint32", "");
|
||||
|
||||
}
|
||||
|
||||
QString
|
||||
SWGHackRFInputActions::asJson ()
|
||||
{
|
||||
QJsonObject* obj = this->asJsonObject();
|
||||
|
||||
QJsonDocument doc(*obj);
|
||||
QByteArray bytes = doc.toJson();
|
||||
delete obj;
|
||||
return QString(bytes);
|
||||
}
|
||||
|
||||
QJsonObject*
|
||||
SWGHackRFInputActions::asJsonObject() {
|
||||
QJsonObject* obj = new QJsonObject();
|
||||
if(m_record_isSet){
|
||||
obj->insert("record", QJsonValue(record));
|
||||
}
|
||||
|
||||
return obj;
|
||||
}
|
||||
|
||||
qint32
|
||||
SWGHackRFInputActions::getRecord() {
|
||||
return record;
|
||||
}
|
||||
void
|
||||
SWGHackRFInputActions::setRecord(qint32 record) {
|
||||
this->record = record;
|
||||
this->m_record_isSet = true;
|
||||
}
|
||||
|
||||
|
||||
bool
|
||||
SWGHackRFInputActions::isSet(){
|
||||
bool isObjectUpdated = false;
|
||||
do{
|
||||
if(m_record_isSet){
|
||||
isObjectUpdated = true; break;
|
||||
}
|
||||
}while(false);
|
||||
return isObjectUpdated;
|
||||
}
|
||||
}
|
||||
|
58
swagger/sdrangel/code/qt5/client/SWGHackRFInputActions.h
Normal file
58
swagger/sdrangel/code/qt5/client/SWGHackRFInputActions.h
Normal file
@ -0,0 +1,58 @@
|
||||
/**
|
||||
* 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: 4.13.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.
|
||||
*/
|
||||
|
||||
/*
|
||||
* SWGHackRFInputActions.h
|
||||
*
|
||||
* HackRF
|
||||
*/
|
||||
|
||||
#ifndef SWGHackRFInputActions_H_
|
||||
#define SWGHackRFInputActions_H_
|
||||
|
||||
#include <QJsonObject>
|
||||
|
||||
|
||||
|
||||
#include "SWGObject.h"
|
||||
#include "export.h"
|
||||
|
||||
namespace SWGSDRangel {
|
||||
|
||||
class SWG_API SWGHackRFInputActions: public SWGObject {
|
||||
public:
|
||||
SWGHackRFInputActions();
|
||||
SWGHackRFInputActions(QString* json);
|
||||
virtual ~SWGHackRFInputActions();
|
||||
void init();
|
||||
void cleanup();
|
||||
|
||||
virtual QString asJson () override;
|
||||
virtual QJsonObject* asJsonObject() override;
|
||||
virtual void fromJsonObject(QJsonObject &json) override;
|
||||
virtual SWGHackRFInputActions* fromJson(QString &jsonString) override;
|
||||
|
||||
qint32 getRecord();
|
||||
void setRecord(qint32 record);
|
||||
|
||||
|
||||
virtual bool isSet() override;
|
||||
|
||||
private:
|
||||
qint32 record;
|
||||
bool m_record_isSet;
|
||||
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
#endif /* SWGHackRFInputActions_H_ */
|
108
swagger/sdrangel/code/qt5/client/SWGKiwiSDRActions.cpp
Normal file
108
swagger/sdrangel/code/qt5/client/SWGKiwiSDRActions.cpp
Normal file
@ -0,0 +1,108 @@
|
||||
/**
|
||||
* 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: 4.13.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 "SWGKiwiSDRActions.h"
|
||||
|
||||
#include "SWGHelpers.h"
|
||||
|
||||
#include <QJsonDocument>
|
||||
#include <QJsonArray>
|
||||
#include <QObject>
|
||||
#include <QDebug>
|
||||
|
||||
namespace SWGSDRangel {
|
||||
|
||||
SWGKiwiSDRActions::SWGKiwiSDRActions(QString* json) {
|
||||
init();
|
||||
this->fromJson(*json);
|
||||
}
|
||||
|
||||
SWGKiwiSDRActions::SWGKiwiSDRActions() {
|
||||
record = 0;
|
||||
m_record_isSet = false;
|
||||
}
|
||||
|
||||
SWGKiwiSDRActions::~SWGKiwiSDRActions() {
|
||||
this->cleanup();
|
||||
}
|
||||
|
||||
void
|
||||
SWGKiwiSDRActions::init() {
|
||||
record = 0;
|
||||
m_record_isSet = false;
|
||||
}
|
||||
|
||||
void
|
||||
SWGKiwiSDRActions::cleanup() {
|
||||
|
||||
}
|
||||
|
||||
SWGKiwiSDRActions*
|
||||
SWGKiwiSDRActions::fromJson(QString &json) {
|
||||
QByteArray array (json.toStdString().c_str());
|
||||
QJsonDocument doc = QJsonDocument::fromJson(array);
|
||||
QJsonObject jsonObject = doc.object();
|
||||
this->fromJsonObject(jsonObject);
|
||||
return this;
|
||||
}
|
||||
|
||||
void
|
||||
SWGKiwiSDRActions::fromJsonObject(QJsonObject &pJson) {
|
||||
::SWGSDRangel::setValue(&record, pJson["record"], "qint32", "");
|
||||
|
||||
}
|
||||
|
||||
QString
|
||||
SWGKiwiSDRActions::asJson ()
|
||||
{
|
||||
QJsonObject* obj = this->asJsonObject();
|
||||
|
||||
QJsonDocument doc(*obj);
|
||||
QByteArray bytes = doc.toJson();
|
||||
delete obj;
|
||||
return QString(bytes);
|
||||
}
|
||||
|
||||
QJsonObject*
|
||||
SWGKiwiSDRActions::asJsonObject() {
|
||||
QJsonObject* obj = new QJsonObject();
|
||||
if(m_record_isSet){
|
||||
obj->insert("record", QJsonValue(record));
|
||||
}
|
||||
|
||||
return obj;
|
||||
}
|
||||
|
||||
qint32
|
||||
SWGKiwiSDRActions::getRecord() {
|
||||
return record;
|
||||
}
|
||||
void
|
||||
SWGKiwiSDRActions::setRecord(qint32 record) {
|
||||
this->record = record;
|
||||
this->m_record_isSet = true;
|
||||
}
|
||||
|
||||
|
||||
bool
|
||||
SWGKiwiSDRActions::isSet(){
|
||||
bool isObjectUpdated = false;
|
||||
do{
|
||||
if(m_record_isSet){
|
||||
isObjectUpdated = true; break;
|
||||
}
|
||||
}while(false);
|
||||
return isObjectUpdated;
|
||||
}
|
||||
}
|
||||
|
58
swagger/sdrangel/code/qt5/client/SWGKiwiSDRActions.h
Normal file
58
swagger/sdrangel/code/qt5/client/SWGKiwiSDRActions.h
Normal file
@ -0,0 +1,58 @@
|
||||
/**
|
||||
* 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: 4.13.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.
|
||||
*/
|
||||
|
||||
/*
|
||||
* SWGKiwiSDRActions.h
|
||||
*
|
||||
* KiwiSDR
|
||||
*/
|
||||
|
||||
#ifndef SWGKiwiSDRActions_H_
|
||||
#define SWGKiwiSDRActions_H_
|
||||
|
||||
#include <QJsonObject>
|
||||
|
||||
|
||||
|
||||
#include "SWGObject.h"
|
||||
#include "export.h"
|
||||
|
||||
namespace SWGSDRangel {
|
||||
|
||||
class SWG_API SWGKiwiSDRActions: public SWGObject {
|
||||
public:
|
||||
SWGKiwiSDRActions();
|
||||
SWGKiwiSDRActions(QString* json);
|
||||
virtual ~SWGKiwiSDRActions();
|
||||
void init();
|
||||
void cleanup();
|
||||
|
||||
virtual QString asJson () override;
|
||||
virtual QJsonObject* asJsonObject() override;
|
||||
virtual void fromJsonObject(QJsonObject &json) override;
|
||||
virtual SWGKiwiSDRActions* fromJson(QString &jsonString) override;
|
||||
|
||||
qint32 getRecord();
|
||||
void setRecord(qint32 record);
|
||||
|
||||
|
||||
virtual bool isSet() override;
|
||||
|
||||
private:
|
||||
qint32 record;
|
||||
bool m_record_isSet;
|
||||
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
#endif /* SWGKiwiSDRActions_H_ */
|
108
swagger/sdrangel/code/qt5/client/SWGLimeSdrInputActions.cpp
Normal file
108
swagger/sdrangel/code/qt5/client/SWGLimeSdrInputActions.cpp
Normal file
@ -0,0 +1,108 @@
|
||||
/**
|
||||
* 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: 4.13.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 "SWGLimeSdrInputActions.h"
|
||||
|
||||
#include "SWGHelpers.h"
|
||||
|
||||
#include <QJsonDocument>
|
||||
#include <QJsonArray>
|
||||
#include <QObject>
|
||||
#include <QDebug>
|
||||
|
||||
namespace SWGSDRangel {
|
||||
|
||||
SWGLimeSdrInputActions::SWGLimeSdrInputActions(QString* json) {
|
||||
init();
|
||||
this->fromJson(*json);
|
||||
}
|
||||
|
||||
SWGLimeSdrInputActions::SWGLimeSdrInputActions() {
|
||||
record = 0;
|
||||
m_record_isSet = false;
|
||||
}
|
||||
|
||||
SWGLimeSdrInputActions::~SWGLimeSdrInputActions() {
|
||||
this->cleanup();
|
||||
}
|
||||
|
||||
void
|
||||
SWGLimeSdrInputActions::init() {
|
||||
record = 0;
|
||||
m_record_isSet = false;
|
||||
}
|
||||
|
||||
void
|
||||
SWGLimeSdrInputActions::cleanup() {
|
||||
|
||||
}
|
||||
|
||||
SWGLimeSdrInputActions*
|
||||
SWGLimeSdrInputActions::fromJson(QString &json) {
|
||||
QByteArray array (json.toStdString().c_str());
|
||||
QJsonDocument doc = QJsonDocument::fromJson(array);
|
||||
QJsonObject jsonObject = doc.object();
|
||||
this->fromJsonObject(jsonObject);
|
||||
return this;
|
||||
}
|
||||
|
||||
void
|
||||
SWGLimeSdrInputActions::fromJsonObject(QJsonObject &pJson) {
|
||||
::SWGSDRangel::setValue(&record, pJson["record"], "qint32", "");
|
||||
|
||||
}
|
||||
|
||||
QString
|
||||
SWGLimeSdrInputActions::asJson ()
|
||||
{
|
||||
QJsonObject* obj = this->asJsonObject();
|
||||
|
||||
QJsonDocument doc(*obj);
|
||||
QByteArray bytes = doc.toJson();
|
||||
delete obj;
|
||||
return QString(bytes);
|
||||
}
|
||||
|
||||
QJsonObject*
|
||||
SWGLimeSdrInputActions::asJsonObject() {
|
||||
QJsonObject* obj = new QJsonObject();
|
||||
if(m_record_isSet){
|
||||
obj->insert("record", QJsonValue(record));
|
||||
}
|
||||
|
||||
return obj;
|
||||
}
|
||||
|
||||
qint32
|
||||
SWGLimeSdrInputActions::getRecord() {
|
||||
return record;
|
||||
}
|
||||
void
|
||||
SWGLimeSdrInputActions::setRecord(qint32 record) {
|
||||
this->record = record;
|
||||
this->m_record_isSet = true;
|
||||
}
|
||||
|
||||
|
||||
bool
|
||||
SWGLimeSdrInputActions::isSet(){
|
||||
bool isObjectUpdated = false;
|
||||
do{
|
||||
if(m_record_isSet){
|
||||
isObjectUpdated = true; break;
|
||||
}
|
||||
}while(false);
|
||||
return isObjectUpdated;
|
||||
}
|
||||
}
|
||||
|
58
swagger/sdrangel/code/qt5/client/SWGLimeSdrInputActions.h
Normal file
58
swagger/sdrangel/code/qt5/client/SWGLimeSdrInputActions.h
Normal file
@ -0,0 +1,58 @@
|
||||
/**
|
||||
* 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: 4.13.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.
|
||||
*/
|
||||
|
||||
/*
|
||||
* SWGLimeSdrInputActions.h
|
||||
*
|
||||
* LimeSDR
|
||||
*/
|
||||
|
||||
#ifndef SWGLimeSdrInputActions_H_
|
||||
#define SWGLimeSdrInputActions_H_
|
||||
|
||||
#include <QJsonObject>
|
||||
|
||||
|
||||
|
||||
#include "SWGObject.h"
|
||||
#include "export.h"
|
||||
|
||||
namespace SWGSDRangel {
|
||||
|
||||
class SWG_API SWGLimeSdrInputActions: public SWGObject {
|
||||
public:
|
||||
SWGLimeSdrInputActions();
|
||||
SWGLimeSdrInputActions(QString* json);
|
||||
virtual ~SWGLimeSdrInputActions();
|
||||
void init();
|
||||
void cleanup();
|
||||
|
||||
virtual QString asJson () override;
|
||||
virtual QJsonObject* asJsonObject() override;
|
||||
virtual void fromJsonObject(QJsonObject &json) override;
|
||||
virtual SWGLimeSdrInputActions* fromJson(QString &jsonString) override;
|
||||
|
||||
qint32 getRecord();
|
||||
void setRecord(qint32 record);
|
||||
|
||||
|
||||
virtual bool isSet() override;
|
||||
|
||||
private:
|
||||
qint32 record;
|
||||
bool m_record_isSet;
|
||||
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
#endif /* SWGLimeSdrInputActions_H_ */
|
108
swagger/sdrangel/code/qt5/client/SWGLocalInputActions.cpp
Normal file
108
swagger/sdrangel/code/qt5/client/SWGLocalInputActions.cpp
Normal file
@ -0,0 +1,108 @@
|
||||
/**
|
||||
* 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: 4.13.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 "SWGLocalInputActions.h"
|
||||
|
||||
#include "SWGHelpers.h"
|
||||
|
||||
#include <QJsonDocument>
|
||||
#include <QJsonArray>
|
||||
#include <QObject>
|
||||
#include <QDebug>
|
||||
|
||||
namespace SWGSDRangel {
|
||||
|
||||
SWGLocalInputActions::SWGLocalInputActions(QString* json) {
|
||||
init();
|
||||
this->fromJson(*json);
|
||||
}
|
||||
|
||||
SWGLocalInputActions::SWGLocalInputActions() {
|
||||
record = 0;
|
||||
m_record_isSet = false;
|
||||
}
|
||||
|
||||
SWGLocalInputActions::~SWGLocalInputActions() {
|
||||
this->cleanup();
|
||||
}
|
||||
|
||||
void
|
||||
SWGLocalInputActions::init() {
|
||||
record = 0;
|
||||
m_record_isSet = false;
|
||||
}
|
||||
|
||||
void
|
||||
SWGLocalInputActions::cleanup() {
|
||||
|
||||
}
|
||||
|
||||
SWGLocalInputActions*
|
||||
SWGLocalInputActions::fromJson(QString &json) {
|
||||
QByteArray array (json.toStdString().c_str());
|
||||
QJsonDocument doc = QJsonDocument::fromJson(array);
|
||||
QJsonObject jsonObject = doc.object();
|
||||
this->fromJsonObject(jsonObject);
|
||||
return this;
|
||||
}
|
||||
|
||||
void
|
||||
SWGLocalInputActions::fromJsonObject(QJsonObject &pJson) {
|
||||
::SWGSDRangel::setValue(&record, pJson["record"], "qint32", "");
|
||||
|
||||
}
|
||||
|
||||
QString
|
||||
SWGLocalInputActions::asJson ()
|
||||
{
|
||||
QJsonObject* obj = this->asJsonObject();
|
||||
|
||||
QJsonDocument doc(*obj);
|
||||
QByteArray bytes = doc.toJson();
|
||||
delete obj;
|
||||
return QString(bytes);
|
||||
}
|
||||
|
||||
QJsonObject*
|
||||
SWGLocalInputActions::asJsonObject() {
|
||||
QJsonObject* obj = new QJsonObject();
|
||||
if(m_record_isSet){
|
||||
obj->insert("record", QJsonValue(record));
|
||||
}
|
||||
|
||||
return obj;
|
||||
}
|
||||
|
||||
qint32
|
||||
SWGLocalInputActions::getRecord() {
|
||||
return record;
|
||||
}
|
||||
void
|
||||
SWGLocalInputActions::setRecord(qint32 record) {
|
||||
this->record = record;
|
||||
this->m_record_isSet = true;
|
||||
}
|
||||
|
||||
|
||||
bool
|
||||
SWGLocalInputActions::isSet(){
|
||||
bool isObjectUpdated = false;
|
||||
do{
|
||||
if(m_record_isSet){
|
||||
isObjectUpdated = true; break;
|
||||
}
|
||||
}while(false);
|
||||
return isObjectUpdated;
|
||||
}
|
||||
}
|
||||
|
58
swagger/sdrangel/code/qt5/client/SWGLocalInputActions.h
Normal file
58
swagger/sdrangel/code/qt5/client/SWGLocalInputActions.h
Normal file
@ -0,0 +1,58 @@
|
||||
/**
|
||||
* 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: 4.13.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.
|
||||
*/
|
||||
|
||||
/*
|
||||
* SWGLocalInputActions.h
|
||||
*
|
||||
* LocalInput
|
||||
*/
|
||||
|
||||
#ifndef SWGLocalInputActions_H_
|
||||
#define SWGLocalInputActions_H_
|
||||
|
||||
#include <QJsonObject>
|
||||
|
||||
|
||||
|
||||
#include "SWGObject.h"
|
||||
#include "export.h"
|
||||
|
||||
namespace SWGSDRangel {
|
||||
|
||||
class SWG_API SWGLocalInputActions: public SWGObject {
|
||||
public:
|
||||
SWGLocalInputActions();
|
||||
SWGLocalInputActions(QString* json);
|
||||
virtual ~SWGLocalInputActions();
|
||||
void init();
|
||||
void cleanup();
|
||||
|
||||
virtual QString asJson () override;
|
||||
virtual QJsonObject* asJsonObject() override;
|
||||
virtual void fromJsonObject(QJsonObject &json) override;
|
||||
virtual SWGLocalInputActions* fromJson(QString &jsonString) override;
|
||||
|
||||
qint32 getRecord();
|
||||
void setRecord(qint32 record);
|
||||
|
||||
|
||||
virtual bool isSet() override;
|
||||
|
||||
private:
|
||||
qint32 record;
|
||||
bool m_record_isSet;
|
||||
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
#endif /* SWGLocalInputActions_H_ */
|
@ -23,6 +23,8 @@
|
||||
#include "SWGATVDemodSettings.h"
|
||||
#include "SWGATVModReport.h"
|
||||
#include "SWGATVModSettings.h"
|
||||
#include "SWGAirspyActions.h"
|
||||
#include "SWGAirspyHFActions.h"
|
||||
#include "SWGAirspyHFReport.h"
|
||||
#include "SWGAirspyHFSettings.h"
|
||||
#include "SWGAirspyReport.h"
|
||||
@ -35,6 +37,7 @@
|
||||
#include "SWGBFMDemodReport.h"
|
||||
#include "SWGBFMDemodSettings.h"
|
||||
#include "SWGBandwidth.h"
|
||||
#include "SWGBladeRF1InputActions.h"
|
||||
#include "SWGBladeRF1InputSettings.h"
|
||||
#include "SWGBladeRF1OutputSettings.h"
|
||||
#include "SWGBladeRF2InputReport.h"
|
||||
@ -67,6 +70,8 @@
|
||||
#include "SWGDeviceSettings.h"
|
||||
#include "SWGDeviceState.h"
|
||||
#include "SWGErrorResponse.h"
|
||||
#include "SWGFCDProActions.h"
|
||||
#include "SWGFCDProPlusActions.h"
|
||||
#include "SWGFCDProPlusSettings.h"
|
||||
#include "SWGFCDProSettings.h"
|
||||
#include "SWGFileInputReport.h"
|
||||
@ -86,22 +91,26 @@
|
||||
#include "SWGGLScope.h"
|
||||
#include "SWGGLSpectrum.h"
|
||||
#include "SWGGain.h"
|
||||
#include "SWGHackRFInputActions.h"
|
||||
#include "SWGHackRFInputSettings.h"
|
||||
#include "SWGHackRFOutputSettings.h"
|
||||
#include "SWGInstanceChannelsResponse.h"
|
||||
#include "SWGInstanceConfigResponse.h"
|
||||
#include "SWGInstanceDevicesResponse.h"
|
||||
#include "SWGInstanceSummaryResponse.h"
|
||||
#include "SWGKiwiSDRActions.h"
|
||||
#include "SWGKiwiSDRReport.h"
|
||||
#include "SWGKiwiSDRSettings.h"
|
||||
#include "SWGLimeRFEDevice.h"
|
||||
#include "SWGLimeRFEDevices.h"
|
||||
#include "SWGLimeRFEPower.h"
|
||||
#include "SWGLimeRFESettings.h"
|
||||
#include "SWGLimeSdrInputActions.h"
|
||||
#include "SWGLimeSdrInputReport.h"
|
||||
#include "SWGLimeSdrInputSettings.h"
|
||||
#include "SWGLimeSdrOutputReport.h"
|
||||
#include "SWGLimeSdrOutputSettings.h"
|
||||
#include "SWGLocalInputActions.h"
|
||||
#include "SWGLocalInputReport.h"
|
||||
#include "SWGLocalInputSettings.h"
|
||||
#include "SWGLocalOutputReport.h"
|
||||
@ -115,8 +124,10 @@
|
||||
#include "SWGNFMModReport.h"
|
||||
#include "SWGNFMModSettings.h"
|
||||
#include "SWGNamedEnum.h"
|
||||
#include "SWGPerseusActions.h"
|
||||
#include "SWGPerseusReport.h"
|
||||
#include "SWGPerseusSettings.h"
|
||||
#include "SWGPlutoSdrInputActions.h"
|
||||
#include "SWGPlutoSdrInputReport.h"
|
||||
#include "SWGPlutoSdrInputSettings.h"
|
||||
#include "SWGPlutoSdrOutputReport.h"
|
||||
@ -134,6 +145,7 @@
|
||||
#include "SWGRDSReport_altFrequencies.h"
|
||||
#include "SWGRange.h"
|
||||
#include "SWGRangeFloat.h"
|
||||
#include "SWGRemoteInputActions.h"
|
||||
#include "SWGRemoteInputReport.h"
|
||||
#include "SWGRemoteInputSettings.h"
|
||||
#include "SWGRemoteOutputReport.h"
|
||||
@ -144,6 +156,7 @@
|
||||
#include "SWGRtlSdrActions.h"
|
||||
#include "SWGRtlSdrReport.h"
|
||||
#include "SWGRtlSdrSettings.h"
|
||||
#include "SWGSDRPlayActions.h"
|
||||
#include "SWGSDRPlayReport.h"
|
||||
#include "SWGSDRPlaySettings.h"
|
||||
#include "SWGSSBDemodReport.h"
|
||||
@ -154,10 +167,12 @@
|
||||
#include "SWGSamplingDevice.h"
|
||||
#include "SWGSoapySDRFrequencySetting.h"
|
||||
#include "SWGSoapySDRGainSetting.h"
|
||||
#include "SWGSoapySDRInputActions.h"
|
||||
#include "SWGSoapySDRInputSettings.h"
|
||||
#include "SWGSoapySDROutputSettings.h"
|
||||
#include "SWGSoapySDRReport.h"
|
||||
#include "SWGSuccessResponse.h"
|
||||
#include "SWGTestSourceActions.h"
|
||||
#include "SWGTestSourceSettings.h"
|
||||
#include "SWGTraceData.h"
|
||||
#include "SWGTriggerData.h"
|
||||
@ -169,6 +184,7 @@
|
||||
#include "SWGWFMDemodSettings.h"
|
||||
#include "SWGWFMModReport.h"
|
||||
#include "SWGWFMModSettings.h"
|
||||
#include "SWGXtrxInputActions.h"
|
||||
#include "SWGXtrxInputReport.h"
|
||||
#include "SWGXtrxInputSettings.h"
|
||||
#include "SWGXtrxOutputReport.h"
|
||||
@ -204,6 +220,12 @@ namespace SWGSDRangel {
|
||||
if(QString("SWGATVModSettings").compare(type) == 0) {
|
||||
return new SWGATVModSettings();
|
||||
}
|
||||
if(QString("SWGAirspyActions").compare(type) == 0) {
|
||||
return new SWGAirspyActions();
|
||||
}
|
||||
if(QString("SWGAirspyHFActions").compare(type) == 0) {
|
||||
return new SWGAirspyHFActions();
|
||||
}
|
||||
if(QString("SWGAirspyHFReport").compare(type) == 0) {
|
||||
return new SWGAirspyHFReport();
|
||||
}
|
||||
@ -240,6 +262,9 @@ namespace SWGSDRangel {
|
||||
if(QString("SWGBandwidth").compare(type) == 0) {
|
||||
return new SWGBandwidth();
|
||||
}
|
||||
if(QString("SWGBladeRF1InputActions").compare(type) == 0) {
|
||||
return new SWGBladeRF1InputActions();
|
||||
}
|
||||
if(QString("SWGBladeRF1InputSettings").compare(type) == 0) {
|
||||
return new SWGBladeRF1InputSettings();
|
||||
}
|
||||
@ -336,6 +361,12 @@ namespace SWGSDRangel {
|
||||
if(QString("SWGErrorResponse").compare(type) == 0) {
|
||||
return new SWGErrorResponse();
|
||||
}
|
||||
if(QString("SWGFCDProActions").compare(type) == 0) {
|
||||
return new SWGFCDProActions();
|
||||
}
|
||||
if(QString("SWGFCDProPlusActions").compare(type) == 0) {
|
||||
return new SWGFCDProPlusActions();
|
||||
}
|
||||
if(QString("SWGFCDProPlusSettings").compare(type) == 0) {
|
||||
return new SWGFCDProPlusSettings();
|
||||
}
|
||||
@ -393,6 +424,9 @@ namespace SWGSDRangel {
|
||||
if(QString("SWGGain").compare(type) == 0) {
|
||||
return new SWGGain();
|
||||
}
|
||||
if(QString("SWGHackRFInputActions").compare(type) == 0) {
|
||||
return new SWGHackRFInputActions();
|
||||
}
|
||||
if(QString("SWGHackRFInputSettings").compare(type) == 0) {
|
||||
return new SWGHackRFInputSettings();
|
||||
}
|
||||
@ -411,6 +445,9 @@ namespace SWGSDRangel {
|
||||
if(QString("SWGInstanceSummaryResponse").compare(type) == 0) {
|
||||
return new SWGInstanceSummaryResponse();
|
||||
}
|
||||
if(QString("SWGKiwiSDRActions").compare(type) == 0) {
|
||||
return new SWGKiwiSDRActions();
|
||||
}
|
||||
if(QString("SWGKiwiSDRReport").compare(type) == 0) {
|
||||
return new SWGKiwiSDRReport();
|
||||
}
|
||||
@ -429,6 +466,9 @@ namespace SWGSDRangel {
|
||||
if(QString("SWGLimeRFESettings").compare(type) == 0) {
|
||||
return new SWGLimeRFESettings();
|
||||
}
|
||||
if(QString("SWGLimeSdrInputActions").compare(type) == 0) {
|
||||
return new SWGLimeSdrInputActions();
|
||||
}
|
||||
if(QString("SWGLimeSdrInputReport").compare(type) == 0) {
|
||||
return new SWGLimeSdrInputReport();
|
||||
}
|
||||
@ -441,6 +481,9 @@ namespace SWGSDRangel {
|
||||
if(QString("SWGLimeSdrOutputSettings").compare(type) == 0) {
|
||||
return new SWGLimeSdrOutputSettings();
|
||||
}
|
||||
if(QString("SWGLocalInputActions").compare(type) == 0) {
|
||||
return new SWGLocalInputActions();
|
||||
}
|
||||
if(QString("SWGLocalInputReport").compare(type) == 0) {
|
||||
return new SWGLocalInputReport();
|
||||
}
|
||||
@ -480,12 +523,18 @@ namespace SWGSDRangel {
|
||||
if(QString("SWGNamedEnum").compare(type) == 0) {
|
||||
return new SWGNamedEnum();
|
||||
}
|
||||
if(QString("SWGPerseusActions").compare(type) == 0) {
|
||||
return new SWGPerseusActions();
|
||||
}
|
||||
if(QString("SWGPerseusReport").compare(type) == 0) {
|
||||
return new SWGPerseusReport();
|
||||
}
|
||||
if(QString("SWGPerseusSettings").compare(type) == 0) {
|
||||
return new SWGPerseusSettings();
|
||||
}
|
||||
if(QString("SWGPlutoSdrInputActions").compare(type) == 0) {
|
||||
return new SWGPlutoSdrInputActions();
|
||||
}
|
||||
if(QString("SWGPlutoSdrInputReport").compare(type) == 0) {
|
||||
return new SWGPlutoSdrInputReport();
|
||||
}
|
||||
@ -537,6 +586,9 @@ namespace SWGSDRangel {
|
||||
if(QString("SWGRangeFloat").compare(type) == 0) {
|
||||
return new SWGRangeFloat();
|
||||
}
|
||||
if(QString("SWGRemoteInputActions").compare(type) == 0) {
|
||||
return new SWGRemoteInputActions();
|
||||
}
|
||||
if(QString("SWGRemoteInputReport").compare(type) == 0) {
|
||||
return new SWGRemoteInputReport();
|
||||
}
|
||||
@ -567,6 +619,9 @@ namespace SWGSDRangel {
|
||||
if(QString("SWGRtlSdrSettings").compare(type) == 0) {
|
||||
return new SWGRtlSdrSettings();
|
||||
}
|
||||
if(QString("SWGSDRPlayActions").compare(type) == 0) {
|
||||
return new SWGSDRPlayActions();
|
||||
}
|
||||
if(QString("SWGSDRPlayReport").compare(type) == 0) {
|
||||
return new SWGSDRPlayReport();
|
||||
}
|
||||
@ -597,6 +652,9 @@ namespace SWGSDRangel {
|
||||
if(QString("SWGSoapySDRGainSetting").compare(type) == 0) {
|
||||
return new SWGSoapySDRGainSetting();
|
||||
}
|
||||
if(QString("SWGSoapySDRInputActions").compare(type) == 0) {
|
||||
return new SWGSoapySDRInputActions();
|
||||
}
|
||||
if(QString("SWGSoapySDRInputSettings").compare(type) == 0) {
|
||||
return new SWGSoapySDRInputSettings();
|
||||
}
|
||||
@ -609,6 +667,9 @@ namespace SWGSDRangel {
|
||||
if(QString("SWGSuccessResponse").compare(type) == 0) {
|
||||
return new SWGSuccessResponse();
|
||||
}
|
||||
if(QString("SWGTestSourceActions").compare(type) == 0) {
|
||||
return new SWGTestSourceActions();
|
||||
}
|
||||
if(QString("SWGTestSourceSettings").compare(type) == 0) {
|
||||
return new SWGTestSourceSettings();
|
||||
}
|
||||
@ -642,6 +703,9 @@ namespace SWGSDRangel {
|
||||
if(QString("SWGWFMModSettings").compare(type) == 0) {
|
||||
return new SWGWFMModSettings();
|
||||
}
|
||||
if(QString("SWGXtrxInputActions").compare(type) == 0) {
|
||||
return new SWGXtrxInputActions();
|
||||
}
|
||||
if(QString("SWGXtrxInputReport").compare(type) == 0) {
|
||||
return new SWGXtrxInputReport();
|
||||
}
|
||||
|
108
swagger/sdrangel/code/qt5/client/SWGPerseusActions.cpp
Normal file
108
swagger/sdrangel/code/qt5/client/SWGPerseusActions.cpp
Normal file
@ -0,0 +1,108 @@
|
||||
/**
|
||||
* 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: 4.13.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 "SWGPerseusActions.h"
|
||||
|
||||
#include "SWGHelpers.h"
|
||||
|
||||
#include <QJsonDocument>
|
||||
#include <QJsonArray>
|
||||
#include <QObject>
|
||||
#include <QDebug>
|
||||
|
||||
namespace SWGSDRangel {
|
||||
|
||||
SWGPerseusActions::SWGPerseusActions(QString* json) {
|
||||
init();
|
||||
this->fromJson(*json);
|
||||
}
|
||||
|
||||
SWGPerseusActions::SWGPerseusActions() {
|
||||
record = 0;
|
||||
m_record_isSet = false;
|
||||
}
|
||||
|
||||
SWGPerseusActions::~SWGPerseusActions() {
|
||||
this->cleanup();
|
||||
}
|
||||
|
||||
void
|
||||
SWGPerseusActions::init() {
|
||||
record = 0;
|
||||
m_record_isSet = false;
|
||||
}
|
||||
|
||||
void
|
||||
SWGPerseusActions::cleanup() {
|
||||
|
||||
}
|
||||
|
||||
SWGPerseusActions*
|
||||
SWGPerseusActions::fromJson(QString &json) {
|
||||
QByteArray array (json.toStdString().c_str());
|
||||
QJsonDocument doc = QJsonDocument::fromJson(array);
|
||||
QJsonObject jsonObject = doc.object();
|
||||
this->fromJsonObject(jsonObject);
|
||||
return this;
|
||||
}
|
||||
|
||||
void
|
||||
SWGPerseusActions::fromJsonObject(QJsonObject &pJson) {
|
||||
::SWGSDRangel::setValue(&record, pJson["record"], "qint32", "");
|
||||
|
||||
}
|
||||
|
||||
QString
|
||||
SWGPerseusActions::asJson ()
|
||||
{
|
||||
QJsonObject* obj = this->asJsonObject();
|
||||
|
||||
QJsonDocument doc(*obj);
|
||||
QByteArray bytes = doc.toJson();
|
||||
delete obj;
|
||||
return QString(bytes);
|
||||
}
|
||||
|
||||
QJsonObject*
|
||||
SWGPerseusActions::asJsonObject() {
|
||||
QJsonObject* obj = new QJsonObject();
|
||||
if(m_record_isSet){
|
||||
obj->insert("record", QJsonValue(record));
|
||||
}
|
||||
|
||||
return obj;
|
||||
}
|
||||
|
||||
qint32
|
||||
SWGPerseusActions::getRecord() {
|
||||
return record;
|
||||
}
|
||||
void
|
||||
SWGPerseusActions::setRecord(qint32 record) {
|
||||
this->record = record;
|
||||
this->m_record_isSet = true;
|
||||
}
|
||||
|
||||
|
||||
bool
|
||||
SWGPerseusActions::isSet(){
|
||||
bool isObjectUpdated = false;
|
||||
do{
|
||||
if(m_record_isSet){
|
||||
isObjectUpdated = true; break;
|
||||
}
|
||||
}while(false);
|
||||
return isObjectUpdated;
|
||||
}
|
||||
}
|
||||
|
58
swagger/sdrangel/code/qt5/client/SWGPerseusActions.h
Normal file
58
swagger/sdrangel/code/qt5/client/SWGPerseusActions.h
Normal file
@ -0,0 +1,58 @@
|
||||
/**
|
||||
* 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: 4.13.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.
|
||||
*/
|
||||
|
||||
/*
|
||||
* SWGPerseusActions.h
|
||||
*
|
||||
* Perseus
|
||||
*/
|
||||
|
||||
#ifndef SWGPerseusActions_H_
|
||||
#define SWGPerseusActions_H_
|
||||
|
||||
#include <QJsonObject>
|
||||
|
||||
|
||||
|
||||
#include "SWGObject.h"
|
||||
#include "export.h"
|
||||
|
||||
namespace SWGSDRangel {
|
||||
|
||||
class SWG_API SWGPerseusActions: public SWGObject {
|
||||
public:
|
||||
SWGPerseusActions();
|
||||
SWGPerseusActions(QString* json);
|
||||
virtual ~SWGPerseusActions();
|
||||
void init();
|
||||
void cleanup();
|
||||
|
||||
virtual QString asJson () override;
|
||||
virtual QJsonObject* asJsonObject() override;
|
||||
virtual void fromJsonObject(QJsonObject &json) override;
|
||||
virtual SWGPerseusActions* fromJson(QString &jsonString) override;
|
||||
|
||||
qint32 getRecord();
|
||||
void setRecord(qint32 record);
|
||||
|
||||
|
||||
virtual bool isSet() override;
|
||||
|
||||
private:
|
||||
qint32 record;
|
||||
bool m_record_isSet;
|
||||
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
#endif /* SWGPerseusActions_H_ */
|
108
swagger/sdrangel/code/qt5/client/SWGPlutoSdrInputActions.cpp
Normal file
108
swagger/sdrangel/code/qt5/client/SWGPlutoSdrInputActions.cpp
Normal file
@ -0,0 +1,108 @@
|
||||
/**
|
||||
* 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: 4.13.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 "SWGPlutoSdrInputActions.h"
|
||||
|
||||
#include "SWGHelpers.h"
|
||||
|
||||
#include <QJsonDocument>
|
||||
#include <QJsonArray>
|
||||
#include <QObject>
|
||||
#include <QDebug>
|
||||
|
||||
namespace SWGSDRangel {
|
||||
|
||||
SWGPlutoSdrInputActions::SWGPlutoSdrInputActions(QString* json) {
|
||||
init();
|
||||
this->fromJson(*json);
|
||||
}
|
||||
|
||||
SWGPlutoSdrInputActions::SWGPlutoSdrInputActions() {
|
||||
record = 0;
|
||||
m_record_isSet = false;
|
||||
}
|
||||
|
||||
SWGPlutoSdrInputActions::~SWGPlutoSdrInputActions() {
|
||||
this->cleanup();
|
||||
}
|
||||
|
||||
void
|
||||
SWGPlutoSdrInputActions::init() {
|
||||
record = 0;
|
||||
m_record_isSet = false;
|
||||
}
|
||||
|
||||
void
|
||||
SWGPlutoSdrInputActions::cleanup() {
|
||||
|
||||
}
|
||||
|
||||
SWGPlutoSdrInputActions*
|
||||
SWGPlutoSdrInputActions::fromJson(QString &json) {
|
||||
QByteArray array (json.toStdString().c_str());
|
||||
QJsonDocument doc = QJsonDocument::fromJson(array);
|
||||
QJsonObject jsonObject = doc.object();
|
||||
this->fromJsonObject(jsonObject);
|
||||
return this;
|
||||
}
|
||||
|
||||
void
|
||||
SWGPlutoSdrInputActions::fromJsonObject(QJsonObject &pJson) {
|
||||
::SWGSDRangel::setValue(&record, pJson["record"], "qint32", "");
|
||||
|
||||
}
|
||||
|
||||
QString
|
||||
SWGPlutoSdrInputActions::asJson ()
|
||||
{
|
||||
QJsonObject* obj = this->asJsonObject();
|
||||
|
||||
QJsonDocument doc(*obj);
|
||||
QByteArray bytes = doc.toJson();
|
||||
delete obj;
|
||||
return QString(bytes);
|
||||
}
|
||||
|
||||
QJsonObject*
|
||||
SWGPlutoSdrInputActions::asJsonObject() {
|
||||
QJsonObject* obj = new QJsonObject();
|
||||
if(m_record_isSet){
|
||||
obj->insert("record", QJsonValue(record));
|
||||
}
|
||||
|
||||
return obj;
|
||||
}
|
||||
|
||||
qint32
|
||||
SWGPlutoSdrInputActions::getRecord() {
|
||||
return record;
|
||||
}
|
||||
void
|
||||
SWGPlutoSdrInputActions::setRecord(qint32 record) {
|
||||
this->record = record;
|
||||
this->m_record_isSet = true;
|
||||
}
|
||||
|
||||
|
||||
bool
|
||||
SWGPlutoSdrInputActions::isSet(){
|
||||
bool isObjectUpdated = false;
|
||||
do{
|
||||
if(m_record_isSet){
|
||||
isObjectUpdated = true; break;
|
||||
}
|
||||
}while(false);
|
||||
return isObjectUpdated;
|
||||
}
|
||||
}
|
||||
|
58
swagger/sdrangel/code/qt5/client/SWGPlutoSdrInputActions.h
Normal file
58
swagger/sdrangel/code/qt5/client/SWGPlutoSdrInputActions.h
Normal file
@ -0,0 +1,58 @@
|
||||
/**
|
||||
* 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: 4.13.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.
|
||||
*/
|
||||
|
||||
/*
|
||||
* SWGPlutoSdrInputActions.h
|
||||
*
|
||||
* PlutoSDR
|
||||
*/
|
||||
|
||||
#ifndef SWGPlutoSdrInputActions_H_
|
||||
#define SWGPlutoSdrInputActions_H_
|
||||
|
||||
#include <QJsonObject>
|
||||
|
||||
|
||||
|
||||
#include "SWGObject.h"
|
||||
#include "export.h"
|
||||
|
||||
namespace SWGSDRangel {
|
||||
|
||||
class SWG_API SWGPlutoSdrInputActions: public SWGObject {
|
||||
public:
|
||||
SWGPlutoSdrInputActions();
|
||||
SWGPlutoSdrInputActions(QString* json);
|
||||
virtual ~SWGPlutoSdrInputActions();
|
||||
void init();
|
||||
void cleanup();
|
||||
|
||||
virtual QString asJson () override;
|
||||
virtual QJsonObject* asJsonObject() override;
|
||||
virtual void fromJsonObject(QJsonObject &json) override;
|
||||
virtual SWGPlutoSdrInputActions* fromJson(QString &jsonString) override;
|
||||
|
||||
qint32 getRecord();
|
||||
void setRecord(qint32 record);
|
||||
|
||||
|
||||
virtual bool isSet() override;
|
||||
|
||||
private:
|
||||
qint32 record;
|
||||
bool m_record_isSet;
|
||||
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
#endif /* SWGPlutoSdrInputActions_H_ */
|
108
swagger/sdrangel/code/qt5/client/SWGRemoteInputActions.cpp
Normal file
108
swagger/sdrangel/code/qt5/client/SWGRemoteInputActions.cpp
Normal file
@ -0,0 +1,108 @@
|
||||
/**
|
||||
* 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: 4.13.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 "SWGRemoteInputActions.h"
|
||||
|
||||
#include "SWGHelpers.h"
|
||||
|
||||
#include <QJsonDocument>
|
||||
#include <QJsonArray>
|
||||
#include <QObject>
|
||||
#include <QDebug>
|
||||
|
||||
namespace SWGSDRangel {
|
||||
|
||||
SWGRemoteInputActions::SWGRemoteInputActions(QString* json) {
|
||||
init();
|
||||
this->fromJson(*json);
|
||||
}
|
||||
|
||||
SWGRemoteInputActions::SWGRemoteInputActions() {
|
||||
record = 0;
|
||||
m_record_isSet = false;
|
||||
}
|
||||
|
||||
SWGRemoteInputActions::~SWGRemoteInputActions() {
|
||||
this->cleanup();
|
||||
}
|
||||
|
||||
void
|
||||
SWGRemoteInputActions::init() {
|
||||
record = 0;
|
||||
m_record_isSet = false;
|
||||
}
|
||||
|
||||
void
|
||||
SWGRemoteInputActions::cleanup() {
|
||||
|
||||
}
|
||||
|
||||
SWGRemoteInputActions*
|
||||
SWGRemoteInputActions::fromJson(QString &json) {
|
||||
QByteArray array (json.toStdString().c_str());
|
||||
QJsonDocument doc = QJsonDocument::fromJson(array);
|
||||
QJsonObject jsonObject = doc.object();
|
||||
this->fromJsonObject(jsonObject);
|
||||
return this;
|
||||
}
|
||||
|
||||
void
|
||||
SWGRemoteInputActions::fromJsonObject(QJsonObject &pJson) {
|
||||
::SWGSDRangel::setValue(&record, pJson["record"], "qint32", "");
|
||||
|
||||
}
|
||||
|
||||
QString
|
||||
SWGRemoteInputActions::asJson ()
|
||||
{
|
||||
QJsonObject* obj = this->asJsonObject();
|
||||
|
||||
QJsonDocument doc(*obj);
|
||||
QByteArray bytes = doc.toJson();
|
||||
delete obj;
|
||||
return QString(bytes);
|
||||
}
|
||||
|
||||
QJsonObject*
|
||||
SWGRemoteInputActions::asJsonObject() {
|
||||
QJsonObject* obj = new QJsonObject();
|
||||
if(m_record_isSet){
|
||||
obj->insert("record", QJsonValue(record));
|
||||
}
|
||||
|
||||
return obj;
|
||||
}
|
||||
|
||||
qint32
|
||||
SWGRemoteInputActions::getRecord() {
|
||||
return record;
|
||||
}
|
||||
void
|
||||
SWGRemoteInputActions::setRecord(qint32 record) {
|
||||
this->record = record;
|
||||
this->m_record_isSet = true;
|
||||
}
|
||||
|
||||
|
||||
bool
|
||||
SWGRemoteInputActions::isSet(){
|
||||
bool isObjectUpdated = false;
|
||||
do{
|
||||
if(m_record_isSet){
|
||||
isObjectUpdated = true; break;
|
||||
}
|
||||
}while(false);
|
||||
return isObjectUpdated;
|
||||
}
|
||||
}
|
||||
|
58
swagger/sdrangel/code/qt5/client/SWGRemoteInputActions.h
Normal file
58
swagger/sdrangel/code/qt5/client/SWGRemoteInputActions.h
Normal file
@ -0,0 +1,58 @@
|
||||
/**
|
||||
* 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: 4.13.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.
|
||||
*/
|
||||
|
||||
/*
|
||||
* SWGRemoteInputActions.h
|
||||
*
|
||||
* RemoteInput
|
||||
*/
|
||||
|
||||
#ifndef SWGRemoteInputActions_H_
|
||||
#define SWGRemoteInputActions_H_
|
||||
|
||||
#include <QJsonObject>
|
||||
|
||||
|
||||
|
||||
#include "SWGObject.h"
|
||||
#include "export.h"
|
||||
|
||||
namespace SWGSDRangel {
|
||||
|
||||
class SWG_API SWGRemoteInputActions: public SWGObject {
|
||||
public:
|
||||
SWGRemoteInputActions();
|
||||
SWGRemoteInputActions(QString* json);
|
||||
virtual ~SWGRemoteInputActions();
|
||||
void init();
|
||||
void cleanup();
|
||||
|
||||
virtual QString asJson () override;
|
||||
virtual QJsonObject* asJsonObject() override;
|
||||
virtual void fromJsonObject(QJsonObject &json) override;
|
||||
virtual SWGRemoteInputActions* fromJson(QString &jsonString) override;
|
||||
|
||||
qint32 getRecord();
|
||||
void setRecord(qint32 record);
|
||||
|
||||
|
||||
virtual bool isSet() override;
|
||||
|
||||
private:
|
||||
qint32 record;
|
||||
bool m_record_isSet;
|
||||
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
#endif /* SWGRemoteInputActions_H_ */
|
108
swagger/sdrangel/code/qt5/client/SWGSDRPlayActions.cpp
Normal file
108
swagger/sdrangel/code/qt5/client/SWGSDRPlayActions.cpp
Normal file
@ -0,0 +1,108 @@
|
||||
/**
|
||||
* 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: 4.13.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 "SWGSDRPlayActions.h"
|
||||
|
||||
#include "SWGHelpers.h"
|
||||
|
||||
#include <QJsonDocument>
|
||||
#include <QJsonArray>
|
||||
#include <QObject>
|
||||
#include <QDebug>
|
||||
|
||||
namespace SWGSDRangel {
|
||||
|
||||
SWGSDRPlayActions::SWGSDRPlayActions(QString* json) {
|
||||
init();
|
||||
this->fromJson(*json);
|
||||
}
|
||||
|
||||
SWGSDRPlayActions::SWGSDRPlayActions() {
|
||||
record = 0;
|
||||
m_record_isSet = false;
|
||||
}
|
||||
|
||||
SWGSDRPlayActions::~SWGSDRPlayActions() {
|
||||
this->cleanup();
|
||||
}
|
||||
|
||||
void
|
||||
SWGSDRPlayActions::init() {
|
||||
record = 0;
|
||||
m_record_isSet = false;
|
||||
}
|
||||
|
||||
void
|
||||
SWGSDRPlayActions::cleanup() {
|
||||
|
||||
}
|
||||
|
||||
SWGSDRPlayActions*
|
||||
SWGSDRPlayActions::fromJson(QString &json) {
|
||||
QByteArray array (json.toStdString().c_str());
|
||||
QJsonDocument doc = QJsonDocument::fromJson(array);
|
||||
QJsonObject jsonObject = doc.object();
|
||||
this->fromJsonObject(jsonObject);
|
||||
return this;
|
||||
}
|
||||
|
||||
void
|
||||
SWGSDRPlayActions::fromJsonObject(QJsonObject &pJson) {
|
||||
::SWGSDRangel::setValue(&record, pJson["record"], "qint32", "");
|
||||
|
||||
}
|
||||
|
||||
QString
|
||||
SWGSDRPlayActions::asJson ()
|
||||
{
|
||||
QJsonObject* obj = this->asJsonObject();
|
||||
|
||||
QJsonDocument doc(*obj);
|
||||
QByteArray bytes = doc.toJson();
|
||||
delete obj;
|
||||
return QString(bytes);
|
||||
}
|
||||
|
||||
QJsonObject*
|
||||
SWGSDRPlayActions::asJsonObject() {
|
||||
QJsonObject* obj = new QJsonObject();
|
||||
if(m_record_isSet){
|
||||
obj->insert("record", QJsonValue(record));
|
||||
}
|
||||
|
||||
return obj;
|
||||
}
|
||||
|
||||
qint32
|
||||
SWGSDRPlayActions::getRecord() {
|
||||
return record;
|
||||
}
|
||||
void
|
||||
SWGSDRPlayActions::setRecord(qint32 record) {
|
||||
this->record = record;
|
||||
this->m_record_isSet = true;
|
||||
}
|
||||
|
||||
|
||||
bool
|
||||
SWGSDRPlayActions::isSet(){
|
||||
bool isObjectUpdated = false;
|
||||
do{
|
||||
if(m_record_isSet){
|
||||
isObjectUpdated = true; break;
|
||||
}
|
||||
}while(false);
|
||||
return isObjectUpdated;
|
||||
}
|
||||
}
|
||||
|
58
swagger/sdrangel/code/qt5/client/SWGSDRPlayActions.h
Normal file
58
swagger/sdrangel/code/qt5/client/SWGSDRPlayActions.h
Normal file
@ -0,0 +1,58 @@
|
||||
/**
|
||||
* 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: 4.13.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.
|
||||
*/
|
||||
|
||||
/*
|
||||
* SWGSDRPlayActions.h
|
||||
*
|
||||
* SDRplay1
|
||||
*/
|
||||
|
||||
#ifndef SWGSDRPlayActions_H_
|
||||
#define SWGSDRPlayActions_H_
|
||||
|
||||
#include <QJsonObject>
|
||||
|
||||
|
||||
|
||||
#include "SWGObject.h"
|
||||
#include "export.h"
|
||||
|
||||
namespace SWGSDRangel {
|
||||
|
||||
class SWG_API SWGSDRPlayActions: public SWGObject {
|
||||
public:
|
||||
SWGSDRPlayActions();
|
||||
SWGSDRPlayActions(QString* json);
|
||||
virtual ~SWGSDRPlayActions();
|
||||
void init();
|
||||
void cleanup();
|
||||
|
||||
virtual QString asJson () override;
|
||||
virtual QJsonObject* asJsonObject() override;
|
||||
virtual void fromJsonObject(QJsonObject &json) override;
|
||||
virtual SWGSDRPlayActions* fromJson(QString &jsonString) override;
|
||||
|
||||
qint32 getRecord();
|
||||
void setRecord(qint32 record);
|
||||
|
||||
|
||||
virtual bool isSet() override;
|
||||
|
||||
private:
|
||||
qint32 record;
|
||||
bool m_record_isSet;
|
||||
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
#endif /* SWGSDRPlayActions_H_ */
|
108
swagger/sdrangel/code/qt5/client/SWGSoapySDRInputActions.cpp
Normal file
108
swagger/sdrangel/code/qt5/client/SWGSoapySDRInputActions.cpp
Normal file
@ -0,0 +1,108 @@
|
||||
/**
|
||||
* 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: 4.13.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 "SWGSoapySDRInputActions.h"
|
||||
|
||||
#include "SWGHelpers.h"
|
||||
|
||||
#include <QJsonDocument>
|
||||
#include <QJsonArray>
|
||||
#include <QObject>
|
||||
#include <QDebug>
|
||||
|
||||
namespace SWGSDRangel {
|
||||
|
||||
SWGSoapySDRInputActions::SWGSoapySDRInputActions(QString* json) {
|
||||
init();
|
||||
this->fromJson(*json);
|
||||
}
|
||||
|
||||
SWGSoapySDRInputActions::SWGSoapySDRInputActions() {
|
||||
record = 0;
|
||||
m_record_isSet = false;
|
||||
}
|
||||
|
||||
SWGSoapySDRInputActions::~SWGSoapySDRInputActions() {
|
||||
this->cleanup();
|
||||
}
|
||||
|
||||
void
|
||||
SWGSoapySDRInputActions::init() {
|
||||
record = 0;
|
||||
m_record_isSet = false;
|
||||
}
|
||||
|
||||
void
|
||||
SWGSoapySDRInputActions::cleanup() {
|
||||
|
||||
}
|
||||
|
||||
SWGSoapySDRInputActions*
|
||||
SWGSoapySDRInputActions::fromJson(QString &json) {
|
||||
QByteArray array (json.toStdString().c_str());
|
||||
QJsonDocument doc = QJsonDocument::fromJson(array);
|
||||
QJsonObject jsonObject = doc.object();
|
||||
this->fromJsonObject(jsonObject);
|
||||
return this;
|
||||
}
|
||||
|
||||
void
|
||||
SWGSoapySDRInputActions::fromJsonObject(QJsonObject &pJson) {
|
||||
::SWGSDRangel::setValue(&record, pJson["record"], "qint32", "");
|
||||
|
||||
}
|
||||
|
||||
QString
|
||||
SWGSoapySDRInputActions::asJson ()
|
||||
{
|
||||
QJsonObject* obj = this->asJsonObject();
|
||||
|
||||
QJsonDocument doc(*obj);
|
||||
QByteArray bytes = doc.toJson();
|
||||
delete obj;
|
||||
return QString(bytes);
|
||||
}
|
||||
|
||||
QJsonObject*
|
||||
SWGSoapySDRInputActions::asJsonObject() {
|
||||
QJsonObject* obj = new QJsonObject();
|
||||
if(m_record_isSet){
|
||||
obj->insert("record", QJsonValue(record));
|
||||
}
|
||||
|
||||
return obj;
|
||||
}
|
||||
|
||||
qint32
|
||||
SWGSoapySDRInputActions::getRecord() {
|
||||
return record;
|
||||
}
|
||||
void
|
||||
SWGSoapySDRInputActions::setRecord(qint32 record) {
|
||||
this->record = record;
|
||||
this->m_record_isSet = true;
|
||||
}
|
||||
|
||||
|
||||
bool
|
||||
SWGSoapySDRInputActions::isSet(){
|
||||
bool isObjectUpdated = false;
|
||||
do{
|
||||
if(m_record_isSet){
|
||||
isObjectUpdated = true; break;
|
||||
}
|
||||
}while(false);
|
||||
return isObjectUpdated;
|
||||
}
|
||||
}
|
||||
|
58
swagger/sdrangel/code/qt5/client/SWGSoapySDRInputActions.h
Normal file
58
swagger/sdrangel/code/qt5/client/SWGSoapySDRInputActions.h
Normal file
@ -0,0 +1,58 @@
|
||||
/**
|
||||
* 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: 4.13.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.
|
||||
*/
|
||||
|
||||
/*
|
||||
* SWGSoapySDRInputActions.h
|
||||
*
|
||||
* SoapySDR
|
||||
*/
|
||||
|
||||
#ifndef SWGSoapySDRInputActions_H_
|
||||
#define SWGSoapySDRInputActions_H_
|
||||
|
||||
#include <QJsonObject>
|
||||
|
||||
|
||||
|
||||
#include "SWGObject.h"
|
||||
#include "export.h"
|
||||
|
||||
namespace SWGSDRangel {
|
||||
|
||||
class SWG_API SWGSoapySDRInputActions: public SWGObject {
|
||||
public:
|
||||
SWGSoapySDRInputActions();
|
||||
SWGSoapySDRInputActions(QString* json);
|
||||
virtual ~SWGSoapySDRInputActions();
|
||||
void init();
|
||||
void cleanup();
|
||||
|
||||
virtual QString asJson () override;
|
||||
virtual QJsonObject* asJsonObject() override;
|
||||
virtual void fromJsonObject(QJsonObject &json) override;
|
||||
virtual SWGSoapySDRInputActions* fromJson(QString &jsonString) override;
|
||||
|
||||
qint32 getRecord();
|
||||
void setRecord(qint32 record);
|
||||
|
||||
|
||||
virtual bool isSet() override;
|
||||
|
||||
private:
|
||||
qint32 record;
|
||||
bool m_record_isSet;
|
||||
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
#endif /* SWGSoapySDRInputActions_H_ */
|
108
swagger/sdrangel/code/qt5/client/SWGTestSourceActions.cpp
Normal file
108
swagger/sdrangel/code/qt5/client/SWGTestSourceActions.cpp
Normal file
@ -0,0 +1,108 @@
|
||||
/**
|
||||
* 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: 4.13.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 "SWGTestSourceActions.h"
|
||||
|
||||
#include "SWGHelpers.h"
|
||||
|
||||
#include <QJsonDocument>
|
||||
#include <QJsonArray>
|
||||
#include <QObject>
|
||||
#include <QDebug>
|
||||
|
||||
namespace SWGSDRangel {
|
||||
|
||||
SWGTestSourceActions::SWGTestSourceActions(QString* json) {
|
||||
init();
|
||||
this->fromJson(*json);
|
||||
}
|
||||
|
||||
SWGTestSourceActions::SWGTestSourceActions() {
|
||||
record = 0;
|
||||
m_record_isSet = false;
|
||||
}
|
||||
|
||||
SWGTestSourceActions::~SWGTestSourceActions() {
|
||||
this->cleanup();
|
||||
}
|
||||
|
||||
void
|
||||
SWGTestSourceActions::init() {
|
||||
record = 0;
|
||||
m_record_isSet = false;
|
||||
}
|
||||
|
||||
void
|
||||
SWGTestSourceActions::cleanup() {
|
||||
|
||||
}
|
||||
|
||||
SWGTestSourceActions*
|
||||
SWGTestSourceActions::fromJson(QString &json) {
|
||||
QByteArray array (json.toStdString().c_str());
|
||||
QJsonDocument doc = QJsonDocument::fromJson(array);
|
||||
QJsonObject jsonObject = doc.object();
|
||||
this->fromJsonObject(jsonObject);
|
||||
return this;
|
||||
}
|
||||
|
||||
void
|
||||
SWGTestSourceActions::fromJsonObject(QJsonObject &pJson) {
|
||||
::SWGSDRangel::setValue(&record, pJson["record"], "qint32", "");
|
||||
|
||||
}
|
||||
|
||||
QString
|
||||
SWGTestSourceActions::asJson ()
|
||||
{
|
||||
QJsonObject* obj = this->asJsonObject();
|
||||
|
||||
QJsonDocument doc(*obj);
|
||||
QByteArray bytes = doc.toJson();
|
||||
delete obj;
|
||||
return QString(bytes);
|
||||
}
|
||||
|
||||
QJsonObject*
|
||||
SWGTestSourceActions::asJsonObject() {
|
||||
QJsonObject* obj = new QJsonObject();
|
||||
if(m_record_isSet){
|
||||
obj->insert("record", QJsonValue(record));
|
||||
}
|
||||
|
||||
return obj;
|
||||
}
|
||||
|
||||
qint32
|
||||
SWGTestSourceActions::getRecord() {
|
||||
return record;
|
||||
}
|
||||
void
|
||||
SWGTestSourceActions::setRecord(qint32 record) {
|
||||
this->record = record;
|
||||
this->m_record_isSet = true;
|
||||
}
|
||||
|
||||
|
||||
bool
|
||||
SWGTestSourceActions::isSet(){
|
||||
bool isObjectUpdated = false;
|
||||
do{
|
||||
if(m_record_isSet){
|
||||
isObjectUpdated = true; break;
|
||||
}
|
||||
}while(false);
|
||||
return isObjectUpdated;
|
||||
}
|
||||
}
|
||||
|
58
swagger/sdrangel/code/qt5/client/SWGTestSourceActions.h
Normal file
58
swagger/sdrangel/code/qt5/client/SWGTestSourceActions.h
Normal file
@ -0,0 +1,58 @@
|
||||
/**
|
||||
* 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: 4.13.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.
|
||||
*/
|
||||
|
||||
/*
|
||||
* SWGTestSourceActions.h
|
||||
*
|
||||
* TestSource
|
||||
*/
|
||||
|
||||
#ifndef SWGTestSourceActions_H_
|
||||
#define SWGTestSourceActions_H_
|
||||
|
||||
#include <QJsonObject>
|
||||
|
||||
|
||||
|
||||
#include "SWGObject.h"
|
||||
#include "export.h"
|
||||
|
||||
namespace SWGSDRangel {
|
||||
|
||||
class SWG_API SWGTestSourceActions: public SWGObject {
|
||||
public:
|
||||
SWGTestSourceActions();
|
||||
SWGTestSourceActions(QString* json);
|
||||
virtual ~SWGTestSourceActions();
|
||||
void init();
|
||||
void cleanup();
|
||||
|
||||
virtual QString asJson () override;
|
||||
virtual QJsonObject* asJsonObject() override;
|
||||
virtual void fromJsonObject(QJsonObject &json) override;
|
||||
virtual SWGTestSourceActions* fromJson(QString &jsonString) override;
|
||||
|
||||
qint32 getRecord();
|
||||
void setRecord(qint32 record);
|
||||
|
||||
|
||||
virtual bool isSet() override;
|
||||
|
||||
private:
|
||||
qint32 record;
|
||||
bool m_record_isSet;
|
||||
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
#endif /* SWGTestSourceActions_H_ */
|
108
swagger/sdrangel/code/qt5/client/SWGXtrxInputActions.cpp
Normal file
108
swagger/sdrangel/code/qt5/client/SWGXtrxInputActions.cpp
Normal file
@ -0,0 +1,108 @@
|
||||
/**
|
||||
* 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: 4.13.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 "SWGXtrxInputActions.h"
|
||||
|
||||
#include "SWGHelpers.h"
|
||||
|
||||
#include <QJsonDocument>
|
||||
#include <QJsonArray>
|
||||
#include <QObject>
|
||||
#include <QDebug>
|
||||
|
||||
namespace SWGSDRangel {
|
||||
|
||||
SWGXtrxInputActions::SWGXtrxInputActions(QString* json) {
|
||||
init();
|
||||
this->fromJson(*json);
|
||||
}
|
||||
|
||||
SWGXtrxInputActions::SWGXtrxInputActions() {
|
||||
record = 0;
|
||||
m_record_isSet = false;
|
||||
}
|
||||
|
||||
SWGXtrxInputActions::~SWGXtrxInputActions() {
|
||||
this->cleanup();
|
||||
}
|
||||
|
||||
void
|
||||
SWGXtrxInputActions::init() {
|
||||
record = 0;
|
||||
m_record_isSet = false;
|
||||
}
|
||||
|
||||
void
|
||||
SWGXtrxInputActions::cleanup() {
|
||||
|
||||
}
|
||||
|
||||
SWGXtrxInputActions*
|
||||
SWGXtrxInputActions::fromJson(QString &json) {
|
||||
QByteArray array (json.toStdString().c_str());
|
||||
QJsonDocument doc = QJsonDocument::fromJson(array);
|
||||
QJsonObject jsonObject = doc.object();
|
||||
this->fromJsonObject(jsonObject);
|
||||
return this;
|
||||
}
|
||||
|
||||
void
|
||||
SWGXtrxInputActions::fromJsonObject(QJsonObject &pJson) {
|
||||
::SWGSDRangel::setValue(&record, pJson["record"], "qint32", "");
|
||||
|
||||
}
|
||||
|
||||
QString
|
||||
SWGXtrxInputActions::asJson ()
|
||||
{
|
||||
QJsonObject* obj = this->asJsonObject();
|
||||
|
||||
QJsonDocument doc(*obj);
|
||||
QByteArray bytes = doc.toJson();
|
||||
delete obj;
|
||||
return QString(bytes);
|
||||
}
|
||||
|
||||
QJsonObject*
|
||||
SWGXtrxInputActions::asJsonObject() {
|
||||
QJsonObject* obj = new QJsonObject();
|
||||
if(m_record_isSet){
|
||||
obj->insert("record", QJsonValue(record));
|
||||
}
|
||||
|
||||
return obj;
|
||||
}
|
||||
|
||||
qint32
|
||||
SWGXtrxInputActions::getRecord() {
|
||||
return record;
|
||||
}
|
||||
void
|
||||
SWGXtrxInputActions::setRecord(qint32 record) {
|
||||
this->record = record;
|
||||
this->m_record_isSet = true;
|
||||
}
|
||||
|
||||
|
||||
bool
|
||||
SWGXtrxInputActions::isSet(){
|
||||
bool isObjectUpdated = false;
|
||||
do{
|
||||
if(m_record_isSet){
|
||||
isObjectUpdated = true; break;
|
||||
}
|
||||
}while(false);
|
||||
return isObjectUpdated;
|
||||
}
|
||||
}
|
||||
|
58
swagger/sdrangel/code/qt5/client/SWGXtrxInputActions.h
Normal file
58
swagger/sdrangel/code/qt5/client/SWGXtrxInputActions.h
Normal file
@ -0,0 +1,58 @@
|
||||
/**
|
||||
* 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: 4.13.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.
|
||||
*/
|
||||
|
||||
/*
|
||||
* SWGXtrxInputActions.h
|
||||
*
|
||||
* XTRX
|
||||
*/
|
||||
|
||||
#ifndef SWGXtrxInputActions_H_
|
||||
#define SWGXtrxInputActions_H_
|
||||
|
||||
#include <QJsonObject>
|
||||
|
||||
|
||||
|
||||
#include "SWGObject.h"
|
||||
#include "export.h"
|
||||
|
||||
namespace SWGSDRangel {
|
||||
|
||||
class SWG_API SWGXtrxInputActions: public SWGObject {
|
||||
public:
|
||||
SWGXtrxInputActions();
|
||||
SWGXtrxInputActions(QString* json);
|
||||
virtual ~SWGXtrxInputActions();
|
||||
void init();
|
||||
void cleanup();
|
||||
|
||||
virtual QString asJson () override;
|
||||
virtual QJsonObject* asJsonObject() override;
|
||||
virtual void fromJsonObject(QJsonObject &json) override;
|
||||
virtual SWGXtrxInputActions* fromJson(QString &jsonString) override;
|
||||
|
||||
qint32 getRecord();
|
||||
void setRecord(qint32 record);
|
||||
|
||||
|
||||
virtual bool isSet() override;
|
||||
|
||||
private:
|
||||
qint32 record;
|
||||
bool m_record_isSet;
|
||||
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
#endif /* SWGXtrxInputActions_H_ */
|
Loading…
Reference in New Issue
Block a user