2018-05-25 23:43:28 +00:00
|
|
|
/**
|
|
|
|
* SDRangel
|
2020-11-11 11:26:56 +00:00
|
|
|
* 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 ---
|
2018-05-25 23:43:28 +00:00
|
|
|
*
|
2022-05-14 12:24:37 +00:00
|
|
|
* OpenAPI spec version: 7.0.0
|
2018-05-25 23:43:28 +00:00
|
|
|
* 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 "SWGDeviceReport.h"
|
|
|
|
|
|
|
|
#include "SWGHelpers.h"
|
|
|
|
|
|
|
|
#include <QJsonDocument>
|
|
|
|
#include <QJsonArray>
|
|
|
|
#include <QObject>
|
|
|
|
#include <QDebug>
|
|
|
|
|
|
|
|
namespace SWGSDRangel {
|
|
|
|
|
|
|
|
SWGDeviceReport::SWGDeviceReport(QString* json) {
|
|
|
|
init();
|
|
|
|
this->fromJson(*json);
|
|
|
|
}
|
|
|
|
|
|
|
|
SWGDeviceReport::SWGDeviceReport() {
|
|
|
|
device_hw_type = nullptr;
|
|
|
|
m_device_hw_type_isSet = false;
|
2019-05-07 12:43:38 +00:00
|
|
|
direction = 0;
|
|
|
|
m_direction_isSet = false;
|
2018-05-25 23:43:28 +00:00
|
|
|
airspy_report = nullptr;
|
|
|
|
m_airspy_report_isSet = false;
|
2018-05-26 00:33:35 +00:00
|
|
|
airspy_hf_report = nullptr;
|
|
|
|
m_airspy_hf_report_isSet = false;
|
2023-09-08 09:52:51 +00:00
|
|
|
android_sdr_driver_input_report = nullptr;
|
|
|
|
m_android_sdr_driver_input_report_isSet = false;
|
2018-09-22 08:39:09 +00:00
|
|
|
blade_rf2_input_report = nullptr;
|
|
|
|
m_blade_rf2_input_report_isSet = false;
|
2018-09-29 03:49:14 +00:00
|
|
|
blade_rf2_output_report = nullptr;
|
|
|
|
m_blade_rf2_output_report_isSet = false;
|
2020-11-10 16:56:57 +00:00
|
|
|
blade_rf2_mimo_report = nullptr;
|
|
|
|
m_blade_rf2_mimo_report_isSet = false;
|
2019-07-07 22:59:04 +00:00
|
|
|
file_input_report = nullptr;
|
|
|
|
m_file_input_report_isSet = false;
|
2019-06-08 22:56:31 +00:00
|
|
|
kiwi_sdr_report = nullptr;
|
|
|
|
m_kiwi_sdr_report_isSet = false;
|
2020-11-10 22:45:24 +00:00
|
|
|
lime_sdr_input_report = nullptr;
|
|
|
|
m_lime_sdr_input_report_isSet = false;
|
2018-05-26 20:16:59 +00:00
|
|
|
lime_sdr_output_report = nullptr;
|
|
|
|
m_lime_sdr_output_report_isSet = false;
|
2020-11-10 22:45:24 +00:00
|
|
|
lime_sdr_mimo_report = nullptr;
|
|
|
|
m_lime_sdr_mimo_report_isSet = false;
|
2019-05-02 02:02:40 +00:00
|
|
|
local_input_report = nullptr;
|
|
|
|
m_local_input_report_isSet = false;
|
2019-05-10 21:38:52 +00:00
|
|
|
local_output_report = nullptr;
|
|
|
|
m_local_output_report_isSet = false;
|
2018-05-26 11:24:35 +00:00
|
|
|
perseus_report = nullptr;
|
|
|
|
m_perseus_report_isSet = false;
|
2018-05-26 16:07:21 +00:00
|
|
|
pluto_sdr_input_report = nullptr;
|
|
|
|
m_pluto_sdr_input_report_isSet = false;
|
|
|
|
pluto_sdr_output_report = nullptr;
|
|
|
|
m_pluto_sdr_output_report_isSet = false;
|
2021-05-01 07:50:51 +00:00
|
|
|
pluto_sdr_mimo_report = nullptr;
|
|
|
|
m_pluto_sdr_mimo_report_isSet = false;
|
2018-05-26 12:28:06 +00:00
|
|
|
rtl_sdr_report = nullptr;
|
|
|
|
m_rtl_sdr_report_isSet = false;
|
2019-02-02 22:27:34 +00:00
|
|
|
remote_output_report = nullptr;
|
|
|
|
m_remote_output_report_isSet = false;
|
2019-02-02 23:49:57 +00:00
|
|
|
remote_input_report = nullptr;
|
|
|
|
m_remote_input_report_isSet = false;
|
2022-07-19 09:10:20 +00:00
|
|
|
remote_tcp_input_report = nullptr;
|
|
|
|
m_remote_tcp_input_report_isSet = false;
|
2018-05-27 09:57:23 +00:00
|
|
|
sdr_play_report = nullptr;
|
|
|
|
m_sdr_play_report_isSet = false;
|
2021-04-11 20:21:36 +00:00
|
|
|
sdr_play_v3_report = nullptr;
|
|
|
|
m_sdr_play_v3_report_isSet = false;
|
2020-11-09 23:36:03 +00:00
|
|
|
sig_mf_file_input_report = nullptr;
|
|
|
|
m_sig_mf_file_input_report_isSet = false;
|
2018-11-13 22:49:04 +00:00
|
|
|
soapy_sdr_input_report = nullptr;
|
|
|
|
m_soapy_sdr_input_report_isSet = false;
|
|
|
|
soapy_sdr_output_report = nullptr;
|
|
|
|
m_soapy_sdr_output_report_isSet = false;
|
2020-10-02 21:45:28 +00:00
|
|
|
usrp_input_report = nullptr;
|
|
|
|
m_usrp_input_report_isSet = false;
|
|
|
|
usrp_output_report = nullptr;
|
|
|
|
m_usrp_output_report_isSet = false;
|
2019-01-01 17:28:53 +00:00
|
|
|
xtrx_input_report = nullptr;
|
|
|
|
m_xtrx_input_report_isSet = false;
|
2019-01-02 14:35:43 +00:00
|
|
|
xtrx_output_report = nullptr;
|
|
|
|
m_xtrx_output_report_isSet = false;
|
2020-11-11 02:49:53 +00:00
|
|
|
xtrx_mimo_report = nullptr;
|
|
|
|
m_xtrx_mimo_report_isSet = false;
|
2023-05-23 08:23:18 +00:00
|
|
|
aaronia_rtsa_report = nullptr;
|
|
|
|
m_aaronia_rtsa_report_isSet = false;
|
2023-04-11 09:38:28 +00:00
|
|
|
aaronia_rtsa_output_report = nullptr;
|
|
|
|
m_aaronia_rtsa_output_report_isSet = false;
|
2018-05-25 23:43:28 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
SWGDeviceReport::~SWGDeviceReport() {
|
|
|
|
this->cleanup();
|
|
|
|
}
|
|
|
|
|
|
|
|
void
|
|
|
|
SWGDeviceReport::init() {
|
|
|
|
device_hw_type = new QString("");
|
|
|
|
m_device_hw_type_isSet = false;
|
2019-05-07 12:43:38 +00:00
|
|
|
direction = 0;
|
|
|
|
m_direction_isSet = false;
|
2018-05-25 23:43:28 +00:00
|
|
|
airspy_report = new SWGAirspyReport();
|
|
|
|
m_airspy_report_isSet = false;
|
2018-05-26 00:33:35 +00:00
|
|
|
airspy_hf_report = new SWGAirspyHFReport();
|
|
|
|
m_airspy_hf_report_isSet = false;
|
2023-09-08 09:52:51 +00:00
|
|
|
android_sdr_driver_input_report = new SWGAndroidSDRDriverInputReport();
|
|
|
|
m_android_sdr_driver_input_report_isSet = false;
|
2018-09-22 08:39:09 +00:00
|
|
|
blade_rf2_input_report = new SWGBladeRF2InputReport();
|
|
|
|
m_blade_rf2_input_report_isSet = false;
|
2018-09-29 03:49:14 +00:00
|
|
|
blade_rf2_output_report = new SWGBladeRF2OutputReport();
|
|
|
|
m_blade_rf2_output_report_isSet = false;
|
2020-11-10 16:56:57 +00:00
|
|
|
blade_rf2_mimo_report = new SWGBladeRF2MIMOReport();
|
|
|
|
m_blade_rf2_mimo_report_isSet = false;
|
2019-07-07 22:59:04 +00:00
|
|
|
file_input_report = new SWGFileInputReport();
|
|
|
|
m_file_input_report_isSet = false;
|
2019-06-08 22:56:31 +00:00
|
|
|
kiwi_sdr_report = new SWGKiwiSDRReport();
|
|
|
|
m_kiwi_sdr_report_isSet = false;
|
2020-11-10 22:45:24 +00:00
|
|
|
lime_sdr_input_report = new SWGLimeSdrInputReport();
|
|
|
|
m_lime_sdr_input_report_isSet = false;
|
2018-05-26 20:16:59 +00:00
|
|
|
lime_sdr_output_report = new SWGLimeSdrOutputReport();
|
|
|
|
m_lime_sdr_output_report_isSet = false;
|
2020-11-10 22:45:24 +00:00
|
|
|
lime_sdr_mimo_report = new SWGLimeSdrMIMOReport();
|
|
|
|
m_lime_sdr_mimo_report_isSet = false;
|
2019-05-02 02:02:40 +00:00
|
|
|
local_input_report = new SWGLocalInputReport();
|
|
|
|
m_local_input_report_isSet = false;
|
2019-05-10 21:38:52 +00:00
|
|
|
local_output_report = new SWGLocalOutputReport();
|
|
|
|
m_local_output_report_isSet = false;
|
2018-05-26 11:24:35 +00:00
|
|
|
perseus_report = new SWGPerseusReport();
|
|
|
|
m_perseus_report_isSet = false;
|
2018-05-26 16:07:21 +00:00
|
|
|
pluto_sdr_input_report = new SWGPlutoSdrInputReport();
|
|
|
|
m_pluto_sdr_input_report_isSet = false;
|
|
|
|
pluto_sdr_output_report = new SWGPlutoSdrOutputReport();
|
|
|
|
m_pluto_sdr_output_report_isSet = false;
|
2021-05-01 07:50:51 +00:00
|
|
|
pluto_sdr_mimo_report = new SWGPlutoSdrMIMOReport();
|
|
|
|
m_pluto_sdr_mimo_report_isSet = false;
|
2018-05-26 12:28:06 +00:00
|
|
|
rtl_sdr_report = new SWGRtlSdrReport();
|
|
|
|
m_rtl_sdr_report_isSet = false;
|
2019-02-02 22:27:34 +00:00
|
|
|
remote_output_report = new SWGRemoteOutputReport();
|
|
|
|
m_remote_output_report_isSet = false;
|
2019-02-02 23:49:57 +00:00
|
|
|
remote_input_report = new SWGRemoteInputReport();
|
|
|
|
m_remote_input_report_isSet = false;
|
2022-07-19 09:10:20 +00:00
|
|
|
remote_tcp_input_report = new SWGRemoteTCPInputReport();
|
|
|
|
m_remote_tcp_input_report_isSet = false;
|
2018-05-27 09:57:23 +00:00
|
|
|
sdr_play_report = new SWGSDRPlayReport();
|
|
|
|
m_sdr_play_report_isSet = false;
|
2021-04-11 20:21:36 +00:00
|
|
|
sdr_play_v3_report = new SWGSDRPlayV3Report();
|
|
|
|
m_sdr_play_v3_report_isSet = false;
|
2020-11-09 23:36:03 +00:00
|
|
|
sig_mf_file_input_report = new SWGSigMFFileInputReport();
|
|
|
|
m_sig_mf_file_input_report_isSet = false;
|
2018-11-13 22:49:04 +00:00
|
|
|
soapy_sdr_input_report = new SWGSoapySDRReport();
|
|
|
|
m_soapy_sdr_input_report_isSet = false;
|
|
|
|
soapy_sdr_output_report = new SWGSoapySDRReport();
|
|
|
|
m_soapy_sdr_output_report_isSet = false;
|
2020-10-02 21:45:28 +00:00
|
|
|
usrp_input_report = new SWGUSRPInputReport();
|
|
|
|
m_usrp_input_report_isSet = false;
|
|
|
|
usrp_output_report = new SWGUSRPOutputReport();
|
|
|
|
m_usrp_output_report_isSet = false;
|
2019-01-01 17:28:53 +00:00
|
|
|
xtrx_input_report = new SWGXtrxInputReport();
|
|
|
|
m_xtrx_input_report_isSet = false;
|
2019-01-02 14:35:43 +00:00
|
|
|
xtrx_output_report = new SWGXtrxOutputReport();
|
|
|
|
m_xtrx_output_report_isSet = false;
|
2020-11-11 02:49:53 +00:00
|
|
|
xtrx_mimo_report = new SWGXtrxMIMOReport();
|
|
|
|
m_xtrx_mimo_report_isSet = false;
|
2023-05-23 08:23:18 +00:00
|
|
|
aaronia_rtsa_report = new SWGAaroniaRTSAReport();
|
|
|
|
m_aaronia_rtsa_report_isSet = false;
|
2023-04-11 09:38:28 +00:00
|
|
|
aaronia_rtsa_output_report = new SWGAaroniaRTSAOutputReport();
|
|
|
|
m_aaronia_rtsa_output_report_isSet = false;
|
2018-05-25 23:43:28 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void
|
|
|
|
SWGDeviceReport::cleanup() {
|
|
|
|
if(device_hw_type != nullptr) {
|
|
|
|
delete device_hw_type;
|
|
|
|
}
|
|
|
|
|
|
|
|
if(airspy_report != nullptr) {
|
|
|
|
delete airspy_report;
|
|
|
|
}
|
2018-05-26 00:33:35 +00:00
|
|
|
if(airspy_hf_report != nullptr) {
|
|
|
|
delete airspy_hf_report;
|
|
|
|
}
|
2023-09-08 09:52:51 +00:00
|
|
|
if(android_sdr_driver_input_report != nullptr) {
|
|
|
|
delete android_sdr_driver_input_report;
|
|
|
|
}
|
2018-09-22 08:39:09 +00:00
|
|
|
if(blade_rf2_input_report != nullptr) {
|
|
|
|
delete blade_rf2_input_report;
|
|
|
|
}
|
2018-09-29 03:49:14 +00:00
|
|
|
if(blade_rf2_output_report != nullptr) {
|
|
|
|
delete blade_rf2_output_report;
|
|
|
|
}
|
2020-11-10 16:56:57 +00:00
|
|
|
if(blade_rf2_mimo_report != nullptr) {
|
|
|
|
delete blade_rf2_mimo_report;
|
|
|
|
}
|
2019-07-07 22:59:04 +00:00
|
|
|
if(file_input_report != nullptr) {
|
|
|
|
delete file_input_report;
|
2018-05-26 09:40:37 +00:00
|
|
|
}
|
2019-06-08 22:56:31 +00:00
|
|
|
if(kiwi_sdr_report != nullptr) {
|
|
|
|
delete kiwi_sdr_report;
|
|
|
|
}
|
2020-11-10 22:45:24 +00:00
|
|
|
if(lime_sdr_input_report != nullptr) {
|
|
|
|
delete lime_sdr_input_report;
|
|
|
|
}
|
2018-05-26 20:16:59 +00:00
|
|
|
if(lime_sdr_output_report != nullptr) {
|
|
|
|
delete lime_sdr_output_report;
|
|
|
|
}
|
2020-11-10 22:45:24 +00:00
|
|
|
if(lime_sdr_mimo_report != nullptr) {
|
|
|
|
delete lime_sdr_mimo_report;
|
|
|
|
}
|
2019-05-02 02:02:40 +00:00
|
|
|
if(local_input_report != nullptr) {
|
|
|
|
delete local_input_report;
|
|
|
|
}
|
2019-05-10 21:38:52 +00:00
|
|
|
if(local_output_report != nullptr) {
|
|
|
|
delete local_output_report;
|
|
|
|
}
|
2018-05-26 11:24:35 +00:00
|
|
|
if(perseus_report != nullptr) {
|
|
|
|
delete perseus_report;
|
|
|
|
}
|
2018-05-26 16:07:21 +00:00
|
|
|
if(pluto_sdr_input_report != nullptr) {
|
|
|
|
delete pluto_sdr_input_report;
|
|
|
|
}
|
|
|
|
if(pluto_sdr_output_report != nullptr) {
|
|
|
|
delete pluto_sdr_output_report;
|
|
|
|
}
|
2021-05-01 07:50:51 +00:00
|
|
|
if(pluto_sdr_mimo_report != nullptr) {
|
|
|
|
delete pluto_sdr_mimo_report;
|
|
|
|
}
|
2018-05-26 12:28:06 +00:00
|
|
|
if(rtl_sdr_report != nullptr) {
|
|
|
|
delete rtl_sdr_report;
|
|
|
|
}
|
2019-02-02 22:27:34 +00:00
|
|
|
if(remote_output_report != nullptr) {
|
|
|
|
delete remote_output_report;
|
2018-05-27 22:40:33 +00:00
|
|
|
}
|
2019-02-02 23:49:57 +00:00
|
|
|
if(remote_input_report != nullptr) {
|
|
|
|
delete remote_input_report;
|
2018-05-27 09:07:24 +00:00
|
|
|
}
|
2022-07-19 09:10:20 +00:00
|
|
|
if(remote_tcp_input_report != nullptr) {
|
|
|
|
delete remote_tcp_input_report;
|
|
|
|
}
|
2018-05-27 09:57:23 +00:00
|
|
|
if(sdr_play_report != nullptr) {
|
|
|
|
delete sdr_play_report;
|
|
|
|
}
|
2021-04-11 20:21:36 +00:00
|
|
|
if(sdr_play_v3_report != nullptr) {
|
|
|
|
delete sdr_play_v3_report;
|
|
|
|
}
|
2020-11-09 23:36:03 +00:00
|
|
|
if(sig_mf_file_input_report != nullptr) {
|
|
|
|
delete sig_mf_file_input_report;
|
|
|
|
}
|
2018-11-13 22:49:04 +00:00
|
|
|
if(soapy_sdr_input_report != nullptr) {
|
|
|
|
delete soapy_sdr_input_report;
|
|
|
|
}
|
|
|
|
if(soapy_sdr_output_report != nullptr) {
|
|
|
|
delete soapy_sdr_output_report;
|
|
|
|
}
|
2020-10-02 21:45:28 +00:00
|
|
|
if(usrp_input_report != nullptr) {
|
|
|
|
delete usrp_input_report;
|
|
|
|
}
|
|
|
|
if(usrp_output_report != nullptr) {
|
|
|
|
delete usrp_output_report;
|
|
|
|
}
|
2019-01-01 17:28:53 +00:00
|
|
|
if(xtrx_input_report != nullptr) {
|
|
|
|
delete xtrx_input_report;
|
|
|
|
}
|
2019-01-02 14:35:43 +00:00
|
|
|
if(xtrx_output_report != nullptr) {
|
|
|
|
delete xtrx_output_report;
|
|
|
|
}
|
2020-11-11 02:49:53 +00:00
|
|
|
if(xtrx_mimo_report != nullptr) {
|
|
|
|
delete xtrx_mimo_report;
|
|
|
|
}
|
2023-05-23 08:23:18 +00:00
|
|
|
if(aaronia_rtsa_report != nullptr) {
|
|
|
|
delete aaronia_rtsa_report;
|
2023-03-18 11:48:21 +00:00
|
|
|
}
|
2023-04-11 09:38:28 +00:00
|
|
|
if(aaronia_rtsa_output_report != nullptr) {
|
|
|
|
delete aaronia_rtsa_output_report;
|
|
|
|
}
|
2018-05-25 23:43:28 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
SWGDeviceReport*
|
|
|
|
SWGDeviceReport::fromJson(QString &json) {
|
|
|
|
QByteArray array (json.toStdString().c_str());
|
|
|
|
QJsonDocument doc = QJsonDocument::fromJson(array);
|
|
|
|
QJsonObject jsonObject = doc.object();
|
|
|
|
this->fromJsonObject(jsonObject);
|
|
|
|
return this;
|
|
|
|
}
|
|
|
|
|
|
|
|
void
|
|
|
|
SWGDeviceReport::fromJsonObject(QJsonObject &pJson) {
|
|
|
|
::SWGSDRangel::setValue(&device_hw_type, pJson["deviceHwType"], "QString", "QString");
|
|
|
|
|
2019-05-07 12:43:38 +00:00
|
|
|
::SWGSDRangel::setValue(&direction, pJson["direction"], "qint32", "");
|
2018-05-25 23:43:28 +00:00
|
|
|
|
|
|
|
::SWGSDRangel::setValue(&airspy_report, pJson["airspyReport"], "SWGAirspyReport", "SWGAirspyReport");
|
|
|
|
|
2018-05-26 00:33:35 +00:00
|
|
|
::SWGSDRangel::setValue(&airspy_hf_report, pJson["airspyHFReport"], "SWGAirspyHFReport", "SWGAirspyHFReport");
|
|
|
|
|
2023-09-08 09:52:51 +00:00
|
|
|
::SWGSDRangel::setValue(&android_sdr_driver_input_report, pJson["androidSDRDriverInputReport"], "SWGAndroidSDRDriverInputReport", "SWGAndroidSDRDriverInputReport");
|
|
|
|
|
2018-09-22 08:39:09 +00:00
|
|
|
::SWGSDRangel::setValue(&blade_rf2_input_report, pJson["bladeRF2InputReport"], "SWGBladeRF2InputReport", "SWGBladeRF2InputReport");
|
|
|
|
|
2018-09-29 03:49:14 +00:00
|
|
|
::SWGSDRangel::setValue(&blade_rf2_output_report, pJson["bladeRF2OutputReport"], "SWGBladeRF2OutputReport", "SWGBladeRF2OutputReport");
|
|
|
|
|
2020-11-10 16:56:57 +00:00
|
|
|
::SWGSDRangel::setValue(&blade_rf2_mimo_report, pJson["bladeRF2MIMOReport"], "SWGBladeRF2MIMOReport", "SWGBladeRF2MIMOReport");
|
|
|
|
|
2019-07-07 22:59:04 +00:00
|
|
|
::SWGSDRangel::setValue(&file_input_report, pJson["fileInputReport"], "SWGFileInputReport", "SWGFileInputReport");
|
2018-05-26 09:40:37 +00:00
|
|
|
|
2019-06-08 22:56:31 +00:00
|
|
|
::SWGSDRangel::setValue(&kiwi_sdr_report, pJson["kiwiSDRReport"], "SWGKiwiSDRReport", "SWGKiwiSDRReport");
|
|
|
|
|
2020-11-10 22:45:24 +00:00
|
|
|
::SWGSDRangel::setValue(&lime_sdr_input_report, pJson["limeSdrInputReport"], "SWGLimeSdrInputReport", "SWGLimeSdrInputReport");
|
|
|
|
|
2018-05-26 20:16:59 +00:00
|
|
|
::SWGSDRangel::setValue(&lime_sdr_output_report, pJson["limeSdrOutputReport"], "SWGLimeSdrOutputReport", "SWGLimeSdrOutputReport");
|
|
|
|
|
2020-11-10 22:45:24 +00:00
|
|
|
::SWGSDRangel::setValue(&lime_sdr_mimo_report, pJson["limeSdrMIMOReport"], "SWGLimeSdrMIMOReport", "SWGLimeSdrMIMOReport");
|
|
|
|
|
2019-05-02 02:02:40 +00:00
|
|
|
::SWGSDRangel::setValue(&local_input_report, pJson["localInputReport"], "SWGLocalInputReport", "SWGLocalInputReport");
|
|
|
|
|
2019-05-10 21:38:52 +00:00
|
|
|
::SWGSDRangel::setValue(&local_output_report, pJson["localOutputReport"], "SWGLocalOutputReport", "SWGLocalOutputReport");
|
|
|
|
|
2018-05-26 11:24:35 +00:00
|
|
|
::SWGSDRangel::setValue(&perseus_report, pJson["perseusReport"], "SWGPerseusReport", "SWGPerseusReport");
|
|
|
|
|
2018-05-26 16:07:21 +00:00
|
|
|
::SWGSDRangel::setValue(&pluto_sdr_input_report, pJson["plutoSdrInputReport"], "SWGPlutoSdrInputReport", "SWGPlutoSdrInputReport");
|
|
|
|
|
|
|
|
::SWGSDRangel::setValue(&pluto_sdr_output_report, pJson["plutoSdrOutputReport"], "SWGPlutoSdrOutputReport", "SWGPlutoSdrOutputReport");
|
|
|
|
|
2021-05-01 07:50:51 +00:00
|
|
|
::SWGSDRangel::setValue(&pluto_sdr_mimo_report, pJson["plutoSdrMIMOReport"], "SWGPlutoSdrMIMOReport", "SWGPlutoSdrMIMOReport");
|
|
|
|
|
2018-05-26 12:28:06 +00:00
|
|
|
::SWGSDRangel::setValue(&rtl_sdr_report, pJson["rtlSdrReport"], "SWGRtlSdrReport", "SWGRtlSdrReport");
|
|
|
|
|
2019-02-02 22:27:34 +00:00
|
|
|
::SWGSDRangel::setValue(&remote_output_report, pJson["remoteOutputReport"], "SWGRemoteOutputReport", "SWGRemoteOutputReport");
|
2018-05-27 22:40:33 +00:00
|
|
|
|
2019-02-02 23:49:57 +00:00
|
|
|
::SWGSDRangel::setValue(&remote_input_report, pJson["remoteInputReport"], "SWGRemoteInputReport", "SWGRemoteInputReport");
|
2018-05-27 09:07:24 +00:00
|
|
|
|
2022-07-19 09:10:20 +00:00
|
|
|
::SWGSDRangel::setValue(&remote_tcp_input_report, pJson["remoteTCPInputReport"], "SWGRemoteTCPInputReport", "SWGRemoteTCPInputReport");
|
|
|
|
|
2018-05-27 09:57:23 +00:00
|
|
|
::SWGSDRangel::setValue(&sdr_play_report, pJson["sdrPlayReport"], "SWGSDRPlayReport", "SWGSDRPlayReport");
|
|
|
|
|
2021-04-11 20:21:36 +00:00
|
|
|
::SWGSDRangel::setValue(&sdr_play_v3_report, pJson["sdrPlayV3Report"], "SWGSDRPlayV3Report", "SWGSDRPlayV3Report");
|
|
|
|
|
2020-11-09 23:36:03 +00:00
|
|
|
::SWGSDRangel::setValue(&sig_mf_file_input_report, pJson["sigMFFileInputReport"], "SWGSigMFFileInputReport", "SWGSigMFFileInputReport");
|
|
|
|
|
2018-11-13 22:49:04 +00:00
|
|
|
::SWGSDRangel::setValue(&soapy_sdr_input_report, pJson["soapySDRInputReport"], "SWGSoapySDRReport", "SWGSoapySDRReport");
|
|
|
|
|
|
|
|
::SWGSDRangel::setValue(&soapy_sdr_output_report, pJson["soapySDROutputReport"], "SWGSoapySDRReport", "SWGSoapySDRReport");
|
|
|
|
|
2020-10-02 21:45:28 +00:00
|
|
|
::SWGSDRangel::setValue(&usrp_input_report, pJson["usrpInputReport"], "SWGUSRPInputReport", "SWGUSRPInputReport");
|
|
|
|
|
|
|
|
::SWGSDRangel::setValue(&usrp_output_report, pJson["usrpOutputReport"], "SWGUSRPOutputReport", "SWGUSRPOutputReport");
|
|
|
|
|
2019-01-01 17:28:53 +00:00
|
|
|
::SWGSDRangel::setValue(&xtrx_input_report, pJson["xtrxInputReport"], "SWGXtrxInputReport", "SWGXtrxInputReport");
|
|
|
|
|
2019-01-02 14:35:43 +00:00
|
|
|
::SWGSDRangel::setValue(&xtrx_output_report, pJson["xtrxOutputReport"], "SWGXtrxOutputReport", "SWGXtrxOutputReport");
|
|
|
|
|
2020-11-11 02:49:53 +00:00
|
|
|
::SWGSDRangel::setValue(&xtrx_mimo_report, pJson["xtrxMIMOReport"], "SWGXtrxMIMOReport", "SWGXtrxMIMOReport");
|
|
|
|
|
2023-05-23 08:23:18 +00:00
|
|
|
::SWGSDRangel::setValue(&aaronia_rtsa_report, pJson["AaroniaRTSAReport"], "SWGAaroniaRTSAReport", "SWGAaroniaRTSAReport");
|
2023-03-18 11:48:21 +00:00
|
|
|
|
2023-04-11 09:38:28 +00:00
|
|
|
::SWGSDRangel::setValue(&aaronia_rtsa_output_report, pJson["aaroniaRTSAOutputReport"], "SWGAaroniaRTSAOutputReport", "SWGAaroniaRTSAOutputReport");
|
|
|
|
|
2018-05-25 23:43:28 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
QString
|
|
|
|
SWGDeviceReport::asJson ()
|
|
|
|
{
|
|
|
|
QJsonObject* obj = this->asJsonObject();
|
|
|
|
|
|
|
|
QJsonDocument doc(*obj);
|
|
|
|
QByteArray bytes = doc.toJson();
|
|
|
|
delete obj;
|
|
|
|
return QString(bytes);
|
|
|
|
}
|
|
|
|
|
|
|
|
QJsonObject*
|
|
|
|
SWGDeviceReport::asJsonObject() {
|
|
|
|
QJsonObject* obj = new QJsonObject();
|
|
|
|
if(device_hw_type != nullptr && *device_hw_type != QString("")){
|
|
|
|
toJsonValue(QString("deviceHwType"), device_hw_type, obj, QString("QString"));
|
|
|
|
}
|
2019-05-07 12:43:38 +00:00
|
|
|
if(m_direction_isSet){
|
|
|
|
obj->insert("direction", QJsonValue(direction));
|
2018-05-25 23:43:28 +00:00
|
|
|
}
|
|
|
|
if((airspy_report != nullptr) && (airspy_report->isSet())){
|
|
|
|
toJsonValue(QString("airspyReport"), airspy_report, obj, QString("SWGAirspyReport"));
|
|
|
|
}
|
2018-05-26 00:33:35 +00:00
|
|
|
if((airspy_hf_report != nullptr) && (airspy_hf_report->isSet())){
|
|
|
|
toJsonValue(QString("airspyHFReport"), airspy_hf_report, obj, QString("SWGAirspyHFReport"));
|
|
|
|
}
|
2023-09-08 09:52:51 +00:00
|
|
|
if((android_sdr_driver_input_report != nullptr) && (android_sdr_driver_input_report->isSet())){
|
|
|
|
toJsonValue(QString("androidSDRDriverInputReport"), android_sdr_driver_input_report, obj, QString("SWGAndroidSDRDriverInputReport"));
|
|
|
|
}
|
2018-09-22 08:39:09 +00:00
|
|
|
if((blade_rf2_input_report != nullptr) && (blade_rf2_input_report->isSet())){
|
|
|
|
toJsonValue(QString("bladeRF2InputReport"), blade_rf2_input_report, obj, QString("SWGBladeRF2InputReport"));
|
|
|
|
}
|
2018-09-29 03:49:14 +00:00
|
|
|
if((blade_rf2_output_report != nullptr) && (blade_rf2_output_report->isSet())){
|
|
|
|
toJsonValue(QString("bladeRF2OutputReport"), blade_rf2_output_report, obj, QString("SWGBladeRF2OutputReport"));
|
|
|
|
}
|
2020-11-10 16:56:57 +00:00
|
|
|
if((blade_rf2_mimo_report != nullptr) && (blade_rf2_mimo_report->isSet())){
|
|
|
|
toJsonValue(QString("bladeRF2MIMOReport"), blade_rf2_mimo_report, obj, QString("SWGBladeRF2MIMOReport"));
|
|
|
|
}
|
2019-07-07 22:59:04 +00:00
|
|
|
if((file_input_report != nullptr) && (file_input_report->isSet())){
|
|
|
|
toJsonValue(QString("fileInputReport"), file_input_report, obj, QString("SWGFileInputReport"));
|
2018-05-26 09:40:37 +00:00
|
|
|
}
|
2019-06-08 22:56:31 +00:00
|
|
|
if((kiwi_sdr_report != nullptr) && (kiwi_sdr_report->isSet())){
|
|
|
|
toJsonValue(QString("kiwiSDRReport"), kiwi_sdr_report, obj, QString("SWGKiwiSDRReport"));
|
|
|
|
}
|
2020-11-10 22:45:24 +00:00
|
|
|
if((lime_sdr_input_report != nullptr) && (lime_sdr_input_report->isSet())){
|
|
|
|
toJsonValue(QString("limeSdrInputReport"), lime_sdr_input_report, obj, QString("SWGLimeSdrInputReport"));
|
|
|
|
}
|
2018-05-26 20:16:59 +00:00
|
|
|
if((lime_sdr_output_report != nullptr) && (lime_sdr_output_report->isSet())){
|
|
|
|
toJsonValue(QString("limeSdrOutputReport"), lime_sdr_output_report, obj, QString("SWGLimeSdrOutputReport"));
|
|
|
|
}
|
2020-11-10 22:45:24 +00:00
|
|
|
if((lime_sdr_mimo_report != nullptr) && (lime_sdr_mimo_report->isSet())){
|
|
|
|
toJsonValue(QString("limeSdrMIMOReport"), lime_sdr_mimo_report, obj, QString("SWGLimeSdrMIMOReport"));
|
|
|
|
}
|
2019-05-02 02:02:40 +00:00
|
|
|
if((local_input_report != nullptr) && (local_input_report->isSet())){
|
|
|
|
toJsonValue(QString("localInputReport"), local_input_report, obj, QString("SWGLocalInputReport"));
|
|
|
|
}
|
2019-05-10 21:38:52 +00:00
|
|
|
if((local_output_report != nullptr) && (local_output_report->isSet())){
|
|
|
|
toJsonValue(QString("localOutputReport"), local_output_report, obj, QString("SWGLocalOutputReport"));
|
|
|
|
}
|
2018-05-26 11:24:35 +00:00
|
|
|
if((perseus_report != nullptr) && (perseus_report->isSet())){
|
|
|
|
toJsonValue(QString("perseusReport"), perseus_report, obj, QString("SWGPerseusReport"));
|
|
|
|
}
|
2018-05-26 16:07:21 +00:00
|
|
|
if((pluto_sdr_input_report != nullptr) && (pluto_sdr_input_report->isSet())){
|
|
|
|
toJsonValue(QString("plutoSdrInputReport"), pluto_sdr_input_report, obj, QString("SWGPlutoSdrInputReport"));
|
|
|
|
}
|
|
|
|
if((pluto_sdr_output_report != nullptr) && (pluto_sdr_output_report->isSet())){
|
|
|
|
toJsonValue(QString("plutoSdrOutputReport"), pluto_sdr_output_report, obj, QString("SWGPlutoSdrOutputReport"));
|
|
|
|
}
|
2021-05-01 07:50:51 +00:00
|
|
|
if((pluto_sdr_mimo_report != nullptr) && (pluto_sdr_mimo_report->isSet())){
|
|
|
|
toJsonValue(QString("plutoSdrMIMOReport"), pluto_sdr_mimo_report, obj, QString("SWGPlutoSdrMIMOReport"));
|
|
|
|
}
|
2018-05-26 12:28:06 +00:00
|
|
|
if((rtl_sdr_report != nullptr) && (rtl_sdr_report->isSet())){
|
|
|
|
toJsonValue(QString("rtlSdrReport"), rtl_sdr_report, obj, QString("SWGRtlSdrReport"));
|
|
|
|
}
|
2019-02-02 22:27:34 +00:00
|
|
|
if((remote_output_report != nullptr) && (remote_output_report->isSet())){
|
|
|
|
toJsonValue(QString("remoteOutputReport"), remote_output_report, obj, QString("SWGRemoteOutputReport"));
|
2018-05-27 22:40:33 +00:00
|
|
|
}
|
2019-02-02 23:49:57 +00:00
|
|
|
if((remote_input_report != nullptr) && (remote_input_report->isSet())){
|
|
|
|
toJsonValue(QString("remoteInputReport"), remote_input_report, obj, QString("SWGRemoteInputReport"));
|
2018-05-27 09:07:24 +00:00
|
|
|
}
|
2022-07-19 09:10:20 +00:00
|
|
|
if((remote_tcp_input_report != nullptr) && (remote_tcp_input_report->isSet())){
|
|
|
|
toJsonValue(QString("remoteTCPInputReport"), remote_tcp_input_report, obj, QString("SWGRemoteTCPInputReport"));
|
|
|
|
}
|
2018-05-27 09:57:23 +00:00
|
|
|
if((sdr_play_report != nullptr) && (sdr_play_report->isSet())){
|
|
|
|
toJsonValue(QString("sdrPlayReport"), sdr_play_report, obj, QString("SWGSDRPlayReport"));
|
|
|
|
}
|
2021-04-11 20:21:36 +00:00
|
|
|
if((sdr_play_v3_report != nullptr) && (sdr_play_v3_report->isSet())){
|
|
|
|
toJsonValue(QString("sdrPlayV3Report"), sdr_play_v3_report, obj, QString("SWGSDRPlayV3Report"));
|
|
|
|
}
|
2020-11-09 23:36:03 +00:00
|
|
|
if((sig_mf_file_input_report != nullptr) && (sig_mf_file_input_report->isSet())){
|
|
|
|
toJsonValue(QString("sigMFFileInputReport"), sig_mf_file_input_report, obj, QString("SWGSigMFFileInputReport"));
|
|
|
|
}
|
2018-11-13 22:49:04 +00:00
|
|
|
if((soapy_sdr_input_report != nullptr) && (soapy_sdr_input_report->isSet())){
|
|
|
|
toJsonValue(QString("soapySDRInputReport"), soapy_sdr_input_report, obj, QString("SWGSoapySDRReport"));
|
|
|
|
}
|
|
|
|
if((soapy_sdr_output_report != nullptr) && (soapy_sdr_output_report->isSet())){
|
|
|
|
toJsonValue(QString("soapySDROutputReport"), soapy_sdr_output_report, obj, QString("SWGSoapySDRReport"));
|
|
|
|
}
|
2020-10-02 21:45:28 +00:00
|
|
|
if((usrp_input_report != nullptr) && (usrp_input_report->isSet())){
|
|
|
|
toJsonValue(QString("usrpInputReport"), usrp_input_report, obj, QString("SWGUSRPInputReport"));
|
|
|
|
}
|
|
|
|
if((usrp_output_report != nullptr) && (usrp_output_report->isSet())){
|
|
|
|
toJsonValue(QString("usrpOutputReport"), usrp_output_report, obj, QString("SWGUSRPOutputReport"));
|
|
|
|
}
|
2019-01-01 17:28:53 +00:00
|
|
|
if((xtrx_input_report != nullptr) && (xtrx_input_report->isSet())){
|
|
|
|
toJsonValue(QString("xtrxInputReport"), xtrx_input_report, obj, QString("SWGXtrxInputReport"));
|
|
|
|
}
|
2019-01-02 14:35:43 +00:00
|
|
|
if((xtrx_output_report != nullptr) && (xtrx_output_report->isSet())){
|
|
|
|
toJsonValue(QString("xtrxOutputReport"), xtrx_output_report, obj, QString("SWGXtrxOutputReport"));
|
|
|
|
}
|
2020-11-11 02:49:53 +00:00
|
|
|
if((xtrx_mimo_report != nullptr) && (xtrx_mimo_report->isSet())){
|
|
|
|
toJsonValue(QString("xtrxMIMOReport"), xtrx_mimo_report, obj, QString("SWGXtrxMIMOReport"));
|
|
|
|
}
|
2023-05-23 08:23:18 +00:00
|
|
|
if((aaronia_rtsa_report != nullptr) && (aaronia_rtsa_report->isSet())){
|
|
|
|
toJsonValue(QString("AaroniaRTSAReport"), aaronia_rtsa_report, obj, QString("SWGAaroniaRTSAReport"));
|
2023-03-18 11:48:21 +00:00
|
|
|
}
|
2023-04-11 09:38:28 +00:00
|
|
|
if((aaronia_rtsa_output_report != nullptr) && (aaronia_rtsa_output_report->isSet())){
|
|
|
|
toJsonValue(QString("aaroniaRTSAOutputReport"), aaronia_rtsa_output_report, obj, QString("SWGAaroniaRTSAOutputReport"));
|
|
|
|
}
|
2018-05-25 23:43:28 +00:00
|
|
|
|
|
|
|
return obj;
|
|
|
|
}
|
|
|
|
|
|
|
|
QString*
|
|
|
|
SWGDeviceReport::getDeviceHwType() {
|
|
|
|
return device_hw_type;
|
|
|
|
}
|
|
|
|
void
|
|
|
|
SWGDeviceReport::setDeviceHwType(QString* device_hw_type) {
|
|
|
|
this->device_hw_type = device_hw_type;
|
|
|
|
this->m_device_hw_type_isSet = true;
|
|
|
|
}
|
|
|
|
|
|
|
|
qint32
|
2019-05-07 12:43:38 +00:00
|
|
|
SWGDeviceReport::getDirection() {
|
|
|
|
return direction;
|
2018-05-25 23:43:28 +00:00
|
|
|
}
|
|
|
|
void
|
2019-05-07 12:43:38 +00:00
|
|
|
SWGDeviceReport::setDirection(qint32 direction) {
|
|
|
|
this->direction = direction;
|
|
|
|
this->m_direction_isSet = true;
|
2018-05-25 23:43:28 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
SWGAirspyReport*
|
|
|
|
SWGDeviceReport::getAirspyReport() {
|
|
|
|
return airspy_report;
|
|
|
|
}
|
|
|
|
void
|
|
|
|
SWGDeviceReport::setAirspyReport(SWGAirspyReport* airspy_report) {
|
|
|
|
this->airspy_report = airspy_report;
|
|
|
|
this->m_airspy_report_isSet = true;
|
|
|
|
}
|
|
|
|
|
2018-05-26 00:33:35 +00:00
|
|
|
SWGAirspyHFReport*
|
|
|
|
SWGDeviceReport::getAirspyHfReport() {
|
|
|
|
return airspy_hf_report;
|
|
|
|
}
|
|
|
|
void
|
|
|
|
SWGDeviceReport::setAirspyHfReport(SWGAirspyHFReport* airspy_hf_report) {
|
|
|
|
this->airspy_hf_report = airspy_hf_report;
|
|
|
|
this->m_airspy_hf_report_isSet = true;
|
|
|
|
}
|
|
|
|
|
2023-09-08 09:52:51 +00:00
|
|
|
SWGAndroidSDRDriverInputReport*
|
|
|
|
SWGDeviceReport::getAndroidSdrDriverInputReport() {
|
|
|
|
return android_sdr_driver_input_report;
|
|
|
|
}
|
|
|
|
void
|
|
|
|
SWGDeviceReport::setAndroidSdrDriverInputReport(SWGAndroidSDRDriverInputReport* android_sdr_driver_input_report) {
|
|
|
|
this->android_sdr_driver_input_report = android_sdr_driver_input_report;
|
|
|
|
this->m_android_sdr_driver_input_report_isSet = true;
|
|
|
|
}
|
|
|
|
|
2018-09-22 08:39:09 +00:00
|
|
|
SWGBladeRF2InputReport*
|
|
|
|
SWGDeviceReport::getBladeRf2InputReport() {
|
|
|
|
return blade_rf2_input_report;
|
|
|
|
}
|
|
|
|
void
|
|
|
|
SWGDeviceReport::setBladeRf2InputReport(SWGBladeRF2InputReport* blade_rf2_input_report) {
|
|
|
|
this->blade_rf2_input_report = blade_rf2_input_report;
|
|
|
|
this->m_blade_rf2_input_report_isSet = true;
|
|
|
|
}
|
|
|
|
|
2018-09-29 03:49:14 +00:00
|
|
|
SWGBladeRF2OutputReport*
|
|
|
|
SWGDeviceReport::getBladeRf2OutputReport() {
|
|
|
|
return blade_rf2_output_report;
|
|
|
|
}
|
|
|
|
void
|
|
|
|
SWGDeviceReport::setBladeRf2OutputReport(SWGBladeRF2OutputReport* blade_rf2_output_report) {
|
|
|
|
this->blade_rf2_output_report = blade_rf2_output_report;
|
|
|
|
this->m_blade_rf2_output_report_isSet = true;
|
|
|
|
}
|
|
|
|
|
2020-11-10 16:56:57 +00:00
|
|
|
SWGBladeRF2MIMOReport*
|
|
|
|
SWGDeviceReport::getBladeRf2MimoReport() {
|
|
|
|
return blade_rf2_mimo_report;
|
|
|
|
}
|
|
|
|
void
|
|
|
|
SWGDeviceReport::setBladeRf2MimoReport(SWGBladeRF2MIMOReport* blade_rf2_mimo_report) {
|
|
|
|
this->blade_rf2_mimo_report = blade_rf2_mimo_report;
|
|
|
|
this->m_blade_rf2_mimo_report_isSet = true;
|
|
|
|
}
|
|
|
|
|
2019-07-07 22:59:04 +00:00
|
|
|
SWGFileInputReport*
|
|
|
|
SWGDeviceReport::getFileInputReport() {
|
|
|
|
return file_input_report;
|
2018-05-26 09:40:37 +00:00
|
|
|
}
|
|
|
|
void
|
2019-07-07 22:59:04 +00:00
|
|
|
SWGDeviceReport::setFileInputReport(SWGFileInputReport* file_input_report) {
|
|
|
|
this->file_input_report = file_input_report;
|
|
|
|
this->m_file_input_report_isSet = true;
|
2018-05-26 09:40:37 +00:00
|
|
|
}
|
|
|
|
|
2019-06-08 22:56:31 +00:00
|
|
|
SWGKiwiSDRReport*
|
|
|
|
SWGDeviceReport::getKiwiSdrReport() {
|
|
|
|
return kiwi_sdr_report;
|
|
|
|
}
|
|
|
|
void
|
|
|
|
SWGDeviceReport::setKiwiSdrReport(SWGKiwiSDRReport* kiwi_sdr_report) {
|
|
|
|
this->kiwi_sdr_report = kiwi_sdr_report;
|
|
|
|
this->m_kiwi_sdr_report_isSet = true;
|
|
|
|
}
|
|
|
|
|
2020-11-10 22:45:24 +00:00
|
|
|
SWGLimeSdrInputReport*
|
|
|
|
SWGDeviceReport::getLimeSdrInputReport() {
|
|
|
|
return lime_sdr_input_report;
|
|
|
|
}
|
|
|
|
void
|
|
|
|
SWGDeviceReport::setLimeSdrInputReport(SWGLimeSdrInputReport* lime_sdr_input_report) {
|
|
|
|
this->lime_sdr_input_report = lime_sdr_input_report;
|
|
|
|
this->m_lime_sdr_input_report_isSet = true;
|
|
|
|
}
|
|
|
|
|
2018-05-26 20:16:59 +00:00
|
|
|
SWGLimeSdrOutputReport*
|
|
|
|
SWGDeviceReport::getLimeSdrOutputReport() {
|
|
|
|
return lime_sdr_output_report;
|
|
|
|
}
|
|
|
|
void
|
|
|
|
SWGDeviceReport::setLimeSdrOutputReport(SWGLimeSdrOutputReport* lime_sdr_output_report) {
|
|
|
|
this->lime_sdr_output_report = lime_sdr_output_report;
|
|
|
|
this->m_lime_sdr_output_report_isSet = true;
|
|
|
|
}
|
|
|
|
|
2020-11-10 22:45:24 +00:00
|
|
|
SWGLimeSdrMIMOReport*
|
|
|
|
SWGDeviceReport::getLimeSdrMimoReport() {
|
|
|
|
return lime_sdr_mimo_report;
|
|
|
|
}
|
|
|
|
void
|
|
|
|
SWGDeviceReport::setLimeSdrMimoReport(SWGLimeSdrMIMOReport* lime_sdr_mimo_report) {
|
|
|
|
this->lime_sdr_mimo_report = lime_sdr_mimo_report;
|
|
|
|
this->m_lime_sdr_mimo_report_isSet = true;
|
|
|
|
}
|
|
|
|
|
2019-05-02 02:02:40 +00:00
|
|
|
SWGLocalInputReport*
|
|
|
|
SWGDeviceReport::getLocalInputReport() {
|
|
|
|
return local_input_report;
|
|
|
|
}
|
|
|
|
void
|
|
|
|
SWGDeviceReport::setLocalInputReport(SWGLocalInputReport* local_input_report) {
|
|
|
|
this->local_input_report = local_input_report;
|
|
|
|
this->m_local_input_report_isSet = true;
|
|
|
|
}
|
|
|
|
|
2019-05-10 21:38:52 +00:00
|
|
|
SWGLocalOutputReport*
|
|
|
|
SWGDeviceReport::getLocalOutputReport() {
|
|
|
|
return local_output_report;
|
|
|
|
}
|
|
|
|
void
|
|
|
|
SWGDeviceReport::setLocalOutputReport(SWGLocalOutputReport* local_output_report) {
|
|
|
|
this->local_output_report = local_output_report;
|
|
|
|
this->m_local_output_report_isSet = true;
|
|
|
|
}
|
|
|
|
|
2018-05-26 11:24:35 +00:00
|
|
|
SWGPerseusReport*
|
|
|
|
SWGDeviceReport::getPerseusReport() {
|
|
|
|
return perseus_report;
|
|
|
|
}
|
|
|
|
void
|
|
|
|
SWGDeviceReport::setPerseusReport(SWGPerseusReport* perseus_report) {
|
|
|
|
this->perseus_report = perseus_report;
|
|
|
|
this->m_perseus_report_isSet = true;
|
|
|
|
}
|
|
|
|
|
2018-05-26 16:07:21 +00:00
|
|
|
SWGPlutoSdrInputReport*
|
|
|
|
SWGDeviceReport::getPlutoSdrInputReport() {
|
|
|
|
return pluto_sdr_input_report;
|
|
|
|
}
|
|
|
|
void
|
|
|
|
SWGDeviceReport::setPlutoSdrInputReport(SWGPlutoSdrInputReport* pluto_sdr_input_report) {
|
|
|
|
this->pluto_sdr_input_report = pluto_sdr_input_report;
|
|
|
|
this->m_pluto_sdr_input_report_isSet = true;
|
|
|
|
}
|
|
|
|
|
|
|
|
SWGPlutoSdrOutputReport*
|
|
|
|
SWGDeviceReport::getPlutoSdrOutputReport() {
|
|
|
|
return pluto_sdr_output_report;
|
|
|
|
}
|
|
|
|
void
|
|
|
|
SWGDeviceReport::setPlutoSdrOutputReport(SWGPlutoSdrOutputReport* pluto_sdr_output_report) {
|
|
|
|
this->pluto_sdr_output_report = pluto_sdr_output_report;
|
|
|
|
this->m_pluto_sdr_output_report_isSet = true;
|
|
|
|
}
|
|
|
|
|
2021-05-01 07:50:51 +00:00
|
|
|
SWGPlutoSdrMIMOReport*
|
|
|
|
SWGDeviceReport::getPlutoSdrMimoReport() {
|
|
|
|
return pluto_sdr_mimo_report;
|
|
|
|
}
|
|
|
|
void
|
|
|
|
SWGDeviceReport::setPlutoSdrMimoReport(SWGPlutoSdrMIMOReport* pluto_sdr_mimo_report) {
|
|
|
|
this->pluto_sdr_mimo_report = pluto_sdr_mimo_report;
|
|
|
|
this->m_pluto_sdr_mimo_report_isSet = true;
|
|
|
|
}
|
|
|
|
|
2018-05-26 12:28:06 +00:00
|
|
|
SWGRtlSdrReport*
|
|
|
|
SWGDeviceReport::getRtlSdrReport() {
|
|
|
|
return rtl_sdr_report;
|
|
|
|
}
|
|
|
|
void
|
|
|
|
SWGDeviceReport::setRtlSdrReport(SWGRtlSdrReport* rtl_sdr_report) {
|
|
|
|
this->rtl_sdr_report = rtl_sdr_report;
|
|
|
|
this->m_rtl_sdr_report_isSet = true;
|
|
|
|
}
|
|
|
|
|
2019-02-02 22:27:34 +00:00
|
|
|
SWGRemoteOutputReport*
|
|
|
|
SWGDeviceReport::getRemoteOutputReport() {
|
|
|
|
return remote_output_report;
|
2018-05-27 22:40:33 +00:00
|
|
|
}
|
|
|
|
void
|
2019-02-02 22:27:34 +00:00
|
|
|
SWGDeviceReport::setRemoteOutputReport(SWGRemoteOutputReport* remote_output_report) {
|
|
|
|
this->remote_output_report = remote_output_report;
|
|
|
|
this->m_remote_output_report_isSet = true;
|
2018-05-27 22:40:33 +00:00
|
|
|
}
|
|
|
|
|
2019-02-02 23:49:57 +00:00
|
|
|
SWGRemoteInputReport*
|
|
|
|
SWGDeviceReport::getRemoteInputReport() {
|
|
|
|
return remote_input_report;
|
2018-05-27 09:07:24 +00:00
|
|
|
}
|
|
|
|
void
|
2019-02-02 23:49:57 +00:00
|
|
|
SWGDeviceReport::setRemoteInputReport(SWGRemoteInputReport* remote_input_report) {
|
|
|
|
this->remote_input_report = remote_input_report;
|
|
|
|
this->m_remote_input_report_isSet = true;
|
2018-05-27 09:07:24 +00:00
|
|
|
}
|
|
|
|
|
2022-07-19 09:10:20 +00:00
|
|
|
SWGRemoteTCPInputReport*
|
|
|
|
SWGDeviceReport::getRemoteTcpInputReport() {
|
|
|
|
return remote_tcp_input_report;
|
|
|
|
}
|
|
|
|
void
|
|
|
|
SWGDeviceReport::setRemoteTcpInputReport(SWGRemoteTCPInputReport* remote_tcp_input_report) {
|
|
|
|
this->remote_tcp_input_report = remote_tcp_input_report;
|
|
|
|
this->m_remote_tcp_input_report_isSet = true;
|
|
|
|
}
|
|
|
|
|
2018-05-27 09:57:23 +00:00
|
|
|
SWGSDRPlayReport*
|
|
|
|
SWGDeviceReport::getSdrPlayReport() {
|
|
|
|
return sdr_play_report;
|
|
|
|
}
|
|
|
|
void
|
|
|
|
SWGDeviceReport::setSdrPlayReport(SWGSDRPlayReport* sdr_play_report) {
|
|
|
|
this->sdr_play_report = sdr_play_report;
|
|
|
|
this->m_sdr_play_report_isSet = true;
|
|
|
|
}
|
|
|
|
|
2021-04-11 20:21:36 +00:00
|
|
|
SWGSDRPlayV3Report*
|
|
|
|
SWGDeviceReport::getSdrPlayV3Report() {
|
|
|
|
return sdr_play_v3_report;
|
|
|
|
}
|
|
|
|
void
|
|
|
|
SWGDeviceReport::setSdrPlayV3Report(SWGSDRPlayV3Report* sdr_play_v3_report) {
|
|
|
|
this->sdr_play_v3_report = sdr_play_v3_report;
|
|
|
|
this->m_sdr_play_v3_report_isSet = true;
|
|
|
|
}
|
|
|
|
|
2020-11-09 23:36:03 +00:00
|
|
|
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;
|
|
|
|
}
|
|
|
|
|
2018-11-13 22:49:04 +00:00
|
|
|
SWGSoapySDRReport*
|
|
|
|
SWGDeviceReport::getSoapySdrInputReport() {
|
|
|
|
return soapy_sdr_input_report;
|
|
|
|
}
|
|
|
|
void
|
|
|
|
SWGDeviceReport::setSoapySdrInputReport(SWGSoapySDRReport* soapy_sdr_input_report) {
|
|
|
|
this->soapy_sdr_input_report = soapy_sdr_input_report;
|
|
|
|
this->m_soapy_sdr_input_report_isSet = true;
|
|
|
|
}
|
|
|
|
|
|
|
|
SWGSoapySDRReport*
|
|
|
|
SWGDeviceReport::getSoapySdrOutputReport() {
|
|
|
|
return soapy_sdr_output_report;
|
|
|
|
}
|
|
|
|
void
|
|
|
|
SWGDeviceReport::setSoapySdrOutputReport(SWGSoapySDRReport* soapy_sdr_output_report) {
|
|
|
|
this->soapy_sdr_output_report = soapy_sdr_output_report;
|
|
|
|
this->m_soapy_sdr_output_report_isSet = true;
|
|
|
|
}
|
|
|
|
|
2020-10-02 21:45:28 +00:00
|
|
|
SWGUSRPInputReport*
|
|
|
|
SWGDeviceReport::getUsrpInputReport() {
|
|
|
|
return usrp_input_report;
|
|
|
|
}
|
|
|
|
void
|
|
|
|
SWGDeviceReport::setUsrpInputReport(SWGUSRPInputReport* usrp_input_report) {
|
|
|
|
this->usrp_input_report = usrp_input_report;
|
|
|
|
this->m_usrp_input_report_isSet = true;
|
|
|
|
}
|
|
|
|
|
|
|
|
SWGUSRPOutputReport*
|
|
|
|
SWGDeviceReport::getUsrpOutputReport() {
|
|
|
|
return usrp_output_report;
|
|
|
|
}
|
|
|
|
void
|
|
|
|
SWGDeviceReport::setUsrpOutputReport(SWGUSRPOutputReport* usrp_output_report) {
|
|
|
|
this->usrp_output_report = usrp_output_report;
|
|
|
|
this->m_usrp_output_report_isSet = true;
|
|
|
|
}
|
|
|
|
|
2019-01-01 17:28:53 +00:00
|
|
|
SWGXtrxInputReport*
|
|
|
|
SWGDeviceReport::getXtrxInputReport() {
|
|
|
|
return xtrx_input_report;
|
|
|
|
}
|
|
|
|
void
|
|
|
|
SWGDeviceReport::setXtrxInputReport(SWGXtrxInputReport* xtrx_input_report) {
|
|
|
|
this->xtrx_input_report = xtrx_input_report;
|
|
|
|
this->m_xtrx_input_report_isSet = true;
|
|
|
|
}
|
|
|
|
|
2019-01-02 14:35:43 +00:00
|
|
|
SWGXtrxOutputReport*
|
|
|
|
SWGDeviceReport::getXtrxOutputReport() {
|
|
|
|
return xtrx_output_report;
|
|
|
|
}
|
|
|
|
void
|
|
|
|
SWGDeviceReport::setXtrxOutputReport(SWGXtrxOutputReport* xtrx_output_report) {
|
|
|
|
this->xtrx_output_report = xtrx_output_report;
|
|
|
|
this->m_xtrx_output_report_isSet = true;
|
|
|
|
}
|
|
|
|
|
2020-11-11 02:49:53 +00:00
|
|
|
SWGXtrxMIMOReport*
|
|
|
|
SWGDeviceReport::getXtrxMimoReport() {
|
|
|
|
return xtrx_mimo_report;
|
|
|
|
}
|
|
|
|
void
|
|
|
|
SWGDeviceReport::setXtrxMimoReport(SWGXtrxMIMOReport* xtrx_mimo_report) {
|
|
|
|
this->xtrx_mimo_report = xtrx_mimo_report;
|
|
|
|
this->m_xtrx_mimo_report_isSet = true;
|
|
|
|
}
|
|
|
|
|
2023-03-18 11:48:21 +00:00
|
|
|
SWGAaroniaRTSAReport*
|
2023-05-23 08:23:18 +00:00
|
|
|
SWGDeviceReport::getAaroniaRtsaReport() {
|
|
|
|
return aaronia_rtsa_report;
|
2023-03-18 11:48:21 +00:00
|
|
|
}
|
|
|
|
void
|
2023-05-23 08:23:18 +00:00
|
|
|
SWGDeviceReport::setAaroniaRtsaReport(SWGAaroniaRTSAReport* aaronia_rtsa_report) {
|
|
|
|
this->aaronia_rtsa_report = aaronia_rtsa_report;
|
|
|
|
this->m_aaronia_rtsa_report_isSet = true;
|
2023-03-18 11:48:21 +00:00
|
|
|
}
|
|
|
|
|
2023-04-11 09:38:28 +00:00
|
|
|
SWGAaroniaRTSAOutputReport*
|
|
|
|
SWGDeviceReport::getAaroniaRtsaOutputReport() {
|
|
|
|
return aaronia_rtsa_output_report;
|
|
|
|
}
|
|
|
|
void
|
|
|
|
SWGDeviceReport::setAaroniaRtsaOutputReport(SWGAaroniaRTSAOutputReport* aaronia_rtsa_output_report) {
|
|
|
|
this->aaronia_rtsa_output_report = aaronia_rtsa_output_report;
|
|
|
|
this->m_aaronia_rtsa_output_report_isSet = true;
|
|
|
|
}
|
|
|
|
|
2018-05-25 23:43:28 +00:00
|
|
|
|
|
|
|
bool
|
|
|
|
SWGDeviceReport::isSet(){
|
|
|
|
bool isObjectUpdated = false;
|
|
|
|
do{
|
2019-08-04 00:50:32 +00:00
|
|
|
if(device_hw_type && *device_hw_type != QString("")){
|
|
|
|
isObjectUpdated = true; break;
|
|
|
|
}
|
|
|
|
if(m_direction_isSet){
|
|
|
|
isObjectUpdated = true; break;
|
|
|
|
}
|
|
|
|
if(airspy_report && airspy_report->isSet()){
|
|
|
|
isObjectUpdated = true; break;
|
|
|
|
}
|
|
|
|
if(airspy_hf_report && airspy_hf_report->isSet()){
|
|
|
|
isObjectUpdated = true; break;
|
|
|
|
}
|
2023-09-08 09:52:51 +00:00
|
|
|
if(android_sdr_driver_input_report && android_sdr_driver_input_report->isSet()){
|
|
|
|
isObjectUpdated = true; break;
|
|
|
|
}
|
2019-08-04 00:50:32 +00:00
|
|
|
if(blade_rf2_input_report && blade_rf2_input_report->isSet()){
|
|
|
|
isObjectUpdated = true; break;
|
|
|
|
}
|
|
|
|
if(blade_rf2_output_report && blade_rf2_output_report->isSet()){
|
|
|
|
isObjectUpdated = true; break;
|
|
|
|
}
|
2020-11-10 16:56:57 +00:00
|
|
|
if(blade_rf2_mimo_report && blade_rf2_mimo_report->isSet()){
|
|
|
|
isObjectUpdated = true; break;
|
|
|
|
}
|
2019-08-04 00:50:32 +00:00
|
|
|
if(file_input_report && file_input_report->isSet()){
|
|
|
|
isObjectUpdated = true; break;
|
|
|
|
}
|
2020-11-10 22:45:24 +00:00
|
|
|
if(kiwi_sdr_report && kiwi_sdr_report->isSet()){
|
2019-08-04 00:50:32 +00:00
|
|
|
isObjectUpdated = true; break;
|
|
|
|
}
|
2020-11-10 22:45:24 +00:00
|
|
|
if(lime_sdr_input_report && lime_sdr_input_report->isSet()){
|
2019-08-04 00:50:32 +00:00
|
|
|
isObjectUpdated = true; break;
|
|
|
|
}
|
|
|
|
if(lime_sdr_output_report && lime_sdr_output_report->isSet()){
|
|
|
|
isObjectUpdated = true; break;
|
|
|
|
}
|
2020-11-10 22:45:24 +00:00
|
|
|
if(lime_sdr_mimo_report && lime_sdr_mimo_report->isSet()){
|
|
|
|
isObjectUpdated = true; break;
|
|
|
|
}
|
2019-08-04 00:50:32 +00:00
|
|
|
if(local_input_report && local_input_report->isSet()){
|
|
|
|
isObjectUpdated = true; break;
|
|
|
|
}
|
|
|
|
if(local_output_report && local_output_report->isSet()){
|
|
|
|
isObjectUpdated = true; break;
|
|
|
|
}
|
|
|
|
if(perseus_report && perseus_report->isSet()){
|
|
|
|
isObjectUpdated = true; break;
|
|
|
|
}
|
|
|
|
if(pluto_sdr_input_report && pluto_sdr_input_report->isSet()){
|
|
|
|
isObjectUpdated = true; break;
|
|
|
|
}
|
|
|
|
if(pluto_sdr_output_report && pluto_sdr_output_report->isSet()){
|
|
|
|
isObjectUpdated = true; break;
|
|
|
|
}
|
2021-05-01 07:50:51 +00:00
|
|
|
if(pluto_sdr_mimo_report && pluto_sdr_mimo_report->isSet()){
|
|
|
|
isObjectUpdated = true; break;
|
|
|
|
}
|
2019-08-04 00:50:32 +00:00
|
|
|
if(rtl_sdr_report && rtl_sdr_report->isSet()){
|
|
|
|
isObjectUpdated = true; break;
|
|
|
|
}
|
|
|
|
if(remote_output_report && remote_output_report->isSet()){
|
|
|
|
isObjectUpdated = true; break;
|
|
|
|
}
|
|
|
|
if(remote_input_report && remote_input_report->isSet()){
|
|
|
|
isObjectUpdated = true; break;
|
|
|
|
}
|
2022-07-19 09:10:20 +00:00
|
|
|
if(remote_tcp_input_report && remote_tcp_input_report->isSet()){
|
|
|
|
isObjectUpdated = true; break;
|
|
|
|
}
|
2019-08-04 00:50:32 +00:00
|
|
|
if(sdr_play_report && sdr_play_report->isSet()){
|
|
|
|
isObjectUpdated = true; break;
|
2021-04-11 20:21:36 +00:00
|
|
|
}
|
|
|
|
if(sdr_play_v3_report && sdr_play_v3_report->isSet()){
|
|
|
|
isObjectUpdated = true; break;
|
2019-08-04 00:50:32 +00:00
|
|
|
}
|
2020-11-09 23:36:03 +00:00
|
|
|
if(sig_mf_file_input_report && sig_mf_file_input_report->isSet()){
|
|
|
|
isObjectUpdated = true; break;
|
|
|
|
}
|
2019-08-04 00:50:32 +00:00
|
|
|
if(soapy_sdr_input_report && soapy_sdr_input_report->isSet()){
|
|
|
|
isObjectUpdated = true; break;
|
|
|
|
}
|
|
|
|
if(soapy_sdr_output_report && soapy_sdr_output_report->isSet()){
|
|
|
|
isObjectUpdated = true; break;
|
|
|
|
}
|
2020-10-02 21:45:28 +00:00
|
|
|
if(usrp_input_report && usrp_input_report->isSet()){
|
|
|
|
isObjectUpdated = true; break;
|
|
|
|
}
|
|
|
|
if(usrp_output_report && usrp_output_report->isSet()){
|
|
|
|
isObjectUpdated = true; break;
|
|
|
|
}
|
2019-08-04 00:50:32 +00:00
|
|
|
if(xtrx_input_report && xtrx_input_report->isSet()){
|
|
|
|
isObjectUpdated = true; break;
|
|
|
|
}
|
|
|
|
if(xtrx_output_report && xtrx_output_report->isSet()){
|
|
|
|
isObjectUpdated = true; break;
|
|
|
|
}
|
2020-11-11 02:49:53 +00:00
|
|
|
if(xtrx_mimo_report && xtrx_mimo_report->isSet()){
|
|
|
|
isObjectUpdated = true; break;
|
|
|
|
}
|
2023-05-23 08:23:18 +00:00
|
|
|
if(aaronia_rtsa_report && aaronia_rtsa_report->isSet()){
|
2023-03-18 11:48:21 +00:00
|
|
|
isObjectUpdated = true; break;
|
|
|
|
}
|
2023-04-11 09:38:28 +00:00
|
|
|
if(aaronia_rtsa_output_report && aaronia_rtsa_output_report->isSet()){
|
|
|
|
isObjectUpdated = true; break;
|
|
|
|
}
|
2018-05-25 23:43:28 +00:00
|
|
|
}while(false);
|
|
|
|
return isObjectUpdated;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|