mirror of
https://github.com/f4exb/sdrangel.git
synced 2026-01-05 15:58:50 -05:00
SigMF file input: REST API: fixes generated code
This commit is contained in:
parent
ebe00014b3
commit
9281c6c0cd
@ -2042,6 +2042,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" ],
|
||||
@ -7057,6 +7090,18 @@ margin-bottom: 20px;
|
||||
"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"
|
||||
@ -7065,37 +7110,45 @@ margin-bottom: 20px;
|
||||
"type" : "integer",
|
||||
"description" : "Total number of bytes in data file vs meta data\n * 0 - mismatch\n * 1 - match\n"
|
||||
},
|
||||
"centerFrequency" : {
|
||||
"type" : "integer",
|
||||
"description" : "Current track center frequency in Hz"
|
||||
"captures" : {
|
||||
"type" : "array",
|
||||
"items" : {
|
||||
"$ref" : "#/definitions/Capture"
|
||||
}
|
||||
},
|
||||
"sampleRate" : {
|
||||
"type" : "integer",
|
||||
"description" : "Current track sample rate in S/s"
|
||||
},
|
||||
"trackNunber" : {
|
||||
"trackNumber" : {
|
||||
"type" : "integer",
|
||||
"description" : "Current track number"
|
||||
},
|
||||
"absoluteTime" : {
|
||||
"type" : "string",
|
||||
"description" : "Absolute record time string representation"
|
||||
"absoluteTimeMs" : {
|
||||
"type" : "integer",
|
||||
"format" : "int64",
|
||||
"description" : "Absolute current time in milliseconds since epoch"
|
||||
},
|
||||
"elapsedRecordTime" : {
|
||||
"type" : "string",
|
||||
"description" : "Elapsed record time since beginning string representation"
|
||||
"elapsedRecordTimeMs" : {
|
||||
"type" : "integer",
|
||||
"format" : "int64",
|
||||
"description" : "Elapsed record time in milliseconds"
|
||||
},
|
||||
"elapsedTrackime" : {
|
||||
"type" : "string",
|
||||
"description" : "Elapsed track time since beginning string representation"
|
||||
"recordSamplesRatio" : {
|
||||
"type" : "number",
|
||||
"format" : "float",
|
||||
"description" : "Elapsed samples ratio to total samples"
|
||||
},
|
||||
"recordDuration" : {
|
||||
"type" : "string",
|
||||
"description" : "Record duration time string representation"
|
||||
"elapsedTrackimeMs" : {
|
||||
"type" : "integer",
|
||||
"format" : "int64",
|
||||
"description" : "Elapsed track time in milliseconds"
|
||||
},
|
||||
"trackDuration" : {
|
||||
"type" : "string",
|
||||
"description" : "Track duration time string representation"
|
||||
"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"
|
||||
@ -37366,7 +37419,7 @@ except ApiException as e:
|
||||
</div>
|
||||
<div id="generator">
|
||||
<div class="content">
|
||||
Generated 2020-06-16T01:37:19.538+02:00
|
||||
Generated 2020-06-17T01:13:04.761+02:00
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@ -32,6 +32,24 @@ SigMFFileInputReport:
|
||||
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: >
|
||||
@ -45,30 +63,37 @@ SigMFFileInputReport:
|
||||
Total number of bytes in data file vs meta data
|
||||
* 0 - mismatch
|
||||
* 1 - match
|
||||
centerFrequency:
|
||||
description: Current track center frequency in Hz
|
||||
type: integer
|
||||
sampleRate:
|
||||
description: Current track sample rate in S/s
|
||||
type: integer
|
||||
trackNunber:
|
||||
captures:
|
||||
type: array
|
||||
items:
|
||||
$ref: "#/definitions/Capture"
|
||||
trackNumber:
|
||||
description: Current track number
|
||||
type: integer
|
||||
absoluteTime:
|
||||
description: Absolute record time string representation
|
||||
type: string
|
||||
elapsedRecordTime:
|
||||
description: Elapsed record time since beginning string representation
|
||||
type: string
|
||||
elapsedTrackime:
|
||||
description: Elapsed track time since beginning string representation
|
||||
type: string
|
||||
recordDuration:
|
||||
description: Record duration time string representation
|
||||
type: string
|
||||
trackDuration:
|
||||
description: Track duration time string representation
|
||||
type: string
|
||||
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
|
||||
@ -93,4 +118,33 @@ SigMFFileInputActions:
|
||||
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: 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
|
||||
|
||||
@ -2042,6 +2042,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" ],
|
||||
@ -7057,6 +7090,18 @@ margin-bottom: 20px;
|
||||
"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"
|
||||
@ -7065,37 +7110,45 @@ margin-bottom: 20px;
|
||||
"type" : "integer",
|
||||
"description" : "Total number of bytes in data file vs meta data\n * 0 - mismatch\n * 1 - match\n"
|
||||
},
|
||||
"centerFrequency" : {
|
||||
"type" : "integer",
|
||||
"description" : "Current track center frequency in Hz"
|
||||
"captures" : {
|
||||
"type" : "array",
|
||||
"items" : {
|
||||
"$ref" : "#/definitions/Capture"
|
||||
}
|
||||
},
|
||||
"sampleRate" : {
|
||||
"type" : "integer",
|
||||
"description" : "Current track sample rate in S/s"
|
||||
},
|
||||
"trackNunber" : {
|
||||
"trackNumber" : {
|
||||
"type" : "integer",
|
||||
"description" : "Current track number"
|
||||
},
|
||||
"absoluteTime" : {
|
||||
"type" : "string",
|
||||
"description" : "Absolute record time string representation"
|
||||
"absoluteTimeMs" : {
|
||||
"type" : "integer",
|
||||
"format" : "int64",
|
||||
"description" : "Absolute current time in milliseconds since epoch"
|
||||
},
|
||||
"elapsedRecordTime" : {
|
||||
"type" : "string",
|
||||
"description" : "Elapsed record time since beginning string representation"
|
||||
"elapsedRecordTimeMs" : {
|
||||
"type" : "integer",
|
||||
"format" : "int64",
|
||||
"description" : "Elapsed record time in milliseconds"
|
||||
},
|
||||
"elapsedTrackime" : {
|
||||
"type" : "string",
|
||||
"description" : "Elapsed track time since beginning string representation"
|
||||
"recordSamplesRatio" : {
|
||||
"type" : "number",
|
||||
"format" : "float",
|
||||
"description" : "Elapsed samples ratio to total samples"
|
||||
},
|
||||
"recordDuration" : {
|
||||
"type" : "string",
|
||||
"description" : "Record duration time string representation"
|
||||
"elapsedTrackimeMs" : {
|
||||
"type" : "integer",
|
||||
"format" : "int64",
|
||||
"description" : "Elapsed track time in milliseconds"
|
||||
},
|
||||
"trackDuration" : {
|
||||
"type" : "string",
|
||||
"description" : "Track duration time string representation"
|
||||
"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"
|
||||
@ -37366,7 +37419,7 @@ except ApiException as e:
|
||||
</div>
|
||||
<div id="generator">
|
||||
<div class="content">
|
||||
Generated 2020-06-16T01:37:19.538+02:00
|
||||
Generated 2020-06-17T01:13:04.761+02: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 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: 5.6.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 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: 5.6.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_ */
|
||||
@ -48,6 +48,7 @@
|
||||
#include "SWGBladeRF2OutputReport.h"
|
||||
#include "SWGBladeRF2OutputSettings.h"
|
||||
#include "SWGCWKeyerSettings.h"
|
||||
#include "SWGCapture.h"
|
||||
#include "SWGChannel.h"
|
||||
#include "SWGChannelActions.h"
|
||||
#include "SWGChannelAnalyzerSettings.h"
|
||||
@ -314,6 +315,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();
|
||||
}
|
||||
|
||||
@ -32,26 +32,32 @@ SWGSigMFFileInputReport::SWGSigMFFileInputReport() {
|
||||
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;
|
||||
center_frequency = 0;
|
||||
m_center_frequency_isSet = false;
|
||||
sample_rate = 0;
|
||||
m_sample_rate_isSet = false;
|
||||
track_nunber = 0;
|
||||
m_track_nunber_isSet = false;
|
||||
absolute_time = nullptr;
|
||||
m_absolute_time_isSet = false;
|
||||
elapsed_record_time = nullptr;
|
||||
m_elapsed_record_time_isSet = false;
|
||||
elapsed_trackime = nullptr;
|
||||
m_elapsed_trackime_isSet = false;
|
||||
record_duration = nullptr;
|
||||
m_record_duration_isSet = false;
|
||||
track_duration = nullptr;
|
||||
m_track_duration_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() {
|
||||
@ -64,26 +70,32 @@ SWGSigMFFileInputReport::init() {
|
||||
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;
|
||||
center_frequency = 0;
|
||||
m_center_frequency_isSet = false;
|
||||
sample_rate = 0;
|
||||
m_sample_rate_isSet = false;
|
||||
track_nunber = 0;
|
||||
m_track_nunber_isSet = false;
|
||||
absolute_time = new QString("");
|
||||
m_absolute_time_isSet = false;
|
||||
elapsed_record_time = new QString("");
|
||||
m_elapsed_record_time_isSet = false;
|
||||
elapsed_trackime = new QString("");
|
||||
m_elapsed_trackime_isSet = false;
|
||||
record_duration = new QString("");
|
||||
m_record_duration_isSet = false;
|
||||
track_duration = new QString("");
|
||||
m_track_duration_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
|
||||
@ -95,21 +107,20 @@ SWGSigMFFileInputReport::cleanup() {
|
||||
|
||||
|
||||
|
||||
if(absolute_time != nullptr) {
|
||||
delete absolute_time;
|
||||
}
|
||||
if(elapsed_record_time != nullptr) {
|
||||
delete elapsed_record_time;
|
||||
}
|
||||
if(elapsed_trackime != nullptr) {
|
||||
delete elapsed_trackime;
|
||||
}
|
||||
if(record_duration != nullptr) {
|
||||
delete record_duration;
|
||||
}
|
||||
if(track_duration != nullptr) {
|
||||
delete track_duration;
|
||||
if(captures != nullptr) {
|
||||
auto arr = captures;
|
||||
for(auto o: *arr) {
|
||||
delete o;
|
||||
}
|
||||
delete captures;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
SWGSigMFFileInputReport*
|
||||
@ -127,25 +138,31 @@ SWGSigMFFileInputReport::fromJsonObject(QJsonObject &pJson) {
|
||||
|
||||
::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(¢er_frequency, pJson["centerFrequency"], "qint32", "");
|
||||
|
||||
::SWGSDRangel::setValue(&sample_rate, pJson["sampleRate"], "qint32", "");
|
||||
::SWGSDRangel::setValue(&captures, pJson["captures"], "QList", "SWGCapture");
|
||||
::SWGSDRangel::setValue(&track_number, pJson["trackNumber"], "qint32", "");
|
||||
|
||||
::SWGSDRangel::setValue(&track_nunber, pJson["trackNunber"], "qint32", "");
|
||||
::SWGSDRangel::setValue(&absolute_time_ms, pJson["absoluteTimeMs"], "qint64", "");
|
||||
|
||||
::SWGSDRangel::setValue(&absolute_time, pJson["absoluteTime"], "QString", "QString");
|
||||
::SWGSDRangel::setValue(&elapsed_record_time_ms, pJson["elapsedRecordTimeMs"], "qint64", "");
|
||||
|
||||
::SWGSDRangel::setValue(&elapsed_record_time, pJson["elapsedRecordTime"], "QString", "QString");
|
||||
::SWGSDRangel::setValue(&record_samples_ratio, pJson["recordSamplesRatio"], "float", "");
|
||||
|
||||
::SWGSDRangel::setValue(&elapsed_trackime, pJson["elapsedTrackime"], "QString", "QString");
|
||||
::SWGSDRangel::setValue(&elapsed_trackime_ms, pJson["elapsedTrackimeMs"], "qint64", "");
|
||||
|
||||
::SWGSDRangel::setValue(&record_duration, pJson["recordDuration"], "QString", "QString");
|
||||
::SWGSDRangel::setValue(&track_samples_ratio, pJson["trackSamplesRatio"], "float", "");
|
||||
|
||||
::SWGSDRangel::setValue(&track_duration, pJson["trackDuration"], "QString", "QString");
|
||||
::SWGSDRangel::setValue(&record_duration_ms, pJson["recordDurationMs"], "qint64", "");
|
||||
|
||||
}
|
||||
|
||||
@ -169,35 +186,44 @@ SWGSigMFFileInputReport::asJsonObject() {
|
||||
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(m_center_frequency_isSet){
|
||||
obj->insert("centerFrequency", QJsonValue(center_frequency));
|
||||
if(captures && captures->size() > 0){
|
||||
toJsonArray((QList<void*>*)captures, obj, "captures", "SWGCapture");
|
||||
}
|
||||
if(m_sample_rate_isSet){
|
||||
obj->insert("sampleRate", QJsonValue(sample_rate));
|
||||
if(m_track_number_isSet){
|
||||
obj->insert("trackNumber", QJsonValue(track_number));
|
||||
}
|
||||
if(m_track_nunber_isSet){
|
||||
obj->insert("trackNunber", QJsonValue(track_nunber));
|
||||
if(m_absolute_time_ms_isSet){
|
||||
obj->insert("absoluteTimeMs", QJsonValue(absolute_time_ms));
|
||||
}
|
||||
if(absolute_time != nullptr && *absolute_time != QString("")){
|
||||
toJsonValue(QString("absoluteTime"), absolute_time, obj, QString("QString"));
|
||||
if(m_elapsed_record_time_ms_isSet){
|
||||
obj->insert("elapsedRecordTimeMs", QJsonValue(elapsed_record_time_ms));
|
||||
}
|
||||
if(elapsed_record_time != nullptr && *elapsed_record_time != QString("")){
|
||||
toJsonValue(QString("elapsedRecordTime"), elapsed_record_time, obj, QString("QString"));
|
||||
if(m_record_samples_ratio_isSet){
|
||||
obj->insert("recordSamplesRatio", QJsonValue(record_samples_ratio));
|
||||
}
|
||||
if(elapsed_trackime != nullptr && *elapsed_trackime != QString("")){
|
||||
toJsonValue(QString("elapsedTrackime"), elapsed_trackime, obj, QString("QString"));
|
||||
if(m_elapsed_trackime_ms_isSet){
|
||||
obj->insert("elapsedTrackimeMs", QJsonValue(elapsed_trackime_ms));
|
||||
}
|
||||
if(record_duration != nullptr && *record_duration != QString("")){
|
||||
toJsonValue(QString("recordDuration"), record_duration, obj, QString("QString"));
|
||||
if(m_track_samples_ratio_isSet){
|
||||
obj->insert("trackSamplesRatio", QJsonValue(track_samples_ratio));
|
||||
}
|
||||
if(track_duration != nullptr && *track_duration != QString("")){
|
||||
toJsonValue(QString("trackDuration"), track_duration, obj, QString("QString"));
|
||||
if(m_record_duration_ms_isSet){
|
||||
obj->insert("recordDurationMs", QJsonValue(record_duration_ms));
|
||||
}
|
||||
|
||||
return obj;
|
||||
@ -223,6 +249,36 @@ SWGSigMFFileInputReport::setSampleBytes(qint32 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;
|
||||
@ -243,84 +299,84 @@ SWGSigMFFileInputReport::setTotalBytesStatus(qint32 total_bytes_status) {
|
||||
this->m_total_bytes_status_isSet = true;
|
||||
}
|
||||
|
||||
qint32
|
||||
SWGSigMFFileInputReport::getCenterFrequency() {
|
||||
return center_frequency;
|
||||
QList<SWGCapture*>*
|
||||
SWGSigMFFileInputReport::getCaptures() {
|
||||
return captures;
|
||||
}
|
||||
void
|
||||
SWGSigMFFileInputReport::setCenterFrequency(qint32 center_frequency) {
|
||||
this->center_frequency = center_frequency;
|
||||
this->m_center_frequency_isSet = true;
|
||||
SWGSigMFFileInputReport::setCaptures(QList<SWGCapture*>* captures) {
|
||||
this->captures = captures;
|
||||
this->m_captures_isSet = true;
|
||||
}
|
||||
|
||||
qint32
|
||||
SWGSigMFFileInputReport::getSampleRate() {
|
||||
return sample_rate;
|
||||
SWGSigMFFileInputReport::getTrackNumber() {
|
||||
return track_number;
|
||||
}
|
||||
void
|
||||
SWGSigMFFileInputReport::setSampleRate(qint32 sample_rate) {
|
||||
this->sample_rate = sample_rate;
|
||||
this->m_sample_rate_isSet = true;
|
||||
SWGSigMFFileInputReport::setTrackNumber(qint32 track_number) {
|
||||
this->track_number = track_number;
|
||||
this->m_track_number_isSet = true;
|
||||
}
|
||||
|
||||
qint32
|
||||
SWGSigMFFileInputReport::getTrackNunber() {
|
||||
return track_nunber;
|
||||
qint64
|
||||
SWGSigMFFileInputReport::getAbsoluteTimeMs() {
|
||||
return absolute_time_ms;
|
||||
}
|
||||
void
|
||||
SWGSigMFFileInputReport::setTrackNunber(qint32 track_nunber) {
|
||||
this->track_nunber = track_nunber;
|
||||
this->m_track_nunber_isSet = true;
|
||||
SWGSigMFFileInputReport::setAbsoluteTimeMs(qint64 absolute_time_ms) {
|
||||
this->absolute_time_ms = absolute_time_ms;
|
||||
this->m_absolute_time_ms_isSet = true;
|
||||
}
|
||||
|
||||
QString*
|
||||
SWGSigMFFileInputReport::getAbsoluteTime() {
|
||||
return absolute_time;
|
||||
qint64
|
||||
SWGSigMFFileInputReport::getElapsedRecordTimeMs() {
|
||||
return elapsed_record_time_ms;
|
||||
}
|
||||
void
|
||||
SWGSigMFFileInputReport::setAbsoluteTime(QString* absolute_time) {
|
||||
this->absolute_time = absolute_time;
|
||||
this->m_absolute_time_isSet = true;
|
||||
SWGSigMFFileInputReport::setElapsedRecordTimeMs(qint64 elapsed_record_time_ms) {
|
||||
this->elapsed_record_time_ms = elapsed_record_time_ms;
|
||||
this->m_elapsed_record_time_ms_isSet = true;
|
||||
}
|
||||
|
||||
QString*
|
||||
SWGSigMFFileInputReport::getElapsedRecordTime() {
|
||||
return elapsed_record_time;
|
||||
float
|
||||
SWGSigMFFileInputReport::getRecordSamplesRatio() {
|
||||
return record_samples_ratio;
|
||||
}
|
||||
void
|
||||
SWGSigMFFileInputReport::setElapsedRecordTime(QString* elapsed_record_time) {
|
||||
this->elapsed_record_time = elapsed_record_time;
|
||||
this->m_elapsed_record_time_isSet = true;
|
||||
SWGSigMFFileInputReport::setRecordSamplesRatio(float record_samples_ratio) {
|
||||
this->record_samples_ratio = record_samples_ratio;
|
||||
this->m_record_samples_ratio_isSet = true;
|
||||
}
|
||||
|
||||
QString*
|
||||
SWGSigMFFileInputReport::getElapsedTrackime() {
|
||||
return elapsed_trackime;
|
||||
qint64
|
||||
SWGSigMFFileInputReport::getElapsedTrackimeMs() {
|
||||
return elapsed_trackime_ms;
|
||||
}
|
||||
void
|
||||
SWGSigMFFileInputReport::setElapsedTrackime(QString* elapsed_trackime) {
|
||||
this->elapsed_trackime = elapsed_trackime;
|
||||
this->m_elapsed_trackime_isSet = true;
|
||||
SWGSigMFFileInputReport::setElapsedTrackimeMs(qint64 elapsed_trackime_ms) {
|
||||
this->elapsed_trackime_ms = elapsed_trackime_ms;
|
||||
this->m_elapsed_trackime_ms_isSet = true;
|
||||
}
|
||||
|
||||
QString*
|
||||
SWGSigMFFileInputReport::getRecordDuration() {
|
||||
return record_duration;
|
||||
float
|
||||
SWGSigMFFileInputReport::getTrackSamplesRatio() {
|
||||
return track_samples_ratio;
|
||||
}
|
||||
void
|
||||
SWGSigMFFileInputReport::setRecordDuration(QString* record_duration) {
|
||||
this->record_duration = record_duration;
|
||||
this->m_record_duration_isSet = true;
|
||||
SWGSigMFFileInputReport::setTrackSamplesRatio(float track_samples_ratio) {
|
||||
this->track_samples_ratio = track_samples_ratio;
|
||||
this->m_track_samples_ratio_isSet = true;
|
||||
}
|
||||
|
||||
QString*
|
||||
SWGSigMFFileInputReport::getTrackDuration() {
|
||||
return track_duration;
|
||||
qint64
|
||||
SWGSigMFFileInputReport::getRecordDurationMs() {
|
||||
return record_duration_ms;
|
||||
}
|
||||
void
|
||||
SWGSigMFFileInputReport::setTrackDuration(QString* track_duration) {
|
||||
this->track_duration = track_duration;
|
||||
this->m_track_duration_isSet = true;
|
||||
SWGSigMFFileInputReport::setRecordDurationMs(qint64 record_duration_ms) {
|
||||
this->record_duration_ms = record_duration_ms;
|
||||
this->m_record_duration_ms_isSet = true;
|
||||
}
|
||||
|
||||
|
||||
@ -334,34 +390,43 @@ SWGSigMFFileInputReport::isSet(){
|
||||
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(m_center_frequency_isSet){
|
||||
if(captures && (captures->size() > 0)){
|
||||
isObjectUpdated = true; break;
|
||||
}
|
||||
if(m_sample_rate_isSet){
|
||||
if(m_track_number_isSet){
|
||||
isObjectUpdated = true; break;
|
||||
}
|
||||
if(m_track_nunber_isSet){
|
||||
if(m_absolute_time_ms_isSet){
|
||||
isObjectUpdated = true; break;
|
||||
}
|
||||
if(absolute_time && *absolute_time != QString("")){
|
||||
if(m_elapsed_record_time_ms_isSet){
|
||||
isObjectUpdated = true; break;
|
||||
}
|
||||
if(elapsed_record_time && *elapsed_record_time != QString("")){
|
||||
if(m_record_samples_ratio_isSet){
|
||||
isObjectUpdated = true; break;
|
||||
}
|
||||
if(elapsed_trackime && *elapsed_trackime != QString("")){
|
||||
if(m_elapsed_trackime_ms_isSet){
|
||||
isObjectUpdated = true; break;
|
||||
}
|
||||
if(record_duration && *record_duration != QString("")){
|
||||
if(m_track_samples_ratio_isSet){
|
||||
isObjectUpdated = true; break;
|
||||
}
|
||||
if(track_duration && *track_duration != QString("")){
|
||||
if(m_record_duration_ms_isSet){
|
||||
isObjectUpdated = true; break;
|
||||
}
|
||||
}while(false);
|
||||
|
||||
@ -22,7 +22,8 @@
|
||||
#include <QJsonObject>
|
||||
|
||||
|
||||
#include <QString>
|
||||
#include "SWGCapture.h"
|
||||
#include <QList>
|
||||
|
||||
#include "SWGObject.h"
|
||||
#include "export.h"
|
||||
@ -48,35 +49,44 @@ public:
|
||||
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);
|
||||
|
||||
qint32 getCenterFrequency();
|
||||
void setCenterFrequency(qint32 center_frequency);
|
||||
QList<SWGCapture*>* getCaptures();
|
||||
void setCaptures(QList<SWGCapture*>* captures);
|
||||
|
||||
qint32 getSampleRate();
|
||||
void setSampleRate(qint32 sample_rate);
|
||||
qint32 getTrackNumber();
|
||||
void setTrackNumber(qint32 track_number);
|
||||
|
||||
qint32 getTrackNunber();
|
||||
void setTrackNunber(qint32 track_nunber);
|
||||
qint64 getAbsoluteTimeMs();
|
||||
void setAbsoluteTimeMs(qint64 absolute_time_ms);
|
||||
|
||||
QString* getAbsoluteTime();
|
||||
void setAbsoluteTime(QString* absolute_time);
|
||||
qint64 getElapsedRecordTimeMs();
|
||||
void setElapsedRecordTimeMs(qint64 elapsed_record_time_ms);
|
||||
|
||||
QString* getElapsedRecordTime();
|
||||
void setElapsedRecordTime(QString* elapsed_record_time);
|
||||
float getRecordSamplesRatio();
|
||||
void setRecordSamplesRatio(float record_samples_ratio);
|
||||
|
||||
QString* getElapsedTrackime();
|
||||
void setElapsedTrackime(QString* elapsed_trackime);
|
||||
qint64 getElapsedTrackimeMs();
|
||||
void setElapsedTrackimeMs(qint64 elapsed_trackime_ms);
|
||||
|
||||
QString* getRecordDuration();
|
||||
void setRecordDuration(QString* record_duration);
|
||||
float getTrackSamplesRatio();
|
||||
void setTrackSamplesRatio(float track_samples_ratio);
|
||||
|
||||
QString* getTrackDuration();
|
||||
void setTrackDuration(QString* track_duration);
|
||||
qint64 getRecordDurationMs();
|
||||
void setRecordDurationMs(qint64 record_duration_ms);
|
||||
|
||||
|
||||
virtual bool isSet() override;
|
||||
@ -88,35 +98,44 @@ private:
|
||||
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;
|
||||
|
||||
qint32 center_frequency;
|
||||
bool m_center_frequency_isSet;
|
||||
QList<SWGCapture*>* captures;
|
||||
bool m_captures_isSet;
|
||||
|
||||
qint32 sample_rate;
|
||||
bool m_sample_rate_isSet;
|
||||
qint32 track_number;
|
||||
bool m_track_number_isSet;
|
||||
|
||||
qint32 track_nunber;
|
||||
bool m_track_nunber_isSet;
|
||||
qint64 absolute_time_ms;
|
||||
bool m_absolute_time_ms_isSet;
|
||||
|
||||
QString* absolute_time;
|
||||
bool m_absolute_time_isSet;
|
||||
qint64 elapsed_record_time_ms;
|
||||
bool m_elapsed_record_time_ms_isSet;
|
||||
|
||||
QString* elapsed_record_time;
|
||||
bool m_elapsed_record_time_isSet;
|
||||
float record_samples_ratio;
|
||||
bool m_record_samples_ratio_isSet;
|
||||
|
||||
QString* elapsed_trackime;
|
||||
bool m_elapsed_trackime_isSet;
|
||||
qint64 elapsed_trackime_ms;
|
||||
bool m_elapsed_trackime_ms_isSet;
|
||||
|
||||
QString* record_duration;
|
||||
bool m_record_duration_isSet;
|
||||
float track_samples_ratio;
|
||||
bool m_track_samples_ratio_isSet;
|
||||
|
||||
QString* track_duration;
|
||||
bool m_track_duration_isSet;
|
||||
qint64 record_duration_ms;
|
||||
bool m_record_duration_ms_isSet;
|
||||
|
||||
};
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user