mirror of
https://github.com/f4exb/sdrangel.git
synced 2024-12-23 01:55:48 -05:00
SigMF file input: REST API
This commit is contained in:
parent
dc40755324
commit
8a06f73efa
@ -2180,6 +2180,39 @@ margin-bottom: 20px;
|
||||
"description" : "key modifier for dashes keyboard input. See flags Qt::KeyboardModifiers"
|
||||
}
|
||||
}
|
||||
};
|
||||
defs.Capture = {
|
||||
"properties" : {
|
||||
"tsms" : {
|
||||
"type" : "integer",
|
||||
"format" : "int64",
|
||||
"description" : "Timestamp in milliseconds since epoch of capture start"
|
||||
},
|
||||
"centerFrequency" : {
|
||||
"type" : "integer",
|
||||
"format" : "int64",
|
||||
"description" : "Track center frequency in Hz"
|
||||
},
|
||||
"sampleRate" : {
|
||||
"type" : "integer",
|
||||
"description" : "Track sample rate in S/s"
|
||||
},
|
||||
"sampleStart" : {
|
||||
"type" : "integer",
|
||||
"format" : "int64",
|
||||
"description" : "Start of track in nymber of samples"
|
||||
},
|
||||
"length" : {
|
||||
"type" : "integer",
|
||||
"format" : "int64",
|
||||
"description" : "Track length in number of samples"
|
||||
},
|
||||
"cumulativeTime" : {
|
||||
"type" : "integer",
|
||||
"format" : "int64",
|
||||
"description" : "Time in milliseconds of track start since beginning of record"
|
||||
}
|
||||
}
|
||||
};
|
||||
defs.Channel = {
|
||||
"required" : [ "deltaFrequency", "id", "index", "title", "uid" ],
|
||||
@ -3258,6 +3291,9 @@ margin-bottom: 20px;
|
||||
"originatorIndex" : {
|
||||
"type" : "integer",
|
||||
"description" : "Optional for reverse API. This is the device set index from where the message comes from."
|
||||
},
|
||||
"sigMFFileInputActions" : {
|
||||
"$ref" : "#/definitions/SigMFFileInputActions"
|
||||
}
|
||||
},
|
||||
"description" : "Base device actions. Only the device actions corresponding to the device specified in the deviceHwType field is or should be present."
|
||||
@ -3383,6 +3419,9 @@ margin-bottom: 20px;
|
||||
"sdrPlayReport" : {
|
||||
"$ref" : "#/definitions/SDRPlayReport"
|
||||
},
|
||||
"sigMFFileInputReport" : {
|
||||
"$ref" : "#/definitions/SigMFFileInputReport"
|
||||
},
|
||||
"soapySDRInputReport" : {
|
||||
"$ref" : "#/definitions/SoapySDRReport"
|
||||
},
|
||||
@ -3535,6 +3574,9 @@ margin-bottom: 20px;
|
||||
"sdrPlaySettings" : {
|
||||
"$ref" : "#/definitions/SDRPlaySettings"
|
||||
},
|
||||
"sigMFFileInputSettings" : {
|
||||
"$ref" : "#/definitions/SigMFFileInputSettings"
|
||||
},
|
||||
"soapySDRInputSettings" : {
|
||||
"$ref" : "#/definitions/SoapySDRInputSettings"
|
||||
},
|
||||
@ -7366,6 +7408,138 @@ margin-bottom: 20px;
|
||||
}
|
||||
},
|
||||
"description" : "Information about a logical device available from an attached hardware device that can be used as a sampling device"
|
||||
};
|
||||
defs.SigMFFileInputActions = {
|
||||
"properties" : {
|
||||
"playTrack" : {
|
||||
"type" : "integer",
|
||||
"description" : "Play IQ stream action\n * 0 - stop playing\n * 1 - start playing current track\n"
|
||||
},
|
||||
"playRecord" : {
|
||||
"type" : "integer",
|
||||
"description" : "Play IQ stream action\n * 0 - stop playing\n * 1 - start playing\n"
|
||||
},
|
||||
"seekTrack" : {
|
||||
"type" : "integer",
|
||||
"description" : "Move to beginning of track given its number. Must stop first."
|
||||
},
|
||||
"seekTrackMillis" : {
|
||||
"type" : "integer",
|
||||
"description" : "Move to this number / 1000 raio in track. Must stop first."
|
||||
},
|
||||
"seekRecordMillis" : {
|
||||
"type" : "integer",
|
||||
"description" : "Move to this number / 1000 raio in full record. Must stop first."
|
||||
}
|
||||
},
|
||||
"description" : "SigMFFileInput"
|
||||
};
|
||||
defs.SigMFFileInputReport = {
|
||||
"properties" : {
|
||||
"sampleSize" : {
|
||||
"type" : "integer",
|
||||
"description" : "Record sample size in number of bits"
|
||||
},
|
||||
"sampleBytes" : {
|
||||
"type" : "integer",
|
||||
"description" : "Record sample size in number of bytes"
|
||||
},
|
||||
"sampleFormat" : {
|
||||
"type" : "integer",
|
||||
"description" : "Sample format * 0 - integer * 1 - float\n"
|
||||
},
|
||||
"sampleSigned" : {
|
||||
"type" : "integer",
|
||||
"description" : "Sample signed status\n * 0 - unsigned\n * 1 - signed\n"
|
||||
},
|
||||
"sampleSwapIQ" : {
|
||||
"type" : "integer",
|
||||
"description" : "Sample I/Q swap\n * 0 - I/Q\n * 1 - Q/I\n"
|
||||
},
|
||||
"crcStatus" : {
|
||||
"type" : "integer",
|
||||
"description" : "CRC status\n * 0 - no CRC available\n * 1 - CRC (SHA512) OK\n * 2 - CRC (SHA512) KO\n"
|
||||
},
|
||||
"totalBytesStatus" : {
|
||||
"type" : "integer",
|
||||
"description" : "Total number of bytes in data file vs meta data\n * 0 - mismatch\n * 1 - match\n"
|
||||
},
|
||||
"captures" : {
|
||||
"type" : "array",
|
||||
"items" : {
|
||||
"$ref" : "#/definitions/Capture"
|
||||
}
|
||||
},
|
||||
"trackNumber" : {
|
||||
"type" : "integer",
|
||||
"description" : "Current track number"
|
||||
},
|
||||
"absoluteTimeMs" : {
|
||||
"type" : "integer",
|
||||
"format" : "int64",
|
||||
"description" : "Absolute current time in milliseconds since epoch"
|
||||
},
|
||||
"elapsedRecordTimeMs" : {
|
||||
"type" : "integer",
|
||||
"format" : "int64",
|
||||
"description" : "Elapsed record time in milliseconds"
|
||||
},
|
||||
"recordSamplesRatio" : {
|
||||
"type" : "number",
|
||||
"format" : "float",
|
||||
"description" : "Elapsed samples ratio to total samples"
|
||||
},
|
||||
"elapsedTrackimeMs" : {
|
||||
"type" : "integer",
|
||||
"format" : "int64",
|
||||
"description" : "Elapsed track time in milliseconds"
|
||||
},
|
||||
"trackSamplesRatio" : {
|
||||
"type" : "number",
|
||||
"format" : "float",
|
||||
"description" : "Elapsed samples ratio to track samples"
|
||||
},
|
||||
"recordDurationMs" : {
|
||||
"type" : "integer",
|
||||
"format" : "int64",
|
||||
"description" : "Record duration time in milliseconds"
|
||||
}
|
||||
},
|
||||
"description" : "SigMFFileInput"
|
||||
};
|
||||
defs.SigMFFileInputSettings = {
|
||||
"properties" : {
|
||||
"fileName" : {
|
||||
"type" : "string",
|
||||
"description" : "The name (path) of the file being read without extension"
|
||||
},
|
||||
"accelerationFactor" : {
|
||||
"type" : "integer",
|
||||
"description" : "Playback acceleration (1 if normal speed)"
|
||||
},
|
||||
"trackLoop" : {
|
||||
"type" : "integer",
|
||||
"description" : "1 if playing track in a loop else 0"
|
||||
},
|
||||
"fullLoop" : {
|
||||
"type" : "integer",
|
||||
"description" : "1 if playing full file in a loop else 0"
|
||||
},
|
||||
"useReverseAPI" : {
|
||||
"type" : "integer",
|
||||
"description" : "Synchronize with reverse API (1 for yes, 0 for no)"
|
||||
},
|
||||
"reverseAPIAddress" : {
|
||||
"type" : "string"
|
||||
},
|
||||
"reverseAPIPort" : {
|
||||
"type" : "integer"
|
||||
},
|
||||
"reverseAPIDeviceIndex" : {
|
||||
"type" : "integer"
|
||||
}
|
||||
},
|
||||
"description" : "SigMFFileInput"
|
||||
};
|
||||
defs.SimplePTTActions = {
|
||||
"properties" : {
|
||||
@ -40625,7 +40799,7 @@ except ApiException as e:
|
||||
</div>
|
||||
<div id="generator">
|
||||
<div class="content">
|
||||
Generated 2020-11-09T22:06:31.158+01:00
|
||||
Generated 2020-11-10T00:25:24.966+01:00
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
32
sdrbase/resources/webapi/doc/swagger/include/AudioInput.yaml
Normal file
32
sdrbase/resources/webapi/doc/swagger/include/AudioInput.yaml
Normal file
@ -0,0 +1,32 @@
|
||||
AudioInputSettings:
|
||||
description: AudioInput
|
||||
properties:
|
||||
device:
|
||||
description: The name of the audio device
|
||||
type: string
|
||||
devSampleRate:
|
||||
description: Audio sample rate
|
||||
type: integer
|
||||
volume:
|
||||
type: number
|
||||
format: float
|
||||
log2Decim:
|
||||
description: Decimation factor
|
||||
type: integer
|
||||
iqMapping:
|
||||
type: integer
|
||||
description: >
|
||||
Audio channel to IQ mapping
|
||||
* 0 - I=L, Q=0
|
||||
* 1 - I=R, Q=0
|
||||
* 2 - I=L, Q=R
|
||||
* 3 - I=R, Q=L
|
||||
useReverseAPI:
|
||||
description: Synchronize with reverse API (1 for yes, 0 for no)
|
||||
type: integer
|
||||
reverseAPIAddress:
|
||||
type: string
|
||||
reverseAPIPort:
|
||||
type: integer
|
||||
reverseAPIDeviceIndex:
|
||||
type: integer
|
@ -14,3 +14,5 @@ DeviceActions:
|
||||
originatorIndex:
|
||||
description: Optional for reverse API. This is the device set index from where the message comes from.
|
||||
type: integer
|
||||
sigMFFileInputActions:
|
||||
$ref: "/doc/swagger/include/SigMFFileInput.yaml#/SigMFFileInputActions"
|
||||
|
@ -45,6 +45,8 @@ DeviceReport:
|
||||
$ref: "/doc/swagger/include/RemoteInput.yaml#/RemoteInputReport"
|
||||
sdrPlayReport:
|
||||
$ref: "/doc/swagger/include/SDRPlay.yaml#/SDRPlayReport"
|
||||
sigMFFileInputReport:
|
||||
$ref: "/doc/swagger/include/SigMFFileInput.yaml#/SigMFFileInputReport"
|
||||
soapySDRInputReport:
|
||||
$ref: "/doc/swagger/include/SoapySDR.yaml#/SoapySDRReport"
|
||||
soapySDROutputReport:
|
||||
|
@ -18,6 +18,8 @@ DeviceSettings:
|
||||
$ref: "/doc/swagger/include/Airspy.yaml#/AirspySettings"
|
||||
airspyHFSettings:
|
||||
$ref: "/doc/swagger/include/AirspyHF.yaml#/AirspyHFSettings"
|
||||
audioInputSettings:
|
||||
$ref: "/doc/swagger/include/AudioInput.yaml#/AudioInputSettings"
|
||||
bladeRF1InputSettings:
|
||||
$ref: "/doc/swagger/include/BladeRF1.yaml#/BladeRF1InputSettings"
|
||||
bladeRF2InputSettings:
|
||||
@ -62,6 +64,8 @@ DeviceSettings:
|
||||
$ref: "/doc/swagger/include/RemoteInput.yaml#/RemoteInputSettings"
|
||||
sdrPlaySettings:
|
||||
$ref: "/doc/swagger/include/SDRPlay.yaml#/SDRPlaySettings"
|
||||
sigMFFileInputSettings:
|
||||
$ref: "/doc/swagger/include/SigMFFileInput.yaml#/SigMFFileInputSettings"
|
||||
soapySDRInputSettings:
|
||||
$ref: "/doc/swagger/include/SoapySDR.yaml#/SoapySDRInputSettings"
|
||||
soapySDROutputSettings:
|
||||
|
150
sdrbase/resources/webapi/doc/swagger/include/SigMFFileInput.yaml
Normal file
150
sdrbase/resources/webapi/doc/swagger/include/SigMFFileInput.yaml
Normal file
@ -0,0 +1,150 @@
|
||||
SigMFFileInputSettings:
|
||||
description: SigMFFileInput
|
||||
properties:
|
||||
fileName:
|
||||
description: The name (path) of the file being read without extension
|
||||
type: string
|
||||
accelerationFactor:
|
||||
description: Playback acceleration (1 if normal speed)
|
||||
type: integer
|
||||
trackLoop:
|
||||
description: 1 if playing track in a loop else 0
|
||||
type: integer
|
||||
fullLoop:
|
||||
description: 1 if playing full file in a loop else 0
|
||||
type: integer
|
||||
useReverseAPI:
|
||||
description: Synchronize with reverse API (1 for yes, 0 for no)
|
||||
type: integer
|
||||
reverseAPIAddress:
|
||||
type: string
|
||||
reverseAPIPort:
|
||||
type: integer
|
||||
reverseAPIDeviceIndex:
|
||||
type: integer
|
||||
|
||||
SigMFFileInputReport:
|
||||
description: SigMFFileInput
|
||||
properties:
|
||||
sampleSize:
|
||||
description: Record sample size in number of bits
|
||||
type: integer
|
||||
sampleBytes:
|
||||
description: Record sample size in number of bytes
|
||||
type: integer
|
||||
sampleFormat:
|
||||
type: integer
|
||||
description: >
|
||||
Sample format
|
||||
* 0 - integer
|
||||
* 1 - float
|
||||
sampleSigned:
|
||||
type: integer
|
||||
description: >
|
||||
Sample signed status
|
||||
* 0 - unsigned
|
||||
* 1 - signed
|
||||
sampleSwapIQ:
|
||||
type: integer
|
||||
description: >
|
||||
Sample I/Q swap
|
||||
* 0 - I/Q
|
||||
* 1 - Q/I
|
||||
crcStatus:
|
||||
type: integer
|
||||
description: >
|
||||
CRC status
|
||||
* 0 - no CRC available
|
||||
* 1 - CRC (SHA512) OK
|
||||
* 2 - CRC (SHA512) KO
|
||||
totalBytesStatus:
|
||||
type: integer
|
||||
description: >
|
||||
Total number of bytes in data file vs meta data
|
||||
* 0 - mismatch
|
||||
* 1 - match
|
||||
captures:
|
||||
type: array
|
||||
items:
|
||||
$ref: "#/definitions/Capture"
|
||||
trackNumber:
|
||||
description: Current track number
|
||||
type: integer
|
||||
absoluteTimeMs:
|
||||
description: Absolute current time in milliseconds since epoch
|
||||
type: integer
|
||||
format: int64
|
||||
elapsedRecordTimeMs:
|
||||
description: Elapsed record time in milliseconds
|
||||
type: integer
|
||||
format: int64
|
||||
recordSamplesRatio:
|
||||
description: Elapsed samples ratio to total samples
|
||||
type: number
|
||||
format: float
|
||||
elapsedTrackimeMs:
|
||||
description: Elapsed track time in milliseconds
|
||||
type: integer
|
||||
format: int64
|
||||
trackSamplesRatio:
|
||||
description: Elapsed samples ratio to track samples
|
||||
type: number
|
||||
format: float
|
||||
recordDurationMs:
|
||||
description: Record duration time in milliseconds
|
||||
type: integer
|
||||
format: int64
|
||||
|
||||
SigMFFileInputActions:
|
||||
description: SigMFFileInput
|
||||
properties:
|
||||
playTrack:
|
||||
type: integer
|
||||
description: >
|
||||
Play IQ stream action
|
||||
* 0 - stop playing
|
||||
* 1 - start playing current track
|
||||
playRecord:
|
||||
type: integer
|
||||
description: >
|
||||
Play IQ stream action
|
||||
* 0 - stop playing
|
||||
* 1 - start playing
|
||||
seekTrack:
|
||||
type: integer
|
||||
description: Move to beginning of track given its number. Must stop first.
|
||||
seekTrackMillis:
|
||||
type: integer
|
||||
description: Move to this number / 1000 raio in track. Must stop first.
|
||||
seekRecordMillis:
|
||||
type: integer
|
||||
description: Move to this number / 1000 raio in full record. Must stop first.
|
||||
|
||||
definitions:
|
||||
|
||||
Capture:
|
||||
descripion: Capture (track) information
|
||||
properties:
|
||||
tsms:
|
||||
description: Timestamp in milliseconds since epoch of capture start
|
||||
type: integer
|
||||
format: int64
|
||||
centerFrequency:
|
||||
description: Track center frequency in Hz
|
||||
type: integer
|
||||
format: int64
|
||||
sampleRate:
|
||||
description: Track sample rate in S/s
|
||||
type: integer
|
||||
sampleStart:
|
||||
description: Start of track in nymber of samples
|
||||
type: integer
|
||||
format: int64
|
||||
length:
|
||||
description: Track length in number of samples
|
||||
type: integer
|
||||
format: int64
|
||||
cumulativeTime:
|
||||
description: Time in milliseconds of track start since beginning of record
|
||||
type: integer
|
||||
format: int64
|
@ -3890,6 +3890,11 @@ bool WebAPIRequestMapper::getDeviceSettings(
|
||||
deviceSettings->setSdrPlaySettings(new SWGSDRangel::SWGSDRPlaySettings());
|
||||
deviceSettings->getSdrPlaySettings()->fromJsonObject(settingsJsonObject);
|
||||
}
|
||||
else if (deviceSettingsKey == "sigMFFileInputSettings")
|
||||
{
|
||||
deviceSettings->setSigMfFileInputSettings(new SWGSDRangel::SWGSigMFFileInputSettings());
|
||||
deviceSettings->getSigMfFileInputSettings()->fromJsonObject(settingsJsonObject);
|
||||
}
|
||||
else if (deviceSettingsKey == "soapySDRInputSettings")
|
||||
{
|
||||
processSoapySDRSettings(deviceSettings, settingsJsonObject, deviceSettingsKeys, true);
|
||||
@ -3974,20 +3979,20 @@ bool WebAPIRequestMapper::getDeviceActions(
|
||||
|
||||
if (deviceKeys.contains(deviceActionsKey) && deviceActionsJson[deviceActionsKey].isObject())
|
||||
{
|
||||
// QJsonObject actionsJsonObject = deviceActionsJson[deviceActionsKey].toObject();
|
||||
// deviceActionsKeys = actionsJsonObject.keys();
|
||||
QJsonObject actionsJsonObject = deviceActionsJson[deviceActionsKey].toObject();
|
||||
deviceActionsKeys = actionsJsonObject.keys();
|
||||
|
||||
// if (deviceActionsKey == "xtrxInputActions")
|
||||
// {
|
||||
// deviceActions->setXtrxInputActions(new SWGSDRangel::SWGXtrxInputActions());
|
||||
// deviceActions->getXtrxInputActions()->fromJsonObject(actionsJsonObject);
|
||||
// }
|
||||
// else
|
||||
// {
|
||||
if (deviceActionsKey == "SigMFFileInputActions")
|
||||
{
|
||||
deviceActions->setSigMfFileInputActions(new SWGSDRangel::SWGSigMFFileInputActions());
|
||||
deviceActions->getSigMfFileInputActions()->fromJsonObject(actionsJsonObject);
|
||||
}
|
||||
else
|
||||
{
|
||||
return false;
|
||||
// }
|
||||
}
|
||||
|
||||
// return true;
|
||||
return true;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -14,3 +14,5 @@ DeviceActions:
|
||||
originatorIndex:
|
||||
description: Optional for reverse API. This is the device set index from where the message comes from.
|
||||
type: integer
|
||||
sigMFFileInputActions:
|
||||
$ref: "http://swgserver:8081/api/swagger/include/SigMFFileInput.yaml#/SigMFFileInputActions"
|
||||
|
@ -45,6 +45,8 @@ DeviceReport:
|
||||
$ref: "http://swgserver:8081/api/swagger/include/RemoteInput.yaml#/RemoteInputReport"
|
||||
sdrPlayReport:
|
||||
$ref: "http://swgserver:8081/api/swagger/include/SDRPlay.yaml#/SDRPlayReport"
|
||||
sigMFFileInputReport:
|
||||
$ref: "http://swgserver:8081/api/swagger/include/SigMFFileInput.yaml#/SigMFFileInputReport"
|
||||
soapySDRInputReport:
|
||||
$ref: "http://swgserver:8081/api/swagger/include/SoapySDR.yaml#/SoapySDRReport"
|
||||
soapySDROutputReport:
|
||||
|
@ -64,6 +64,8 @@ DeviceSettings:
|
||||
$ref: "http://swgserver:8081/api/swagger/include/RemoteInput.yaml#/RemoteInputSettings"
|
||||
sdrPlaySettings:
|
||||
$ref: "http://swgserver:8081/api/swagger/include/SDRPlay.yaml#/SDRPlaySettings"
|
||||
sigMFFileInputSettings:
|
||||
$ref: "http://swgserver:8081/api/swagger/include/SigMFFileInput.yaml#/SigMFFileInputSettings"
|
||||
soapySDRInputSettings:
|
||||
$ref: "http://swgserver:8081/api/swagger/include/SoapySDR.yaml#/SoapySDRInputSettings"
|
||||
soapySDROutputSettings:
|
||||
|
150
swagger/sdrangel/api/swagger/include/SigMFFileInput.yaml
Normal file
150
swagger/sdrangel/api/swagger/include/SigMFFileInput.yaml
Normal file
@ -0,0 +1,150 @@
|
||||
SigMFFileInputSettings:
|
||||
description: SigMFFileInput
|
||||
properties:
|
||||
fileName:
|
||||
description: The name (path) of the file being read without extension
|
||||
type: string
|
||||
accelerationFactor:
|
||||
description: Playback acceleration (1 if normal speed)
|
||||
type: integer
|
||||
trackLoop:
|
||||
description: 1 if playing track in a loop else 0
|
||||
type: integer
|
||||
fullLoop:
|
||||
description: 1 if playing full file in a loop else 0
|
||||
type: integer
|
||||
useReverseAPI:
|
||||
description: Synchronize with reverse API (1 for yes, 0 for no)
|
||||
type: integer
|
||||
reverseAPIAddress:
|
||||
type: string
|
||||
reverseAPIPort:
|
||||
type: integer
|
||||
reverseAPIDeviceIndex:
|
||||
type: integer
|
||||
|
||||
SigMFFileInputReport:
|
||||
description: SigMFFileInput
|
||||
properties:
|
||||
sampleSize:
|
||||
description: Record sample size in number of bits
|
||||
type: integer
|
||||
sampleBytes:
|
||||
description: Record sample size in number of bytes
|
||||
type: integer
|
||||
sampleFormat:
|
||||
type: integer
|
||||
description: >
|
||||
Sample format
|
||||
* 0 - integer
|
||||
* 1 - float
|
||||
sampleSigned:
|
||||
type: integer
|
||||
description: >
|
||||
Sample signed status
|
||||
* 0 - unsigned
|
||||
* 1 - signed
|
||||
sampleSwapIQ:
|
||||
type: integer
|
||||
description: >
|
||||
Sample I/Q swap
|
||||
* 0 - I/Q
|
||||
* 1 - Q/I
|
||||
crcStatus:
|
||||
type: integer
|
||||
description: >
|
||||
CRC status
|
||||
* 0 - no CRC available
|
||||
* 1 - CRC (SHA512) OK
|
||||
* 2 - CRC (SHA512) KO
|
||||
totalBytesStatus:
|
||||
type: integer
|
||||
description: >
|
||||
Total number of bytes in data file vs meta data
|
||||
* 0 - mismatch
|
||||
* 1 - match
|
||||
captures:
|
||||
type: array
|
||||
items:
|
||||
$ref: "#/definitions/Capture"
|
||||
trackNumber:
|
||||
description: Current track number
|
||||
type: integer
|
||||
absoluteTimeMs:
|
||||
description: Absolute current time in milliseconds since epoch
|
||||
type: integer
|
||||
format: int64
|
||||
elapsedRecordTimeMs:
|
||||
description: Elapsed record time in milliseconds
|
||||
type: integer
|
||||
format: int64
|
||||
recordSamplesRatio:
|
||||
description: Elapsed samples ratio to total samples
|
||||
type: number
|
||||
format: float
|
||||
elapsedTrackimeMs:
|
||||
description: Elapsed track time in milliseconds
|
||||
type: integer
|
||||
format: int64
|
||||
trackSamplesRatio:
|
||||
description: Elapsed samples ratio to track samples
|
||||
type: number
|
||||
format: float
|
||||
recordDurationMs:
|
||||
description: Record duration time in milliseconds
|
||||
type: integer
|
||||
format: int64
|
||||
|
||||
SigMFFileInputActions:
|
||||
description: SigMFFileInput
|
||||
properties:
|
||||
playTrack:
|
||||
type: integer
|
||||
description: >
|
||||
Play IQ stream action
|
||||
* 0 - stop playing
|
||||
* 1 - start playing current track
|
||||
playRecord:
|
||||
type: integer
|
||||
description: >
|
||||
Play IQ stream action
|
||||
* 0 - stop playing
|
||||
* 1 - start playing
|
||||
seekTrack:
|
||||
type: integer
|
||||
description: Move to beginning of track given its number. Must stop first.
|
||||
seekTrackMillis:
|
||||
type: integer
|
||||
description: Move to this number / 1000 raio in track. Must stop first.
|
||||
seekRecordMillis:
|
||||
type: integer
|
||||
description: Move to this number / 1000 raio in full record. Must stop first.
|
||||
|
||||
definitions:
|
||||
|
||||
Capture:
|
||||
descripion: Capture (track) information
|
||||
properties:
|
||||
tsms:
|
||||
description: Timestamp in milliseconds since epoch of capture start
|
||||
type: integer
|
||||
format: int64
|
||||
centerFrequency:
|
||||
description: Track center frequency in Hz
|
||||
type: integer
|
||||
format: int64
|
||||
sampleRate:
|
||||
description: Track sample rate in S/s
|
||||
type: integer
|
||||
sampleStart:
|
||||
description: Start of track in nymber of samples
|
||||
type: integer
|
||||
format: int64
|
||||
length:
|
||||
description: Track length in number of samples
|
||||
type: integer
|
||||
format: int64
|
||||
cumulativeTime:
|
||||
description: Time in milliseconds of track start since beginning of record
|
||||
type: integer
|
||||
format: int64
|
@ -2180,6 +2180,39 @@ margin-bottom: 20px;
|
||||
"description" : "key modifier for dashes keyboard input. See flags Qt::KeyboardModifiers"
|
||||
}
|
||||
}
|
||||
};
|
||||
defs.Capture = {
|
||||
"properties" : {
|
||||
"tsms" : {
|
||||
"type" : "integer",
|
||||
"format" : "int64",
|
||||
"description" : "Timestamp in milliseconds since epoch of capture start"
|
||||
},
|
||||
"centerFrequency" : {
|
||||
"type" : "integer",
|
||||
"format" : "int64",
|
||||
"description" : "Track center frequency in Hz"
|
||||
},
|
||||
"sampleRate" : {
|
||||
"type" : "integer",
|
||||
"description" : "Track sample rate in S/s"
|
||||
},
|
||||
"sampleStart" : {
|
||||
"type" : "integer",
|
||||
"format" : "int64",
|
||||
"description" : "Start of track in nymber of samples"
|
||||
},
|
||||
"length" : {
|
||||
"type" : "integer",
|
||||
"format" : "int64",
|
||||
"description" : "Track length in number of samples"
|
||||
},
|
||||
"cumulativeTime" : {
|
||||
"type" : "integer",
|
||||
"format" : "int64",
|
||||
"description" : "Time in milliseconds of track start since beginning of record"
|
||||
}
|
||||
}
|
||||
};
|
||||
defs.Channel = {
|
||||
"required" : [ "deltaFrequency", "id", "index", "title", "uid" ],
|
||||
@ -3258,6 +3291,9 @@ margin-bottom: 20px;
|
||||
"originatorIndex" : {
|
||||
"type" : "integer",
|
||||
"description" : "Optional for reverse API. This is the device set index from where the message comes from."
|
||||
},
|
||||
"sigMFFileInputActions" : {
|
||||
"$ref" : "#/definitions/SigMFFileInputActions"
|
||||
}
|
||||
},
|
||||
"description" : "Base device actions. Only the device actions corresponding to the device specified in the deviceHwType field is or should be present."
|
||||
@ -3383,6 +3419,9 @@ margin-bottom: 20px;
|
||||
"sdrPlayReport" : {
|
||||
"$ref" : "#/definitions/SDRPlayReport"
|
||||
},
|
||||
"sigMFFileInputReport" : {
|
||||
"$ref" : "#/definitions/SigMFFileInputReport"
|
||||
},
|
||||
"soapySDRInputReport" : {
|
||||
"$ref" : "#/definitions/SoapySDRReport"
|
||||
},
|
||||
@ -3535,6 +3574,9 @@ margin-bottom: 20px;
|
||||
"sdrPlaySettings" : {
|
||||
"$ref" : "#/definitions/SDRPlaySettings"
|
||||
},
|
||||
"sigMFFileInputSettings" : {
|
||||
"$ref" : "#/definitions/SigMFFileInputSettings"
|
||||
},
|
||||
"soapySDRInputSettings" : {
|
||||
"$ref" : "#/definitions/SoapySDRInputSettings"
|
||||
},
|
||||
@ -7366,6 +7408,138 @@ margin-bottom: 20px;
|
||||
}
|
||||
},
|
||||
"description" : "Information about a logical device available from an attached hardware device that can be used as a sampling device"
|
||||
};
|
||||
defs.SigMFFileInputActions = {
|
||||
"properties" : {
|
||||
"playTrack" : {
|
||||
"type" : "integer",
|
||||
"description" : "Play IQ stream action\n * 0 - stop playing\n * 1 - start playing current track\n"
|
||||
},
|
||||
"playRecord" : {
|
||||
"type" : "integer",
|
||||
"description" : "Play IQ stream action\n * 0 - stop playing\n * 1 - start playing\n"
|
||||
},
|
||||
"seekTrack" : {
|
||||
"type" : "integer",
|
||||
"description" : "Move to beginning of track given its number. Must stop first."
|
||||
},
|
||||
"seekTrackMillis" : {
|
||||
"type" : "integer",
|
||||
"description" : "Move to this number / 1000 raio in track. Must stop first."
|
||||
},
|
||||
"seekRecordMillis" : {
|
||||
"type" : "integer",
|
||||
"description" : "Move to this number / 1000 raio in full record. Must stop first."
|
||||
}
|
||||
},
|
||||
"description" : "SigMFFileInput"
|
||||
};
|
||||
defs.SigMFFileInputReport = {
|
||||
"properties" : {
|
||||
"sampleSize" : {
|
||||
"type" : "integer",
|
||||
"description" : "Record sample size in number of bits"
|
||||
},
|
||||
"sampleBytes" : {
|
||||
"type" : "integer",
|
||||
"description" : "Record sample size in number of bytes"
|
||||
},
|
||||
"sampleFormat" : {
|
||||
"type" : "integer",
|
||||
"description" : "Sample format * 0 - integer * 1 - float\n"
|
||||
},
|
||||
"sampleSigned" : {
|
||||
"type" : "integer",
|
||||
"description" : "Sample signed status\n * 0 - unsigned\n * 1 - signed\n"
|
||||
},
|
||||
"sampleSwapIQ" : {
|
||||
"type" : "integer",
|
||||
"description" : "Sample I/Q swap\n * 0 - I/Q\n * 1 - Q/I\n"
|
||||
},
|
||||
"crcStatus" : {
|
||||
"type" : "integer",
|
||||
"description" : "CRC status\n * 0 - no CRC available\n * 1 - CRC (SHA512) OK\n * 2 - CRC (SHA512) KO\n"
|
||||
},
|
||||
"totalBytesStatus" : {
|
||||
"type" : "integer",
|
||||
"description" : "Total number of bytes in data file vs meta data\n * 0 - mismatch\n * 1 - match\n"
|
||||
},
|
||||
"captures" : {
|
||||
"type" : "array",
|
||||
"items" : {
|
||||
"$ref" : "#/definitions/Capture"
|
||||
}
|
||||
},
|
||||
"trackNumber" : {
|
||||
"type" : "integer",
|
||||
"description" : "Current track number"
|
||||
},
|
||||
"absoluteTimeMs" : {
|
||||
"type" : "integer",
|
||||
"format" : "int64",
|
||||
"description" : "Absolute current time in milliseconds since epoch"
|
||||
},
|
||||
"elapsedRecordTimeMs" : {
|
||||
"type" : "integer",
|
||||
"format" : "int64",
|
||||
"description" : "Elapsed record time in milliseconds"
|
||||
},
|
||||
"recordSamplesRatio" : {
|
||||
"type" : "number",
|
||||
"format" : "float",
|
||||
"description" : "Elapsed samples ratio to total samples"
|
||||
},
|
||||
"elapsedTrackimeMs" : {
|
||||
"type" : "integer",
|
||||
"format" : "int64",
|
||||
"description" : "Elapsed track time in milliseconds"
|
||||
},
|
||||
"trackSamplesRatio" : {
|
||||
"type" : "number",
|
||||
"format" : "float",
|
||||
"description" : "Elapsed samples ratio to track samples"
|
||||
},
|
||||
"recordDurationMs" : {
|
||||
"type" : "integer",
|
||||
"format" : "int64",
|
||||
"description" : "Record duration time in milliseconds"
|
||||
}
|
||||
},
|
||||
"description" : "SigMFFileInput"
|
||||
};
|
||||
defs.SigMFFileInputSettings = {
|
||||
"properties" : {
|
||||
"fileName" : {
|
||||
"type" : "string",
|
||||
"description" : "The name (path) of the file being read without extension"
|
||||
},
|
||||
"accelerationFactor" : {
|
||||
"type" : "integer",
|
||||
"description" : "Playback acceleration (1 if normal speed)"
|
||||
},
|
||||
"trackLoop" : {
|
||||
"type" : "integer",
|
||||
"description" : "1 if playing track in a loop else 0"
|
||||
},
|
||||
"fullLoop" : {
|
||||
"type" : "integer",
|
||||
"description" : "1 if playing full file in a loop else 0"
|
||||
},
|
||||
"useReverseAPI" : {
|
||||
"type" : "integer",
|
||||
"description" : "Synchronize with reverse API (1 for yes, 0 for no)"
|
||||
},
|
||||
"reverseAPIAddress" : {
|
||||
"type" : "string"
|
||||
},
|
||||
"reverseAPIPort" : {
|
||||
"type" : "integer"
|
||||
},
|
||||
"reverseAPIDeviceIndex" : {
|
||||
"type" : "integer"
|
||||
}
|
||||
},
|
||||
"description" : "SigMFFileInput"
|
||||
};
|
||||
defs.SimplePTTActions = {
|
||||
"properties" : {
|
||||
@ -40625,7 +40799,7 @@ except ApiException as e:
|
||||
</div>
|
||||
<div id="generator">
|
||||
<div class="content">
|
||||
Generated 2020-11-09T22:06:31.158+01:00
|
||||
Generated 2020-11-10T00:25:24.966+01:00
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
223
swagger/sdrangel/code/qt5/client/SWGCapture.cpp
Normal file
223
swagger/sdrangel/code/qt5/client/SWGCapture.cpp
Normal file
@ -0,0 +1,223 @@
|
||||
/**
|
||||
* 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, USRP 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.15.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 "SWGCapture.h"
|
||||
|
||||
#include "SWGHelpers.h"
|
||||
|
||||
#include <QJsonDocument>
|
||||
#include <QJsonArray>
|
||||
#include <QObject>
|
||||
#include <QDebug>
|
||||
|
||||
namespace SWGSDRangel {
|
||||
|
||||
SWGCapture::SWGCapture(QString* json) {
|
||||
init();
|
||||
this->fromJson(*json);
|
||||
}
|
||||
|
||||
SWGCapture::SWGCapture() {
|
||||
tsms = 0L;
|
||||
m_tsms_isSet = false;
|
||||
center_frequency = 0L;
|
||||
m_center_frequency_isSet = false;
|
||||
sample_rate = 0;
|
||||
m_sample_rate_isSet = false;
|
||||
sample_start = 0L;
|
||||
m_sample_start_isSet = false;
|
||||
length = 0L;
|
||||
m_length_isSet = false;
|
||||
cumulative_time = 0L;
|
||||
m_cumulative_time_isSet = false;
|
||||
}
|
||||
|
||||
SWGCapture::~SWGCapture() {
|
||||
this->cleanup();
|
||||
}
|
||||
|
||||
void
|
||||
SWGCapture::init() {
|
||||
tsms = 0L;
|
||||
m_tsms_isSet = false;
|
||||
center_frequency = 0L;
|
||||
m_center_frequency_isSet = false;
|
||||
sample_rate = 0;
|
||||
m_sample_rate_isSet = false;
|
||||
sample_start = 0L;
|
||||
m_sample_start_isSet = false;
|
||||
length = 0L;
|
||||
m_length_isSet = false;
|
||||
cumulative_time = 0L;
|
||||
m_cumulative_time_isSet = false;
|
||||
}
|
||||
|
||||
void
|
||||
SWGCapture::cleanup() {
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
SWGCapture*
|
||||
SWGCapture::fromJson(QString &json) {
|
||||
QByteArray array (json.toStdString().c_str());
|
||||
QJsonDocument doc = QJsonDocument::fromJson(array);
|
||||
QJsonObject jsonObject = doc.object();
|
||||
this->fromJsonObject(jsonObject);
|
||||
return this;
|
||||
}
|
||||
|
||||
void
|
||||
SWGCapture::fromJsonObject(QJsonObject &pJson) {
|
||||
::SWGSDRangel::setValue(&tsms, pJson["tsms"], "qint64", "");
|
||||
|
||||
::SWGSDRangel::setValue(¢er_frequency, pJson["centerFrequency"], "qint64", "");
|
||||
|
||||
::SWGSDRangel::setValue(&sample_rate, pJson["sampleRate"], "qint32", "");
|
||||
|
||||
::SWGSDRangel::setValue(&sample_start, pJson["sampleStart"], "qint64", "");
|
||||
|
||||
::SWGSDRangel::setValue(&length, pJson["length"], "qint64", "");
|
||||
|
||||
::SWGSDRangel::setValue(&cumulative_time, pJson["cumulativeTime"], "qint64", "");
|
||||
|
||||
}
|
||||
|
||||
QString
|
||||
SWGCapture::asJson ()
|
||||
{
|
||||
QJsonObject* obj = this->asJsonObject();
|
||||
|
||||
QJsonDocument doc(*obj);
|
||||
QByteArray bytes = doc.toJson();
|
||||
delete obj;
|
||||
return QString(bytes);
|
||||
}
|
||||
|
||||
QJsonObject*
|
||||
SWGCapture::asJsonObject() {
|
||||
QJsonObject* obj = new QJsonObject();
|
||||
if(m_tsms_isSet){
|
||||
obj->insert("tsms", QJsonValue(tsms));
|
||||
}
|
||||
if(m_center_frequency_isSet){
|
||||
obj->insert("centerFrequency", QJsonValue(center_frequency));
|
||||
}
|
||||
if(m_sample_rate_isSet){
|
||||
obj->insert("sampleRate", QJsonValue(sample_rate));
|
||||
}
|
||||
if(m_sample_start_isSet){
|
||||
obj->insert("sampleStart", QJsonValue(sample_start));
|
||||
}
|
||||
if(m_length_isSet){
|
||||
obj->insert("length", QJsonValue(length));
|
||||
}
|
||||
if(m_cumulative_time_isSet){
|
||||
obj->insert("cumulativeTime", QJsonValue(cumulative_time));
|
||||
}
|
||||
|
||||
return obj;
|
||||
}
|
||||
|
||||
qint64
|
||||
SWGCapture::getTsms() {
|
||||
return tsms;
|
||||
}
|
||||
void
|
||||
SWGCapture::setTsms(qint64 tsms) {
|
||||
this->tsms = tsms;
|
||||
this->m_tsms_isSet = true;
|
||||
}
|
||||
|
||||
qint64
|
||||
SWGCapture::getCenterFrequency() {
|
||||
return center_frequency;
|
||||
}
|
||||
void
|
||||
SWGCapture::setCenterFrequency(qint64 center_frequency) {
|
||||
this->center_frequency = center_frequency;
|
||||
this->m_center_frequency_isSet = true;
|
||||
}
|
||||
|
||||
qint32
|
||||
SWGCapture::getSampleRate() {
|
||||
return sample_rate;
|
||||
}
|
||||
void
|
||||
SWGCapture::setSampleRate(qint32 sample_rate) {
|
||||
this->sample_rate = sample_rate;
|
||||
this->m_sample_rate_isSet = true;
|
||||
}
|
||||
|
||||
qint64
|
||||
SWGCapture::getSampleStart() {
|
||||
return sample_start;
|
||||
}
|
||||
void
|
||||
SWGCapture::setSampleStart(qint64 sample_start) {
|
||||
this->sample_start = sample_start;
|
||||
this->m_sample_start_isSet = true;
|
||||
}
|
||||
|
||||
qint64
|
||||
SWGCapture::getLength() {
|
||||
return length;
|
||||
}
|
||||
void
|
||||
SWGCapture::setLength(qint64 length) {
|
||||
this->length = length;
|
||||
this->m_length_isSet = true;
|
||||
}
|
||||
|
||||
qint64
|
||||
SWGCapture::getCumulativeTime() {
|
||||
return cumulative_time;
|
||||
}
|
||||
void
|
||||
SWGCapture::setCumulativeTime(qint64 cumulative_time) {
|
||||
this->cumulative_time = cumulative_time;
|
||||
this->m_cumulative_time_isSet = true;
|
||||
}
|
||||
|
||||
|
||||
bool
|
||||
SWGCapture::isSet(){
|
||||
bool isObjectUpdated = false;
|
||||
do{
|
||||
if(m_tsms_isSet){
|
||||
isObjectUpdated = true; break;
|
||||
}
|
||||
if(m_center_frequency_isSet){
|
||||
isObjectUpdated = true; break;
|
||||
}
|
||||
if(m_sample_rate_isSet){
|
||||
isObjectUpdated = true; break;
|
||||
}
|
||||
if(m_sample_start_isSet){
|
||||
isObjectUpdated = true; break;
|
||||
}
|
||||
if(m_length_isSet){
|
||||
isObjectUpdated = true; break;
|
||||
}
|
||||
if(m_cumulative_time_isSet){
|
||||
isObjectUpdated = true; break;
|
||||
}
|
||||
}while(false);
|
||||
return isObjectUpdated;
|
||||
}
|
||||
}
|
||||
|
88
swagger/sdrangel/code/qt5/client/SWGCapture.h
Normal file
88
swagger/sdrangel/code/qt5/client/SWGCapture.h
Normal file
@ -0,0 +1,88 @@
|
||||
/**
|
||||
* 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, USRP 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.15.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.
|
||||
*/
|
||||
|
||||
/*
|
||||
* SWGCapture.h
|
||||
*
|
||||
*
|
||||
*/
|
||||
|
||||
#ifndef SWGCapture_H_
|
||||
#define SWGCapture_H_
|
||||
|
||||
#include <QJsonObject>
|
||||
|
||||
|
||||
|
||||
#include "SWGObject.h"
|
||||
#include "export.h"
|
||||
|
||||
namespace SWGSDRangel {
|
||||
|
||||
class SWG_API SWGCapture: public SWGObject {
|
||||
public:
|
||||
SWGCapture();
|
||||
SWGCapture(QString* json);
|
||||
virtual ~SWGCapture();
|
||||
void init();
|
||||
void cleanup();
|
||||
|
||||
virtual QString asJson () override;
|
||||
virtual QJsonObject* asJsonObject() override;
|
||||
virtual void fromJsonObject(QJsonObject &json) override;
|
||||
virtual SWGCapture* fromJson(QString &jsonString) override;
|
||||
|
||||
qint64 getTsms();
|
||||
void setTsms(qint64 tsms);
|
||||
|
||||
qint64 getCenterFrequency();
|
||||
void setCenterFrequency(qint64 center_frequency);
|
||||
|
||||
qint32 getSampleRate();
|
||||
void setSampleRate(qint32 sample_rate);
|
||||
|
||||
qint64 getSampleStart();
|
||||
void setSampleStart(qint64 sample_start);
|
||||
|
||||
qint64 getLength();
|
||||
void setLength(qint64 length);
|
||||
|
||||
qint64 getCumulativeTime();
|
||||
void setCumulativeTime(qint64 cumulative_time);
|
||||
|
||||
|
||||
virtual bool isSet() override;
|
||||
|
||||
private:
|
||||
qint64 tsms;
|
||||
bool m_tsms_isSet;
|
||||
|
||||
qint64 center_frequency;
|
||||
bool m_center_frequency_isSet;
|
||||
|
||||
qint32 sample_rate;
|
||||
bool m_sample_rate_isSet;
|
||||
|
||||
qint64 sample_start;
|
||||
bool m_sample_start_isSet;
|
||||
|
||||
qint64 length;
|
||||
bool m_length_isSet;
|
||||
|
||||
qint64 cumulative_time;
|
||||
bool m_cumulative_time_isSet;
|
||||
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
#endif /* SWGCapture_H_ */
|
@ -34,6 +34,8 @@ SWGDeviceActions::SWGDeviceActions() {
|
||||
m_direction_isSet = false;
|
||||
originator_index = 0;
|
||||
m_originator_index_isSet = false;
|
||||
sig_mf_file_input_actions = nullptr;
|
||||
m_sig_mf_file_input_actions_isSet = false;
|
||||
}
|
||||
|
||||
SWGDeviceActions::~SWGDeviceActions() {
|
||||
@ -48,6 +50,8 @@ SWGDeviceActions::init() {
|
||||
m_direction_isSet = false;
|
||||
originator_index = 0;
|
||||
m_originator_index_isSet = false;
|
||||
sig_mf_file_input_actions = new SWGSigMFFileInputActions();
|
||||
m_sig_mf_file_input_actions_isSet = false;
|
||||
}
|
||||
|
||||
void
|
||||
@ -57,6 +61,9 @@ SWGDeviceActions::cleanup() {
|
||||
}
|
||||
|
||||
|
||||
if(sig_mf_file_input_actions != nullptr) {
|
||||
delete sig_mf_file_input_actions;
|
||||
}
|
||||
}
|
||||
|
||||
SWGDeviceActions*
|
||||
@ -76,6 +83,8 @@ SWGDeviceActions::fromJsonObject(QJsonObject &pJson) {
|
||||
|
||||
::SWGSDRangel::setValue(&originator_index, pJson["originatorIndex"], "qint32", "");
|
||||
|
||||
::SWGSDRangel::setValue(&sig_mf_file_input_actions, pJson["sigMFFileInputActions"], "SWGSigMFFileInputActions", "SWGSigMFFileInputActions");
|
||||
|
||||
}
|
||||
|
||||
QString
|
||||
@ -101,6 +110,9 @@ SWGDeviceActions::asJsonObject() {
|
||||
if(m_originator_index_isSet){
|
||||
obj->insert("originatorIndex", QJsonValue(originator_index));
|
||||
}
|
||||
if((sig_mf_file_input_actions != nullptr) && (sig_mf_file_input_actions->isSet())){
|
||||
toJsonValue(QString("sigMFFileInputActions"), sig_mf_file_input_actions, obj, QString("SWGSigMFFileInputActions"));
|
||||
}
|
||||
|
||||
return obj;
|
||||
}
|
||||
@ -135,6 +147,16 @@ SWGDeviceActions::setOriginatorIndex(qint32 originator_index) {
|
||||
this->m_originator_index_isSet = true;
|
||||
}
|
||||
|
||||
SWGSigMFFileInputActions*
|
||||
SWGDeviceActions::getSigMfFileInputActions() {
|
||||
return sig_mf_file_input_actions;
|
||||
}
|
||||
void
|
||||
SWGDeviceActions::setSigMfFileInputActions(SWGSigMFFileInputActions* sig_mf_file_input_actions) {
|
||||
this->sig_mf_file_input_actions = sig_mf_file_input_actions;
|
||||
this->m_sig_mf_file_input_actions_isSet = true;
|
||||
}
|
||||
|
||||
|
||||
bool
|
||||
SWGDeviceActions::isSet(){
|
||||
@ -149,6 +171,9 @@ SWGDeviceActions::isSet(){
|
||||
if(m_originator_index_isSet){
|
||||
isObjectUpdated = true; break;
|
||||
}
|
||||
if(sig_mf_file_input_actions && sig_mf_file_input_actions->isSet()){
|
||||
isObjectUpdated = true; break;
|
||||
}
|
||||
}while(false);
|
||||
return isObjectUpdated;
|
||||
}
|
||||
|
@ -22,6 +22,7 @@
|
||||
#include <QJsonObject>
|
||||
|
||||
|
||||
#include "SWGSigMFFileInputActions.h"
|
||||
#include <QString>
|
||||
|
||||
#include "SWGObject.h"
|
||||
@ -51,6 +52,9 @@ public:
|
||||
qint32 getOriginatorIndex();
|
||||
void setOriginatorIndex(qint32 originator_index);
|
||||
|
||||
SWGSigMFFileInputActions* getSigMfFileInputActions();
|
||||
void setSigMfFileInputActions(SWGSigMFFileInputActions* sig_mf_file_input_actions);
|
||||
|
||||
|
||||
virtual bool isSet() override;
|
||||
|
||||
@ -64,6 +68,9 @@ private:
|
||||
qint32 originator_index;
|
||||
bool m_originator_index_isSet;
|
||||
|
||||
SWGSigMFFileInputActions* sig_mf_file_input_actions;
|
||||
bool m_sig_mf_file_input_actions_isSet;
|
||||
|
||||
};
|
||||
|
||||
}
|
||||
|
@ -66,6 +66,8 @@ SWGDeviceReport::SWGDeviceReport() {
|
||||
m_remote_input_report_isSet = false;
|
||||
sdr_play_report = nullptr;
|
||||
m_sdr_play_report_isSet = false;
|
||||
sig_mf_file_input_report = nullptr;
|
||||
m_sig_mf_file_input_report_isSet = false;
|
||||
soapy_sdr_input_report = nullptr;
|
||||
m_soapy_sdr_input_report_isSet = false;
|
||||
soapy_sdr_output_report = nullptr;
|
||||
@ -124,6 +126,8 @@ SWGDeviceReport::init() {
|
||||
m_remote_input_report_isSet = false;
|
||||
sdr_play_report = new SWGSDRPlayReport();
|
||||
m_sdr_play_report_isSet = false;
|
||||
sig_mf_file_input_report = new SWGSigMFFileInputReport();
|
||||
m_sig_mf_file_input_report_isSet = false;
|
||||
soapy_sdr_input_report = new SWGSoapySDRReport();
|
||||
m_soapy_sdr_input_report_isSet = false;
|
||||
soapy_sdr_output_report = new SWGSoapySDRReport();
|
||||
@ -195,6 +199,9 @@ SWGDeviceReport::cleanup() {
|
||||
if(sdr_play_report != nullptr) {
|
||||
delete sdr_play_report;
|
||||
}
|
||||
if(sig_mf_file_input_report != nullptr) {
|
||||
delete sig_mf_file_input_report;
|
||||
}
|
||||
if(soapy_sdr_input_report != nullptr) {
|
||||
delete soapy_sdr_input_report;
|
||||
}
|
||||
@ -264,6 +271,8 @@ SWGDeviceReport::fromJsonObject(QJsonObject &pJson) {
|
||||
|
||||
::SWGSDRangel::setValue(&sdr_play_report, pJson["sdrPlayReport"], "SWGSDRPlayReport", "SWGSDRPlayReport");
|
||||
|
||||
::SWGSDRangel::setValue(&sig_mf_file_input_report, pJson["sigMFFileInputReport"], "SWGSigMFFileInputReport", "SWGSigMFFileInputReport");
|
||||
|
||||
::SWGSDRangel::setValue(&soapy_sdr_input_report, pJson["soapySDRInputReport"], "SWGSoapySDRReport", "SWGSoapySDRReport");
|
||||
|
||||
::SWGSDRangel::setValue(&soapy_sdr_output_report, pJson["soapySDROutputReport"], "SWGSoapySDRReport", "SWGSoapySDRReport");
|
||||
@ -349,6 +358,9 @@ SWGDeviceReport::asJsonObject() {
|
||||
if((sdr_play_report != nullptr) && (sdr_play_report->isSet())){
|
||||
toJsonValue(QString("sdrPlayReport"), sdr_play_report, obj, QString("SWGSDRPlayReport"));
|
||||
}
|
||||
if((sig_mf_file_input_report != nullptr) && (sig_mf_file_input_report->isSet())){
|
||||
toJsonValue(QString("sigMFFileInputReport"), sig_mf_file_input_report, obj, QString("SWGSigMFFileInputReport"));
|
||||
}
|
||||
if((soapy_sdr_input_report != nullptr) && (soapy_sdr_input_report->isSet())){
|
||||
toJsonValue(QString("soapySDRInputReport"), soapy_sdr_input_report, obj, QString("SWGSoapySDRReport"));
|
||||
}
|
||||
@ -561,6 +573,16 @@ SWGDeviceReport::setSdrPlayReport(SWGSDRPlayReport* sdr_play_report) {
|
||||
this->m_sdr_play_report_isSet = true;
|
||||
}
|
||||
|
||||
SWGSigMFFileInputReport*
|
||||
SWGDeviceReport::getSigMfFileInputReport() {
|
||||
return sig_mf_file_input_report;
|
||||
}
|
||||
void
|
||||
SWGDeviceReport::setSigMfFileInputReport(SWGSigMFFileInputReport* sig_mf_file_input_report) {
|
||||
this->sig_mf_file_input_report = sig_mf_file_input_report;
|
||||
this->m_sig_mf_file_input_report_isSet = true;
|
||||
}
|
||||
|
||||
SWGSoapySDRReport*
|
||||
SWGDeviceReport::getSoapySdrInputReport() {
|
||||
return soapy_sdr_input_report;
|
||||
@ -683,6 +705,9 @@ SWGDeviceReport::isSet(){
|
||||
if(sdr_play_report && sdr_play_report->isSet()){
|
||||
isObjectUpdated = true; break;
|
||||
}
|
||||
if(sig_mf_file_input_report && sig_mf_file_input_report->isSet()){
|
||||
isObjectUpdated = true; break;
|
||||
}
|
||||
if(soapy_sdr_input_report && soapy_sdr_input_report->isSet()){
|
||||
isObjectUpdated = true; break;
|
||||
}
|
||||
|
@ -39,6 +39,7 @@
|
||||
#include "SWGRemoteOutputReport.h"
|
||||
#include "SWGRtlSdrReport.h"
|
||||
#include "SWGSDRPlayReport.h"
|
||||
#include "SWGSigMFFileInputReport.h"
|
||||
#include "SWGSoapySDRReport.h"
|
||||
#include "SWGUSRPInputReport.h"
|
||||
#include "SWGUSRPOutputReport.h"
|
||||
@ -121,6 +122,9 @@ public:
|
||||
SWGSDRPlayReport* getSdrPlayReport();
|
||||
void setSdrPlayReport(SWGSDRPlayReport* sdr_play_report);
|
||||
|
||||
SWGSigMFFileInputReport* getSigMfFileInputReport();
|
||||
void setSigMfFileInputReport(SWGSigMFFileInputReport* sig_mf_file_input_report);
|
||||
|
||||
SWGSoapySDRReport* getSoapySdrInputReport();
|
||||
void setSoapySdrInputReport(SWGSoapySDRReport* soapy_sdr_input_report);
|
||||
|
||||
@ -200,6 +204,9 @@ private:
|
||||
SWGSDRPlayReport* sdr_play_report;
|
||||
bool m_sdr_play_report_isSet;
|
||||
|
||||
SWGSigMFFileInputReport* sig_mf_file_input_report;
|
||||
bool m_sig_mf_file_input_report_isSet;
|
||||
|
||||
SWGSoapySDRReport* soapy_sdr_input_report;
|
||||
bool m_soapy_sdr_input_report_isSet;
|
||||
|
||||
|
@ -84,6 +84,8 @@ SWGDeviceSettings::SWGDeviceSettings() {
|
||||
m_remote_input_settings_isSet = false;
|
||||
sdr_play_settings = nullptr;
|
||||
m_sdr_play_settings_isSet = false;
|
||||
sig_mf_file_input_settings = nullptr;
|
||||
m_sig_mf_file_input_settings_isSet = false;
|
||||
soapy_sdr_input_settings = nullptr;
|
||||
m_soapy_sdr_input_settings_isSet = false;
|
||||
soapy_sdr_output_settings = nullptr;
|
||||
@ -162,6 +164,8 @@ SWGDeviceSettings::init() {
|
||||
m_remote_input_settings_isSet = false;
|
||||
sdr_play_settings = new SWGSDRPlaySettings();
|
||||
m_sdr_play_settings_isSet = false;
|
||||
sig_mf_file_input_settings = new SWGSigMFFileInputSettings();
|
||||
m_sig_mf_file_input_settings_isSet = false;
|
||||
soapy_sdr_input_settings = new SWGSoapySDRInputSettings();
|
||||
m_soapy_sdr_input_settings_isSet = false;
|
||||
soapy_sdr_output_settings = new SWGSoapySDROutputSettings();
|
||||
@ -260,6 +264,9 @@ SWGDeviceSettings::cleanup() {
|
||||
if(sdr_play_settings != nullptr) {
|
||||
delete sdr_play_settings;
|
||||
}
|
||||
if(sig_mf_file_input_settings != nullptr) {
|
||||
delete sig_mf_file_input_settings;
|
||||
}
|
||||
if(soapy_sdr_input_settings != nullptr) {
|
||||
delete soapy_sdr_input_settings;
|
||||
}
|
||||
@ -350,6 +357,8 @@ SWGDeviceSettings::fromJsonObject(QJsonObject &pJson) {
|
||||
|
||||
::SWGSDRangel::setValue(&sdr_play_settings, pJson["sdrPlaySettings"], "SWGSDRPlaySettings", "SWGSDRPlaySettings");
|
||||
|
||||
::SWGSDRangel::setValue(&sig_mf_file_input_settings, pJson["sigMFFileInputSettings"], "SWGSigMFFileInputSettings", "SWGSigMFFileInputSettings");
|
||||
|
||||
::SWGSDRangel::setValue(&soapy_sdr_input_settings, pJson["soapySDRInputSettings"], "SWGSoapySDRInputSettings", "SWGSoapySDRInputSettings");
|
||||
|
||||
::SWGSDRangel::setValue(&soapy_sdr_output_settings, pJson["soapySDROutputSettings"], "SWGSoapySDROutputSettings", "SWGSoapySDROutputSettings");
|
||||
@ -464,6 +473,9 @@ SWGDeviceSettings::asJsonObject() {
|
||||
if((sdr_play_settings != nullptr) && (sdr_play_settings->isSet())){
|
||||
toJsonValue(QString("sdrPlaySettings"), sdr_play_settings, obj, QString("SWGSDRPlaySettings"));
|
||||
}
|
||||
if((sig_mf_file_input_settings != nullptr) && (sig_mf_file_input_settings->isSet())){
|
||||
toJsonValue(QString("sigMFFileInputSettings"), sig_mf_file_input_settings, obj, QString("SWGSigMFFileInputSettings"));
|
||||
}
|
||||
if((soapy_sdr_input_settings != nullptr) && (soapy_sdr_input_settings->isSet())){
|
||||
toJsonValue(QString("soapySDRInputSettings"), soapy_sdr_input_settings, obj, QString("SWGSoapySDRInputSettings"));
|
||||
}
|
||||
@ -769,6 +781,16 @@ SWGDeviceSettings::setSdrPlaySettings(SWGSDRPlaySettings* sdr_play_settings) {
|
||||
this->m_sdr_play_settings_isSet = true;
|
||||
}
|
||||
|
||||
SWGSigMFFileInputSettings*
|
||||
SWGDeviceSettings::getSigMfFileInputSettings() {
|
||||
return sig_mf_file_input_settings;
|
||||
}
|
||||
void
|
||||
SWGDeviceSettings::setSigMfFileInputSettings(SWGSigMFFileInputSettings* sig_mf_file_input_settings) {
|
||||
this->sig_mf_file_input_settings = sig_mf_file_input_settings;
|
||||
this->m_sig_mf_file_input_settings_isSet = true;
|
||||
}
|
||||
|
||||
SWGSoapySDRInputSettings*
|
||||
SWGDeviceSettings::getSoapySdrInputSettings() {
|
||||
return soapy_sdr_input_settings;
|
||||
@ -928,6 +950,9 @@ SWGDeviceSettings::isSet(){
|
||||
if(sdr_play_settings && sdr_play_settings->isSet()){
|
||||
isObjectUpdated = true; break;
|
||||
}
|
||||
if(sig_mf_file_input_settings && sig_mf_file_input_settings->isSet()){
|
||||
isObjectUpdated = true; break;
|
||||
}
|
||||
if(soapy_sdr_input_settings && soapy_sdr_input_settings->isSet()){
|
||||
isObjectUpdated = true; break;
|
||||
}
|
||||
|
@ -47,6 +47,7 @@
|
||||
#include "SWGRemoteOutputSettings.h"
|
||||
#include "SWGRtlSdrSettings.h"
|
||||
#include "SWGSDRPlaySettings.h"
|
||||
#include "SWGSigMFFileInputSettings.h"
|
||||
#include "SWGSoapySDRInputSettings.h"
|
||||
#include "SWGSoapySDROutputSettings.h"
|
||||
#include "SWGTestSourceSettings.h"
|
||||
@ -158,6 +159,9 @@ public:
|
||||
SWGSDRPlaySettings* getSdrPlaySettings();
|
||||
void setSdrPlaySettings(SWGSDRPlaySettings* sdr_play_settings);
|
||||
|
||||
SWGSigMFFileInputSettings* getSigMfFileInputSettings();
|
||||
void setSigMfFileInputSettings(SWGSigMFFileInputSettings* sig_mf_file_input_settings);
|
||||
|
||||
SWGSoapySDRInputSettings* getSoapySdrInputSettings();
|
||||
void setSoapySdrInputSettings(SWGSoapySDRInputSettings* soapy_sdr_input_settings);
|
||||
|
||||
@ -267,6 +271,9 @@ private:
|
||||
SWGSDRPlaySettings* sdr_play_settings;
|
||||
bool m_sdr_play_settings_isSet;
|
||||
|
||||
SWGSigMFFileInputSettings* sig_mf_file_input_settings;
|
||||
bool m_sig_mf_file_input_settings_isSet;
|
||||
|
||||
SWGSoapySDRInputSettings* soapy_sdr_input_settings;
|
||||
bool m_soapy_sdr_input_settings_isSet;
|
||||
|
||||
|
@ -49,6 +49,7 @@
|
||||
#include "SWGBladeRF2OutputReport.h"
|
||||
#include "SWGBladeRF2OutputSettings.h"
|
||||
#include "SWGCWKeyerSettings.h"
|
||||
#include "SWGCapture.h"
|
||||
#include "SWGChannel.h"
|
||||
#include "SWGChannelActions.h"
|
||||
#include "SWGChannelAnalyzerSettings.h"
|
||||
@ -182,6 +183,9 @@
|
||||
#include "SWGSSBModSettings.h"
|
||||
#include "SWGSampleRate.h"
|
||||
#include "SWGSamplingDevice.h"
|
||||
#include "SWGSigMFFileInputActions.h"
|
||||
#include "SWGSigMFFileInputReport.h"
|
||||
#include "SWGSigMFFileInputSettings.h"
|
||||
#include "SWGSimplePTTActions.h"
|
||||
#include "SWGSimplePTTReport.h"
|
||||
#include "SWGSimplePTTSettings.h"
|
||||
@ -319,6 +323,9 @@ namespace SWGSDRangel {
|
||||
if(QString("SWGCWKeyerSettings").compare(type) == 0) {
|
||||
return new SWGCWKeyerSettings();
|
||||
}
|
||||
if(QString("SWGCapture").compare(type) == 0) {
|
||||
return new SWGCapture();
|
||||
}
|
||||
if(QString("SWGChannel").compare(type) == 0) {
|
||||
return new SWGChannel();
|
||||
}
|
||||
@ -718,6 +725,15 @@ namespace SWGSDRangel {
|
||||
if(QString("SWGSamplingDevice").compare(type) == 0) {
|
||||
return new SWGSamplingDevice();
|
||||
}
|
||||
if(QString("SWGSigMFFileInputActions").compare(type) == 0) {
|
||||
return new SWGSigMFFileInputActions();
|
||||
}
|
||||
if(QString("SWGSigMFFileInputReport").compare(type) == 0) {
|
||||
return new SWGSigMFFileInputReport();
|
||||
}
|
||||
if(QString("SWGSigMFFileInputSettings").compare(type) == 0) {
|
||||
return new SWGSigMFFileInputSettings();
|
||||
}
|
||||
if(QString("SWGSimplePTTActions").compare(type) == 0) {
|
||||
return new SWGSimplePTTActions();
|
||||
}
|
||||
|
200
swagger/sdrangel/code/qt5/client/SWGSigMFFileInputActions.cpp
Normal file
200
swagger/sdrangel/code/qt5/client/SWGSigMFFileInputActions.cpp
Normal file
@ -0,0 +1,200 @@
|
||||
/**
|
||||
* 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, USRP 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.15.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 "SWGSigMFFileInputActions.h"
|
||||
|
||||
#include "SWGHelpers.h"
|
||||
|
||||
#include <QJsonDocument>
|
||||
#include <QJsonArray>
|
||||
#include <QObject>
|
||||
#include <QDebug>
|
||||
|
||||
namespace SWGSDRangel {
|
||||
|
||||
SWGSigMFFileInputActions::SWGSigMFFileInputActions(QString* json) {
|
||||
init();
|
||||
this->fromJson(*json);
|
||||
}
|
||||
|
||||
SWGSigMFFileInputActions::SWGSigMFFileInputActions() {
|
||||
play_track = 0;
|
||||
m_play_track_isSet = false;
|
||||
play_record = 0;
|
||||
m_play_record_isSet = false;
|
||||
seek_track = 0;
|
||||
m_seek_track_isSet = false;
|
||||
seek_track_millis = 0;
|
||||
m_seek_track_millis_isSet = false;
|
||||
seek_record_millis = 0;
|
||||
m_seek_record_millis_isSet = false;
|
||||
}
|
||||
|
||||
SWGSigMFFileInputActions::~SWGSigMFFileInputActions() {
|
||||
this->cleanup();
|
||||
}
|
||||
|
||||
void
|
||||
SWGSigMFFileInputActions::init() {
|
||||
play_track = 0;
|
||||
m_play_track_isSet = false;
|
||||
play_record = 0;
|
||||
m_play_record_isSet = false;
|
||||
seek_track = 0;
|
||||
m_seek_track_isSet = false;
|
||||
seek_track_millis = 0;
|
||||
m_seek_track_millis_isSet = false;
|
||||
seek_record_millis = 0;
|
||||
m_seek_record_millis_isSet = false;
|
||||
}
|
||||
|
||||
void
|
||||
SWGSigMFFileInputActions::cleanup() {
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
SWGSigMFFileInputActions*
|
||||
SWGSigMFFileInputActions::fromJson(QString &json) {
|
||||
QByteArray array (json.toStdString().c_str());
|
||||
QJsonDocument doc = QJsonDocument::fromJson(array);
|
||||
QJsonObject jsonObject = doc.object();
|
||||
this->fromJsonObject(jsonObject);
|
||||
return this;
|
||||
}
|
||||
|
||||
void
|
||||
SWGSigMFFileInputActions::fromJsonObject(QJsonObject &pJson) {
|
||||
::SWGSDRangel::setValue(&play_track, pJson["playTrack"], "qint32", "");
|
||||
|
||||
::SWGSDRangel::setValue(&play_record, pJson["playRecord"], "qint32", "");
|
||||
|
||||
::SWGSDRangel::setValue(&seek_track, pJson["seekTrack"], "qint32", "");
|
||||
|
||||
::SWGSDRangel::setValue(&seek_track_millis, pJson["seekTrackMillis"], "qint32", "");
|
||||
|
||||
::SWGSDRangel::setValue(&seek_record_millis, pJson["seekRecordMillis"], "qint32", "");
|
||||
|
||||
}
|
||||
|
||||
QString
|
||||
SWGSigMFFileInputActions::asJson ()
|
||||
{
|
||||
QJsonObject* obj = this->asJsonObject();
|
||||
|
||||
QJsonDocument doc(*obj);
|
||||
QByteArray bytes = doc.toJson();
|
||||
delete obj;
|
||||
return QString(bytes);
|
||||
}
|
||||
|
||||
QJsonObject*
|
||||
SWGSigMFFileInputActions::asJsonObject() {
|
||||
QJsonObject* obj = new QJsonObject();
|
||||
if(m_play_track_isSet){
|
||||
obj->insert("playTrack", QJsonValue(play_track));
|
||||
}
|
||||
if(m_play_record_isSet){
|
||||
obj->insert("playRecord", QJsonValue(play_record));
|
||||
}
|
||||
if(m_seek_track_isSet){
|
||||
obj->insert("seekTrack", QJsonValue(seek_track));
|
||||
}
|
||||
if(m_seek_track_millis_isSet){
|
||||
obj->insert("seekTrackMillis", QJsonValue(seek_track_millis));
|
||||
}
|
||||
if(m_seek_record_millis_isSet){
|
||||
obj->insert("seekRecordMillis", QJsonValue(seek_record_millis));
|
||||
}
|
||||
|
||||
return obj;
|
||||
}
|
||||
|
||||
qint32
|
||||
SWGSigMFFileInputActions::getPlayTrack() {
|
||||
return play_track;
|
||||
}
|
||||
void
|
||||
SWGSigMFFileInputActions::setPlayTrack(qint32 play_track) {
|
||||
this->play_track = play_track;
|
||||
this->m_play_track_isSet = true;
|
||||
}
|
||||
|
||||
qint32
|
||||
SWGSigMFFileInputActions::getPlayRecord() {
|
||||
return play_record;
|
||||
}
|
||||
void
|
||||
SWGSigMFFileInputActions::setPlayRecord(qint32 play_record) {
|
||||
this->play_record = play_record;
|
||||
this->m_play_record_isSet = true;
|
||||
}
|
||||
|
||||
qint32
|
||||
SWGSigMFFileInputActions::getSeekTrack() {
|
||||
return seek_track;
|
||||
}
|
||||
void
|
||||
SWGSigMFFileInputActions::setSeekTrack(qint32 seek_track) {
|
||||
this->seek_track = seek_track;
|
||||
this->m_seek_track_isSet = true;
|
||||
}
|
||||
|
||||
qint32
|
||||
SWGSigMFFileInputActions::getSeekTrackMillis() {
|
||||
return seek_track_millis;
|
||||
}
|
||||
void
|
||||
SWGSigMFFileInputActions::setSeekTrackMillis(qint32 seek_track_millis) {
|
||||
this->seek_track_millis = seek_track_millis;
|
||||
this->m_seek_track_millis_isSet = true;
|
||||
}
|
||||
|
||||
qint32
|
||||
SWGSigMFFileInputActions::getSeekRecordMillis() {
|
||||
return seek_record_millis;
|
||||
}
|
||||
void
|
||||
SWGSigMFFileInputActions::setSeekRecordMillis(qint32 seek_record_millis) {
|
||||
this->seek_record_millis = seek_record_millis;
|
||||
this->m_seek_record_millis_isSet = true;
|
||||
}
|
||||
|
||||
|
||||
bool
|
||||
SWGSigMFFileInputActions::isSet(){
|
||||
bool isObjectUpdated = false;
|
||||
do{
|
||||
if(m_play_track_isSet){
|
||||
isObjectUpdated = true; break;
|
||||
}
|
||||
if(m_play_record_isSet){
|
||||
isObjectUpdated = true; break;
|
||||
}
|
||||
if(m_seek_track_isSet){
|
||||
isObjectUpdated = true; break;
|
||||
}
|
||||
if(m_seek_track_millis_isSet){
|
||||
isObjectUpdated = true; break;
|
||||
}
|
||||
if(m_seek_record_millis_isSet){
|
||||
isObjectUpdated = true; break;
|
||||
}
|
||||
}while(false);
|
||||
return isObjectUpdated;
|
||||
}
|
||||
}
|
||||
|
82
swagger/sdrangel/code/qt5/client/SWGSigMFFileInputActions.h
Normal file
82
swagger/sdrangel/code/qt5/client/SWGSigMFFileInputActions.h
Normal file
@ -0,0 +1,82 @@
|
||||
/**
|
||||
* 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, USRP 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.15.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.
|
||||
*/
|
||||
|
||||
/*
|
||||
* SWGSigMFFileInputActions.h
|
||||
*
|
||||
* SigMFFileInput
|
||||
*/
|
||||
|
||||
#ifndef SWGSigMFFileInputActions_H_
|
||||
#define SWGSigMFFileInputActions_H_
|
||||
|
||||
#include <QJsonObject>
|
||||
|
||||
|
||||
|
||||
#include "SWGObject.h"
|
||||
#include "export.h"
|
||||
|
||||
namespace SWGSDRangel {
|
||||
|
||||
class SWG_API SWGSigMFFileInputActions: public SWGObject {
|
||||
public:
|
||||
SWGSigMFFileInputActions();
|
||||
SWGSigMFFileInputActions(QString* json);
|
||||
virtual ~SWGSigMFFileInputActions();
|
||||
void init();
|
||||
void cleanup();
|
||||
|
||||
virtual QString asJson () override;
|
||||
virtual QJsonObject* asJsonObject() override;
|
||||
virtual void fromJsonObject(QJsonObject &json) override;
|
||||
virtual SWGSigMFFileInputActions* fromJson(QString &jsonString) override;
|
||||
|
||||
qint32 getPlayTrack();
|
||||
void setPlayTrack(qint32 play_track);
|
||||
|
||||
qint32 getPlayRecord();
|
||||
void setPlayRecord(qint32 play_record);
|
||||
|
||||
qint32 getSeekTrack();
|
||||
void setSeekTrack(qint32 seek_track);
|
||||
|
||||
qint32 getSeekTrackMillis();
|
||||
void setSeekTrackMillis(qint32 seek_track_millis);
|
||||
|
||||
qint32 getSeekRecordMillis();
|
||||
void setSeekRecordMillis(qint32 seek_record_millis);
|
||||
|
||||
|
||||
virtual bool isSet() override;
|
||||
|
||||
private:
|
||||
qint32 play_track;
|
||||
bool m_play_track_isSet;
|
||||
|
||||
qint32 play_record;
|
||||
bool m_play_record_isSet;
|
||||
|
||||
qint32 seek_track;
|
||||
bool m_seek_track_isSet;
|
||||
|
||||
qint32 seek_track_millis;
|
||||
bool m_seek_track_millis_isSet;
|
||||
|
||||
qint32 seek_record_millis;
|
||||
bool m_seek_record_millis_isSet;
|
||||
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
#endif /* SWGSigMFFileInputActions_H_ */
|
436
swagger/sdrangel/code/qt5/client/SWGSigMFFileInputReport.cpp
Normal file
436
swagger/sdrangel/code/qt5/client/SWGSigMFFileInputReport.cpp
Normal file
@ -0,0 +1,436 @@
|
||||
/**
|
||||
* 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, USRP 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.15.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 "SWGSigMFFileInputReport.h"
|
||||
|
||||
#include "SWGHelpers.h"
|
||||
|
||||
#include <QJsonDocument>
|
||||
#include <QJsonArray>
|
||||
#include <QObject>
|
||||
#include <QDebug>
|
||||
|
||||
namespace SWGSDRangel {
|
||||
|
||||
SWGSigMFFileInputReport::SWGSigMFFileInputReport(QString* json) {
|
||||
init();
|
||||
this->fromJson(*json);
|
||||
}
|
||||
|
||||
SWGSigMFFileInputReport::SWGSigMFFileInputReport() {
|
||||
sample_size = 0;
|
||||
m_sample_size_isSet = false;
|
||||
sample_bytes = 0;
|
||||
m_sample_bytes_isSet = false;
|
||||
sample_format = 0;
|
||||
m_sample_format_isSet = false;
|
||||
sample_signed = 0;
|
||||
m_sample_signed_isSet = false;
|
||||
sample_swap_iq = 0;
|
||||
m_sample_swap_iq_isSet = false;
|
||||
crc_status = 0;
|
||||
m_crc_status_isSet = false;
|
||||
total_bytes_status = 0;
|
||||
m_total_bytes_status_isSet = false;
|
||||
captures = nullptr;
|
||||
m_captures_isSet = false;
|
||||
track_number = 0;
|
||||
m_track_number_isSet = false;
|
||||
absolute_time_ms = 0L;
|
||||
m_absolute_time_ms_isSet = false;
|
||||
elapsed_record_time_ms = 0L;
|
||||
m_elapsed_record_time_ms_isSet = false;
|
||||
record_samples_ratio = 0.0f;
|
||||
m_record_samples_ratio_isSet = false;
|
||||
elapsed_trackime_ms = 0L;
|
||||
m_elapsed_trackime_ms_isSet = false;
|
||||
track_samples_ratio = 0.0f;
|
||||
m_track_samples_ratio_isSet = false;
|
||||
record_duration_ms = 0L;
|
||||
m_record_duration_ms_isSet = false;
|
||||
}
|
||||
|
||||
SWGSigMFFileInputReport::~SWGSigMFFileInputReport() {
|
||||
this->cleanup();
|
||||
}
|
||||
|
||||
void
|
||||
SWGSigMFFileInputReport::init() {
|
||||
sample_size = 0;
|
||||
m_sample_size_isSet = false;
|
||||
sample_bytes = 0;
|
||||
m_sample_bytes_isSet = false;
|
||||
sample_format = 0;
|
||||
m_sample_format_isSet = false;
|
||||
sample_signed = 0;
|
||||
m_sample_signed_isSet = false;
|
||||
sample_swap_iq = 0;
|
||||
m_sample_swap_iq_isSet = false;
|
||||
crc_status = 0;
|
||||
m_crc_status_isSet = false;
|
||||
total_bytes_status = 0;
|
||||
m_total_bytes_status_isSet = false;
|
||||
captures = new QList<SWGCapture*>();
|
||||
m_captures_isSet = false;
|
||||
track_number = 0;
|
||||
m_track_number_isSet = false;
|
||||
absolute_time_ms = 0L;
|
||||
m_absolute_time_ms_isSet = false;
|
||||
elapsed_record_time_ms = 0L;
|
||||
m_elapsed_record_time_ms_isSet = false;
|
||||
record_samples_ratio = 0.0f;
|
||||
m_record_samples_ratio_isSet = false;
|
||||
elapsed_trackime_ms = 0L;
|
||||
m_elapsed_trackime_ms_isSet = false;
|
||||
track_samples_ratio = 0.0f;
|
||||
m_track_samples_ratio_isSet = false;
|
||||
record_duration_ms = 0L;
|
||||
m_record_duration_ms_isSet = false;
|
||||
}
|
||||
|
||||
void
|
||||
SWGSigMFFileInputReport::cleanup() {
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
if(captures != nullptr) {
|
||||
auto arr = captures;
|
||||
for(auto o: *arr) {
|
||||
delete o;
|
||||
}
|
||||
delete captures;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
SWGSigMFFileInputReport*
|
||||
SWGSigMFFileInputReport::fromJson(QString &json) {
|
||||
QByteArray array (json.toStdString().c_str());
|
||||
QJsonDocument doc = QJsonDocument::fromJson(array);
|
||||
QJsonObject jsonObject = doc.object();
|
||||
this->fromJsonObject(jsonObject);
|
||||
return this;
|
||||
}
|
||||
|
||||
void
|
||||
SWGSigMFFileInputReport::fromJsonObject(QJsonObject &pJson) {
|
||||
::SWGSDRangel::setValue(&sample_size, pJson["sampleSize"], "qint32", "");
|
||||
|
||||
::SWGSDRangel::setValue(&sample_bytes, pJson["sampleBytes"], "qint32", "");
|
||||
|
||||
::SWGSDRangel::setValue(&sample_format, pJson["sampleFormat"], "qint32", "");
|
||||
|
||||
::SWGSDRangel::setValue(&sample_signed, pJson["sampleSigned"], "qint32", "");
|
||||
|
||||
::SWGSDRangel::setValue(&sample_swap_iq, pJson["sampleSwapIQ"], "qint32", "");
|
||||
|
||||
::SWGSDRangel::setValue(&crc_status, pJson["crcStatus"], "qint32", "");
|
||||
|
||||
::SWGSDRangel::setValue(&total_bytes_status, pJson["totalBytesStatus"], "qint32", "");
|
||||
|
||||
|
||||
::SWGSDRangel::setValue(&captures, pJson["captures"], "QList", "SWGCapture");
|
||||
::SWGSDRangel::setValue(&track_number, pJson["trackNumber"], "qint32", "");
|
||||
|
||||
::SWGSDRangel::setValue(&absolute_time_ms, pJson["absoluteTimeMs"], "qint64", "");
|
||||
|
||||
::SWGSDRangel::setValue(&elapsed_record_time_ms, pJson["elapsedRecordTimeMs"], "qint64", "");
|
||||
|
||||
::SWGSDRangel::setValue(&record_samples_ratio, pJson["recordSamplesRatio"], "float", "");
|
||||
|
||||
::SWGSDRangel::setValue(&elapsed_trackime_ms, pJson["elapsedTrackimeMs"], "qint64", "");
|
||||
|
||||
::SWGSDRangel::setValue(&track_samples_ratio, pJson["trackSamplesRatio"], "float", "");
|
||||
|
||||
::SWGSDRangel::setValue(&record_duration_ms, pJson["recordDurationMs"], "qint64", "");
|
||||
|
||||
}
|
||||
|
||||
QString
|
||||
SWGSigMFFileInputReport::asJson ()
|
||||
{
|
||||
QJsonObject* obj = this->asJsonObject();
|
||||
|
||||
QJsonDocument doc(*obj);
|
||||
QByteArray bytes = doc.toJson();
|
||||
delete obj;
|
||||
return QString(bytes);
|
||||
}
|
||||
|
||||
QJsonObject*
|
||||
SWGSigMFFileInputReport::asJsonObject() {
|
||||
QJsonObject* obj = new QJsonObject();
|
||||
if(m_sample_size_isSet){
|
||||
obj->insert("sampleSize", QJsonValue(sample_size));
|
||||
}
|
||||
if(m_sample_bytes_isSet){
|
||||
obj->insert("sampleBytes", QJsonValue(sample_bytes));
|
||||
}
|
||||
if(m_sample_format_isSet){
|
||||
obj->insert("sampleFormat", QJsonValue(sample_format));
|
||||
}
|
||||
if(m_sample_signed_isSet){
|
||||
obj->insert("sampleSigned", QJsonValue(sample_signed));
|
||||
}
|
||||
if(m_sample_swap_iq_isSet){
|
||||
obj->insert("sampleSwapIQ", QJsonValue(sample_swap_iq));
|
||||
}
|
||||
if(m_crc_status_isSet){
|
||||
obj->insert("crcStatus", QJsonValue(crc_status));
|
||||
}
|
||||
if(m_total_bytes_status_isSet){
|
||||
obj->insert("totalBytesStatus", QJsonValue(total_bytes_status));
|
||||
}
|
||||
if(captures && captures->size() > 0){
|
||||
toJsonArray((QList<void*>*)captures, obj, "captures", "SWGCapture");
|
||||
}
|
||||
if(m_track_number_isSet){
|
||||
obj->insert("trackNumber", QJsonValue(track_number));
|
||||
}
|
||||
if(m_absolute_time_ms_isSet){
|
||||
obj->insert("absoluteTimeMs", QJsonValue(absolute_time_ms));
|
||||
}
|
||||
if(m_elapsed_record_time_ms_isSet){
|
||||
obj->insert("elapsedRecordTimeMs", QJsonValue(elapsed_record_time_ms));
|
||||
}
|
||||
if(m_record_samples_ratio_isSet){
|
||||
obj->insert("recordSamplesRatio", QJsonValue(record_samples_ratio));
|
||||
}
|
||||
if(m_elapsed_trackime_ms_isSet){
|
||||
obj->insert("elapsedTrackimeMs", QJsonValue(elapsed_trackime_ms));
|
||||
}
|
||||
if(m_track_samples_ratio_isSet){
|
||||
obj->insert("trackSamplesRatio", QJsonValue(track_samples_ratio));
|
||||
}
|
||||
if(m_record_duration_ms_isSet){
|
||||
obj->insert("recordDurationMs", QJsonValue(record_duration_ms));
|
||||
}
|
||||
|
||||
return obj;
|
||||
}
|
||||
|
||||
qint32
|
||||
SWGSigMFFileInputReport::getSampleSize() {
|
||||
return sample_size;
|
||||
}
|
||||
void
|
||||
SWGSigMFFileInputReport::setSampleSize(qint32 sample_size) {
|
||||
this->sample_size = sample_size;
|
||||
this->m_sample_size_isSet = true;
|
||||
}
|
||||
|
||||
qint32
|
||||
SWGSigMFFileInputReport::getSampleBytes() {
|
||||
return sample_bytes;
|
||||
}
|
||||
void
|
||||
SWGSigMFFileInputReport::setSampleBytes(qint32 sample_bytes) {
|
||||
this->sample_bytes = sample_bytes;
|
||||
this->m_sample_bytes_isSet = true;
|
||||
}
|
||||
|
||||
qint32
|
||||
SWGSigMFFileInputReport::getSampleFormat() {
|
||||
return sample_format;
|
||||
}
|
||||
void
|
||||
SWGSigMFFileInputReport::setSampleFormat(qint32 sample_format) {
|
||||
this->sample_format = sample_format;
|
||||
this->m_sample_format_isSet = true;
|
||||
}
|
||||
|
||||
qint32
|
||||
SWGSigMFFileInputReport::getSampleSigned() {
|
||||
return sample_signed;
|
||||
}
|
||||
void
|
||||
SWGSigMFFileInputReport::setSampleSigned(qint32 sample_signed) {
|
||||
this->sample_signed = sample_signed;
|
||||
this->m_sample_signed_isSet = true;
|
||||
}
|
||||
|
||||
qint32
|
||||
SWGSigMFFileInputReport::getSampleSwapIq() {
|
||||
return sample_swap_iq;
|
||||
}
|
||||
void
|
||||
SWGSigMFFileInputReport::setSampleSwapIq(qint32 sample_swap_iq) {
|
||||
this->sample_swap_iq = sample_swap_iq;
|
||||
this->m_sample_swap_iq_isSet = true;
|
||||
}
|
||||
|
||||
qint32
|
||||
SWGSigMFFileInputReport::getCrcStatus() {
|
||||
return crc_status;
|
||||
}
|
||||
void
|
||||
SWGSigMFFileInputReport::setCrcStatus(qint32 crc_status) {
|
||||
this->crc_status = crc_status;
|
||||
this->m_crc_status_isSet = true;
|
||||
}
|
||||
|
||||
qint32
|
||||
SWGSigMFFileInputReport::getTotalBytesStatus() {
|
||||
return total_bytes_status;
|
||||
}
|
||||
void
|
||||
SWGSigMFFileInputReport::setTotalBytesStatus(qint32 total_bytes_status) {
|
||||
this->total_bytes_status = total_bytes_status;
|
||||
this->m_total_bytes_status_isSet = true;
|
||||
}
|
||||
|
||||
QList<SWGCapture*>*
|
||||
SWGSigMFFileInputReport::getCaptures() {
|
||||
return captures;
|
||||
}
|
||||
void
|
||||
SWGSigMFFileInputReport::setCaptures(QList<SWGCapture*>* captures) {
|
||||
this->captures = captures;
|
||||
this->m_captures_isSet = true;
|
||||
}
|
||||
|
||||
qint32
|
||||
SWGSigMFFileInputReport::getTrackNumber() {
|
||||
return track_number;
|
||||
}
|
||||
void
|
||||
SWGSigMFFileInputReport::setTrackNumber(qint32 track_number) {
|
||||
this->track_number = track_number;
|
||||
this->m_track_number_isSet = true;
|
||||
}
|
||||
|
||||
qint64
|
||||
SWGSigMFFileInputReport::getAbsoluteTimeMs() {
|
||||
return absolute_time_ms;
|
||||
}
|
||||
void
|
||||
SWGSigMFFileInputReport::setAbsoluteTimeMs(qint64 absolute_time_ms) {
|
||||
this->absolute_time_ms = absolute_time_ms;
|
||||
this->m_absolute_time_ms_isSet = true;
|
||||
}
|
||||
|
||||
qint64
|
||||
SWGSigMFFileInputReport::getElapsedRecordTimeMs() {
|
||||
return elapsed_record_time_ms;
|
||||
}
|
||||
void
|
||||
SWGSigMFFileInputReport::setElapsedRecordTimeMs(qint64 elapsed_record_time_ms) {
|
||||
this->elapsed_record_time_ms = elapsed_record_time_ms;
|
||||
this->m_elapsed_record_time_ms_isSet = true;
|
||||
}
|
||||
|
||||
float
|
||||
SWGSigMFFileInputReport::getRecordSamplesRatio() {
|
||||
return record_samples_ratio;
|
||||
}
|
||||
void
|
||||
SWGSigMFFileInputReport::setRecordSamplesRatio(float record_samples_ratio) {
|
||||
this->record_samples_ratio = record_samples_ratio;
|
||||
this->m_record_samples_ratio_isSet = true;
|
||||
}
|
||||
|
||||
qint64
|
||||
SWGSigMFFileInputReport::getElapsedTrackimeMs() {
|
||||
return elapsed_trackime_ms;
|
||||
}
|
||||
void
|
||||
SWGSigMFFileInputReport::setElapsedTrackimeMs(qint64 elapsed_trackime_ms) {
|
||||
this->elapsed_trackime_ms = elapsed_trackime_ms;
|
||||
this->m_elapsed_trackime_ms_isSet = true;
|
||||
}
|
||||
|
||||
float
|
||||
SWGSigMFFileInputReport::getTrackSamplesRatio() {
|
||||
return track_samples_ratio;
|
||||
}
|
||||
void
|
||||
SWGSigMFFileInputReport::setTrackSamplesRatio(float track_samples_ratio) {
|
||||
this->track_samples_ratio = track_samples_ratio;
|
||||
this->m_track_samples_ratio_isSet = true;
|
||||
}
|
||||
|
||||
qint64
|
||||
SWGSigMFFileInputReport::getRecordDurationMs() {
|
||||
return record_duration_ms;
|
||||
}
|
||||
void
|
||||
SWGSigMFFileInputReport::setRecordDurationMs(qint64 record_duration_ms) {
|
||||
this->record_duration_ms = record_duration_ms;
|
||||
this->m_record_duration_ms_isSet = true;
|
||||
}
|
||||
|
||||
|
||||
bool
|
||||
SWGSigMFFileInputReport::isSet(){
|
||||
bool isObjectUpdated = false;
|
||||
do{
|
||||
if(m_sample_size_isSet){
|
||||
isObjectUpdated = true; break;
|
||||
}
|
||||
if(m_sample_bytes_isSet){
|
||||
isObjectUpdated = true; break;
|
||||
}
|
||||
if(m_sample_format_isSet){
|
||||
isObjectUpdated = true; break;
|
||||
}
|
||||
if(m_sample_signed_isSet){
|
||||
isObjectUpdated = true; break;
|
||||
}
|
||||
if(m_sample_swap_iq_isSet){
|
||||
isObjectUpdated = true; break;
|
||||
}
|
||||
if(m_crc_status_isSet){
|
||||
isObjectUpdated = true; break;
|
||||
}
|
||||
if(m_total_bytes_status_isSet){
|
||||
isObjectUpdated = true; break;
|
||||
}
|
||||
if(captures && (captures->size() > 0)){
|
||||
isObjectUpdated = true; break;
|
||||
}
|
||||
if(m_track_number_isSet){
|
||||
isObjectUpdated = true; break;
|
||||
}
|
||||
if(m_absolute_time_ms_isSet){
|
||||
isObjectUpdated = true; break;
|
||||
}
|
||||
if(m_elapsed_record_time_ms_isSet){
|
||||
isObjectUpdated = true; break;
|
||||
}
|
||||
if(m_record_samples_ratio_isSet){
|
||||
isObjectUpdated = true; break;
|
||||
}
|
||||
if(m_elapsed_trackime_ms_isSet){
|
||||
isObjectUpdated = true; break;
|
||||
}
|
||||
if(m_track_samples_ratio_isSet){
|
||||
isObjectUpdated = true; break;
|
||||
}
|
||||
if(m_record_duration_ms_isSet){
|
||||
isObjectUpdated = true; break;
|
||||
}
|
||||
}while(false);
|
||||
return isObjectUpdated;
|
||||
}
|
||||
}
|
||||
|
144
swagger/sdrangel/code/qt5/client/SWGSigMFFileInputReport.h
Normal file
144
swagger/sdrangel/code/qt5/client/SWGSigMFFileInputReport.h
Normal file
@ -0,0 +1,144 @@
|
||||
/**
|
||||
* 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, USRP 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.15.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.
|
||||
*/
|
||||
|
||||
/*
|
||||
* SWGSigMFFileInputReport.h
|
||||
*
|
||||
* SigMFFileInput
|
||||
*/
|
||||
|
||||
#ifndef SWGSigMFFileInputReport_H_
|
||||
#define SWGSigMFFileInputReport_H_
|
||||
|
||||
#include <QJsonObject>
|
||||
|
||||
|
||||
#include "SWGCapture.h"
|
||||
#include <QList>
|
||||
|
||||
#include "SWGObject.h"
|
||||
#include "export.h"
|
||||
|
||||
namespace SWGSDRangel {
|
||||
|
||||
class SWG_API SWGSigMFFileInputReport: public SWGObject {
|
||||
public:
|
||||
SWGSigMFFileInputReport();
|
||||
SWGSigMFFileInputReport(QString* json);
|
||||
virtual ~SWGSigMFFileInputReport();
|
||||
void init();
|
||||
void cleanup();
|
||||
|
||||
virtual QString asJson () override;
|
||||
virtual QJsonObject* asJsonObject() override;
|
||||
virtual void fromJsonObject(QJsonObject &json) override;
|
||||
virtual SWGSigMFFileInputReport* fromJson(QString &jsonString) override;
|
||||
|
||||
qint32 getSampleSize();
|
||||
void setSampleSize(qint32 sample_size);
|
||||
|
||||
qint32 getSampleBytes();
|
||||
void setSampleBytes(qint32 sample_bytes);
|
||||
|
||||
qint32 getSampleFormat();
|
||||
void setSampleFormat(qint32 sample_format);
|
||||
|
||||
qint32 getSampleSigned();
|
||||
void setSampleSigned(qint32 sample_signed);
|
||||
|
||||
qint32 getSampleSwapIq();
|
||||
void setSampleSwapIq(qint32 sample_swap_iq);
|
||||
|
||||
qint32 getCrcStatus();
|
||||
void setCrcStatus(qint32 crc_status);
|
||||
|
||||
qint32 getTotalBytesStatus();
|
||||
void setTotalBytesStatus(qint32 total_bytes_status);
|
||||
|
||||
QList<SWGCapture*>* getCaptures();
|
||||
void setCaptures(QList<SWGCapture*>* captures);
|
||||
|
||||
qint32 getTrackNumber();
|
||||
void setTrackNumber(qint32 track_number);
|
||||
|
||||
qint64 getAbsoluteTimeMs();
|
||||
void setAbsoluteTimeMs(qint64 absolute_time_ms);
|
||||
|
||||
qint64 getElapsedRecordTimeMs();
|
||||
void setElapsedRecordTimeMs(qint64 elapsed_record_time_ms);
|
||||
|
||||
float getRecordSamplesRatio();
|
||||
void setRecordSamplesRatio(float record_samples_ratio);
|
||||
|
||||
qint64 getElapsedTrackimeMs();
|
||||
void setElapsedTrackimeMs(qint64 elapsed_trackime_ms);
|
||||
|
||||
float getTrackSamplesRatio();
|
||||
void setTrackSamplesRatio(float track_samples_ratio);
|
||||
|
||||
qint64 getRecordDurationMs();
|
||||
void setRecordDurationMs(qint64 record_duration_ms);
|
||||
|
||||
|
||||
virtual bool isSet() override;
|
||||
|
||||
private:
|
||||
qint32 sample_size;
|
||||
bool m_sample_size_isSet;
|
||||
|
||||
qint32 sample_bytes;
|
||||
bool m_sample_bytes_isSet;
|
||||
|
||||
qint32 sample_format;
|
||||
bool m_sample_format_isSet;
|
||||
|
||||
qint32 sample_signed;
|
||||
bool m_sample_signed_isSet;
|
||||
|
||||
qint32 sample_swap_iq;
|
||||
bool m_sample_swap_iq_isSet;
|
||||
|
||||
qint32 crc_status;
|
||||
bool m_crc_status_isSet;
|
||||
|
||||
qint32 total_bytes_status;
|
||||
bool m_total_bytes_status_isSet;
|
||||
|
||||
QList<SWGCapture*>* captures;
|
||||
bool m_captures_isSet;
|
||||
|
||||
qint32 track_number;
|
||||
bool m_track_number_isSet;
|
||||
|
||||
qint64 absolute_time_ms;
|
||||
bool m_absolute_time_ms_isSet;
|
||||
|
||||
qint64 elapsed_record_time_ms;
|
||||
bool m_elapsed_record_time_ms_isSet;
|
||||
|
||||
float record_samples_ratio;
|
||||
bool m_record_samples_ratio_isSet;
|
||||
|
||||
qint64 elapsed_trackime_ms;
|
||||
bool m_elapsed_trackime_ms_isSet;
|
||||
|
||||
float track_samples_ratio;
|
||||
bool m_track_samples_ratio_isSet;
|
||||
|
||||
qint64 record_duration_ms;
|
||||
bool m_record_duration_ms_isSet;
|
||||
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
#endif /* SWGSigMFFileInputReport_H_ */
|
273
swagger/sdrangel/code/qt5/client/SWGSigMFFileInputSettings.cpp
Normal file
273
swagger/sdrangel/code/qt5/client/SWGSigMFFileInputSettings.cpp
Normal file
@ -0,0 +1,273 @@
|
||||
/**
|
||||
* SDRangel
|
||||
* This is the web REST/JSON API of SDRangel SDR software. SDRangel is an Open Source Qt5/OpenGL 3.0+ (4.3+ in Windows) GUI and server Software Defined Radio and signal analyzer in software. It supports Airspy, BladeRF, HackRF, LimeSDR, PlutoSDR, RTL-SDR, SDRplay RSP1, USRP 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.15.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 "SWGSigMFFileInputSettings.h"
|
||||
|
||||
#include "SWGHelpers.h"
|
||||
|
||||
#include <QJsonDocument>
|
||||
#include <QJsonArray>
|
||||
#include <QObject>
|
||||
#include <QDebug>
|
||||
|
||||
namespace SWGSDRangel {
|
||||
|
||||
SWGSigMFFileInputSettings::SWGSigMFFileInputSettings(QString* json) {
|
||||
init();
|
||||
this->fromJson(*json);
|
||||
}
|
||||
|
||||
SWGSigMFFileInputSettings::SWGSigMFFileInputSettings() {
|
||||
file_name = nullptr;
|
||||
m_file_name_isSet = false;
|
||||
acceleration_factor = 0;
|
||||
m_acceleration_factor_isSet = false;
|
||||
track_loop = 0;
|
||||
m_track_loop_isSet = false;
|
||||
full_loop = 0;
|
||||
m_full_loop_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;
|
||||
}
|
||||
|
||||
SWGSigMFFileInputSettings::~SWGSigMFFileInputSettings() {
|
||||
this->cleanup();
|
||||
}
|
||||
|
||||
void
|
||||
SWGSigMFFileInputSettings::init() {
|
||||
file_name = new QString("");
|
||||
m_file_name_isSet = false;
|
||||
acceleration_factor = 0;
|
||||
m_acceleration_factor_isSet = false;
|
||||
track_loop = 0;
|
||||
m_track_loop_isSet = false;
|
||||
full_loop = 0;
|
||||
m_full_loop_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;
|
||||
}
|
||||
|
||||
void
|
||||
SWGSigMFFileInputSettings::cleanup() {
|
||||
if(file_name != nullptr) {
|
||||
delete file_name;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
if(reverse_api_address != nullptr) {
|
||||
delete reverse_api_address;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
SWGSigMFFileInputSettings*
|
||||
SWGSigMFFileInputSettings::fromJson(QString &json) {
|
||||
QByteArray array (json.toStdString().c_str());
|
||||
QJsonDocument doc = QJsonDocument::fromJson(array);
|
||||
QJsonObject jsonObject = doc.object();
|
||||
this->fromJsonObject(jsonObject);
|
||||
return this;
|
||||
}
|
||||
|
||||
void
|
||||
SWGSigMFFileInputSettings::fromJsonObject(QJsonObject &pJson) {
|
||||
::SWGSDRangel::setValue(&file_name, pJson["fileName"], "QString", "QString");
|
||||
|
||||
::SWGSDRangel::setValue(&acceleration_factor, pJson["accelerationFactor"], "qint32", "");
|
||||
|
||||
::SWGSDRangel::setValue(&track_loop, pJson["trackLoop"], "qint32", "");
|
||||
|
||||
::SWGSDRangel::setValue(&full_loop, pJson["fullLoop"], "qint32", "");
|
||||
|
||||
::SWGSDRangel::setValue(&use_reverse_api, pJson["useReverseAPI"], "qint32", "");
|
||||
|
||||
::SWGSDRangel::setValue(&reverse_api_address, pJson["reverseAPIAddress"], "QString", "QString");
|
||||
|
||||
::SWGSDRangel::setValue(&reverse_api_port, pJson["reverseAPIPort"], "qint32", "");
|
||||
|
||||
::SWGSDRangel::setValue(&reverse_api_device_index, pJson["reverseAPIDeviceIndex"], "qint32", "");
|
||||
|
||||
}
|
||||
|
||||
QString
|
||||
SWGSigMFFileInputSettings::asJson ()
|
||||
{
|
||||
QJsonObject* obj = this->asJsonObject();
|
||||
|
||||
QJsonDocument doc(*obj);
|
||||
QByteArray bytes = doc.toJson();
|
||||
delete obj;
|
||||
return QString(bytes);
|
||||
}
|
||||
|
||||
QJsonObject*
|
||||
SWGSigMFFileInputSettings::asJsonObject() {
|
||||
QJsonObject* obj = new QJsonObject();
|
||||
if(file_name != nullptr && *file_name != QString("")){
|
||||
toJsonValue(QString("fileName"), file_name, obj, QString("QString"));
|
||||
}
|
||||
if(m_acceleration_factor_isSet){
|
||||
obj->insert("accelerationFactor", QJsonValue(acceleration_factor));
|
||||
}
|
||||
if(m_track_loop_isSet){
|
||||
obj->insert("trackLoop", QJsonValue(track_loop));
|
||||
}
|
||||
if(m_full_loop_isSet){
|
||||
obj->insert("fullLoop", QJsonValue(full_loop));
|
||||
}
|
||||
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));
|
||||
}
|
||||
|
||||
return obj;
|
||||
}
|
||||
|
||||
QString*
|
||||
SWGSigMFFileInputSettings::getFileName() {
|
||||
return file_name;
|
||||
}
|
||||
void
|
||||
SWGSigMFFileInputSettings::setFileName(QString* file_name) {
|
||||
this->file_name = file_name;
|
||||
this->m_file_name_isSet = true;
|
||||
}
|
||||
|
||||
qint32
|
||||
SWGSigMFFileInputSettings::getAccelerationFactor() {
|
||||
return acceleration_factor;
|
||||
}
|
||||
void
|
||||
SWGSigMFFileInputSettings::setAccelerationFactor(qint32 acceleration_factor) {
|
||||
this->acceleration_factor = acceleration_factor;
|
||||
this->m_acceleration_factor_isSet = true;
|
||||
}
|
||||
|
||||
qint32
|
||||
SWGSigMFFileInputSettings::getTrackLoop() {
|
||||
return track_loop;
|
||||
}
|
||||
void
|
||||
SWGSigMFFileInputSettings::setTrackLoop(qint32 track_loop) {
|
||||
this->track_loop = track_loop;
|
||||
this->m_track_loop_isSet = true;
|
||||
}
|
||||
|
||||
qint32
|
||||
SWGSigMFFileInputSettings::getFullLoop() {
|
||||
return full_loop;
|
||||
}
|
||||
void
|
||||
SWGSigMFFileInputSettings::setFullLoop(qint32 full_loop) {
|
||||
this->full_loop = full_loop;
|
||||
this->m_full_loop_isSet = true;
|
||||
}
|
||||
|
||||
qint32
|
||||
SWGSigMFFileInputSettings::getUseReverseApi() {
|
||||
return use_reverse_api;
|
||||
}
|
||||
void
|
||||
SWGSigMFFileInputSettings::setUseReverseApi(qint32 use_reverse_api) {
|
||||
this->use_reverse_api = use_reverse_api;
|
||||
this->m_use_reverse_api_isSet = true;
|
||||
}
|
||||
|
||||
QString*
|
||||
SWGSigMFFileInputSettings::getReverseApiAddress() {
|
||||
return reverse_api_address;
|
||||
}
|
||||
void
|
||||
SWGSigMFFileInputSettings::setReverseApiAddress(QString* reverse_api_address) {
|
||||
this->reverse_api_address = reverse_api_address;
|
||||
this->m_reverse_api_address_isSet = true;
|
||||
}
|
||||
|
||||
qint32
|
||||
SWGSigMFFileInputSettings::getReverseApiPort() {
|
||||
return reverse_api_port;
|
||||
}
|
||||
void
|
||||
SWGSigMFFileInputSettings::setReverseApiPort(qint32 reverse_api_port) {
|
||||
this->reverse_api_port = reverse_api_port;
|
||||
this->m_reverse_api_port_isSet = true;
|
||||
}
|
||||
|
||||
qint32
|
||||
SWGSigMFFileInputSettings::getReverseApiDeviceIndex() {
|
||||
return reverse_api_device_index;
|
||||
}
|
||||
void
|
||||
SWGSigMFFileInputSettings::setReverseApiDeviceIndex(qint32 reverse_api_device_index) {
|
||||
this->reverse_api_device_index = reverse_api_device_index;
|
||||
this->m_reverse_api_device_index_isSet = true;
|
||||
}
|
||||
|
||||
|
||||
bool
|
||||
SWGSigMFFileInputSettings::isSet(){
|
||||
bool isObjectUpdated = false;
|
||||
do{
|
||||
if(file_name && *file_name != QString("")){
|
||||
isObjectUpdated = true; break;
|
||||
}
|
||||
if(m_acceleration_factor_isSet){
|
||||
isObjectUpdated = true; break;
|
||||
}
|
||||
if(m_track_loop_isSet){
|
||||
isObjectUpdated = true; break;
|
||||
}
|
||||
if(m_full_loop_isSet){
|
||||
isObjectUpdated = true; break;
|
||||
}
|
||||
if(m_use_reverse_api_isSet){
|
||||
isObjectUpdated = true; break;
|
||||
}
|
||||
if(reverse_api_address && *reverse_api_address != QString("")){
|
||||
isObjectUpdated = true; break;
|
||||
}
|
||||
if(m_reverse_api_port_isSet){
|
||||
isObjectUpdated = true; break;
|
||||
}
|
||||
if(m_reverse_api_device_index_isSet){
|
||||
isObjectUpdated = true; break;
|
||||
}
|
||||
}while(false);
|
||||
return isObjectUpdated;
|
||||
}
|
||||
}
|
||||
|
101
swagger/sdrangel/code/qt5/client/SWGSigMFFileInputSettings.h
Normal file
101
swagger/sdrangel/code/qt5/client/SWGSigMFFileInputSettings.h
Normal file
@ -0,0 +1,101 @@
|
||||
/**
|
||||
* SDRangel
|
||||
* This is the web REST/JSON API of SDRangel SDR software. SDRangel is an Open Source Qt5/OpenGL 3.0+ (4.3+ in Windows) GUI and server Software Defined Radio and signal analyzer in software. It supports Airspy, BladeRF, HackRF, LimeSDR, PlutoSDR, RTL-SDR, SDRplay RSP1, USRP 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.15.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.
|
||||
*/
|
||||
|
||||
/*
|
||||
* SWGSigMFFileInputSettings.h
|
||||
*
|
||||
* SigMFFileInput
|
||||
*/
|
||||
|
||||
#ifndef SWGSigMFFileInputSettings_H_
|
||||
#define SWGSigMFFileInputSettings_H_
|
||||
|
||||
#include <QJsonObject>
|
||||
|
||||
|
||||
#include <QString>
|
||||
|
||||
#include "SWGObject.h"
|
||||
#include "export.h"
|
||||
|
||||
namespace SWGSDRangel {
|
||||
|
||||
class SWG_API SWGSigMFFileInputSettings: public SWGObject {
|
||||
public:
|
||||
SWGSigMFFileInputSettings();
|
||||
SWGSigMFFileInputSettings(QString* json);
|
||||
virtual ~SWGSigMFFileInputSettings();
|
||||
void init();
|
||||
void cleanup();
|
||||
|
||||
virtual QString asJson () override;
|
||||
virtual QJsonObject* asJsonObject() override;
|
||||
virtual void fromJsonObject(QJsonObject &json) override;
|
||||
virtual SWGSigMFFileInputSettings* fromJson(QString &jsonString) override;
|
||||
|
||||
QString* getFileName();
|
||||
void setFileName(QString* file_name);
|
||||
|
||||
qint32 getAccelerationFactor();
|
||||
void setAccelerationFactor(qint32 acceleration_factor);
|
||||
|
||||
qint32 getTrackLoop();
|
||||
void setTrackLoop(qint32 track_loop);
|
||||
|
||||
qint32 getFullLoop();
|
||||
void setFullLoop(qint32 full_loop);
|
||||
|
||||
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);
|
||||
|
||||
|
||||
virtual bool isSet() override;
|
||||
|
||||
private:
|
||||
QString* file_name;
|
||||
bool m_file_name_isSet;
|
||||
|
||||
qint32 acceleration_factor;
|
||||
bool m_acceleration_factor_isSet;
|
||||
|
||||
qint32 track_loop;
|
||||
bool m_track_loop_isSet;
|
||||
|
||||
qint32 full_loop;
|
||||
bool m_full_loop_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;
|
||||
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
#endif /* SWGSigMFFileInputSettings_H_ */
|
Loading…
Reference in New Issue
Block a user