1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-11-10 10:33:29 -05:00

Removed file recording function from device plugins: REST API generated code

This commit is contained in:
f4exb 2020-08-09 00:57:42 +02:00
parent e6e7ece46c
commit 586e507280
82 changed files with 2 additions and 5743 deletions

View File

@ -1577,53 +1577,6 @@ margin-bottom: 20px;
} }
}, },
"description" : "A bandwidth expressed in Hertz (Hz)" "description" : "A bandwidth expressed in Hertz (Hz)"
};
<<<<<<< ours
defs.BladeRF1InputActions = {
"properties" : {
"record" : {
"type" : "integer",
"description" : "Record IQ stream action\n * 0 - stop recording\n * 1 - start recording\n"
}
},
"description" : "BladeRF1"
=======
defs.BeamSteeringCWModSettings = {
"properties" : {
"steerDegrees" : {
"type" : "integer"
},
"rgbColor" : {
"type" : "integer"
},
"title" : {
"type" : "string"
},
"log2Interp" : {
"type" : "integer"
},
"filterChainHash" : {
"type" : "integer"
},
"useReverseAPI" : {
"type" : "integer",
"description" : "Synchronize with reverse API (1 for yes, 0 for no)"
},
"reverseAPIAddress" : {
"type" : "string"
},
"reverseAPIPort" : {
"type" : "integer"
},
"reverseAPIDeviceIndex" : {
"type" : "integer"
},
"reverseAPIChannelIndex" : {
"type" : "integer"
}
},
"description" : "BeamSteeringCWMod"
>>>>>>> theirs
}; };
defs.BladeRF1InputSettings = { defs.BladeRF1InputSettings = {
"properties" : { "properties" : {
@ -2716,65 +2669,6 @@ margin-bottom: 20px;
"originatorIndex" : { "originatorIndex" : {
"type" : "integer", "type" : "integer",
"description" : "Optional for reverse API. This is the device set index from where the message comes from." "description" : "Optional for reverse API. This is the device set index from where the message comes from."
},
<<<<<<< ours
"airspyActions" : {
"$ref" : "#/definitions/AirspyActions"
},
"airspyHFActions" : {
"$ref" : "#/definitions/AirspyHFActions"
},
"bladeRF1InputActions" : {
"$ref" : "#/definitions/BladeRF1InputActions"
},
"bladeRF2InputActions" : {
"$ref" : "#/definitions/BladeRF2InputActions"
},
"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"
=======
"sigMFFileInputActions" : {
"$ref" : "#/definitions/SigMFFileInputActions"
>>>>>>> theirs
} }
}, },
"description" : "Base device actions. Only the device actions corresponding to the device specified in the deviceHwType field is or should be present." "description" : "Base device actions. Only the device actions corresponding to the device specified in the deviceHwType field is or should be present."
@ -4164,60 +4058,6 @@ margin-bottom: 20px;
} }
}, },
"description" : "Summarized information about this SDRangel instance" "description" : "Summarized information about this SDRangel instance"
};
<<<<<<< ours
defs.KiwiSDRActions = {
"properties" : {
"record" : {
"type" : "integer",
"description" : "Record IQ stream action\n * 0 - stop recording\n * 1 - start recording\n"
}
},
"description" : "KiwiSDR"
=======
defs.InterferometerSettings = {
"properties" : {
"correlationType" : {
"type" : "integer",
"description" : "see InterferometerSettings::CorrelationType"
},
"rgbColor" : {
"type" : "integer"
},
"title" : {
"type" : "string"
},
"log2Decim" : {
"type" : "integer"
},
"filterChainHash" : {
"type" : "integer"
},
"useReverseAPI" : {
"type" : "integer",
"description" : "Synchronize with reverse API (1 for yes, 0 for no)"
},
"reverseAPIAddress" : {
"type" : "string"
},
"reverseAPIPort" : {
"type" : "integer"
},
"reverseAPIDeviceIndex" : {
"type" : "integer"
},
"reverseAPIChannelIndex" : {
"type" : "integer"
},
"spectrumConfig" : {
"$ref" : "#/definitions/GLSpectrum"
},
"scopeConfig" : {
"$ref" : "#/definitions/GLScope"
}
},
"description" : "Interferometer"
>>>>>>> theirs
}; };
defs.KiwiSDRReport = { defs.KiwiSDRReport = {
"properties" : { "properties" : {
@ -6644,124 +6484,6 @@ margin-bottom: 20px;
"type" : "string" "type" : "string"
} }
} }
};
<<<<<<< ours
defs.TestSourceActions = {
"properties" : {
"record" : {
"type" : "integer",
"description" : "Record IQ stream action\n * 0 - stop recording\n * 1 - start recording"
}
},
"description" : "TestSource"
=======
defs.TestMISettings = {
"properties" : {
"useReverseAPI" : {
"type" : "integer",
"description" : "Synchronize with reverse API (1 for yes, 0 for no)"
},
"reverseAPIAddress" : {
"type" : "string"
},
"reverseAPIPort" : {
"type" : "integer"
},
"reverseAPIDeviceIndex" : {
"type" : "integer"
},
"streams" : {
"type" : "array",
"description" : "Settings for each of the streams",
"items" : {
"$ref" : "#/definitions/TestMiStreamSettings"
}
}
},
"description" : "TestMISettings"
};
defs.TestMOSyncSettings = {
"properties" : {
"centerFrequency" : {
"type" : "integer",
"format" : "int64"
},
"sampleRate" : {
"type" : "integer",
"format" : "int64"
},
"log2Interp" : {
"type" : "integer"
},
"fcPosTx" : {
"type" : "integer",
"description" : "See BladeRF2MIMO::fcPos_t"
}
},
"description" : "TestMOSync"
};
defs.TestMiStreamSettings = {
"properties" : {
"streamIndex" : {
"type" : "integer",
"description" : "Index of the stream to which the settings apply"
},
"centerFrequency" : {
"type" : "integer",
"format" : "uint64"
},
"frequencyShift" : {
"type" : "integer"
},
"sampleRate" : {
"type" : "integer"
},
"log2Decim" : {
"type" : "integer"
},
"fcPos" : {
"type" : "integer"
},
"sampleSizeIndex" : {
"type" : "integer"
},
"amplitudeBits" : {
"type" : "integer"
},
"autoCorrOptions" : {
"type" : "integer"
},
"modulation" : {
"type" : "integer"
},
"modulationTone" : {
"type" : "integer"
},
"amModulation" : {
"type" : "integer"
},
"fmDeviation" : {
"type" : "integer"
},
"dcFactor" : {
"type" : "number",
"format" : "float"
},
"iFactor" : {
"type" : "number",
"format" : "float"
},
"qFactor" : {
"type" : "number",
"format" : "float"
},
"phaseImbalance" : {
"type" : "number",
"format" : "float"
}
},
"description" : "TestMiStreamSettings"
>>>>>>> theirs
}; };
defs.TestSourceSettings = { defs.TestSourceSettings = {
"properties" : { "properties" : {
@ -33593,11 +33315,7 @@ except ApiException as e:
</div> </div>
<div id="generator"> <div id="generator">
<div class="content"> <div class="content">
<<<<<<< ours Generated 2020-08-09T00:51:25.713+02:00
Generated 2020-08-08T23:29:13.057+02:00
=======
Generated 2020-08-08T10:04:58.845+02:00
>>>>>>> theirs
</div> </div>
</div> </div>
</div> </div>

View File

@ -14,44 +14,3 @@ DeviceActions:
originatorIndex: originatorIndex:
description: Optional for reverse API. This is the device set index from where the message comes from. description: Optional for reverse API. This is the device set index from where the message comes from.
type: integer type: integer
<<<<<<< ours
airspyActions:
$ref: "/doc/swagger/include/Airspy.yaml#/AirspyActions"
airspyHFActions:
$ref: "/doc/swagger/include/AirspyHF.yaml#/AirspyHFActions"
bladeRF1InputActions:
$ref: "/doc/swagger/include/BladeRF1.yaml#/BladeRF1InputActions"
bladeRF2InputActions:
$ref: "/doc/swagger/include/BladeRF2.yaml#/BladeRF2InputActions"
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"
=======
sigMFFileInputActions:
$ref: "/doc/swagger/include/SigMFFileInput.yaml#/SigMFFileInputActions"
>>>>>>> theirs

View File

@ -1142,24 +1142,6 @@ margin-bottom: 20px;
} }
}, },
"description" : "ATVMod" "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 = { defs.AirspyHFReport = {
"properties" : { "properties" : {
@ -1201,9 +1183,6 @@ margin-bottom: 20px;
"bandIndex" : { "bandIndex" : {
"type" : "integer" "type" : "integer"
}, },
"fileRecordName" : {
"type" : "string"
},
"useReverseAPI" : { "useReverseAPI" : {
"type" : "integer", "type" : "integer",
"description" : "Synchronize with reverse API (1 for yes, 0 for no)" "description" : "Synchronize with reverse API (1 for yes, 0 for no)"
@ -1314,9 +1293,6 @@ margin-bottom: 20px;
"type" : "integer", "type" : "integer",
"description" : "IQ samples order\n * 0 - Q then I (swapped)\n * 1 - I then Q (straight)\n" "description" : "IQ samples order\n * 0 - Q then I (swapped)\n * 1 - I then Q (straight)\n"
}, },
"fileRecordName" : {
"type" : "string"
},
"useReverseAPI" : { "useReverseAPI" : {
"type" : "integer", "type" : "integer",
"description" : "Synchronize with reverse API (1 for yes, 0 for no)" "description" : "Synchronize with reverse API (1 for yes, 0 for no)"
@ -1601,15 +1577,6 @@ margin-bottom: 20px;
} }
}, },
"description" : "A bandwidth expressed in Hertz (Hz)" "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 = { defs.BladeRF1InputSettings = {
"properties" : { "properties" : {
@ -1657,9 +1624,6 @@ margin-bottom: 20px;
"type" : "integer", "type" : "integer",
"description" : "IQ samples order\n * 0 - Q then I (swapped)\n * 1 - I then Q (straight)\n" "description" : "IQ samples order\n * 0 - Q then I (swapped)\n * 1 - I then Q (straight)\n"
}, },
"fileRecordName" : {
"type" : "string"
},
"useReverseAPI" : { "useReverseAPI" : {
"type" : "integer", "type" : "integer",
"description" : "Synchronize with reverse API (1 for yes, 0 for no)" "description" : "Synchronize with reverse API (1 for yes, 0 for no)"
@ -1721,15 +1685,6 @@ margin-bottom: 20px;
} }
}, },
"description" : "BladeRF1" "description" : "BladeRF1"
};
defs.BladeRF2InputActions = {
"properties" : {
"record" : {
"type" : "integer",
"description" : "Record IQ stream action\n * 0 - stop recording\n * 1 - start recording\n"
}
},
"description" : "BladeRF2"
}; };
defs.BladeRF2InputReport = { defs.BladeRF2InputReport = {
"properties" : { "properties" : {
@ -1801,9 +1756,6 @@ margin-bottom: 20px;
"type" : "integer", "type" : "integer",
"description" : "IQ samples order\n * 0 - Q then I (swapped)\n * 1 - I then Q (straight)\n" "description" : "IQ samples order\n * 0 - Q then I (swapped)\n * 1 - I then Q (straight)\n"
}, },
"fileRecordName" : {
"type" : "string"
},
"useReverseAPI" : { "useReverseAPI" : {
"type" : "integer", "type" : "integer",
"description" : "Synchronize with reverse API (1 for yes, 0 for no)" "description" : "Synchronize with reverse API (1 for yes, 0 for no)"
@ -2717,60 +2669,6 @@ margin-bottom: 20px;
"originatorIndex" : { "originatorIndex" : {
"type" : "integer", "type" : "integer",
"description" : "Optional for reverse API. This is the device set index from where the message comes from." "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"
},
"bladeRF2InputActions" : {
"$ref" : "#/definitions/BladeRF2InputActions"
},
"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." "description" : "Base device actions. Only the device actions corresponding to the device specified in the deviceHwType field is or should be present."
@ -3074,24 +2972,6 @@ margin-bottom: 20px;
"example" : "KO" "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 = { defs.FCDProPlusSettings = {
"properties" : { "properties" : {
@ -3150,9 +3030,6 @@ margin-bottom: 20px;
"type" : "integer", "type" : "integer",
"description" : "IQ samples order\n * 0 - Q then I (swapped)\n * 1 - I then Q (straight)\n" "description" : "IQ samples order\n * 0 - Q then I (swapped)\n * 1 - I then Q (straight)\n"
}, },
"fileRecordName" : {
"type" : "string"
},
"useReverseAPI" : { "useReverseAPI" : {
"type" : "integer", "type" : "integer",
"description" : "Synchronize with reverse API (1 for yes, 0 for no)" "description" : "Synchronize with reverse API (1 for yes, 0 for no)"
@ -3249,9 +3126,6 @@ margin-bottom: 20px;
"type" : "integer", "type" : "integer",
"description" : "IQ samples order\n * 0 - Q then I (swapped)\n * 1 - I then Q (straight)\n" "description" : "IQ samples order\n * 0 - Q then I (swapped)\n * 1 - I then Q (straight)\n"
}, },
"fileRecordName" : {
"type" : "string"
},
"useReverseAPI" : { "useReverseAPI" : {
"type" : "integer", "type" : "integer",
"description" : "Synchronize with reverse API (1 for yes, 0 for no)" "description" : "Synchronize with reverse API (1 for yes, 0 for no)"
@ -3964,15 +3838,6 @@ margin-bottom: 20px;
} }
}, },
"description" : "A gain expressed in centi-Bels (tenths of dB)" "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 = { defs.HackRFInputSettings = {
"properties" : { "properties" : {
@ -4014,9 +3879,6 @@ margin-bottom: 20px;
"iqCorrection" : { "iqCorrection" : {
"type" : "integer" "type" : "integer"
}, },
"fileRecordName" : {
"type" : "string"
},
"transverterMode" : { "transverterMode" : {
"type" : "integer" "type" : "integer"
}, },
@ -4196,15 +4058,6 @@ margin-bottom: 20px;
} }
}, },
"description" : "Summarized information about this SDRangel instance" "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 = { defs.KiwiSDRReport = {
"properties" : { "properties" : {
@ -4235,9 +4088,6 @@ margin-bottom: 20px;
"type" : "string", "type" : "string",
"description" : "Distant KiwiSDR instance URL or IPv4 address with port" "description" : "Distant KiwiSDR instance URL or IPv4 address with port"
}, },
"fileRecordName" : {
"type" : "string"
},
"useReverseAPI" : { "useReverseAPI" : {
"type" : "integer", "type" : "integer",
"description" : "Synchronize with reverse API (1 for yes, 0 for no)" "description" : "Synchronize with reverse API (1 for yes, 0 for no)"
@ -4364,15 +4214,6 @@ margin-bottom: 20px;
} }
}, },
"description" : "LimeRFE" "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 = { defs.LimeSdrInputReport = {
"properties" : { "properties" : {
@ -4494,9 +4335,6 @@ margin-bottom: 20px;
"type" : "integer", "type" : "integer",
"description" : "IQ samples order\n * 0 - Q then I (swapped)\n * 1 - I then Q (straight)\n" "description" : "IQ samples order\n * 0 - Q then I (swapped)\n * 1 - I then Q (straight)\n"
}, },
"fileRecordName" : {
"type" : "string"
},
"gpioDir" : { "gpioDir" : {
"type" : "integer", "type" : "integer",
"format" : "int8" "format" : "int8"
@ -4642,15 +4480,6 @@ margin-bottom: 20px;
} }
}, },
"description" : "LimeSDR" "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 = { defs.LocalInputReport = {
"properties" : { "properties" : {
@ -4672,9 +4501,6 @@ margin-bottom: 20px;
"iqCorrection" : { "iqCorrection" : {
"type" : "integer" "type" : "integer"
}, },
"fileRecordName" : {
"type" : "string"
},
"useReverseAPI" : { "useReverseAPI" : {
"type" : "integer", "type" : "integer",
"description" : "Synchronize with reverse API (1 for yes, 0 for no)" "description" : "Synchronize with reverse API (1 for yes, 0 for no)"
@ -5055,15 +4881,6 @@ margin-bottom: 20px;
} }
}, },
"description" : "Enumeration with name for values" "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 = { defs.PerseusReport = {
"properties" : { "properties" : {
@ -5114,9 +4931,6 @@ margin-bottom: 20px;
"type" : "integer", "type" : "integer",
"description" : "IQ samples order\n * 0 - Q then I (swapped)\n * 1 - I then Q (straight)\n" "description" : "IQ samples order\n * 0 - Q then I (swapped)\n * 1 - I then Q (straight)\n"
}, },
"fileRecordName" : {
"type" : "string"
},
"attenuator" : { "attenuator" : {
"type" : "integer", "type" : "integer",
"description" : "Attenuator setting in Bels (0, 10, 20 30 dB)" "description" : "Attenuator setting in Bels (0, 10, 20 30 dB)"
@ -5136,15 +4950,6 @@ margin-bottom: 20px;
} }
}, },
"description" : "Perseus" "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 = { defs.PlutoSdrInputReport = {
"properties" : { "properties" : {
@ -5239,9 +5044,6 @@ margin-bottom: 20px;
"type" : "integer", "type" : "integer",
"description" : "IQ samples order\n * 0 - Q then I (swapped)\n * 1 - I then Q (straight)\n" "description" : "IQ samples order\n * 0 - Q then I (swapped)\n * 1 - I then Q (straight)\n"
}, },
"fileRecordName" : {
"type" : "string"
},
"useReverseAPI" : { "useReverseAPI" : {
"type" : "integer", "type" : "integer",
"description" : "Synchronize with reverse API (1 for yes, 0 for no)" "description" : "Synchronize with reverse API (1 for yes, 0 for no)"
@ -5646,15 +5448,6 @@ margin-bottom: 20px;
} }
}, },
"description" : "An arbitrary range of floating point values" "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 = { defs.RemoteInputReport = {
"properties" : { "properties" : {
@ -5704,9 +5497,6 @@ margin-bottom: 20px;
"iqCorrection" : { "iqCorrection" : {
"type" : "integer" "type" : "integer"
}, },
"fileRecordName" : {
"type" : "string"
},
"useReverseAPI" : { "useReverseAPI" : {
"type" : "integer", "type" : "integer",
"description" : "Synchronize with reverse API (1 for yes, 0 for no)" "description" : "Synchronize with reverse API (1 for yes, 0 for no)"
@ -5936,15 +5726,6 @@ margin-bottom: 20px;
} }
}, },
"description" : "Remote channel source settings" "description" : "Remote channel source settings"
};
defs.RtlSdrActions = {
"properties" : {
"record" : {
"type" : "integer",
"description" : "Record IQ stream action\n * 0 - stop recording\n * 1 - start recording\n"
}
},
"description" : "RTLSDR"
}; };
defs.RtlSdrReport = { defs.RtlSdrReport = {
"properties" : { "properties" : {
@ -6014,9 +5795,6 @@ margin-bottom: 20px;
"type" : "integer", "type" : "integer",
"description" : "Bias tee\n * 0 - inactive\n * 1 - active\n" "description" : "Bias tee\n * 0 - inactive\n * 1 - active\n"
}, },
"fileRecordName" : {
"type" : "string"
},
"useReverseAPI" : { "useReverseAPI" : {
"type" : "integer", "type" : "integer",
"description" : "Synchronize with reverse API (1 for yes, 0 for no)" "description" : "Synchronize with reverse API (1 for yes, 0 for no)"
@ -6032,15 +5810,6 @@ margin-bottom: 20px;
} }
}, },
"description" : "RTLSDR" "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 = { defs.SDRPlayReport = {
"properties" : { "properties" : {
@ -6124,9 +5893,6 @@ margin-bottom: 20px;
"type" : "integer", "type" : "integer",
"description" : "IQ samples order\n * 0 - Q then I (swapped)\n * 1 - I then Q (straight)\n" "description" : "IQ samples order\n * 0 - Q then I (swapped)\n * 1 - I then Q (straight)\n"
}, },
"fileRecordName" : {
"type" : "string"
},
"useReverseAPI" : { "useReverseAPI" : {
"type" : "integer", "type" : "integer",
"description" : "Synchronize with reverse API (1 for yes, 0 for no)" "description" : "Synchronize with reverse API (1 for yes, 0 for no)"
@ -6439,15 +6205,6 @@ margin-bottom: 20px;
} }
}, },
"description" : "A named gain setting specified by its range" "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 = { defs.SoapySDRInputSettings = {
"properties" : { "properties" : {
@ -6487,9 +6244,6 @@ margin-bottom: 20px;
"type" : "integer", "type" : "integer",
"description" : "IQ samples order\n * 0 - Q then I (swapped)\n * 1 - I then Q (straight)\n" "description" : "IQ samples order\n * 0 - Q then I (swapped)\n * 1 - I then Q (straight)\n"
}, },
"fileRecordName" : {
"type" : "string"
},
"antenna" : { "antenna" : {
"type" : "string" "type" : "string"
}, },
@ -6730,15 +6484,6 @@ margin-bottom: 20px;
"type" : "string" "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 = { defs.TestSourceSettings = {
"properties" : { "properties" : {
@ -6795,9 +6540,6 @@ margin-bottom: 20px;
"type" : "number", "type" : "number",
"format" : "float" "format" : "float"
}, },
"fileRecordName" : {
"type" : "string"
},
"useReverseAPI" : { "useReverseAPI" : {
"type" : "integer", "type" : "integer",
"description" : "Synchronize with reverse API (1 for yes, 0 for no)" "description" : "Synchronize with reverse API (1 for yes, 0 for no)"
@ -7372,15 +7114,6 @@ margin-bottom: 20px;
} }
}, },
"description" : "WFMMod" "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 = { defs.XtrxInputReport = {
"properties" : { "properties" : {
@ -7480,9 +7213,6 @@ margin-bottom: 20px;
"type" : "integer", "type" : "integer",
"description" : "IQ samples order\n * 0 - Q then I (swapped)\n * 1 - I then Q (straight)\n" "description" : "IQ samples order\n * 0 - Q then I (swapped)\n * 1 - I then Q (straight)\n"
}, },
"fileRecordName" : {
"type" : "string"
},
"useReverseAPI" : { "useReverseAPI" : {
"type" : "integer", "type" : "integer",
"description" : "Synchronize with reverse API (1 for yes, 0 for no)" "description" : "Synchronize with reverse API (1 for yes, 0 for no)"
@ -33585,7 +33315,7 @@ except ApiException as e:
</div> </div>
<div id="generator"> <div id="generator">
<div class="content"> <div class="content">
Generated 2020-08-08T23:29:13.057+02:00 Generated 2020-08-09T00:51:25.713+02:00
</div> </div>
</div> </div>
</div> </div>

View File

@ -1,108 +0,0 @@
/**
* 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.14.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;
}
}

View File

@ -1,58 +0,0 @@
/**
* 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.14.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_ */

View File

@ -1,108 +0,0 @@
/**
* 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.14.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;
}
}

View File

@ -1,58 +0,0 @@
/**
* 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.14.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_ */

View File

@ -44,8 +44,6 @@ SWGAirspyHFSettings::SWGAirspyHFSettings() {
m_iq_order_isSet = false; m_iq_order_isSet = false;
band_index = 0; band_index = 0;
m_band_index_isSet = false; m_band_index_isSet = false;
file_record_name = nullptr;
m_file_record_name_isSet = false;
use_reverse_api = 0; use_reverse_api = 0;
m_use_reverse_api_isSet = false; m_use_reverse_api_isSet = false;
reverse_api_address = nullptr; reverse_api_address = nullptr;
@ -92,8 +90,6 @@ SWGAirspyHFSettings::init() {
m_iq_order_isSet = false; m_iq_order_isSet = false;
band_index = 0; band_index = 0;
m_band_index_isSet = false; m_band_index_isSet = false;
file_record_name = new QString("");
m_file_record_name_isSet = false;
use_reverse_api = 0; use_reverse_api = 0;
m_use_reverse_api_isSet = false; m_use_reverse_api_isSet = false;
reverse_api_address = new QString(""); reverse_api_address = new QString("");
@ -128,9 +124,6 @@ SWGAirspyHFSettings::cleanup() {
if(file_record_name != nullptr) {
delete file_record_name;
}
if(reverse_api_address != nullptr) { if(reverse_api_address != nullptr) {
delete reverse_api_address; delete reverse_api_address;
@ -173,8 +166,6 @@ SWGAirspyHFSettings::fromJsonObject(QJsonObject &pJson) {
::SWGSDRangel::setValue(&band_index, pJson["bandIndex"], "qint32", ""); ::SWGSDRangel::setValue(&band_index, pJson["bandIndex"], "qint32", "");
::SWGSDRangel::setValue(&file_record_name, pJson["fileRecordName"], "QString", "QString");
::SWGSDRangel::setValue(&use_reverse_api, pJson["useReverseAPI"], "qint32", ""); ::SWGSDRangel::setValue(&use_reverse_api, pJson["useReverseAPI"], "qint32", "");
::SWGSDRangel::setValue(&reverse_api_address, pJson["reverseAPIAddress"], "QString", "QString"); ::SWGSDRangel::setValue(&reverse_api_address, pJson["reverseAPIAddress"], "QString", "QString");
@ -237,9 +228,6 @@ SWGAirspyHFSettings::asJsonObject() {
if(m_band_index_isSet){ if(m_band_index_isSet){
obj->insert("bandIndex", QJsonValue(band_index)); obj->insert("bandIndex", QJsonValue(band_index));
} }
if(file_record_name != nullptr && *file_record_name != QString("")){
toJsonValue(QString("fileRecordName"), file_record_name, obj, QString("QString"));
}
if(m_use_reverse_api_isSet){ if(m_use_reverse_api_isSet){
obj->insert("useReverseAPI", QJsonValue(use_reverse_api)); obj->insert("useReverseAPI", QJsonValue(use_reverse_api));
} }
@ -357,16 +345,6 @@ SWGAirspyHFSettings::setBandIndex(qint32 band_index) {
this->m_band_index_isSet = true; this->m_band_index_isSet = true;
} }
QString*
SWGAirspyHFSettings::getFileRecordName() {
return file_record_name;
}
void
SWGAirspyHFSettings::setFileRecordName(QString* file_record_name) {
this->file_record_name = file_record_name;
this->m_file_record_name_isSet = true;
}
qint32 qint32
SWGAirspyHFSettings::getUseReverseApi() { SWGAirspyHFSettings::getUseReverseApi() {
return use_reverse_api; return use_reverse_api;
@ -506,9 +484,6 @@ SWGAirspyHFSettings::isSet(){
if(m_band_index_isSet){ if(m_band_index_isSet){
isObjectUpdated = true; break; isObjectUpdated = true; break;
} }
if(file_record_name && *file_record_name != QString("")){
isObjectUpdated = true; break;
}
if(m_use_reverse_api_isSet){ if(m_use_reverse_api_isSet){
isObjectUpdated = true; break; isObjectUpdated = true; break;
} }

View File

@ -66,9 +66,6 @@ public:
qint32 getBandIndex(); qint32 getBandIndex();
void setBandIndex(qint32 band_index); void setBandIndex(qint32 band_index);
QString* getFileRecordName();
void setFileRecordName(QString* file_record_name);
qint32 getUseReverseApi(); qint32 getUseReverseApi();
void setUseReverseApi(qint32 use_reverse_api); void setUseReverseApi(qint32 use_reverse_api);
@ -130,9 +127,6 @@ private:
qint32 band_index; qint32 band_index;
bool m_band_index_isSet; bool m_band_index_isSet;
QString* file_record_name;
bool m_file_record_name_isSet;
qint32 use_reverse_api; qint32 use_reverse_api;
bool m_use_reverse_api_isSet; bool m_use_reverse_api_isSet;

View File

@ -60,8 +60,6 @@ SWGAirspySettings::SWGAirspySettings() {
m_transverter_delta_frequency_isSet = false; m_transverter_delta_frequency_isSet = false;
iq_order = 0; iq_order = 0;
m_iq_order_isSet = false; m_iq_order_isSet = false;
file_record_name = nullptr;
m_file_record_name_isSet = false;
use_reverse_api = 0; use_reverse_api = 0;
m_use_reverse_api_isSet = false; m_use_reverse_api_isSet = false;
reverse_api_address = nullptr; reverse_api_address = nullptr;
@ -110,8 +108,6 @@ SWGAirspySettings::init() {
m_transverter_delta_frequency_isSet = false; m_transverter_delta_frequency_isSet = false;
iq_order = 0; iq_order = 0;
m_iq_order_isSet = false; m_iq_order_isSet = false;
file_record_name = new QString("");
m_file_record_name_isSet = false;
use_reverse_api = 0; use_reverse_api = 0;
m_use_reverse_api_isSet = false; m_use_reverse_api_isSet = false;
reverse_api_address = new QString(""); reverse_api_address = new QString("");
@ -140,9 +136,6 @@ SWGAirspySettings::cleanup() {
if(file_record_name != nullptr) {
delete file_record_name;
}
if(reverse_api_address != nullptr) { if(reverse_api_address != nullptr) {
delete reverse_api_address; delete reverse_api_address;
@ -194,8 +187,6 @@ SWGAirspySettings::fromJsonObject(QJsonObject &pJson) {
::SWGSDRangel::setValue(&iq_order, pJson["iqOrder"], "qint32", ""); ::SWGSDRangel::setValue(&iq_order, pJson["iqOrder"], "qint32", "");
::SWGSDRangel::setValue(&file_record_name, pJson["fileRecordName"], "QString", "QString");
::SWGSDRangel::setValue(&use_reverse_api, pJson["useReverseAPI"], "qint32", ""); ::SWGSDRangel::setValue(&use_reverse_api, pJson["useReverseAPI"], "qint32", "");
::SWGSDRangel::setValue(&reverse_api_address, pJson["reverseAPIAddress"], "QString", "QString"); ::SWGSDRangel::setValue(&reverse_api_address, pJson["reverseAPIAddress"], "QString", "QString");
@ -268,9 +259,6 @@ SWGAirspySettings::asJsonObject() {
if(m_iq_order_isSet){ if(m_iq_order_isSet){
obj->insert("iqOrder", QJsonValue(iq_order)); obj->insert("iqOrder", QJsonValue(iq_order));
} }
if(file_record_name != nullptr && *file_record_name != QString("")){
toJsonValue(QString("fileRecordName"), file_record_name, obj, QString("QString"));
}
if(m_use_reverse_api_isSet){ if(m_use_reverse_api_isSet){
obj->insert("useReverseAPI", QJsonValue(use_reverse_api)); obj->insert("useReverseAPI", QJsonValue(use_reverse_api));
} }
@ -447,16 +435,6 @@ SWGAirspySettings::setIqOrder(qint32 iq_order) {
this->m_iq_order_isSet = true; this->m_iq_order_isSet = true;
} }
QString*
SWGAirspySettings::getFileRecordName() {
return file_record_name;
}
void
SWGAirspySettings::setFileRecordName(QString* file_record_name) {
this->file_record_name = file_record_name;
this->m_file_record_name_isSet = true;
}
qint32 qint32
SWGAirspySettings::getUseReverseApi() { SWGAirspySettings::getUseReverseApi() {
return use_reverse_api; return use_reverse_api;
@ -550,9 +528,6 @@ SWGAirspySettings::isSet(){
if(m_iq_order_isSet){ if(m_iq_order_isSet){
isObjectUpdated = true; break; isObjectUpdated = true; break;
} }
if(file_record_name && *file_record_name != QString("")){
isObjectUpdated = true; break;
}
if(m_use_reverse_api_isSet){ if(m_use_reverse_api_isSet){
isObjectUpdated = true; break; isObjectUpdated = true; break;
} }

View File

@ -90,9 +90,6 @@ public:
qint32 getIqOrder(); qint32 getIqOrder();
void setIqOrder(qint32 iq_order); void setIqOrder(qint32 iq_order);
QString* getFileRecordName();
void setFileRecordName(QString* file_record_name);
qint32 getUseReverseApi(); qint32 getUseReverseApi();
void setUseReverseApi(qint32 use_reverse_api); void setUseReverseApi(qint32 use_reverse_api);
@ -157,9 +154,6 @@ private:
qint32 iq_order; qint32 iq_order;
bool m_iq_order_isSet; bool m_iq_order_isSet;
QString* file_record_name;
bool m_file_record_name_isSet;
qint32 use_reverse_api; qint32 use_reverse_api;
bool m_use_reverse_api_isSet; bool m_use_reverse_api_isSet;

View File

@ -1,108 +0,0 @@
/**
* 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.14.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;
}
}

View File

@ -1,58 +0,0 @@
/**
* 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.14.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_ */

View File

@ -56,8 +56,6 @@ SWGBladeRF1InputSettings::SWGBladeRF1InputSettings() {
m_iq_correction_isSet = false; m_iq_correction_isSet = false;
iq_order = 0; iq_order = 0;
m_iq_order_isSet = false; m_iq_order_isSet = false;
file_record_name = nullptr;
m_file_record_name_isSet = false;
use_reverse_api = 0; use_reverse_api = 0;
m_use_reverse_api_isSet = false; m_use_reverse_api_isSet = false;
reverse_api_address = nullptr; reverse_api_address = nullptr;
@ -102,8 +100,6 @@ SWGBladeRF1InputSettings::init() {
m_iq_correction_isSet = false; m_iq_correction_isSet = false;
iq_order = 0; iq_order = 0;
m_iq_order_isSet = false; m_iq_order_isSet = false;
file_record_name = new QString("");
m_file_record_name_isSet = false;
use_reverse_api = 0; use_reverse_api = 0;
m_use_reverse_api_isSet = false; m_use_reverse_api_isSet = false;
reverse_api_address = new QString(""); reverse_api_address = new QString("");
@ -130,9 +126,6 @@ SWGBladeRF1InputSettings::cleanup() {
if(file_record_name != nullptr) {
delete file_record_name;
}
if(reverse_api_address != nullptr) { if(reverse_api_address != nullptr) {
delete reverse_api_address; delete reverse_api_address;
@ -180,8 +173,6 @@ SWGBladeRF1InputSettings::fromJsonObject(QJsonObject &pJson) {
::SWGSDRangel::setValue(&iq_order, pJson["iqOrder"], "qint32", ""); ::SWGSDRangel::setValue(&iq_order, pJson["iqOrder"], "qint32", "");
::SWGSDRangel::setValue(&file_record_name, pJson["fileRecordName"], "QString", "QString");
::SWGSDRangel::setValue(&use_reverse_api, pJson["useReverseAPI"], "qint32", ""); ::SWGSDRangel::setValue(&use_reverse_api, pJson["useReverseAPI"], "qint32", "");
::SWGSDRangel::setValue(&reverse_api_address, pJson["reverseAPIAddress"], "QString", "QString"); ::SWGSDRangel::setValue(&reverse_api_address, pJson["reverseAPIAddress"], "QString", "QString");
@ -248,9 +239,6 @@ SWGBladeRF1InputSettings::asJsonObject() {
if(m_iq_order_isSet){ if(m_iq_order_isSet){
obj->insert("iqOrder", QJsonValue(iq_order)); obj->insert("iqOrder", QJsonValue(iq_order));
} }
if(file_record_name != nullptr && *file_record_name != QString("")){
toJsonValue(QString("fileRecordName"), file_record_name, obj, QString("QString"));
}
if(m_use_reverse_api_isSet){ if(m_use_reverse_api_isSet){
obj->insert("useReverseAPI", QJsonValue(use_reverse_api)); obj->insert("useReverseAPI", QJsonValue(use_reverse_api));
} }
@ -407,16 +395,6 @@ SWGBladeRF1InputSettings::setIqOrder(qint32 iq_order) {
this->m_iq_order_isSet = true; this->m_iq_order_isSet = true;
} }
QString*
SWGBladeRF1InputSettings::getFileRecordName() {
return file_record_name;
}
void
SWGBladeRF1InputSettings::setFileRecordName(QString* file_record_name) {
this->file_record_name = file_record_name;
this->m_file_record_name_isSet = true;
}
qint32 qint32
SWGBladeRF1InputSettings::getUseReverseApi() { SWGBladeRF1InputSettings::getUseReverseApi() {
return use_reverse_api; return use_reverse_api;
@ -504,9 +482,6 @@ SWGBladeRF1InputSettings::isSet(){
if(m_iq_order_isSet){ if(m_iq_order_isSet){
isObjectUpdated = true; break; isObjectUpdated = true; break;
} }
if(file_record_name && *file_record_name != QString("")){
isObjectUpdated = true; break;
}
if(m_use_reverse_api_isSet){ if(m_use_reverse_api_isSet){
isObjectUpdated = true; break; isObjectUpdated = true; break;
} }

View File

@ -84,9 +84,6 @@ public:
qint32 getIqOrder(); qint32 getIqOrder();
void setIqOrder(qint32 iq_order); void setIqOrder(qint32 iq_order);
QString* getFileRecordName();
void setFileRecordName(QString* file_record_name);
qint32 getUseReverseApi(); qint32 getUseReverseApi();
void setUseReverseApi(qint32 use_reverse_api); void setUseReverseApi(qint32 use_reverse_api);
@ -145,9 +142,6 @@ private:
qint32 iq_order; qint32 iq_order;
bool m_iq_order_isSet; bool m_iq_order_isSet;
QString* file_record_name;
bool m_file_record_name_isSet;
qint32 use_reverse_api; qint32 use_reverse_api;
bool m_use_reverse_api_isSet; bool m_use_reverse_api_isSet;

View File

@ -1,108 +0,0 @@
/**
* 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.14.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 "SWGBladeRF2InputActions.h"
#include "SWGHelpers.h"
#include <QJsonDocument>
#include <QJsonArray>
#include <QObject>
#include <QDebug>
namespace SWGSDRangel {
SWGBladeRF2InputActions::SWGBladeRF2InputActions(QString* json) {
init();
this->fromJson(*json);
}
SWGBladeRF2InputActions::SWGBladeRF2InputActions() {
record = 0;
m_record_isSet = false;
}
SWGBladeRF2InputActions::~SWGBladeRF2InputActions() {
this->cleanup();
}
void
SWGBladeRF2InputActions::init() {
record = 0;
m_record_isSet = false;
}
void
SWGBladeRF2InputActions::cleanup() {
}
SWGBladeRF2InputActions*
SWGBladeRF2InputActions::fromJson(QString &json) {
QByteArray array (json.toStdString().c_str());
QJsonDocument doc = QJsonDocument::fromJson(array);
QJsonObject jsonObject = doc.object();
this->fromJsonObject(jsonObject);
return this;
}
void
SWGBladeRF2InputActions::fromJsonObject(QJsonObject &pJson) {
::SWGSDRangel::setValue(&record, pJson["record"], "qint32", "");
}
QString
SWGBladeRF2InputActions::asJson ()
{
QJsonObject* obj = this->asJsonObject();
QJsonDocument doc(*obj);
QByteArray bytes = doc.toJson();
delete obj;
return QString(bytes);
}
QJsonObject*
SWGBladeRF2InputActions::asJsonObject() {
QJsonObject* obj = new QJsonObject();
if(m_record_isSet){
obj->insert("record", QJsonValue(record));
}
return obj;
}
qint32
SWGBladeRF2InputActions::getRecord() {
return record;
}
void
SWGBladeRF2InputActions::setRecord(qint32 record) {
this->record = record;
this->m_record_isSet = true;
}
bool
SWGBladeRF2InputActions::isSet(){
bool isObjectUpdated = false;
do{
if(m_record_isSet){
isObjectUpdated = true; break;
}
}while(false);
return isObjectUpdated;
}
}

View File

@ -1,58 +0,0 @@
/**
* 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.14.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.
*/
/*
* SWGBladeRF2InputActions.h
*
* BladeRF2
*/
#ifndef SWGBladeRF2InputActions_H_
#define SWGBladeRF2InputActions_H_
#include <QJsonObject>
#include "SWGObject.h"
#include "export.h"
namespace SWGSDRangel {
class SWG_API SWGBladeRF2InputActions: public SWGObject {
public:
SWGBladeRF2InputActions();
SWGBladeRF2InputActions(QString* json);
virtual ~SWGBladeRF2InputActions();
void init();
void cleanup();
virtual QString asJson () override;
virtual QJsonObject* asJsonObject() override;
virtual void fromJsonObject(QJsonObject &json) override;
virtual SWGBladeRF2InputActions* fromJson(QString &jsonString) override;
qint32 getRecord();
void setRecord(qint32 record);
virtual bool isSet() override;
private:
qint32 record;
bool m_record_isSet;
};
}
#endif /* SWGBladeRF2InputActions_H_ */

View File

@ -56,8 +56,6 @@ SWGBladeRF2InputSettings::SWGBladeRF2InputSettings() {
m_transverter_delta_frequency_isSet = false; m_transverter_delta_frequency_isSet = false;
iq_order = 0; iq_order = 0;
m_iq_order_isSet = false; m_iq_order_isSet = false;
file_record_name = nullptr;
m_file_record_name_isSet = false;
use_reverse_api = 0; use_reverse_api = 0;
m_use_reverse_api_isSet = false; m_use_reverse_api_isSet = false;
reverse_api_address = nullptr; reverse_api_address = nullptr;
@ -102,8 +100,6 @@ SWGBladeRF2InputSettings::init() {
m_transverter_delta_frequency_isSet = false; m_transverter_delta_frequency_isSet = false;
iq_order = 0; iq_order = 0;
m_iq_order_isSet = false; m_iq_order_isSet = false;
file_record_name = new QString("");
m_file_record_name_isSet = false;
use_reverse_api = 0; use_reverse_api = 0;
m_use_reverse_api_isSet = false; m_use_reverse_api_isSet = false;
reverse_api_address = new QString(""); reverse_api_address = new QString("");
@ -130,9 +126,6 @@ SWGBladeRF2InputSettings::cleanup() {
if(file_record_name != nullptr) {
delete file_record_name;
}
if(reverse_api_address != nullptr) { if(reverse_api_address != nullptr) {
delete reverse_api_address; delete reverse_api_address;
@ -180,8 +173,6 @@ SWGBladeRF2InputSettings::fromJsonObject(QJsonObject &pJson) {
::SWGSDRangel::setValue(&iq_order, pJson["iqOrder"], "qint32", ""); ::SWGSDRangel::setValue(&iq_order, pJson["iqOrder"], "qint32", "");
::SWGSDRangel::setValue(&file_record_name, pJson["fileRecordName"], "QString", "QString");
::SWGSDRangel::setValue(&use_reverse_api, pJson["useReverseAPI"], "qint32", ""); ::SWGSDRangel::setValue(&use_reverse_api, pJson["useReverseAPI"], "qint32", "");
::SWGSDRangel::setValue(&reverse_api_address, pJson["reverseAPIAddress"], "QString", "QString"); ::SWGSDRangel::setValue(&reverse_api_address, pJson["reverseAPIAddress"], "QString", "QString");
@ -248,9 +239,6 @@ SWGBladeRF2InputSettings::asJsonObject() {
if(m_iq_order_isSet){ if(m_iq_order_isSet){
obj->insert("iqOrder", QJsonValue(iq_order)); obj->insert("iqOrder", QJsonValue(iq_order));
} }
if(file_record_name != nullptr && *file_record_name != QString("")){
toJsonValue(QString("fileRecordName"), file_record_name, obj, QString("QString"));
}
if(m_use_reverse_api_isSet){ if(m_use_reverse_api_isSet){
obj->insert("useReverseAPI", QJsonValue(use_reverse_api)); obj->insert("useReverseAPI", QJsonValue(use_reverse_api));
} }
@ -407,16 +395,6 @@ SWGBladeRF2InputSettings::setIqOrder(qint32 iq_order) {
this->m_iq_order_isSet = true; this->m_iq_order_isSet = true;
} }
QString*
SWGBladeRF2InputSettings::getFileRecordName() {
return file_record_name;
}
void
SWGBladeRF2InputSettings::setFileRecordName(QString* file_record_name) {
this->file_record_name = file_record_name;
this->m_file_record_name_isSet = true;
}
qint32 qint32
SWGBladeRF2InputSettings::getUseReverseApi() { SWGBladeRF2InputSettings::getUseReverseApi() {
return use_reverse_api; return use_reverse_api;
@ -504,9 +482,6 @@ SWGBladeRF2InputSettings::isSet(){
if(m_iq_order_isSet){ if(m_iq_order_isSet){
isObjectUpdated = true; break; isObjectUpdated = true; break;
} }
if(file_record_name && *file_record_name != QString("")){
isObjectUpdated = true; break;
}
if(m_use_reverse_api_isSet){ if(m_use_reverse_api_isSet){
isObjectUpdated = true; break; isObjectUpdated = true; break;
} }

View File

@ -84,9 +84,6 @@ public:
qint32 getIqOrder(); qint32 getIqOrder();
void setIqOrder(qint32 iq_order); void setIqOrder(qint32 iq_order);
QString* getFileRecordName();
void setFileRecordName(QString* file_record_name);
qint32 getUseReverseApi(); qint32 getUseReverseApi();
void setUseReverseApi(qint32 use_reverse_api); void setUseReverseApi(qint32 use_reverse_api);
@ -145,9 +142,6 @@ private:
qint32 iq_order; qint32 iq_order;
bool m_iq_order_isSet; bool m_iq_order_isSet;
QString* file_record_name;
bool m_file_record_name_isSet;
qint32 use_reverse_api; qint32 use_reverse_api;
bool m_use_reverse_api_isSet; bool m_use_reverse_api_isSet;

View File

@ -34,42 +34,6 @@ SWGDeviceActions::SWGDeviceActions() {
m_direction_isSet = false; m_direction_isSet = false;
originator_index = 0; originator_index = 0;
m_originator_index_isSet = false; 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;
blade_rf2_input_actions = nullptr;
m_blade_rf2_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() { SWGDeviceActions::~SWGDeviceActions() {
@ -84,42 +48,6 @@ SWGDeviceActions::init() {
m_direction_isSet = false; m_direction_isSet = false;
originator_index = 0; originator_index = 0;
m_originator_index_isSet = false; 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;
blade_rf2_input_actions = new SWGBladeRF2InputActions();
m_blade_rf2_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 void
@ -129,60 +57,6 @@ 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(blade_rf2_input_actions != nullptr) {
delete blade_rf2_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* SWGDeviceActions*
@ -202,42 +76,6 @@ SWGDeviceActions::fromJsonObject(QJsonObject &pJson) {
::SWGSDRangel::setValue(&originator_index, pJson["originatorIndex"], "qint32", ""); ::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(&blade_rf2_input_actions, pJson["bladeRF2InputActions"], "SWGBladeRF2InputActions", "SWGBladeRF2InputActions");
::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 QString
@ -263,60 +101,6 @@ SWGDeviceActions::asJsonObject() {
if(m_originator_index_isSet){ if(m_originator_index_isSet){
obj->insert("originatorIndex", QJsonValue(originator_index)); 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((blade_rf2_input_actions != nullptr) && (blade_rf2_input_actions->isSet())){
toJsonValue(QString("bladeRF2InputActions"), blade_rf2_input_actions, obj, QString("SWGBladeRF2InputActions"));
}
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; return obj;
} }
@ -351,186 +135,6 @@ SWGDeviceActions::setOriginatorIndex(qint32 originator_index) {
this->m_originator_index_isSet = true; 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;
}
SWGBladeRF2InputActions*
SWGDeviceActions::getBladeRf2InputActions() {
return blade_rf2_input_actions;
}
void
SWGDeviceActions::setBladeRf2InputActions(SWGBladeRF2InputActions* blade_rf2_input_actions) {
this->blade_rf2_input_actions = blade_rf2_input_actions;
this->m_blade_rf2_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;
}
void
SWGDeviceActions::setRtlSdrActions(SWGRtlSdrActions* rtl_sdr_actions) {
this->rtl_sdr_actions = 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 bool
SWGDeviceActions::isSet(){ SWGDeviceActions::isSet(){
@ -545,60 +149,6 @@ SWGDeviceActions::isSet(){
if(m_originator_index_isSet){ if(m_originator_index_isSet){
isObjectUpdated = true; break; 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(blade_rf2_input_actions && blade_rf2_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); }while(false);
return isObjectUpdated; return isObjectUpdated;
} }

View File

@ -22,24 +22,6 @@
#include <QJsonObject> #include <QJsonObject>
#include "SWGAirspyActions.h"
#include "SWGAirspyHFActions.h"
#include "SWGBladeRF1InputActions.h"
#include "SWGBladeRF2InputActions.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 <QString>
#include "SWGObject.h" #include "SWGObject.h"
@ -69,60 +51,6 @@ public:
qint32 getOriginatorIndex(); qint32 getOriginatorIndex();
void setOriginatorIndex(qint32 originator_index); 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);
SWGBladeRF2InputActions* getBladeRf2InputActions();
void setBladeRf2InputActions(SWGBladeRF2InputActions* blade_rf2_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; virtual bool isSet() override;
@ -136,60 +64,6 @@ private:
qint32 originator_index; qint32 originator_index;
bool m_originator_index_isSet; 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;
SWGBladeRF2InputActions* blade_rf2_input_actions;
bool m_blade_rf2_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;
}; };
} }

View File

@ -1,108 +0,0 @@
/**
* 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.14.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;
}
}

View File

@ -1,58 +0,0 @@
/**
* 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.14.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_ */

View File

@ -1,108 +0,0 @@
/**
* 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.14.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;
}
}

View File

@ -1,58 +0,0 @@
/**
* 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.14.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_ */

View File

@ -60,8 +60,6 @@ SWGFCDProPlusSettings::SWGFCDProPlusSettings() {
m_transverter_delta_frequency_isSet = false; m_transverter_delta_frequency_isSet = false;
iq_order = 0; iq_order = 0;
m_iq_order_isSet = false; m_iq_order_isSet = false;
file_record_name = nullptr;
m_file_record_name_isSet = false;
use_reverse_api = 0; use_reverse_api = 0;
m_use_reverse_api_isSet = false; m_use_reverse_api_isSet = false;
reverse_api_address = nullptr; reverse_api_address = nullptr;
@ -110,8 +108,6 @@ SWGFCDProPlusSettings::init() {
m_transverter_delta_frequency_isSet = false; m_transverter_delta_frequency_isSet = false;
iq_order = 0; iq_order = 0;
m_iq_order_isSet = false; m_iq_order_isSet = false;
file_record_name = new QString("");
m_file_record_name_isSet = false;
use_reverse_api = 0; use_reverse_api = 0;
m_use_reverse_api_isSet = false; m_use_reverse_api_isSet = false;
reverse_api_address = new QString(""); reverse_api_address = new QString("");
@ -140,9 +136,6 @@ SWGFCDProPlusSettings::cleanup() {
if(file_record_name != nullptr) {
delete file_record_name;
}
if(reverse_api_address != nullptr) { if(reverse_api_address != nullptr) {
delete reverse_api_address; delete reverse_api_address;
@ -194,8 +187,6 @@ SWGFCDProPlusSettings::fromJsonObject(QJsonObject &pJson) {
::SWGSDRangel::setValue(&iq_order, pJson["iqOrder"], "qint32", ""); ::SWGSDRangel::setValue(&iq_order, pJson["iqOrder"], "qint32", "");
::SWGSDRangel::setValue(&file_record_name, pJson["fileRecordName"], "QString", "QString");
::SWGSDRangel::setValue(&use_reverse_api, pJson["useReverseAPI"], "qint32", ""); ::SWGSDRangel::setValue(&use_reverse_api, pJson["useReverseAPI"], "qint32", "");
::SWGSDRangel::setValue(&reverse_api_address, pJson["reverseAPIAddress"], "QString", "QString"); ::SWGSDRangel::setValue(&reverse_api_address, pJson["reverseAPIAddress"], "QString", "QString");
@ -268,9 +259,6 @@ SWGFCDProPlusSettings::asJsonObject() {
if(m_iq_order_isSet){ if(m_iq_order_isSet){
obj->insert("iqOrder", QJsonValue(iq_order)); obj->insert("iqOrder", QJsonValue(iq_order));
} }
if(file_record_name != nullptr && *file_record_name != QString("")){
toJsonValue(QString("fileRecordName"), file_record_name, obj, QString("QString"));
}
if(m_use_reverse_api_isSet){ if(m_use_reverse_api_isSet){
obj->insert("useReverseAPI", QJsonValue(use_reverse_api)); obj->insert("useReverseAPI", QJsonValue(use_reverse_api));
} }
@ -447,16 +435,6 @@ SWGFCDProPlusSettings::setIqOrder(qint32 iq_order) {
this->m_iq_order_isSet = true; this->m_iq_order_isSet = true;
} }
QString*
SWGFCDProPlusSettings::getFileRecordName() {
return file_record_name;
}
void
SWGFCDProPlusSettings::setFileRecordName(QString* file_record_name) {
this->file_record_name = file_record_name;
this->m_file_record_name_isSet = true;
}
qint32 qint32
SWGFCDProPlusSettings::getUseReverseApi() { SWGFCDProPlusSettings::getUseReverseApi() {
return use_reverse_api; return use_reverse_api;
@ -550,9 +528,6 @@ SWGFCDProPlusSettings::isSet(){
if(m_iq_order_isSet){ if(m_iq_order_isSet){
isObjectUpdated = true; break; isObjectUpdated = true; break;
} }
if(file_record_name && *file_record_name != QString("")){
isObjectUpdated = true; break;
}
if(m_use_reverse_api_isSet){ if(m_use_reverse_api_isSet){
isObjectUpdated = true; break; isObjectUpdated = true; break;
} }

View File

@ -90,9 +90,6 @@ public:
qint32 getIqOrder(); qint32 getIqOrder();
void setIqOrder(qint32 iq_order); void setIqOrder(qint32 iq_order);
QString* getFileRecordName();
void setFileRecordName(QString* file_record_name);
qint32 getUseReverseApi(); qint32 getUseReverseApi();
void setUseReverseApi(qint32 use_reverse_api); void setUseReverseApi(qint32 use_reverse_api);
@ -157,9 +154,6 @@ private:
qint32 iq_order; qint32 iq_order;
bool m_iq_order_isSet; bool m_iq_order_isSet;
QString* file_record_name;
bool m_file_record_name_isSet;
qint32 use_reverse_api; qint32 use_reverse_api;
bool m_use_reverse_api_isSet; bool m_use_reverse_api_isSet;

View File

@ -78,8 +78,6 @@ SWGFCDProSettings::SWGFCDProSettings() {
m_transverter_delta_frequency_isSet = false; m_transverter_delta_frequency_isSet = false;
iq_order = 0; iq_order = 0;
m_iq_order_isSet = false; m_iq_order_isSet = false;
file_record_name = nullptr;
m_file_record_name_isSet = false;
use_reverse_api = 0; use_reverse_api = 0;
m_use_reverse_api_isSet = false; m_use_reverse_api_isSet = false;
reverse_api_address = nullptr; reverse_api_address = nullptr;
@ -146,8 +144,6 @@ SWGFCDProSettings::init() {
m_transverter_delta_frequency_isSet = false; m_transverter_delta_frequency_isSet = false;
iq_order = 0; iq_order = 0;
m_iq_order_isSet = false; m_iq_order_isSet = false;
file_record_name = new QString("");
m_file_record_name_isSet = false;
use_reverse_api = 0; use_reverse_api = 0;
m_use_reverse_api_isSet = false; m_use_reverse_api_isSet = false;
reverse_api_address = new QString(""); reverse_api_address = new QString("");
@ -185,9 +181,6 @@ SWGFCDProSettings::cleanup() {
if(file_record_name != nullptr) {
delete file_record_name;
}
if(reverse_api_address != nullptr) { if(reverse_api_address != nullptr) {
delete reverse_api_address; delete reverse_api_address;
@ -257,8 +250,6 @@ SWGFCDProSettings::fromJsonObject(QJsonObject &pJson) {
::SWGSDRangel::setValue(&iq_order, pJson["iqOrder"], "qint32", ""); ::SWGSDRangel::setValue(&iq_order, pJson["iqOrder"], "qint32", "");
::SWGSDRangel::setValue(&file_record_name, pJson["fileRecordName"], "QString", "QString");
::SWGSDRangel::setValue(&use_reverse_api, pJson["useReverseAPI"], "qint32", ""); ::SWGSDRangel::setValue(&use_reverse_api, pJson["useReverseAPI"], "qint32", "");
::SWGSDRangel::setValue(&reverse_api_address, pJson["reverseAPIAddress"], "QString", "QString"); ::SWGSDRangel::setValue(&reverse_api_address, pJson["reverseAPIAddress"], "QString", "QString");
@ -358,9 +349,6 @@ SWGFCDProSettings::asJsonObject() {
if(m_iq_order_isSet){ if(m_iq_order_isSet){
obj->insert("iqOrder", QJsonValue(iq_order)); obj->insert("iqOrder", QJsonValue(iq_order));
} }
if(file_record_name != nullptr && *file_record_name != QString("")){
toJsonValue(QString("fileRecordName"), file_record_name, obj, QString("QString"));
}
if(m_use_reverse_api_isSet){ if(m_use_reverse_api_isSet){
obj->insert("useReverseAPI", QJsonValue(use_reverse_api)); obj->insert("useReverseAPI", QJsonValue(use_reverse_api));
} }
@ -627,16 +615,6 @@ SWGFCDProSettings::setIqOrder(qint32 iq_order) {
this->m_iq_order_isSet = true; this->m_iq_order_isSet = true;
} }
QString*
SWGFCDProSettings::getFileRecordName() {
return file_record_name;
}
void
SWGFCDProSettings::setFileRecordName(QString* file_record_name) {
this->file_record_name = file_record_name;
this->m_file_record_name_isSet = true;
}
qint32 qint32
SWGFCDProSettings::getUseReverseApi() { SWGFCDProSettings::getUseReverseApi() {
return use_reverse_api; return use_reverse_api;
@ -757,9 +735,6 @@ SWGFCDProSettings::isSet(){
if(m_iq_order_isSet){ if(m_iq_order_isSet){
isObjectUpdated = true; break; isObjectUpdated = true; break;
} }
if(file_record_name && *file_record_name != QString("")){
isObjectUpdated = true; break;
}
if(m_use_reverse_api_isSet){ if(m_use_reverse_api_isSet){
isObjectUpdated = true; break; isObjectUpdated = true; break;
} }

View File

@ -117,9 +117,6 @@ public:
qint32 getIqOrder(); qint32 getIqOrder();
void setIqOrder(qint32 iq_order); void setIqOrder(qint32 iq_order);
QString* getFileRecordName();
void setFileRecordName(QString* file_record_name);
qint32 getUseReverseApi(); qint32 getUseReverseApi();
void setUseReverseApi(qint32 use_reverse_api); void setUseReverseApi(qint32 use_reverse_api);
@ -211,9 +208,6 @@ private:
qint32 iq_order; qint32 iq_order;
bool m_iq_order_isSet; bool m_iq_order_isSet;
QString* file_record_name;
bool m_file_record_name_isSet;
qint32 use_reverse_api; qint32 use_reverse_api;
bool m_use_reverse_api_isSet; bool m_use_reverse_api_isSet;

View File

@ -1,108 +0,0 @@
/**
* 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.14.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;
}
}

View File

@ -1,58 +0,0 @@
/**
* 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.14.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_ */

View File

@ -52,8 +52,6 @@ SWGHackRFInputSettings::SWGHackRFInputSettings() {
m_dc_block_isSet = false; m_dc_block_isSet = false;
iq_correction = 0; iq_correction = 0;
m_iq_correction_isSet = false; m_iq_correction_isSet = false;
file_record_name = nullptr;
m_file_record_name_isSet = false;
transverter_mode = 0; transverter_mode = 0;
m_transverter_mode_isSet = false; m_transverter_mode_isSet = false;
transverter_delta_frequency = 0L; transverter_delta_frequency = 0L;
@ -100,8 +98,6 @@ SWGHackRFInputSettings::init() {
m_dc_block_isSet = false; m_dc_block_isSet = false;
iq_correction = 0; iq_correction = 0;
m_iq_correction_isSet = false; m_iq_correction_isSet = false;
file_record_name = new QString("");
m_file_record_name_isSet = false;
transverter_mode = 0; transverter_mode = 0;
m_transverter_mode_isSet = false; m_transverter_mode_isSet = false;
transverter_delta_frequency = 0L; transverter_delta_frequency = 0L;
@ -132,9 +128,6 @@ SWGHackRFInputSettings::cleanup() {
if(file_record_name != nullptr) {
delete file_record_name;
}
@ -181,8 +174,6 @@ SWGHackRFInputSettings::fromJsonObject(QJsonObject &pJson) {
::SWGSDRangel::setValue(&iq_correction, pJson["iqCorrection"], "qint32", ""); ::SWGSDRangel::setValue(&iq_correction, pJson["iqCorrection"], "qint32", "");
::SWGSDRangel::setValue(&file_record_name, pJson["fileRecordName"], "QString", "QString");
::SWGSDRangel::setValue(&transverter_mode, pJson["transverterMode"], "qint32", ""); ::SWGSDRangel::setValue(&transverter_mode, pJson["transverterMode"], "qint32", "");
::SWGSDRangel::setValue(&transverter_delta_frequency, pJson["transverterDeltaFrequency"], "qint64", ""); ::SWGSDRangel::setValue(&transverter_delta_frequency, pJson["transverterDeltaFrequency"], "qint64", "");
@ -249,9 +240,6 @@ SWGHackRFInputSettings::asJsonObject() {
if(m_iq_correction_isSet){ if(m_iq_correction_isSet){
obj->insert("iqCorrection", QJsonValue(iq_correction)); obj->insert("iqCorrection", QJsonValue(iq_correction));
} }
if(file_record_name != nullptr && *file_record_name != QString("")){
toJsonValue(QString("fileRecordName"), file_record_name, obj, QString("QString"));
}
if(m_transverter_mode_isSet){ if(m_transverter_mode_isSet){
obj->insert("transverterMode", QJsonValue(transverter_mode)); obj->insert("transverterMode", QJsonValue(transverter_mode));
} }
@ -397,16 +385,6 @@ SWGHackRFInputSettings::setIqCorrection(qint32 iq_correction) {
this->m_iq_correction_isSet = true; this->m_iq_correction_isSet = true;
} }
QString*
SWGHackRFInputSettings::getFileRecordName() {
return file_record_name;
}
void
SWGHackRFInputSettings::setFileRecordName(QString* file_record_name) {
this->file_record_name = file_record_name;
this->m_file_record_name_isSet = true;
}
qint32 qint32
SWGHackRFInputSettings::getTransverterMode() { SWGHackRFInputSettings::getTransverterMode() {
return transverter_mode; return transverter_mode;
@ -518,9 +496,6 @@ SWGHackRFInputSettings::isSet(){
if(m_iq_correction_isSet){ if(m_iq_correction_isSet){
isObjectUpdated = true; break; isObjectUpdated = true; break;
} }
if(file_record_name && *file_record_name != QString("")){
isObjectUpdated = true; break;
}
if(m_transverter_mode_isSet){ if(m_transverter_mode_isSet){
isObjectUpdated = true; break; isObjectUpdated = true; break;
} }

View File

@ -78,9 +78,6 @@ public:
qint32 getIqCorrection(); qint32 getIqCorrection();
void setIqCorrection(qint32 iq_correction); void setIqCorrection(qint32 iq_correction);
QString* getFileRecordName();
void setFileRecordName(QString* file_record_name);
qint32 getTransverterMode(); qint32 getTransverterMode();
void setTransverterMode(qint32 transverter_mode); void setTransverterMode(qint32 transverter_mode);
@ -142,9 +139,6 @@ private:
qint32 iq_correction; qint32 iq_correction;
bool m_iq_correction_isSet; bool m_iq_correction_isSet;
QString* file_record_name;
bool m_file_record_name_isSet;
qint32 transverter_mode; qint32 transverter_mode;
bool m_transverter_mode_isSet; bool m_transverter_mode_isSet;

View File

@ -1,108 +0,0 @@
/**
* 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.14.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;
}
}

View File

@ -1,58 +0,0 @@
/**
* 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.14.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_ */

View File

@ -38,8 +38,6 @@ SWGKiwiSDRSettings::SWGKiwiSDRSettings() {
m_center_frequency_isSet = false; m_center_frequency_isSet = false;
server_address = nullptr; server_address = nullptr;
m_server_address_isSet = false; m_server_address_isSet = false;
file_record_name = nullptr;
m_file_record_name_isSet = false;
use_reverse_api = 0; use_reverse_api = 0;
m_use_reverse_api_isSet = false; m_use_reverse_api_isSet = false;
reverse_api_address = nullptr; reverse_api_address = nullptr;
@ -66,8 +64,6 @@ SWGKiwiSDRSettings::init() {
m_center_frequency_isSet = false; m_center_frequency_isSet = false;
server_address = new QString(""); server_address = new QString("");
m_server_address_isSet = false; m_server_address_isSet = false;
file_record_name = new QString("");
m_file_record_name_isSet = false;
use_reverse_api = 0; use_reverse_api = 0;
m_use_reverse_api_isSet = false; m_use_reverse_api_isSet = false;
reverse_api_address = new QString(""); reverse_api_address = new QString("");
@ -87,9 +83,6 @@ SWGKiwiSDRSettings::cleanup() {
if(server_address != nullptr) { if(server_address != nullptr) {
delete server_address; delete server_address;
} }
if(file_record_name != nullptr) {
delete file_record_name;
}
if(reverse_api_address != nullptr) { if(reverse_api_address != nullptr) {
delete reverse_api_address; delete reverse_api_address;
@ -119,8 +112,6 @@ SWGKiwiSDRSettings::fromJsonObject(QJsonObject &pJson) {
::SWGSDRangel::setValue(&server_address, pJson["serverAddress"], "QString", "QString"); ::SWGSDRangel::setValue(&server_address, pJson["serverAddress"], "QString", "QString");
::SWGSDRangel::setValue(&file_record_name, pJson["fileRecordName"], "QString", "QString");
::SWGSDRangel::setValue(&use_reverse_api, pJson["useReverseAPI"], "qint32", ""); ::SWGSDRangel::setValue(&use_reverse_api, pJson["useReverseAPI"], "qint32", "");
::SWGSDRangel::setValue(&reverse_api_address, pJson["reverseAPIAddress"], "QString", "QString"); ::SWGSDRangel::setValue(&reverse_api_address, pJson["reverseAPIAddress"], "QString", "QString");
@ -160,9 +151,6 @@ SWGKiwiSDRSettings::asJsonObject() {
if(server_address != nullptr && *server_address != QString("")){ if(server_address != nullptr && *server_address != QString("")){
toJsonValue(QString("serverAddress"), server_address, obj, QString("QString")); toJsonValue(QString("serverAddress"), server_address, obj, QString("QString"));
} }
if(file_record_name != nullptr && *file_record_name != QString("")){
toJsonValue(QString("fileRecordName"), file_record_name, obj, QString("QString"));
}
if(m_use_reverse_api_isSet){ if(m_use_reverse_api_isSet){
obj->insert("useReverseAPI", QJsonValue(use_reverse_api)); obj->insert("useReverseAPI", QJsonValue(use_reverse_api));
} }
@ -229,16 +217,6 @@ SWGKiwiSDRSettings::setServerAddress(QString* server_address) {
this->m_server_address_isSet = true; this->m_server_address_isSet = true;
} }
QString*
SWGKiwiSDRSettings::getFileRecordName() {
return file_record_name;
}
void
SWGKiwiSDRSettings::setFileRecordName(QString* file_record_name) {
this->file_record_name = file_record_name;
this->m_file_record_name_isSet = true;
}
qint32 qint32
SWGKiwiSDRSettings::getUseReverseApi() { SWGKiwiSDRSettings::getUseReverseApi() {
return use_reverse_api; return use_reverse_api;
@ -299,9 +277,6 @@ SWGKiwiSDRSettings::isSet(){
if(server_address && *server_address != QString("")){ if(server_address && *server_address != QString("")){
isObjectUpdated = true; break; isObjectUpdated = true; break;
} }
if(file_record_name && *file_record_name != QString("")){
isObjectUpdated = true; break;
}
if(m_use_reverse_api_isSet){ if(m_use_reverse_api_isSet){
isObjectUpdated = true; break; isObjectUpdated = true; break;
} }

View File

@ -57,9 +57,6 @@ public:
QString* getServerAddress(); QString* getServerAddress();
void setServerAddress(QString* server_address); void setServerAddress(QString* server_address);
QString* getFileRecordName();
void setFileRecordName(QString* file_record_name);
qint32 getUseReverseApi(); qint32 getUseReverseApi();
void setUseReverseApi(qint32 use_reverse_api); void setUseReverseApi(qint32 use_reverse_api);
@ -91,9 +88,6 @@ private:
QString* server_address; QString* server_address;
bool m_server_address_isSet; bool m_server_address_isSet;
QString* file_record_name;
bool m_file_record_name_isSet;
qint32 use_reverse_api; qint32 use_reverse_api;
bool m_use_reverse_api_isSet; bool m_use_reverse_api_isSet;

View File

@ -1,108 +0,0 @@
/**
* 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.14.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;
}
}

View File

@ -1,58 +0,0 @@
/**
* 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.14.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_ */

View File

@ -72,8 +72,6 @@ SWGLimeSdrInputSettings::SWGLimeSdrInputSettings() {
m_transverter_delta_frequency_isSet = false; m_transverter_delta_frequency_isSet = false;
iq_order = 0; iq_order = 0;
m_iq_order_isSet = false; m_iq_order_isSet = false;
file_record_name = nullptr;
m_file_record_name_isSet = false;
gpio_dir = 0; gpio_dir = 0;
m_gpio_dir_isSet = false; m_gpio_dir_isSet = false;
gpio_pins = 0; gpio_pins = 0;
@ -138,8 +136,6 @@ SWGLimeSdrInputSettings::init() {
m_transverter_delta_frequency_isSet = false; m_transverter_delta_frequency_isSet = false;
iq_order = 0; iq_order = 0;
m_iq_order_isSet = false; m_iq_order_isSet = false;
file_record_name = new QString("");
m_file_record_name_isSet = false;
gpio_dir = 0; gpio_dir = 0;
m_gpio_dir_isSet = false; m_gpio_dir_isSet = false;
gpio_pins = 0; gpio_pins = 0;
@ -178,9 +174,6 @@ SWGLimeSdrInputSettings::cleanup() {
if(file_record_name != nullptr) {
delete file_record_name;
}
@ -246,8 +239,6 @@ SWGLimeSdrInputSettings::fromJsonObject(QJsonObject &pJson) {
::SWGSDRangel::setValue(&iq_order, pJson["iqOrder"], "qint32", ""); ::SWGSDRangel::setValue(&iq_order, pJson["iqOrder"], "qint32", "");
::SWGSDRangel::setValue(&file_record_name, pJson["fileRecordName"], "QString", "QString");
::SWGSDRangel::setValue(&gpio_dir, pJson["gpioDir"], "qint32", ""); ::SWGSDRangel::setValue(&gpio_dir, pJson["gpioDir"], "qint32", "");
::SWGSDRangel::setValue(&gpio_pins, pJson["gpioPins"], "qint32", ""); ::SWGSDRangel::setValue(&gpio_pins, pJson["gpioPins"], "qint32", "");
@ -342,9 +333,6 @@ SWGLimeSdrInputSettings::asJsonObject() {
if(m_iq_order_isSet){ if(m_iq_order_isSet){
obj->insert("iqOrder", QJsonValue(iq_order)); obj->insert("iqOrder", QJsonValue(iq_order));
} }
if(file_record_name != nullptr && *file_record_name != QString("")){
toJsonValue(QString("fileRecordName"), file_record_name, obj, QString("QString"));
}
if(m_gpio_dir_isSet){ if(m_gpio_dir_isSet){
obj->insert("gpioDir", QJsonValue(gpio_dir)); obj->insert("gpioDir", QJsonValue(gpio_dir));
} }
@ -587,16 +575,6 @@ SWGLimeSdrInputSettings::setIqOrder(qint32 iq_order) {
this->m_iq_order_isSet = true; this->m_iq_order_isSet = true;
} }
QString*
SWGLimeSdrInputSettings::getFileRecordName() {
return file_record_name;
}
void
SWGLimeSdrInputSettings::setFileRecordName(QString* file_record_name) {
this->file_record_name = file_record_name;
this->m_file_record_name_isSet = true;
}
qint32 qint32
SWGLimeSdrInputSettings::getGpioDir() { SWGLimeSdrInputSettings::getGpioDir() {
return gpio_dir; return gpio_dir;
@ -728,9 +706,6 @@ SWGLimeSdrInputSettings::isSet(){
if(m_iq_order_isSet){ if(m_iq_order_isSet){
isObjectUpdated = true; break; isObjectUpdated = true; break;
} }
if(file_record_name && *file_record_name != QString("")){
isObjectUpdated = true; break;
}
if(m_gpio_dir_isSet){ if(m_gpio_dir_isSet){
isObjectUpdated = true; break; isObjectUpdated = true; break;
} }

View File

@ -108,9 +108,6 @@ public:
qint32 getIqOrder(); qint32 getIqOrder();
void setIqOrder(qint32 iq_order); void setIqOrder(qint32 iq_order);
QString* getFileRecordName();
void setFileRecordName(QString* file_record_name);
qint32 getGpioDir(); qint32 getGpioDir();
void setGpioDir(qint32 gpio_dir); void setGpioDir(qint32 gpio_dir);
@ -199,9 +196,6 @@ private:
qint32 iq_order; qint32 iq_order;
bool m_iq_order_isSet; bool m_iq_order_isSet;
QString* file_record_name;
bool m_file_record_name_isSet;
qint32 gpio_dir; qint32 gpio_dir;
bool m_gpio_dir_isSet; bool m_gpio_dir_isSet;

View File

@ -1,108 +0,0 @@
/**
* 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.14.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;
}
}

View File

@ -1,58 +0,0 @@
/**
* 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.14.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_ */

View File

@ -32,8 +32,6 @@ SWGLocalInputSettings::SWGLocalInputSettings() {
m_dc_block_isSet = false; m_dc_block_isSet = false;
iq_correction = 0; iq_correction = 0;
m_iq_correction_isSet = false; m_iq_correction_isSet = false;
file_record_name = nullptr;
m_file_record_name_isSet = false;
use_reverse_api = 0; use_reverse_api = 0;
m_use_reverse_api_isSet = false; m_use_reverse_api_isSet = false;
reverse_api_address = nullptr; reverse_api_address = nullptr;
@ -54,8 +52,6 @@ SWGLocalInputSettings::init() {
m_dc_block_isSet = false; m_dc_block_isSet = false;
iq_correction = 0; iq_correction = 0;
m_iq_correction_isSet = false; m_iq_correction_isSet = false;
file_record_name = new QString("");
m_file_record_name_isSet = false;
use_reverse_api = 0; use_reverse_api = 0;
m_use_reverse_api_isSet = false; m_use_reverse_api_isSet = false;
reverse_api_address = new QString(""); reverse_api_address = new QString("");
@ -70,9 +66,6 @@ void
SWGLocalInputSettings::cleanup() { SWGLocalInputSettings::cleanup() {
if(file_record_name != nullptr) {
delete file_record_name;
}
if(reverse_api_address != nullptr) { if(reverse_api_address != nullptr) {
delete reverse_api_address; delete reverse_api_address;
@ -96,8 +89,6 @@ SWGLocalInputSettings::fromJsonObject(QJsonObject &pJson) {
::SWGSDRangel::setValue(&iq_correction, pJson["iqCorrection"], "qint32", ""); ::SWGSDRangel::setValue(&iq_correction, pJson["iqCorrection"], "qint32", "");
::SWGSDRangel::setValue(&file_record_name, pJson["fileRecordName"], "QString", "QString");
::SWGSDRangel::setValue(&use_reverse_api, pJson["useReverseAPI"], "qint32", ""); ::SWGSDRangel::setValue(&use_reverse_api, pJson["useReverseAPI"], "qint32", "");
::SWGSDRangel::setValue(&reverse_api_address, pJson["reverseAPIAddress"], "QString", "QString"); ::SWGSDRangel::setValue(&reverse_api_address, pJson["reverseAPIAddress"], "QString", "QString");
@ -128,9 +119,6 @@ SWGLocalInputSettings::asJsonObject() {
if(m_iq_correction_isSet){ if(m_iq_correction_isSet){
obj->insert("iqCorrection", QJsonValue(iq_correction)); obj->insert("iqCorrection", QJsonValue(iq_correction));
} }
if(file_record_name != nullptr && *file_record_name != QString("")){
toJsonValue(QString("fileRecordName"), file_record_name, obj, QString("QString"));
}
if(m_use_reverse_api_isSet){ if(m_use_reverse_api_isSet){
obj->insert("useReverseAPI", QJsonValue(use_reverse_api)); obj->insert("useReverseAPI", QJsonValue(use_reverse_api));
} }
@ -167,16 +155,6 @@ SWGLocalInputSettings::setIqCorrection(qint32 iq_correction) {
this->m_iq_correction_isSet = true; this->m_iq_correction_isSet = true;
} }
QString*
SWGLocalInputSettings::getFileRecordName() {
return file_record_name;
}
void
SWGLocalInputSettings::setFileRecordName(QString* file_record_name) {
this->file_record_name = file_record_name;
this->m_file_record_name_isSet = true;
}
qint32 qint32
SWGLocalInputSettings::getUseReverseApi() { SWGLocalInputSettings::getUseReverseApi() {
return use_reverse_api; return use_reverse_api;
@ -228,9 +206,6 @@ SWGLocalInputSettings::isSet(){
if(m_iq_correction_isSet){ if(m_iq_correction_isSet){
isObjectUpdated = true; break; isObjectUpdated = true; break;
} }
if(file_record_name && *file_record_name != QString("")){
isObjectUpdated = true; break;
}
if(m_use_reverse_api_isSet){ if(m_use_reverse_api_isSet){
isObjectUpdated = true; break; isObjectUpdated = true; break;
} }

View File

@ -48,9 +48,6 @@ public:
qint32 getIqCorrection(); qint32 getIqCorrection();
void setIqCorrection(qint32 iq_correction); void setIqCorrection(qint32 iq_correction);
QString* getFileRecordName();
void setFileRecordName(QString* file_record_name);
qint32 getUseReverseApi(); qint32 getUseReverseApi();
void setUseReverseApi(qint32 use_reverse_api); void setUseReverseApi(qint32 use_reverse_api);
@ -73,9 +70,6 @@ private:
qint32 iq_correction; qint32 iq_correction;
bool m_iq_correction_isSet; bool m_iq_correction_isSet;
QString* file_record_name;
bool m_file_record_name_isSet;
qint32 use_reverse_api; qint32 use_reverse_api;
bool m_use_reverse_api_isSet; bool m_use_reverse_api_isSet;

View File

@ -23,8 +23,6 @@
#include "SWGATVDemodSettings.h" #include "SWGATVDemodSettings.h"
#include "SWGATVModReport.h" #include "SWGATVModReport.h"
#include "SWGATVModSettings.h" #include "SWGATVModSettings.h"
#include "SWGAirspyActions.h"
#include "SWGAirspyHFActions.h"
#include "SWGAirspyHFReport.h" #include "SWGAirspyHFReport.h"
#include "SWGAirspyHFSettings.h" #include "SWGAirspyHFSettings.h"
#include "SWGAirspyReport.h" #include "SWGAirspyReport.h"
@ -37,10 +35,8 @@
#include "SWGBFMDemodReport.h" #include "SWGBFMDemodReport.h"
#include "SWGBFMDemodSettings.h" #include "SWGBFMDemodSettings.h"
#include "SWGBandwidth.h" #include "SWGBandwidth.h"
#include "SWGBladeRF1InputActions.h"
#include "SWGBladeRF1InputSettings.h" #include "SWGBladeRF1InputSettings.h"
#include "SWGBladeRF1OutputSettings.h" #include "SWGBladeRF1OutputSettings.h"
#include "SWGBladeRF2InputActions.h"
#include "SWGBladeRF2InputReport.h" #include "SWGBladeRF2InputReport.h"
#include "SWGBladeRF2InputSettings.h" #include "SWGBladeRF2InputSettings.h"
#include "SWGBladeRF2MIMOSettings.h" #include "SWGBladeRF2MIMOSettings.h"
@ -71,8 +67,6 @@
#include "SWGDeviceSettings.h" #include "SWGDeviceSettings.h"
#include "SWGDeviceState.h" #include "SWGDeviceState.h"
#include "SWGErrorResponse.h" #include "SWGErrorResponse.h"
#include "SWGFCDProActions.h"
#include "SWGFCDProPlusActions.h"
#include "SWGFCDProPlusSettings.h" #include "SWGFCDProPlusSettings.h"
#include "SWGFCDProSettings.h" #include "SWGFCDProSettings.h"
#include "SWGFileInputReport.h" #include "SWGFileInputReport.h"
@ -95,26 +89,22 @@
#include "SWGGLScope.h" #include "SWGGLScope.h"
#include "SWGGLSpectrum.h" #include "SWGGLSpectrum.h"
#include "SWGGain.h" #include "SWGGain.h"
#include "SWGHackRFInputActions.h"
#include "SWGHackRFInputSettings.h" #include "SWGHackRFInputSettings.h"
#include "SWGHackRFOutputSettings.h" #include "SWGHackRFOutputSettings.h"
#include "SWGInstanceChannelsResponse.h" #include "SWGInstanceChannelsResponse.h"
#include "SWGInstanceConfigResponse.h" #include "SWGInstanceConfigResponse.h"
#include "SWGInstanceDevicesResponse.h" #include "SWGInstanceDevicesResponse.h"
#include "SWGInstanceSummaryResponse.h" #include "SWGInstanceSummaryResponse.h"
#include "SWGKiwiSDRActions.h"
#include "SWGKiwiSDRReport.h" #include "SWGKiwiSDRReport.h"
#include "SWGKiwiSDRSettings.h" #include "SWGKiwiSDRSettings.h"
#include "SWGLimeRFEDevice.h" #include "SWGLimeRFEDevice.h"
#include "SWGLimeRFEDevices.h" #include "SWGLimeRFEDevices.h"
#include "SWGLimeRFEPower.h" #include "SWGLimeRFEPower.h"
#include "SWGLimeRFESettings.h" #include "SWGLimeRFESettings.h"
#include "SWGLimeSdrInputActions.h"
#include "SWGLimeSdrInputReport.h" #include "SWGLimeSdrInputReport.h"
#include "SWGLimeSdrInputSettings.h" #include "SWGLimeSdrInputSettings.h"
#include "SWGLimeSdrOutputReport.h" #include "SWGLimeSdrOutputReport.h"
#include "SWGLimeSdrOutputSettings.h" #include "SWGLimeSdrOutputSettings.h"
#include "SWGLocalInputActions.h"
#include "SWGLocalInputReport.h" #include "SWGLocalInputReport.h"
#include "SWGLocalInputSettings.h" #include "SWGLocalInputSettings.h"
#include "SWGLocalOutputReport.h" #include "SWGLocalOutputReport.h"
@ -128,10 +118,8 @@
#include "SWGNFMModReport.h" #include "SWGNFMModReport.h"
#include "SWGNFMModSettings.h" #include "SWGNFMModSettings.h"
#include "SWGNamedEnum.h" #include "SWGNamedEnum.h"
#include "SWGPerseusActions.h"
#include "SWGPerseusReport.h" #include "SWGPerseusReport.h"
#include "SWGPerseusSettings.h" #include "SWGPerseusSettings.h"
#include "SWGPlutoSdrInputActions.h"
#include "SWGPlutoSdrInputReport.h" #include "SWGPlutoSdrInputReport.h"
#include "SWGPlutoSdrInputSettings.h" #include "SWGPlutoSdrInputSettings.h"
#include "SWGPlutoSdrOutputReport.h" #include "SWGPlutoSdrOutputReport.h"
@ -149,7 +137,6 @@
#include "SWGRDSReport_altFrequencies.h" #include "SWGRDSReport_altFrequencies.h"
#include "SWGRange.h" #include "SWGRange.h"
#include "SWGRangeFloat.h" #include "SWGRangeFloat.h"
#include "SWGRemoteInputActions.h"
#include "SWGRemoteInputReport.h" #include "SWGRemoteInputReport.h"
#include "SWGRemoteInputSettings.h" #include "SWGRemoteInputSettings.h"
#include "SWGRemoteOutputReport.h" #include "SWGRemoteOutputReport.h"
@ -157,10 +144,8 @@
#include "SWGRemoteSinkSettings.h" #include "SWGRemoteSinkSettings.h"
#include "SWGRemoteSourceReport.h" #include "SWGRemoteSourceReport.h"
#include "SWGRemoteSourceSettings.h" #include "SWGRemoteSourceSettings.h"
#include "SWGRtlSdrActions.h"
#include "SWGRtlSdrReport.h" #include "SWGRtlSdrReport.h"
#include "SWGRtlSdrSettings.h" #include "SWGRtlSdrSettings.h"
#include "SWGSDRPlayActions.h"
#include "SWGSDRPlayReport.h" #include "SWGSDRPlayReport.h"
#include "SWGSDRPlaySettings.h" #include "SWGSDRPlaySettings.h"
#include "SWGSSBDemodReport.h" #include "SWGSSBDemodReport.h"
@ -171,12 +156,10 @@
#include "SWGSamplingDevice.h" #include "SWGSamplingDevice.h"
#include "SWGSoapySDRFrequencySetting.h" #include "SWGSoapySDRFrequencySetting.h"
#include "SWGSoapySDRGainSetting.h" #include "SWGSoapySDRGainSetting.h"
#include "SWGSoapySDRInputActions.h"
#include "SWGSoapySDRInputSettings.h" #include "SWGSoapySDRInputSettings.h"
#include "SWGSoapySDROutputSettings.h" #include "SWGSoapySDROutputSettings.h"
#include "SWGSoapySDRReport.h" #include "SWGSoapySDRReport.h"
#include "SWGSuccessResponse.h" #include "SWGSuccessResponse.h"
#include "SWGTestSourceActions.h"
#include "SWGTestSourceSettings.h" #include "SWGTestSourceSettings.h"
#include "SWGTraceData.h" #include "SWGTraceData.h"
#include "SWGTriggerData.h" #include "SWGTriggerData.h"
@ -188,7 +171,6 @@
#include "SWGWFMDemodSettings.h" #include "SWGWFMDemodSettings.h"
#include "SWGWFMModReport.h" #include "SWGWFMModReport.h"
#include "SWGWFMModSettings.h" #include "SWGWFMModSettings.h"
#include "SWGXtrxInputActions.h"
#include "SWGXtrxInputReport.h" #include "SWGXtrxInputReport.h"
#include "SWGXtrxInputSettings.h" #include "SWGXtrxInputSettings.h"
#include "SWGXtrxOutputReport.h" #include "SWGXtrxOutputReport.h"
@ -224,12 +206,6 @@ namespace SWGSDRangel {
if(QString("SWGATVModSettings").compare(type) == 0) { if(QString("SWGATVModSettings").compare(type) == 0) {
return new SWGATVModSettings(); 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) { if(QString("SWGAirspyHFReport").compare(type) == 0) {
return new SWGAirspyHFReport(); return new SWGAirspyHFReport();
} }
@ -266,18 +242,12 @@ namespace SWGSDRangel {
if(QString("SWGBandwidth").compare(type) == 0) { if(QString("SWGBandwidth").compare(type) == 0) {
return new SWGBandwidth(); return new SWGBandwidth();
} }
if(QString("SWGBladeRF1InputActions").compare(type) == 0) {
return new SWGBladeRF1InputActions();
}
if(QString("SWGBladeRF1InputSettings").compare(type) == 0) { if(QString("SWGBladeRF1InputSettings").compare(type) == 0) {
return new SWGBladeRF1InputSettings(); return new SWGBladeRF1InputSettings();
} }
if(QString("SWGBladeRF1OutputSettings").compare(type) == 0) { if(QString("SWGBladeRF1OutputSettings").compare(type) == 0) {
return new SWGBladeRF1OutputSettings(); return new SWGBladeRF1OutputSettings();
} }
if(QString("SWGBladeRF2InputActions").compare(type) == 0) {
return new SWGBladeRF2InputActions();
}
if(QString("SWGBladeRF2InputReport").compare(type) == 0) { if(QString("SWGBladeRF2InputReport").compare(type) == 0) {
return new SWGBladeRF2InputReport(); return new SWGBladeRF2InputReport();
} }
@ -368,12 +338,6 @@ namespace SWGSDRangel {
if(QString("SWGErrorResponse").compare(type) == 0) { if(QString("SWGErrorResponse").compare(type) == 0) {
return new SWGErrorResponse(); 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) { if(QString("SWGFCDProPlusSettings").compare(type) == 0) {
return new SWGFCDProPlusSettings(); return new SWGFCDProPlusSettings();
} }
@ -440,9 +404,6 @@ namespace SWGSDRangel {
if(QString("SWGGain").compare(type) == 0) { if(QString("SWGGain").compare(type) == 0) {
return new SWGGain(); return new SWGGain();
} }
if(QString("SWGHackRFInputActions").compare(type) == 0) {
return new SWGHackRFInputActions();
}
if(QString("SWGHackRFInputSettings").compare(type) == 0) { if(QString("SWGHackRFInputSettings").compare(type) == 0) {
return new SWGHackRFInputSettings(); return new SWGHackRFInputSettings();
} }
@ -461,9 +422,6 @@ namespace SWGSDRangel {
if(QString("SWGInstanceSummaryResponse").compare(type) == 0) { if(QString("SWGInstanceSummaryResponse").compare(type) == 0) {
return new SWGInstanceSummaryResponse(); return new SWGInstanceSummaryResponse();
} }
if(QString("SWGKiwiSDRActions").compare(type) == 0) {
return new SWGKiwiSDRActions();
}
if(QString("SWGKiwiSDRReport").compare(type) == 0) { if(QString("SWGKiwiSDRReport").compare(type) == 0) {
return new SWGKiwiSDRReport(); return new SWGKiwiSDRReport();
} }
@ -482,9 +440,6 @@ namespace SWGSDRangel {
if(QString("SWGLimeRFESettings").compare(type) == 0) { if(QString("SWGLimeRFESettings").compare(type) == 0) {
return new SWGLimeRFESettings(); return new SWGLimeRFESettings();
} }
if(QString("SWGLimeSdrInputActions").compare(type) == 0) {
return new SWGLimeSdrInputActions();
}
if(QString("SWGLimeSdrInputReport").compare(type) == 0) { if(QString("SWGLimeSdrInputReport").compare(type) == 0) {
return new SWGLimeSdrInputReport(); return new SWGLimeSdrInputReport();
} }
@ -497,9 +452,6 @@ namespace SWGSDRangel {
if(QString("SWGLimeSdrOutputSettings").compare(type) == 0) { if(QString("SWGLimeSdrOutputSettings").compare(type) == 0) {
return new SWGLimeSdrOutputSettings(); return new SWGLimeSdrOutputSettings();
} }
if(QString("SWGLocalInputActions").compare(type) == 0) {
return new SWGLocalInputActions();
}
if(QString("SWGLocalInputReport").compare(type) == 0) { if(QString("SWGLocalInputReport").compare(type) == 0) {
return new SWGLocalInputReport(); return new SWGLocalInputReport();
} }
@ -539,18 +491,12 @@ namespace SWGSDRangel {
if(QString("SWGNamedEnum").compare(type) == 0) { if(QString("SWGNamedEnum").compare(type) == 0) {
return new SWGNamedEnum(); return new SWGNamedEnum();
} }
if(QString("SWGPerseusActions").compare(type) == 0) {
return new SWGPerseusActions();
}
if(QString("SWGPerseusReport").compare(type) == 0) { if(QString("SWGPerseusReport").compare(type) == 0) {
return new SWGPerseusReport(); return new SWGPerseusReport();
} }
if(QString("SWGPerseusSettings").compare(type) == 0) { if(QString("SWGPerseusSettings").compare(type) == 0) {
return new SWGPerseusSettings(); return new SWGPerseusSettings();
} }
if(QString("SWGPlutoSdrInputActions").compare(type) == 0) {
return new SWGPlutoSdrInputActions();
}
if(QString("SWGPlutoSdrInputReport").compare(type) == 0) { if(QString("SWGPlutoSdrInputReport").compare(type) == 0) {
return new SWGPlutoSdrInputReport(); return new SWGPlutoSdrInputReport();
} }
@ -602,9 +548,6 @@ namespace SWGSDRangel {
if(QString("SWGRangeFloat").compare(type) == 0) { if(QString("SWGRangeFloat").compare(type) == 0) {
return new SWGRangeFloat(); return new SWGRangeFloat();
} }
if(QString("SWGRemoteInputActions").compare(type) == 0) {
return new SWGRemoteInputActions();
}
if(QString("SWGRemoteInputReport").compare(type) == 0) { if(QString("SWGRemoteInputReport").compare(type) == 0) {
return new SWGRemoteInputReport(); return new SWGRemoteInputReport();
} }
@ -626,18 +569,12 @@ namespace SWGSDRangel {
if(QString("SWGRemoteSourceSettings").compare(type) == 0) { if(QString("SWGRemoteSourceSettings").compare(type) == 0) {
return new SWGRemoteSourceSettings(); return new SWGRemoteSourceSettings();
} }
if(QString("SWGRtlSdrActions").compare(type) == 0) {
return new SWGRtlSdrActions();
}
if(QString("SWGRtlSdrReport").compare(type) == 0) { if(QString("SWGRtlSdrReport").compare(type) == 0) {
return new SWGRtlSdrReport(); return new SWGRtlSdrReport();
} }
if(QString("SWGRtlSdrSettings").compare(type) == 0) { if(QString("SWGRtlSdrSettings").compare(type) == 0) {
return new SWGRtlSdrSettings(); return new SWGRtlSdrSettings();
} }
if(QString("SWGSDRPlayActions").compare(type) == 0) {
return new SWGSDRPlayActions();
}
if(QString("SWGSDRPlayReport").compare(type) == 0) { if(QString("SWGSDRPlayReport").compare(type) == 0) {
return new SWGSDRPlayReport(); return new SWGSDRPlayReport();
} }
@ -668,9 +605,6 @@ namespace SWGSDRangel {
if(QString("SWGSoapySDRGainSetting").compare(type) == 0) { if(QString("SWGSoapySDRGainSetting").compare(type) == 0) {
return new SWGSoapySDRGainSetting(); return new SWGSoapySDRGainSetting();
} }
if(QString("SWGSoapySDRInputActions").compare(type) == 0) {
return new SWGSoapySDRInputActions();
}
if(QString("SWGSoapySDRInputSettings").compare(type) == 0) { if(QString("SWGSoapySDRInputSettings").compare(type) == 0) {
return new SWGSoapySDRInputSettings(); return new SWGSoapySDRInputSettings();
} }
@ -683,9 +617,6 @@ namespace SWGSDRangel {
if(QString("SWGSuccessResponse").compare(type) == 0) { if(QString("SWGSuccessResponse").compare(type) == 0) {
return new SWGSuccessResponse(); return new SWGSuccessResponse();
} }
if(QString("SWGTestSourceActions").compare(type) == 0) {
return new SWGTestSourceActions();
}
if(QString("SWGTestSourceSettings").compare(type) == 0) { if(QString("SWGTestSourceSettings").compare(type) == 0) {
return new SWGTestSourceSettings(); return new SWGTestSourceSettings();
} }
@ -719,9 +650,6 @@ namespace SWGSDRangel {
if(QString("SWGWFMModSettings").compare(type) == 0) { if(QString("SWGWFMModSettings").compare(type) == 0) {
return new SWGWFMModSettings(); return new SWGWFMModSettings();
} }
if(QString("SWGXtrxInputActions").compare(type) == 0) {
return new SWGXtrxInputActions();
}
if(QString("SWGXtrxInputReport").compare(type) == 0) { if(QString("SWGXtrxInputReport").compare(type) == 0) {
return new SWGXtrxInputReport(); return new SWGXtrxInputReport();
} }

View File

@ -1,108 +0,0 @@
/**
* 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.14.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;
}
}

View File

@ -1,58 +0,0 @@
/**
* 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.14.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_ */

View File

@ -48,8 +48,6 @@ SWGPerseusSettings::SWGPerseusSettings() {
m_transverter_delta_frequency_isSet = false; m_transverter_delta_frequency_isSet = false;
iq_order = 0; iq_order = 0;
m_iq_order_isSet = false; m_iq_order_isSet = false;
file_record_name = nullptr;
m_file_record_name_isSet = false;
attenuator = 0; attenuator = 0;
m_attenuator_isSet = false; m_attenuator_isSet = false;
use_reverse_api = 0; use_reverse_api = 0;
@ -88,8 +86,6 @@ SWGPerseusSettings::init() {
m_transverter_delta_frequency_isSet = false; m_transverter_delta_frequency_isSet = false;
iq_order = 0; iq_order = 0;
m_iq_order_isSet = false; m_iq_order_isSet = false;
file_record_name = new QString("");
m_file_record_name_isSet = false;
attenuator = 0; attenuator = 0;
m_attenuator_isSet = false; m_attenuator_isSet = false;
use_reverse_api = 0; use_reverse_api = 0;
@ -114,9 +110,6 @@ SWGPerseusSettings::cleanup() {
if(file_record_name != nullptr) {
delete file_record_name;
}
if(reverse_api_address != nullptr) { if(reverse_api_address != nullptr) {
@ -157,8 +150,6 @@ SWGPerseusSettings::fromJsonObject(QJsonObject &pJson) {
::SWGSDRangel::setValue(&iq_order, pJson["iqOrder"], "qint32", ""); ::SWGSDRangel::setValue(&iq_order, pJson["iqOrder"], "qint32", "");
::SWGSDRangel::setValue(&file_record_name, pJson["fileRecordName"], "QString", "QString");
::SWGSDRangel::setValue(&attenuator, pJson["attenuator"], "qint32", ""); ::SWGSDRangel::setValue(&attenuator, pJson["attenuator"], "qint32", "");
::SWGSDRangel::setValue(&use_reverse_api, pJson["useReverseAPI"], "qint32", ""); ::SWGSDRangel::setValue(&use_reverse_api, pJson["useReverseAPI"], "qint32", "");
@ -215,9 +206,6 @@ SWGPerseusSettings::asJsonObject() {
if(m_iq_order_isSet){ if(m_iq_order_isSet){
obj->insert("iqOrder", QJsonValue(iq_order)); obj->insert("iqOrder", QJsonValue(iq_order));
} }
if(file_record_name != nullptr && *file_record_name != QString("")){
toJsonValue(QString("fileRecordName"), file_record_name, obj, QString("QString"));
}
if(m_attenuator_isSet){ if(m_attenuator_isSet){
obj->insert("attenuator", QJsonValue(attenuator)); obj->insert("attenuator", QJsonValue(attenuator));
} }
@ -337,16 +325,6 @@ SWGPerseusSettings::setIqOrder(qint32 iq_order) {
this->m_iq_order_isSet = true; this->m_iq_order_isSet = true;
} }
QString*
SWGPerseusSettings::getFileRecordName() {
return file_record_name;
}
void
SWGPerseusSettings::setFileRecordName(QString* file_record_name) {
this->file_record_name = file_record_name;
this->m_file_record_name_isSet = true;
}
qint32 qint32
SWGPerseusSettings::getAttenuator() { SWGPerseusSettings::getAttenuator() {
return attenuator; return attenuator;
@ -432,9 +410,6 @@ SWGPerseusSettings::isSet(){
if(m_iq_order_isSet){ if(m_iq_order_isSet){
isObjectUpdated = true; break; isObjectUpdated = true; break;
} }
if(file_record_name && *file_record_name != QString("")){
isObjectUpdated = true; break;
}
if(m_attenuator_isSet){ if(m_attenuator_isSet){
isObjectUpdated = true; break; isObjectUpdated = true; break;
} }

View File

@ -72,9 +72,6 @@ public:
qint32 getIqOrder(); qint32 getIqOrder();
void setIqOrder(qint32 iq_order); void setIqOrder(qint32 iq_order);
QString* getFileRecordName();
void setFileRecordName(QString* file_record_name);
qint32 getAttenuator(); qint32 getAttenuator();
void setAttenuator(qint32 attenuator); void setAttenuator(qint32 attenuator);
@ -124,9 +121,6 @@ private:
qint32 iq_order; qint32 iq_order;
bool m_iq_order_isSet; bool m_iq_order_isSet;
QString* file_record_name;
bool m_file_record_name_isSet;
qint32 attenuator; qint32 attenuator;
bool m_attenuator_isSet; bool m_attenuator_isSet;

View File

@ -1,108 +0,0 @@
/**
* 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.14.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;
}
}

View File

@ -1,58 +0,0 @@
/**
* 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.14.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_ */

View File

@ -70,8 +70,6 @@ SWGPlutoSdrInputSettings::SWGPlutoSdrInputSettings() {
m_transverter_delta_frequency_isSet = false; m_transverter_delta_frequency_isSet = false;
iq_order = 0; iq_order = 0;
m_iq_order_isSet = false; m_iq_order_isSet = false;
file_record_name = nullptr;
m_file_record_name_isSet = false;
use_reverse_api = 0; use_reverse_api = 0;
m_use_reverse_api_isSet = false; m_use_reverse_api_isSet = false;
reverse_api_address = nullptr; reverse_api_address = nullptr;
@ -130,8 +128,6 @@ SWGPlutoSdrInputSettings::init() {
m_transverter_delta_frequency_isSet = false; m_transverter_delta_frequency_isSet = false;
iq_order = 0; iq_order = 0;
m_iq_order_isSet = false; m_iq_order_isSet = false;
file_record_name = new QString("");
m_file_record_name_isSet = false;
use_reverse_api = 0; use_reverse_api = 0;
m_use_reverse_api_isSet = false; m_use_reverse_api_isSet = false;
reverse_api_address = new QString(""); reverse_api_address = new QString("");
@ -165,9 +161,6 @@ SWGPlutoSdrInputSettings::cleanup() {
if(file_record_name != nullptr) {
delete file_record_name;
}
if(reverse_api_address != nullptr) { if(reverse_api_address != nullptr) {
delete reverse_api_address; delete reverse_api_address;
@ -229,8 +222,6 @@ SWGPlutoSdrInputSettings::fromJsonObject(QJsonObject &pJson) {
::SWGSDRangel::setValue(&iq_order, pJson["iqOrder"], "qint32", ""); ::SWGSDRangel::setValue(&iq_order, pJson["iqOrder"], "qint32", "");
::SWGSDRangel::setValue(&file_record_name, pJson["fileRecordName"], "QString", "QString");
::SWGSDRangel::setValue(&use_reverse_api, pJson["useReverseAPI"], "qint32", ""); ::SWGSDRangel::setValue(&use_reverse_api, pJson["useReverseAPI"], "qint32", "");
::SWGSDRangel::setValue(&reverse_api_address, pJson["reverseAPIAddress"], "QString", "QString"); ::SWGSDRangel::setValue(&reverse_api_address, pJson["reverseAPIAddress"], "QString", "QString");
@ -318,9 +309,6 @@ SWGPlutoSdrInputSettings::asJsonObject() {
if(m_iq_order_isSet){ if(m_iq_order_isSet){
obj->insert("iqOrder", QJsonValue(iq_order)); obj->insert("iqOrder", QJsonValue(iq_order));
} }
if(file_record_name != nullptr && *file_record_name != QString("")){
toJsonValue(QString("fileRecordName"), file_record_name, obj, QString("QString"));
}
if(m_use_reverse_api_isSet){ if(m_use_reverse_api_isSet){
obj->insert("useReverseAPI", QJsonValue(use_reverse_api)); obj->insert("useReverseAPI", QJsonValue(use_reverse_api));
} }
@ -547,16 +535,6 @@ SWGPlutoSdrInputSettings::setIqOrder(qint32 iq_order) {
this->m_iq_order_isSet = true; this->m_iq_order_isSet = true;
} }
QString*
SWGPlutoSdrInputSettings::getFileRecordName() {
return file_record_name;
}
void
SWGPlutoSdrInputSettings::setFileRecordName(QString* file_record_name) {
this->file_record_name = file_record_name;
this->m_file_record_name_isSet = true;
}
qint32 qint32
SWGPlutoSdrInputSettings::getUseReverseApi() { SWGPlutoSdrInputSettings::getUseReverseApi() {
return use_reverse_api; return use_reverse_api;
@ -665,9 +643,6 @@ SWGPlutoSdrInputSettings::isSet(){
if(m_iq_order_isSet){ if(m_iq_order_isSet){
isObjectUpdated = true; break; isObjectUpdated = true; break;
} }
if(file_record_name && *file_record_name != QString("")){
isObjectUpdated = true; break;
}
if(m_use_reverse_api_isSet){ if(m_use_reverse_api_isSet){
isObjectUpdated = true; break; isObjectUpdated = true; break;
} }

View File

@ -105,9 +105,6 @@ public:
qint32 getIqOrder(); qint32 getIqOrder();
void setIqOrder(qint32 iq_order); void setIqOrder(qint32 iq_order);
QString* getFileRecordName();
void setFileRecordName(QString* file_record_name);
qint32 getUseReverseApi(); qint32 getUseReverseApi();
void setUseReverseApi(qint32 use_reverse_api); void setUseReverseApi(qint32 use_reverse_api);
@ -187,9 +184,6 @@ private:
qint32 iq_order; qint32 iq_order;
bool m_iq_order_isSet; bool m_iq_order_isSet;
QString* file_record_name;
bool m_file_record_name_isSet;
qint32 use_reverse_api; qint32 use_reverse_api;
bool m_use_reverse_api_isSet; bool m_use_reverse_api_isSet;

View File

@ -1,108 +0,0 @@
/**
* 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.14.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;
}
}

View File

@ -1,58 +0,0 @@
/**
* 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.14.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_ */

View File

@ -40,8 +40,6 @@ SWGRemoteInputSettings::SWGRemoteInputSettings() {
m_dc_block_isSet = false; m_dc_block_isSet = false;
iq_correction = 0; iq_correction = 0;
m_iq_correction_isSet = false; m_iq_correction_isSet = false;
file_record_name = nullptr;
m_file_record_name_isSet = false;
use_reverse_api = 0; use_reverse_api = 0;
m_use_reverse_api_isSet = false; m_use_reverse_api_isSet = false;
reverse_api_address = nullptr; reverse_api_address = nullptr;
@ -70,8 +68,6 @@ SWGRemoteInputSettings::init() {
m_dc_block_isSet = false; m_dc_block_isSet = false;
iq_correction = 0; iq_correction = 0;
m_iq_correction_isSet = false; m_iq_correction_isSet = false;
file_record_name = new QString("");
m_file_record_name_isSet = false;
use_reverse_api = 0; use_reverse_api = 0;
m_use_reverse_api_isSet = false; m_use_reverse_api_isSet = false;
reverse_api_address = new QString(""); reverse_api_address = new QString("");
@ -94,9 +90,6 @@ SWGRemoteInputSettings::cleanup() {
if(file_record_name != nullptr) {
delete file_record_name;
}
if(reverse_api_address != nullptr) { if(reverse_api_address != nullptr) {
delete reverse_api_address; delete reverse_api_address;
@ -128,8 +121,6 @@ SWGRemoteInputSettings::fromJsonObject(QJsonObject &pJson) {
::SWGSDRangel::setValue(&iq_correction, pJson["iqCorrection"], "qint32", ""); ::SWGSDRangel::setValue(&iq_correction, pJson["iqCorrection"], "qint32", "");
::SWGSDRangel::setValue(&file_record_name, pJson["fileRecordName"], "QString", "QString");
::SWGSDRangel::setValue(&use_reverse_api, pJson["useReverseAPI"], "qint32", ""); ::SWGSDRangel::setValue(&use_reverse_api, pJson["useReverseAPI"], "qint32", "");
::SWGSDRangel::setValue(&reverse_api_address, pJson["reverseAPIAddress"], "QString", "QString"); ::SWGSDRangel::setValue(&reverse_api_address, pJson["reverseAPIAddress"], "QString", "QString");
@ -172,9 +163,6 @@ SWGRemoteInputSettings::asJsonObject() {
if(m_iq_correction_isSet){ if(m_iq_correction_isSet){
obj->insert("iqCorrection", QJsonValue(iq_correction)); obj->insert("iqCorrection", QJsonValue(iq_correction));
} }
if(file_record_name != nullptr && *file_record_name != QString("")){
toJsonValue(QString("fileRecordName"), file_record_name, obj, QString("QString"));
}
if(m_use_reverse_api_isSet){ if(m_use_reverse_api_isSet){
obj->insert("useReverseAPI", QJsonValue(use_reverse_api)); obj->insert("useReverseAPI", QJsonValue(use_reverse_api));
} }
@ -251,16 +239,6 @@ SWGRemoteInputSettings::setIqCorrection(qint32 iq_correction) {
this->m_iq_correction_isSet = true; this->m_iq_correction_isSet = true;
} }
QString*
SWGRemoteInputSettings::getFileRecordName() {
return file_record_name;
}
void
SWGRemoteInputSettings::setFileRecordName(QString* file_record_name) {
this->file_record_name = file_record_name;
this->m_file_record_name_isSet = true;
}
qint32 qint32
SWGRemoteInputSettings::getUseReverseApi() { SWGRemoteInputSettings::getUseReverseApi() {
return use_reverse_api; return use_reverse_api;
@ -324,9 +302,6 @@ SWGRemoteInputSettings::isSet(){
if(m_iq_correction_isSet){ if(m_iq_correction_isSet){
isObjectUpdated = true; break; isObjectUpdated = true; break;
} }
if(file_record_name && *file_record_name != QString("")){
isObjectUpdated = true; break;
}
if(m_use_reverse_api_isSet){ if(m_use_reverse_api_isSet){
isObjectUpdated = true; break; isObjectUpdated = true; break;
} }

View File

@ -60,9 +60,6 @@ public:
qint32 getIqCorrection(); qint32 getIqCorrection();
void setIqCorrection(qint32 iq_correction); void setIqCorrection(qint32 iq_correction);
QString* getFileRecordName();
void setFileRecordName(QString* file_record_name);
qint32 getUseReverseApi(); qint32 getUseReverseApi();
void setUseReverseApi(qint32 use_reverse_api); void setUseReverseApi(qint32 use_reverse_api);
@ -97,9 +94,6 @@ private:
qint32 iq_correction; qint32 iq_correction;
bool m_iq_correction_isSet; bool m_iq_correction_isSet;
QString* file_record_name;
bool m_file_record_name_isSet;
qint32 use_reverse_api; qint32 use_reverse_api;
bool m_use_reverse_api_isSet; bool m_use_reverse_api_isSet;

View File

@ -1,108 +0,0 @@
/**
* 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.14.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 "SWGRtlSdrActions.h"
#include "SWGHelpers.h"
#include <QJsonDocument>
#include <QJsonArray>
#include <QObject>
#include <QDebug>
namespace SWGSDRangel {
SWGRtlSdrActions::SWGRtlSdrActions(QString* json) {
init();
this->fromJson(*json);
}
SWGRtlSdrActions::SWGRtlSdrActions() {
record = 0;
m_record_isSet = false;
}
SWGRtlSdrActions::~SWGRtlSdrActions() {
this->cleanup();
}
void
SWGRtlSdrActions::init() {
record = 0;
m_record_isSet = false;
}
void
SWGRtlSdrActions::cleanup() {
}
SWGRtlSdrActions*
SWGRtlSdrActions::fromJson(QString &json) {
QByteArray array (json.toStdString().c_str());
QJsonDocument doc = QJsonDocument::fromJson(array);
QJsonObject jsonObject = doc.object();
this->fromJsonObject(jsonObject);
return this;
}
void
SWGRtlSdrActions::fromJsonObject(QJsonObject &pJson) {
::SWGSDRangel::setValue(&record, pJson["record"], "qint32", "");
}
QString
SWGRtlSdrActions::asJson ()
{
QJsonObject* obj = this->asJsonObject();
QJsonDocument doc(*obj);
QByteArray bytes = doc.toJson();
delete obj;
return QString(bytes);
}
QJsonObject*
SWGRtlSdrActions::asJsonObject() {
QJsonObject* obj = new QJsonObject();
if(m_record_isSet){
obj->insert("record", QJsonValue(record));
}
return obj;
}
qint32
SWGRtlSdrActions::getRecord() {
return record;
}
void
SWGRtlSdrActions::setRecord(qint32 record) {
this->record = record;
this->m_record_isSet = true;
}
bool
SWGRtlSdrActions::isSet(){
bool isObjectUpdated = false;
do{
if(m_record_isSet){
isObjectUpdated = true; break;
}
}while(false);
return isObjectUpdated;
}
}

View File

@ -1,58 +0,0 @@
/**
* 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.14.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.
*/
/*
* SWGRtlSdrActions.h
*
* RTLSDR
*/
#ifndef SWGRtlSdrActions_H_
#define SWGRtlSdrActions_H_
#include <QJsonObject>
#include "SWGObject.h"
#include "export.h"
namespace SWGSDRangel {
class SWG_API SWGRtlSdrActions: public SWGObject {
public:
SWGRtlSdrActions();
SWGRtlSdrActions(QString* json);
virtual ~SWGRtlSdrActions();
void init();
void cleanup();
virtual QString asJson () override;
virtual QJsonObject* asJsonObject() override;
virtual void fromJsonObject(QJsonObject &json) override;
virtual SWGRtlSdrActions* fromJson(QString &jsonString) override;
qint32 getRecord();
void setRecord(qint32 record);
virtual bool isSet() override;
private:
qint32 record;
bool m_record_isSet;
};
}
#endif /* SWGRtlSdrActions_H_ */

View File

@ -62,8 +62,6 @@ SWGRtlSdrSettings::SWGRtlSdrSettings() {
m_rf_bandwidth_isSet = false; m_rf_bandwidth_isSet = false;
bias_tee = 0; bias_tee = 0;
m_bias_tee_isSet = false; m_bias_tee_isSet = false;
file_record_name = nullptr;
m_file_record_name_isSet = false;
use_reverse_api = 0; use_reverse_api = 0;
m_use_reverse_api_isSet = false; m_use_reverse_api_isSet = false;
reverse_api_address = nullptr; reverse_api_address = nullptr;
@ -114,8 +112,6 @@ SWGRtlSdrSettings::init() {
m_rf_bandwidth_isSet = false; m_rf_bandwidth_isSet = false;
bias_tee = 0; bias_tee = 0;
m_bias_tee_isSet = false; m_bias_tee_isSet = false;
file_record_name = new QString("");
m_file_record_name_isSet = false;
use_reverse_api = 0; use_reverse_api = 0;
m_use_reverse_api_isSet = false; m_use_reverse_api_isSet = false;
reverse_api_address = new QString(""); reverse_api_address = new QString("");
@ -145,9 +141,6 @@ SWGRtlSdrSettings::cleanup() {
if(file_record_name != nullptr) {
delete file_record_name;
}
if(reverse_api_address != nullptr) { if(reverse_api_address != nullptr) {
delete reverse_api_address; delete reverse_api_address;
@ -201,8 +194,6 @@ SWGRtlSdrSettings::fromJsonObject(QJsonObject &pJson) {
::SWGSDRangel::setValue(&bias_tee, pJson["biasTee"], "qint32", ""); ::SWGSDRangel::setValue(&bias_tee, pJson["biasTee"], "qint32", "");
::SWGSDRangel::setValue(&file_record_name, pJson["fileRecordName"], "QString", "QString");
::SWGSDRangel::setValue(&use_reverse_api, pJson["useReverseAPI"], "qint32", ""); ::SWGSDRangel::setValue(&use_reverse_api, pJson["useReverseAPI"], "qint32", "");
::SWGSDRangel::setValue(&reverse_api_address, pJson["reverseAPIAddress"], "QString", "QString"); ::SWGSDRangel::setValue(&reverse_api_address, pJson["reverseAPIAddress"], "QString", "QString");
@ -278,9 +269,6 @@ SWGRtlSdrSettings::asJsonObject() {
if(m_bias_tee_isSet){ if(m_bias_tee_isSet){
obj->insert("biasTee", QJsonValue(bias_tee)); obj->insert("biasTee", QJsonValue(bias_tee));
} }
if(file_record_name != nullptr && *file_record_name != QString("")){
toJsonValue(QString("fileRecordName"), file_record_name, obj, QString("QString"));
}
if(m_use_reverse_api_isSet){ if(m_use_reverse_api_isSet){
obj->insert("useReverseAPI", QJsonValue(use_reverse_api)); obj->insert("useReverseAPI", QJsonValue(use_reverse_api));
} }
@ -467,16 +455,6 @@ SWGRtlSdrSettings::setBiasTee(qint32 bias_tee) {
this->m_bias_tee_isSet = true; this->m_bias_tee_isSet = true;
} }
QString*
SWGRtlSdrSettings::getFileRecordName() {
return file_record_name;
}
void
SWGRtlSdrSettings::setFileRecordName(QString* file_record_name) {
this->file_record_name = file_record_name;
this->m_file_record_name_isSet = true;
}
qint32 qint32
SWGRtlSdrSettings::getUseReverseApi() { SWGRtlSdrSettings::getUseReverseApi() {
return use_reverse_api; return use_reverse_api;
@ -573,9 +551,6 @@ SWGRtlSdrSettings::isSet(){
if(m_bias_tee_isSet){ if(m_bias_tee_isSet){
isObjectUpdated = true; break; isObjectUpdated = true; break;
} }
if(file_record_name && *file_record_name != QString("")){
isObjectUpdated = true; break;
}
if(m_use_reverse_api_isSet){ if(m_use_reverse_api_isSet){
isObjectUpdated = true; break; isObjectUpdated = true; break;
} }

View File

@ -93,9 +93,6 @@ public:
qint32 getBiasTee(); qint32 getBiasTee();
void setBiasTee(qint32 bias_tee); void setBiasTee(qint32 bias_tee);
QString* getFileRecordName();
void setFileRecordName(QString* file_record_name);
qint32 getUseReverseApi(); qint32 getUseReverseApi();
void setUseReverseApi(qint32 use_reverse_api); void setUseReverseApi(qint32 use_reverse_api);
@ -163,9 +160,6 @@ private:
qint32 bias_tee; qint32 bias_tee;
bool m_bias_tee_isSet; bool m_bias_tee_isSet;
QString* file_record_name;
bool m_file_record_name_isSet;
qint32 use_reverse_api; qint32 use_reverse_api;
bool m_use_reverse_api_isSet; bool m_use_reverse_api_isSet;

View File

@ -1,108 +0,0 @@
/**
* 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.14.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;
}
}

View File

@ -1,58 +0,0 @@
/**
* 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.14.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_ */

View File

@ -60,8 +60,6 @@ SWGSDRPlaySettings::SWGSDRPlaySettings() {
m_baseband_gain_isSet = false; m_baseband_gain_isSet = false;
iq_order = 0; iq_order = 0;
m_iq_order_isSet = false; m_iq_order_isSet = false;
file_record_name = nullptr;
m_file_record_name_isSet = false;
use_reverse_api = 0; use_reverse_api = 0;
m_use_reverse_api_isSet = false; m_use_reverse_api_isSet = false;
reverse_api_address = nullptr; reverse_api_address = nullptr;
@ -110,8 +108,6 @@ SWGSDRPlaySettings::init() {
m_baseband_gain_isSet = false; m_baseband_gain_isSet = false;
iq_order = 0; iq_order = 0;
m_iq_order_isSet = false; m_iq_order_isSet = false;
file_record_name = new QString("");
m_file_record_name_isSet = false;
use_reverse_api = 0; use_reverse_api = 0;
m_use_reverse_api_isSet = false; m_use_reverse_api_isSet = false;
reverse_api_address = new QString(""); reverse_api_address = new QString("");
@ -140,9 +136,6 @@ SWGSDRPlaySettings::cleanup() {
if(file_record_name != nullptr) {
delete file_record_name;
}
if(reverse_api_address != nullptr) { if(reverse_api_address != nullptr) {
delete reverse_api_address; delete reverse_api_address;
@ -194,8 +187,6 @@ SWGSDRPlaySettings::fromJsonObject(QJsonObject &pJson) {
::SWGSDRangel::setValue(&iq_order, pJson["iqOrder"], "qint32", ""); ::SWGSDRangel::setValue(&iq_order, pJson["iqOrder"], "qint32", "");
::SWGSDRangel::setValue(&file_record_name, pJson["fileRecordName"], "QString", "QString");
::SWGSDRangel::setValue(&use_reverse_api, pJson["useReverseAPI"], "qint32", ""); ::SWGSDRangel::setValue(&use_reverse_api, pJson["useReverseAPI"], "qint32", "");
::SWGSDRangel::setValue(&reverse_api_address, pJson["reverseAPIAddress"], "QString", "QString"); ::SWGSDRangel::setValue(&reverse_api_address, pJson["reverseAPIAddress"], "QString", "QString");
@ -268,9 +259,6 @@ SWGSDRPlaySettings::asJsonObject() {
if(m_iq_order_isSet){ if(m_iq_order_isSet){
obj->insert("iqOrder", QJsonValue(iq_order)); obj->insert("iqOrder", QJsonValue(iq_order));
} }
if(file_record_name != nullptr && *file_record_name != QString("")){
toJsonValue(QString("fileRecordName"), file_record_name, obj, QString("QString"));
}
if(m_use_reverse_api_isSet){ if(m_use_reverse_api_isSet){
obj->insert("useReverseAPI", QJsonValue(use_reverse_api)); obj->insert("useReverseAPI", QJsonValue(use_reverse_api));
} }
@ -447,16 +435,6 @@ SWGSDRPlaySettings::setIqOrder(qint32 iq_order) {
this->m_iq_order_isSet = true; this->m_iq_order_isSet = true;
} }
QString*
SWGSDRPlaySettings::getFileRecordName() {
return file_record_name;
}
void
SWGSDRPlaySettings::setFileRecordName(QString* file_record_name) {
this->file_record_name = file_record_name;
this->m_file_record_name_isSet = true;
}
qint32 qint32
SWGSDRPlaySettings::getUseReverseApi() { SWGSDRPlaySettings::getUseReverseApi() {
return use_reverse_api; return use_reverse_api;
@ -550,9 +528,6 @@ SWGSDRPlaySettings::isSet(){
if(m_iq_order_isSet){ if(m_iq_order_isSet){
isObjectUpdated = true; break; isObjectUpdated = true; break;
} }
if(file_record_name && *file_record_name != QString("")){
isObjectUpdated = true; break;
}
if(m_use_reverse_api_isSet){ if(m_use_reverse_api_isSet){
isObjectUpdated = true; break; isObjectUpdated = true; break;
} }

View File

@ -90,9 +90,6 @@ public:
qint32 getIqOrder(); qint32 getIqOrder();
void setIqOrder(qint32 iq_order); void setIqOrder(qint32 iq_order);
QString* getFileRecordName();
void setFileRecordName(QString* file_record_name);
qint32 getUseReverseApi(); qint32 getUseReverseApi();
void setUseReverseApi(qint32 use_reverse_api); void setUseReverseApi(qint32 use_reverse_api);
@ -157,9 +154,6 @@ private:
qint32 iq_order; qint32 iq_order;
bool m_iq_order_isSet; bool m_iq_order_isSet;
QString* file_record_name;
bool m_file_record_name_isSet;
qint32 use_reverse_api; qint32 use_reverse_api;
bool m_use_reverse_api_isSet; bool m_use_reverse_api_isSet;

View File

@ -1,108 +0,0 @@
/**
* 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.14.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;
}
}

View File

@ -1,58 +0,0 @@
/**
* 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.14.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_ */

View File

@ -48,8 +48,6 @@ SWGSoapySDRInputSettings::SWGSoapySDRInputSettings() {
m_transverter_delta_frequency_isSet = false; m_transverter_delta_frequency_isSet = false;
iq_order = 0; iq_order = 0;
m_iq_order_isSet = false; m_iq_order_isSet = false;
file_record_name = nullptr;
m_file_record_name_isSet = false;
antenna = nullptr; antenna = nullptr;
m_antenna_isSet = false; m_antenna_isSet = false;
bandwidth = 0; bandwidth = 0;
@ -110,8 +108,6 @@ SWGSoapySDRInputSettings::init() {
m_transverter_delta_frequency_isSet = false; m_transverter_delta_frequency_isSet = false;
iq_order = 0; iq_order = 0;
m_iq_order_isSet = false; m_iq_order_isSet = false;
file_record_name = new QString("");
m_file_record_name_isSet = false;
antenna = new QString(""); antenna = new QString("");
m_antenna_isSet = false; m_antenna_isSet = false;
bandwidth = 0; bandwidth = 0;
@ -158,9 +154,6 @@ SWGSoapySDRInputSettings::cleanup() {
if(file_record_name != nullptr) {
delete file_record_name;
}
if(antenna != nullptr) { if(antenna != nullptr) {
delete antenna; delete antenna;
} }
@ -242,8 +235,6 @@ SWGSoapySDRInputSettings::fromJsonObject(QJsonObject &pJson) {
::SWGSDRangel::setValue(&iq_order, pJson["iqOrder"], "qint32", ""); ::SWGSDRangel::setValue(&iq_order, pJson["iqOrder"], "qint32", "");
::SWGSDRangel::setValue(&file_record_name, pJson["fileRecordName"], "QString", "QString");
::SWGSDRangel::setValue(&antenna, pJson["antenna"], "QString", "QString"); ::SWGSDRangel::setValue(&antenna, pJson["antenna"], "QString", "QString");
::SWGSDRangel::setValue(&bandwidth, pJson["bandwidth"], "qint32", ""); ::SWGSDRangel::setValue(&bandwidth, pJson["bandwidth"], "qint32", "");
@ -322,9 +313,6 @@ SWGSoapySDRInputSettings::asJsonObject() {
if(m_iq_order_isSet){ if(m_iq_order_isSet){
obj->insert("iqOrder", QJsonValue(iq_order)); obj->insert("iqOrder", QJsonValue(iq_order));
} }
if(file_record_name != nullptr && *file_record_name != QString("")){
toJsonValue(QString("fileRecordName"), file_record_name, obj, QString("QString"));
}
if(antenna != nullptr && *antenna != QString("")){ if(antenna != nullptr && *antenna != QString("")){
toJsonValue(QString("antenna"), antenna, obj, QString("QString")); toJsonValue(QString("antenna"), antenna, obj, QString("QString"));
} }
@ -477,16 +465,6 @@ SWGSoapySDRInputSettings::setIqOrder(qint32 iq_order) {
this->m_iq_order_isSet = true; this->m_iq_order_isSet = true;
} }
QString*
SWGSoapySDRInputSettings::getFileRecordName() {
return file_record_name;
}
void
SWGSoapySDRInputSettings::setFileRecordName(QString* file_record_name) {
this->file_record_name = file_record_name;
this->m_file_record_name_isSet = true;
}
QString* QString*
SWGSoapySDRInputSettings::getAntenna() { SWGSoapySDRInputSettings::getAntenna() {
return antenna; return antenna;
@ -682,9 +660,6 @@ SWGSoapySDRInputSettings::isSet(){
if(m_iq_order_isSet){ if(m_iq_order_isSet){
isObjectUpdated = true; break; isObjectUpdated = true; break;
} }
if(file_record_name && *file_record_name != QString("")){
isObjectUpdated = true; break;
}
if(antenna && *antenna != QString("")){ if(antenna && *antenna != QString("")){
isObjectUpdated = true; break; isObjectUpdated = true; break;
} }

View File

@ -75,9 +75,6 @@ public:
qint32 getIqOrder(); qint32 getIqOrder();
void setIqOrder(qint32 iq_order); void setIqOrder(qint32 iq_order);
QString* getFileRecordName();
void setFileRecordName(QString* file_record_name);
QString* getAntenna(); QString* getAntenna();
void setAntenna(QString* antenna); void setAntenna(QString* antenna);
@ -160,9 +157,6 @@ private:
qint32 iq_order; qint32 iq_order;
bool m_iq_order_isSet; bool m_iq_order_isSet;
QString* file_record_name;
bool m_file_record_name_isSet;
QString* antenna; QString* antenna;
bool m_antenna_isSet; bool m_antenna_isSet;

View File

@ -1,233 +0,0 @@
/**
* 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.11.6
* 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 "SWGTestMISettings.h"
#include "SWGHelpers.h"
#include <QJsonDocument>
#include <QJsonArray>
#include <QObject>
#include <QDebug>
namespace SWGSDRangel {
SWGTestMISettings::SWGTestMISettings(QString* json) {
init();
this->fromJson(*json);
}
SWGTestMISettings::SWGTestMISettings() {
file_record_name = nullptr;
m_file_record_name_isSet = false;
use_reverse_api = 0;
m_use_reverse_api_isSet = false;
reverse_api_address = nullptr;
m_reverse_api_address_isSet = false;
reverse_api_port = 0;
m_reverse_api_port_isSet = false;
reverse_api_device_index = 0;
m_reverse_api_device_index_isSet = false;
streams = nullptr;
m_streams_isSet = false;
}
SWGTestMISettings::~SWGTestMISettings() {
this->cleanup();
}
void
SWGTestMISettings::init() {
file_record_name = new QString("");
m_file_record_name_isSet = false;
use_reverse_api = 0;
m_use_reverse_api_isSet = false;
reverse_api_address = new QString("");
m_reverse_api_address_isSet = false;
reverse_api_port = 0;
m_reverse_api_port_isSet = false;
reverse_api_device_index = 0;
m_reverse_api_device_index_isSet = false;
streams = new QList<SWGTestMiStreamSettings*>();
m_streams_isSet = false;
}
void
SWGTestMISettings::cleanup() {
if(file_record_name != nullptr) {
delete file_record_name;
}
if(reverse_api_address != nullptr) {
delete reverse_api_address;
}
if(streams != nullptr) {
auto arr = streams;
for(auto o: *arr) {
delete o;
}
delete streams;
}
}
SWGTestMISettings*
SWGTestMISettings::fromJson(QString &json) {
QByteArray array (json.toStdString().c_str());
QJsonDocument doc = QJsonDocument::fromJson(array);
QJsonObject jsonObject = doc.object();
this->fromJsonObject(jsonObject);
return this;
}
void
SWGTestMISettings::fromJsonObject(QJsonObject &pJson) {
::SWGSDRangel::setValue(&file_record_name, pJson["fileRecordName"], "QString", "QString");
::SWGSDRangel::setValue(&use_reverse_api, pJson["useReverseAPI"], "qint32", "");
::SWGSDRangel::setValue(&reverse_api_address, pJson["reverseAPIAddress"], "QString", "QString");
::SWGSDRangel::setValue(&reverse_api_port, pJson["reverseAPIPort"], "qint32", "");
::SWGSDRangel::setValue(&reverse_api_device_index, pJson["reverseAPIDeviceIndex"], "qint32", "");
::SWGSDRangel::setValue(&streams, pJson["streams"], "QList", "SWGTestMiStreamSettings");
}
QString
SWGTestMISettings::asJson ()
{
QJsonObject* obj = this->asJsonObject();
QJsonDocument doc(*obj);
QByteArray bytes = doc.toJson();
delete obj;
return QString(bytes);
}
QJsonObject*
SWGTestMISettings::asJsonObject() {
QJsonObject* obj = new QJsonObject();
if(file_record_name != nullptr && *file_record_name != QString("")){
toJsonValue(QString("fileRecordName"), file_record_name, obj, QString("QString"));
}
if(m_use_reverse_api_isSet){
obj->insert("useReverseAPI", QJsonValue(use_reverse_api));
}
if(reverse_api_address != nullptr && *reverse_api_address != QString("")){
toJsonValue(QString("reverseAPIAddress"), reverse_api_address, obj, QString("QString"));
}
if(m_reverse_api_port_isSet){
obj->insert("reverseAPIPort", QJsonValue(reverse_api_port));
}
if(m_reverse_api_device_index_isSet){
obj->insert("reverseAPIDeviceIndex", QJsonValue(reverse_api_device_index));
}
if(streams && streams->size() > 0){
toJsonArray((QList<void*>*)streams, obj, "streams", "SWGTestMiStreamSettings");
}
return obj;
}
QString*
SWGTestMISettings::getFileRecordName() {
return file_record_name;
}
void
SWGTestMISettings::setFileRecordName(QString* file_record_name) {
this->file_record_name = file_record_name;
this->m_file_record_name_isSet = true;
}
qint32
SWGTestMISettings::getUseReverseApi() {
return use_reverse_api;
}
void
SWGTestMISettings::setUseReverseApi(qint32 use_reverse_api) {
this->use_reverse_api = use_reverse_api;
this->m_use_reverse_api_isSet = true;
}
QString*
SWGTestMISettings::getReverseApiAddress() {
return reverse_api_address;
}
void
SWGTestMISettings::setReverseApiAddress(QString* reverse_api_address) {
this->reverse_api_address = reverse_api_address;
this->m_reverse_api_address_isSet = true;
}
qint32
SWGTestMISettings::getReverseApiPort() {
return reverse_api_port;
}
void
SWGTestMISettings::setReverseApiPort(qint32 reverse_api_port) {
this->reverse_api_port = reverse_api_port;
this->m_reverse_api_port_isSet = true;
}
qint32
SWGTestMISettings::getReverseApiDeviceIndex() {
return reverse_api_device_index;
}
void
SWGTestMISettings::setReverseApiDeviceIndex(qint32 reverse_api_device_index) {
this->reverse_api_device_index = reverse_api_device_index;
this->m_reverse_api_device_index_isSet = true;
}
QList<SWGTestMiStreamSettings*>*
SWGTestMISettings::getStreams() {
return streams;
}
void
SWGTestMISettings::setStreams(QList<SWGTestMiStreamSettings*>* streams) {
this->streams = streams;
this->m_streams_isSet = true;
}
bool
SWGTestMISettings::isSet(){
bool isObjectUpdated = false;
do{
if(file_record_name && *file_record_name != QString("")){
isObjectUpdated = true; break;
}
if(m_use_reverse_api_isSet){
isObjectUpdated = true; break;
}
if(reverse_api_address && *reverse_api_address != QString("")){
isObjectUpdated = true; break;
}
if(m_reverse_api_port_isSet){
isObjectUpdated = true; break;
}
if(m_reverse_api_device_index_isSet){
isObjectUpdated = true; break;
}
if(streams && (streams->size() > 0)){
isObjectUpdated = true; break;
}
}while(false);
return isObjectUpdated;
}
}

View File

@ -1,91 +0,0 @@
/**
* 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.11.6
* 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.
*/
/*
* SWGTestMISettings.h
*
* TestMISettings
*/
#ifndef SWGTestMISettings_H_
#define SWGTestMISettings_H_
#include <QJsonObject>
#include "SWGTestMiStreamSettings.h"
#include <QList>
#include <QString>
#include "SWGObject.h"
#include "export.h"
namespace SWGSDRangel {
class SWG_API SWGTestMISettings: public SWGObject {
public:
SWGTestMISettings();
SWGTestMISettings(QString* json);
virtual ~SWGTestMISettings();
void init();
void cleanup();
virtual QString asJson () override;
virtual QJsonObject* asJsonObject() override;
virtual void fromJsonObject(QJsonObject &json) override;
virtual SWGTestMISettings* fromJson(QString &jsonString) override;
QString* getFileRecordName();
void setFileRecordName(QString* file_record_name);
qint32 getUseReverseApi();
void setUseReverseApi(qint32 use_reverse_api);
QString* getReverseApiAddress();
void setReverseApiAddress(QString* reverse_api_address);
qint32 getReverseApiPort();
void setReverseApiPort(qint32 reverse_api_port);
qint32 getReverseApiDeviceIndex();
void setReverseApiDeviceIndex(qint32 reverse_api_device_index);
QList<SWGTestMiStreamSettings*>* getStreams();
void setStreams(QList<SWGTestMiStreamSettings*>* streams);
virtual bool isSet() override;
private:
QString* file_record_name;
bool m_file_record_name_isSet;
qint32 use_reverse_api;
bool m_use_reverse_api_isSet;
QString* reverse_api_address;
bool m_reverse_api_address_isSet;
qint32 reverse_api_port;
bool m_reverse_api_port_isSet;
qint32 reverse_api_device_index;
bool m_reverse_api_device_index_isSet;
QList<SWGTestMiStreamSettings*>* streams;
bool m_streams_isSet;
};
}
#endif /* SWGTestMISettings_H_ */

View File

@ -1,476 +0,0 @@
/**
* 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.11.6
* 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 "SWGTestMiStreamSettings.h"
#include "SWGHelpers.h"
#include <QJsonDocument>
#include <QJsonArray>
#include <QObject>
#include <QDebug>
namespace SWGSDRangel {
SWGTestMiStreamSettings::SWGTestMiStreamSettings(QString* json) {
init();
this->fromJson(*json);
}
SWGTestMiStreamSettings::SWGTestMiStreamSettings() {
stream_index = 0;
m_stream_index_isSet = false;
center_frequency = 0;
m_center_frequency_isSet = false;
frequency_shift = 0;
m_frequency_shift_isSet = false;
sample_rate = 0;
m_sample_rate_isSet = false;
log2_decim = 0;
m_log2_decim_isSet = false;
fc_pos = 0;
m_fc_pos_isSet = false;
sample_size_index = 0;
m_sample_size_index_isSet = false;
amplitude_bits = 0;
m_amplitude_bits_isSet = false;
auto_corr_options = 0;
m_auto_corr_options_isSet = false;
modulation = 0;
m_modulation_isSet = false;
modulation_tone = 0;
m_modulation_tone_isSet = false;
am_modulation = 0;
m_am_modulation_isSet = false;
fm_deviation = 0;
m_fm_deviation_isSet = false;
dc_factor = 0.0f;
m_dc_factor_isSet = false;
i_factor = 0.0f;
m_i_factor_isSet = false;
q_factor = 0.0f;
m_q_factor_isSet = false;
phase_imbalance = 0.0f;
m_phase_imbalance_isSet = false;
}
SWGTestMiStreamSettings::~SWGTestMiStreamSettings() {
this->cleanup();
}
void
SWGTestMiStreamSettings::init() {
stream_index = 0;
m_stream_index_isSet = false;
center_frequency = 0;
m_center_frequency_isSet = false;
frequency_shift = 0;
m_frequency_shift_isSet = false;
sample_rate = 0;
m_sample_rate_isSet = false;
log2_decim = 0;
m_log2_decim_isSet = false;
fc_pos = 0;
m_fc_pos_isSet = false;
sample_size_index = 0;
m_sample_size_index_isSet = false;
amplitude_bits = 0;
m_amplitude_bits_isSet = false;
auto_corr_options = 0;
m_auto_corr_options_isSet = false;
modulation = 0;
m_modulation_isSet = false;
modulation_tone = 0;
m_modulation_tone_isSet = false;
am_modulation = 0;
m_am_modulation_isSet = false;
fm_deviation = 0;
m_fm_deviation_isSet = false;
dc_factor = 0.0f;
m_dc_factor_isSet = false;
i_factor = 0.0f;
m_i_factor_isSet = false;
q_factor = 0.0f;
m_q_factor_isSet = false;
phase_imbalance = 0.0f;
m_phase_imbalance_isSet = false;
}
void
SWGTestMiStreamSettings::cleanup() {
}
SWGTestMiStreamSettings*
SWGTestMiStreamSettings::fromJson(QString &json) {
QByteArray array (json.toStdString().c_str());
QJsonDocument doc = QJsonDocument::fromJson(array);
QJsonObject jsonObject = doc.object();
this->fromJsonObject(jsonObject);
return this;
}
void
SWGTestMiStreamSettings::fromJsonObject(QJsonObject &pJson) {
::SWGSDRangel::setValue(&stream_index, pJson["streamIndex"], "qint32", "");
::SWGSDRangel::setValue(&center_frequency, pJson["centerFrequency"], "qint32", "");
::SWGSDRangel::setValue(&frequency_shift, pJson["frequencyShift"], "qint32", "");
::SWGSDRangel::setValue(&sample_rate, pJson["sampleRate"], "qint32", "");
::SWGSDRangel::setValue(&log2_decim, pJson["log2Decim"], "qint32", "");
::SWGSDRangel::setValue(&fc_pos, pJson["fcPos"], "qint32", "");
::SWGSDRangel::setValue(&sample_size_index, pJson["sampleSizeIndex"], "qint32", "");
::SWGSDRangel::setValue(&amplitude_bits, pJson["amplitudeBits"], "qint32", "");
::SWGSDRangel::setValue(&auto_corr_options, pJson["autoCorrOptions"], "qint32", "");
::SWGSDRangel::setValue(&modulation, pJson["modulation"], "qint32", "");
::SWGSDRangel::setValue(&modulation_tone, pJson["modulationTone"], "qint32", "");
::SWGSDRangel::setValue(&am_modulation, pJson["amModulation"], "qint32", "");
::SWGSDRangel::setValue(&fm_deviation, pJson["fmDeviation"], "qint32", "");
::SWGSDRangel::setValue(&dc_factor, pJson["dcFactor"], "float", "");
::SWGSDRangel::setValue(&i_factor, pJson["iFactor"], "float", "");
::SWGSDRangel::setValue(&q_factor, pJson["qFactor"], "float", "");
::SWGSDRangel::setValue(&phase_imbalance, pJson["phaseImbalance"], "float", "");
}
QString
SWGTestMiStreamSettings::asJson ()
{
QJsonObject* obj = this->asJsonObject();
QJsonDocument doc(*obj);
QByteArray bytes = doc.toJson();
delete obj;
return QString(bytes);
}
QJsonObject*
SWGTestMiStreamSettings::asJsonObject() {
QJsonObject* obj = new QJsonObject();
if(m_stream_index_isSet){
obj->insert("streamIndex", QJsonValue(stream_index));
}
if(m_center_frequency_isSet){
obj->insert("centerFrequency", QJsonValue(center_frequency));
}
if(m_frequency_shift_isSet){
obj->insert("frequencyShift", QJsonValue(frequency_shift));
}
if(m_sample_rate_isSet){
obj->insert("sampleRate", QJsonValue(sample_rate));
}
if(m_log2_decim_isSet){
obj->insert("log2Decim", QJsonValue(log2_decim));
}
if(m_fc_pos_isSet){
obj->insert("fcPos", QJsonValue(fc_pos));
}
if(m_sample_size_index_isSet){
obj->insert("sampleSizeIndex", QJsonValue(sample_size_index));
}
if(m_amplitude_bits_isSet){
obj->insert("amplitudeBits", QJsonValue(amplitude_bits));
}
if(m_auto_corr_options_isSet){
obj->insert("autoCorrOptions", QJsonValue(auto_corr_options));
}
if(m_modulation_isSet){
obj->insert("modulation", QJsonValue(modulation));
}
if(m_modulation_tone_isSet){
obj->insert("modulationTone", QJsonValue(modulation_tone));
}
if(m_am_modulation_isSet){
obj->insert("amModulation", QJsonValue(am_modulation));
}
if(m_fm_deviation_isSet){
obj->insert("fmDeviation", QJsonValue(fm_deviation));
}
if(m_dc_factor_isSet){
obj->insert("dcFactor", QJsonValue(dc_factor));
}
if(m_i_factor_isSet){
obj->insert("iFactor", QJsonValue(i_factor));
}
if(m_q_factor_isSet){
obj->insert("qFactor", QJsonValue(q_factor));
}
if(m_phase_imbalance_isSet){
obj->insert("phaseImbalance", QJsonValue(phase_imbalance));
}
return obj;
}
qint32
SWGTestMiStreamSettings::getStreamIndex() {
return stream_index;
}
void
SWGTestMiStreamSettings::setStreamIndex(qint32 stream_index) {
this->stream_index = stream_index;
this->m_stream_index_isSet = true;
}
qint32
SWGTestMiStreamSettings::getCenterFrequency() {
return center_frequency;
}
void
SWGTestMiStreamSettings::setCenterFrequency(qint32 center_frequency) {
this->center_frequency = center_frequency;
this->m_center_frequency_isSet = true;
}
qint32
SWGTestMiStreamSettings::getFrequencyShift() {
return frequency_shift;
}
void
SWGTestMiStreamSettings::setFrequencyShift(qint32 frequency_shift) {
this->frequency_shift = frequency_shift;
this->m_frequency_shift_isSet = true;
}
qint32
SWGTestMiStreamSettings::getSampleRate() {
return sample_rate;
}
void
SWGTestMiStreamSettings::setSampleRate(qint32 sample_rate) {
this->sample_rate = sample_rate;
this->m_sample_rate_isSet = true;
}
qint32
SWGTestMiStreamSettings::getLog2Decim() {
return log2_decim;
}
void
SWGTestMiStreamSettings::setLog2Decim(qint32 log2_decim) {
this->log2_decim = log2_decim;
this->m_log2_decim_isSet = true;
}
qint32
SWGTestMiStreamSettings::getFcPos() {
return fc_pos;
}
void
SWGTestMiStreamSettings::setFcPos(qint32 fc_pos) {
this->fc_pos = fc_pos;
this->m_fc_pos_isSet = true;
}
qint32
SWGTestMiStreamSettings::getSampleSizeIndex() {
return sample_size_index;
}
void
SWGTestMiStreamSettings::setSampleSizeIndex(qint32 sample_size_index) {
this->sample_size_index = sample_size_index;
this->m_sample_size_index_isSet = true;
}
qint32
SWGTestMiStreamSettings::getAmplitudeBits() {
return amplitude_bits;
}
void
SWGTestMiStreamSettings::setAmplitudeBits(qint32 amplitude_bits) {
this->amplitude_bits = amplitude_bits;
this->m_amplitude_bits_isSet = true;
}
qint32
SWGTestMiStreamSettings::getAutoCorrOptions() {
return auto_corr_options;
}
void
SWGTestMiStreamSettings::setAutoCorrOptions(qint32 auto_corr_options) {
this->auto_corr_options = auto_corr_options;
this->m_auto_corr_options_isSet = true;
}
qint32
SWGTestMiStreamSettings::getModulation() {
return modulation;
}
void
SWGTestMiStreamSettings::setModulation(qint32 modulation) {
this->modulation = modulation;
this->m_modulation_isSet = true;
}
qint32
SWGTestMiStreamSettings::getModulationTone() {
return modulation_tone;
}
void
SWGTestMiStreamSettings::setModulationTone(qint32 modulation_tone) {
this->modulation_tone = modulation_tone;
this->m_modulation_tone_isSet = true;
}
qint32
SWGTestMiStreamSettings::getAmModulation() {
return am_modulation;
}
void
SWGTestMiStreamSettings::setAmModulation(qint32 am_modulation) {
this->am_modulation = am_modulation;
this->m_am_modulation_isSet = true;
}
qint32
SWGTestMiStreamSettings::getFmDeviation() {
return fm_deviation;
}
void
SWGTestMiStreamSettings::setFmDeviation(qint32 fm_deviation) {
this->fm_deviation = fm_deviation;
this->m_fm_deviation_isSet = true;
}
float
SWGTestMiStreamSettings::getDcFactor() {
return dc_factor;
}
void
SWGTestMiStreamSettings::setDcFactor(float dc_factor) {
this->dc_factor = dc_factor;
this->m_dc_factor_isSet = true;
}
float
SWGTestMiStreamSettings::getIFactor() {
return i_factor;
}
void
SWGTestMiStreamSettings::setIFactor(float i_factor) {
this->i_factor = i_factor;
this->m_i_factor_isSet = true;
}
float
SWGTestMiStreamSettings::getQFactor() {
return q_factor;
}
void
SWGTestMiStreamSettings::setQFactor(float q_factor) {
this->q_factor = q_factor;
this->m_q_factor_isSet = true;
}
float
SWGTestMiStreamSettings::getPhaseImbalance() {
return phase_imbalance;
}
void
SWGTestMiStreamSettings::setPhaseImbalance(float phase_imbalance) {
this->phase_imbalance = phase_imbalance;
this->m_phase_imbalance_isSet = true;
}
bool
SWGTestMiStreamSettings::isSet(){
bool isObjectUpdated = false;
do{
if(m_stream_index_isSet){
isObjectUpdated = true; break;
}
if(m_center_frequency_isSet){
isObjectUpdated = true; break;
}
if(m_frequency_shift_isSet){
isObjectUpdated = true; break;
}
if(m_sample_rate_isSet){
isObjectUpdated = true; break;
}
if(m_log2_decim_isSet){
isObjectUpdated = true; break;
}
if(m_fc_pos_isSet){
isObjectUpdated = true; break;
}
if(m_sample_size_index_isSet){
isObjectUpdated = true; break;
}
if(m_amplitude_bits_isSet){
isObjectUpdated = true; break;
}
if(m_auto_corr_options_isSet){
isObjectUpdated = true; break;
}
if(m_modulation_isSet){
isObjectUpdated = true; break;
}
if(m_modulation_tone_isSet){
isObjectUpdated = true; break;
}
if(m_am_modulation_isSet){
isObjectUpdated = true; break;
}
if(m_fm_deviation_isSet){
isObjectUpdated = true; break;
}
if(m_dc_factor_isSet){
isObjectUpdated = true; break;
}
if(m_i_factor_isSet){
isObjectUpdated = true; break;
}
if(m_q_factor_isSet){
isObjectUpdated = true; break;
}
if(m_phase_imbalance_isSet){
isObjectUpdated = true; break;
}
}while(false);
return isObjectUpdated;
}
}

View File

@ -1,154 +0,0 @@
/**
* 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.11.6
* 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.
*/
/*
* SWGTestMiStreamSettings.h
*
* TestMiStreamSettings
*/
#ifndef SWGTestMiStreamSettings_H_
#define SWGTestMiStreamSettings_H_
#include <QJsonObject>
#include "SWGObject.h"
#include "export.h"
namespace SWGSDRangel {
class SWG_API SWGTestMiStreamSettings: public SWGObject {
public:
SWGTestMiStreamSettings();
SWGTestMiStreamSettings(QString* json);
virtual ~SWGTestMiStreamSettings();
void init();
void cleanup();
virtual QString asJson () override;
virtual QJsonObject* asJsonObject() override;
virtual void fromJsonObject(QJsonObject &json) override;
virtual SWGTestMiStreamSettings* fromJson(QString &jsonString) override;
qint32 getStreamIndex();
void setStreamIndex(qint32 stream_index);
qint32 getCenterFrequency();
void setCenterFrequency(qint32 center_frequency);
qint32 getFrequencyShift();
void setFrequencyShift(qint32 frequency_shift);
qint32 getSampleRate();
void setSampleRate(qint32 sample_rate);
qint32 getLog2Decim();
void setLog2Decim(qint32 log2_decim);
qint32 getFcPos();
void setFcPos(qint32 fc_pos);
qint32 getSampleSizeIndex();
void setSampleSizeIndex(qint32 sample_size_index);
qint32 getAmplitudeBits();
void setAmplitudeBits(qint32 amplitude_bits);
qint32 getAutoCorrOptions();
void setAutoCorrOptions(qint32 auto_corr_options);
qint32 getModulation();
void setModulation(qint32 modulation);
qint32 getModulationTone();
void setModulationTone(qint32 modulation_tone);
qint32 getAmModulation();
void setAmModulation(qint32 am_modulation);
qint32 getFmDeviation();
void setFmDeviation(qint32 fm_deviation);
float getDcFactor();
void setDcFactor(float dc_factor);
float getIFactor();
void setIFactor(float i_factor);
float getQFactor();
void setQFactor(float q_factor);
float getPhaseImbalance();
void setPhaseImbalance(float phase_imbalance);
virtual bool isSet() override;
private:
qint32 stream_index;
bool m_stream_index_isSet;
qint32 center_frequency;
bool m_center_frequency_isSet;
qint32 frequency_shift;
bool m_frequency_shift_isSet;
qint32 sample_rate;
bool m_sample_rate_isSet;
qint32 log2_decim;
bool m_log2_decim_isSet;
qint32 fc_pos;
bool m_fc_pos_isSet;
qint32 sample_size_index;
bool m_sample_size_index_isSet;
qint32 amplitude_bits;
bool m_amplitude_bits_isSet;
qint32 auto_corr_options;
bool m_auto_corr_options_isSet;
qint32 modulation;
bool m_modulation_isSet;
qint32 modulation_tone;
bool m_modulation_tone_isSet;
qint32 am_modulation;
bool m_am_modulation_isSet;
qint32 fm_deviation;
bool m_fm_deviation_isSet;
float dc_factor;
bool m_dc_factor_isSet;
float i_factor;
bool m_i_factor_isSet;
float q_factor;
bool m_q_factor_isSet;
float phase_imbalance;
bool m_phase_imbalance_isSet;
};
}
#endif /* SWGTestMiStreamSettings_H_ */

View File

@ -1,108 +0,0 @@
/**
* 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.14.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;
}
}

View File

@ -1,58 +0,0 @@
/**
* 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.14.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_ */

View File

@ -60,8 +60,6 @@ SWGTestSourceSettings::SWGTestSourceSettings() {
m_q_factor_isSet = false; m_q_factor_isSet = false;
phase_imbalance = 0.0f; phase_imbalance = 0.0f;
m_phase_imbalance_isSet = false; m_phase_imbalance_isSet = false;
file_record_name = nullptr;
m_file_record_name_isSet = false;
use_reverse_api = 0; use_reverse_api = 0;
m_use_reverse_api_isSet = false; m_use_reverse_api_isSet = false;
reverse_api_address = nullptr; reverse_api_address = nullptr;
@ -110,8 +108,6 @@ SWGTestSourceSettings::init() {
m_q_factor_isSet = false; m_q_factor_isSet = false;
phase_imbalance = 0.0f; phase_imbalance = 0.0f;
m_phase_imbalance_isSet = false; m_phase_imbalance_isSet = false;
file_record_name = new QString("");
m_file_record_name_isSet = false;
use_reverse_api = 0; use_reverse_api = 0;
m_use_reverse_api_isSet = false; m_use_reverse_api_isSet = false;
reverse_api_address = new QString(""); reverse_api_address = new QString("");
@ -140,9 +136,6 @@ SWGTestSourceSettings::cleanup() {
if(file_record_name != nullptr) {
delete file_record_name;
}
if(reverse_api_address != nullptr) { if(reverse_api_address != nullptr) {
delete reverse_api_address; delete reverse_api_address;
@ -194,8 +187,6 @@ SWGTestSourceSettings::fromJsonObject(QJsonObject &pJson) {
::SWGSDRangel::setValue(&phase_imbalance, pJson["phaseImbalance"], "float", ""); ::SWGSDRangel::setValue(&phase_imbalance, pJson["phaseImbalance"], "float", "");
::SWGSDRangel::setValue(&file_record_name, pJson["fileRecordName"], "QString", "QString");
::SWGSDRangel::setValue(&use_reverse_api, pJson["useReverseAPI"], "qint32", ""); ::SWGSDRangel::setValue(&use_reverse_api, pJson["useReverseAPI"], "qint32", "");
::SWGSDRangel::setValue(&reverse_api_address, pJson["reverseAPIAddress"], "QString", "QString"); ::SWGSDRangel::setValue(&reverse_api_address, pJson["reverseAPIAddress"], "QString", "QString");
@ -268,9 +259,6 @@ SWGTestSourceSettings::asJsonObject() {
if(m_phase_imbalance_isSet){ if(m_phase_imbalance_isSet){
obj->insert("phaseImbalance", QJsonValue(phase_imbalance)); obj->insert("phaseImbalance", QJsonValue(phase_imbalance));
} }
if(file_record_name != nullptr && *file_record_name != QString("")){
toJsonValue(QString("fileRecordName"), file_record_name, obj, QString("QString"));
}
if(m_use_reverse_api_isSet){ if(m_use_reverse_api_isSet){
obj->insert("useReverseAPI", QJsonValue(use_reverse_api)); obj->insert("useReverseAPI", QJsonValue(use_reverse_api));
} }
@ -447,16 +435,6 @@ SWGTestSourceSettings::setPhaseImbalance(float phase_imbalance) {
this->m_phase_imbalance_isSet = true; this->m_phase_imbalance_isSet = true;
} }
QString*
SWGTestSourceSettings::getFileRecordName() {
return file_record_name;
}
void
SWGTestSourceSettings::setFileRecordName(QString* file_record_name) {
this->file_record_name = file_record_name;
this->m_file_record_name_isSet = true;
}
qint32 qint32
SWGTestSourceSettings::getUseReverseApi() { SWGTestSourceSettings::getUseReverseApi() {
return use_reverse_api; return use_reverse_api;
@ -550,9 +528,6 @@ SWGTestSourceSettings::isSet(){
if(m_phase_imbalance_isSet){ if(m_phase_imbalance_isSet){
isObjectUpdated = true; break; isObjectUpdated = true; break;
} }
if(file_record_name && *file_record_name != QString("")){
isObjectUpdated = true; break;
}
if(m_use_reverse_api_isSet){ if(m_use_reverse_api_isSet){
isObjectUpdated = true; break; isObjectUpdated = true; break;
} }

View File

@ -90,9 +90,6 @@ public:
float getPhaseImbalance(); float getPhaseImbalance();
void setPhaseImbalance(float phase_imbalance); void setPhaseImbalance(float phase_imbalance);
QString* getFileRecordName();
void setFileRecordName(QString* file_record_name);
qint32 getUseReverseApi(); qint32 getUseReverseApi();
void setUseReverseApi(qint32 use_reverse_api); void setUseReverseApi(qint32 use_reverse_api);
@ -157,9 +154,6 @@ private:
float phase_imbalance; float phase_imbalance;
bool m_phase_imbalance_isSet; bool m_phase_imbalance_isSet;
QString* file_record_name;
bool m_file_record_name_isSet;
qint32 use_reverse_api; qint32 use_reverse_api;
bool m_use_reverse_api_isSet; bool m_use_reverse_api_isSet;

View File

@ -1,108 +0,0 @@
/**
* 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.14.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;
}
}

View File

@ -1,58 +0,0 @@
/**
* 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.14.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_ */

View File

@ -66,8 +66,6 @@ SWGXtrxInputSettings::SWGXtrxInputSettings() {
m_pwrmode_isSet = false; m_pwrmode_isSet = false;
iq_order = 0; iq_order = 0;
m_iq_order_isSet = false; m_iq_order_isSet = false;
file_record_name = nullptr;
m_file_record_name_isSet = false;
use_reverse_api = 0; use_reverse_api = 0;
m_use_reverse_api_isSet = false; m_use_reverse_api_isSet = false;
reverse_api_address = nullptr; reverse_api_address = nullptr;
@ -122,8 +120,6 @@ SWGXtrxInputSettings::init() {
m_pwrmode_isSet = false; m_pwrmode_isSet = false;
iq_order = 0; iq_order = 0;
m_iq_order_isSet = false; m_iq_order_isSet = false;
file_record_name = new QString("");
m_file_record_name_isSet = false;
use_reverse_api = 0; use_reverse_api = 0;
m_use_reverse_api_isSet = false; m_use_reverse_api_isSet = false;
reverse_api_address = new QString(""); reverse_api_address = new QString("");
@ -155,9 +151,6 @@ SWGXtrxInputSettings::cleanup() {
if(file_record_name != nullptr) {
delete file_record_name;
}
if(reverse_api_address != nullptr) { if(reverse_api_address != nullptr) {
delete reverse_api_address; delete reverse_api_address;
@ -215,8 +208,6 @@ SWGXtrxInputSettings::fromJsonObject(QJsonObject &pJson) {
::SWGSDRangel::setValue(&iq_order, pJson["iqOrder"], "qint32", ""); ::SWGSDRangel::setValue(&iq_order, pJson["iqOrder"], "qint32", "");
::SWGSDRangel::setValue(&file_record_name, pJson["fileRecordName"], "QString", "QString");
::SWGSDRangel::setValue(&use_reverse_api, pJson["useReverseAPI"], "qint32", ""); ::SWGSDRangel::setValue(&use_reverse_api, pJson["useReverseAPI"], "qint32", "");
::SWGSDRangel::setValue(&reverse_api_address, pJson["reverseAPIAddress"], "QString", "QString"); ::SWGSDRangel::setValue(&reverse_api_address, pJson["reverseAPIAddress"], "QString", "QString");
@ -298,9 +289,6 @@ SWGXtrxInputSettings::asJsonObject() {
if(m_iq_order_isSet){ if(m_iq_order_isSet){
obj->insert("iqOrder", QJsonValue(iq_order)); obj->insert("iqOrder", QJsonValue(iq_order));
} }
if(file_record_name != nullptr && *file_record_name != QString("")){
toJsonValue(QString("fileRecordName"), file_record_name, obj, QString("QString"));
}
if(m_use_reverse_api_isSet){ if(m_use_reverse_api_isSet){
obj->insert("useReverseAPI", QJsonValue(use_reverse_api)); obj->insert("useReverseAPI", QJsonValue(use_reverse_api));
} }
@ -507,16 +495,6 @@ SWGXtrxInputSettings::setIqOrder(qint32 iq_order) {
this->m_iq_order_isSet = true; this->m_iq_order_isSet = true;
} }
QString*
SWGXtrxInputSettings::getFileRecordName() {
return file_record_name;
}
void
SWGXtrxInputSettings::setFileRecordName(QString* file_record_name) {
this->file_record_name = file_record_name;
this->m_file_record_name_isSet = true;
}
qint32 qint32
SWGXtrxInputSettings::getUseReverseApi() { SWGXtrxInputSettings::getUseReverseApi() {
return use_reverse_api; return use_reverse_api;
@ -619,9 +597,6 @@ SWGXtrxInputSettings::isSet(){
if(m_iq_order_isSet){ if(m_iq_order_isSet){
isObjectUpdated = true; break; isObjectUpdated = true; break;
} }
if(file_record_name && *file_record_name != QString("")){
isObjectUpdated = true; break;
}
if(m_use_reverse_api_isSet){ if(m_use_reverse_api_isSet){
isObjectUpdated = true; break; isObjectUpdated = true; break;
} }

View File

@ -99,9 +99,6 @@ public:
qint32 getIqOrder(); qint32 getIqOrder();
void setIqOrder(qint32 iq_order); void setIqOrder(qint32 iq_order);
QString* getFileRecordName();
void setFileRecordName(QString* file_record_name);
qint32 getUseReverseApi(); qint32 getUseReverseApi();
void setUseReverseApi(qint32 use_reverse_api); void setUseReverseApi(qint32 use_reverse_api);
@ -175,9 +172,6 @@ private:
qint32 iq_order; qint32 iq_order;
bool m_iq_order_isSet; bool m_iq_order_isSet;
QString* file_record_name;
bool m_file_record_name_isSet;
qint32 use_reverse_api; qint32 use_reverse_api;
bool m_use_reverse_api_isSet; bool m_use_reverse_api_isSet;