mirror of
https://github.com/f4exb/sdrangel.git
synced 2024-11-25 17:28:50 -05:00
v7 API: removed instance feature set end points and some swagger generated code cleanup
This commit is contained in:
parent
85f7b1de47
commit
233c3f961d
@ -31,7 +31,6 @@
|
||||
#include "SWGChannelActions.h"
|
||||
#include "SWGIEEE_802_15_4_ModReport.h"
|
||||
#include "SWGIEEE_802_15_4_ModActions.h"
|
||||
#include "SWGIEEE_802_15_4_ModActions_tx.h"
|
||||
|
||||
#include <stdio.h>
|
||||
#include <complex.h>
|
||||
|
@ -31,7 +31,6 @@
|
||||
#include "SWGChannelActions.h"
|
||||
#include "SWGPacketModReport.h"
|
||||
#include "SWGPacketModActions.h"
|
||||
#include "SWGPacketModActions_tx.h"
|
||||
|
||||
#include <stdio.h>
|
||||
#include <complex.h>
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -951,23 +951,6 @@ paths:
|
||||
"501":
|
||||
$ref: "#/responses/Response_501"
|
||||
|
||||
/sdrangel/featuresets:
|
||||
x-swagger-router-controller: instance
|
||||
get:
|
||||
description: Get summary information about feature sets opened in the instance
|
||||
operationId: instanceFeatureSetsGet
|
||||
tags:
|
||||
- Instance
|
||||
responses:
|
||||
"200":
|
||||
description: On success return feature set list
|
||||
schema:
|
||||
$ref: "#/definitions/FeatureSetList"
|
||||
"500":
|
||||
$ref: "#/responses/Response_500"
|
||||
"501":
|
||||
$ref: "#/responses/Response_501"
|
||||
|
||||
/sdrangel/deviceset:
|
||||
x-swagger-router-controller: instance
|
||||
post:
|
||||
@ -1941,41 +1924,6 @@ paths:
|
||||
"501":
|
||||
$ref: "#/responses/Response_501"
|
||||
|
||||
/sdrangel/featureset:
|
||||
x-swagger-router-controller: instance
|
||||
post:
|
||||
description: Add (append) a new feature set
|
||||
operationId: instanceFeatureSetPost
|
||||
tags:
|
||||
- FeatureSet
|
||||
responses:
|
||||
"202":
|
||||
description: Message to add a new feature set was sent successfully
|
||||
schema:
|
||||
$ref: "#/definitions/SuccessResponse"
|
||||
"500":
|
||||
$ref: "#/responses/Response_500"
|
||||
"501":
|
||||
$ref: "#/responses/Response_501"
|
||||
delete:
|
||||
description: Remove last feature set. The GUI version does not remove the first feature set.
|
||||
operationId: instanceFeatureSetDelete
|
||||
tags:
|
||||
- FeatureSet
|
||||
responses:
|
||||
"202":
|
||||
description: Message to remove last feature set was sent successfully
|
||||
schema:
|
||||
$ref: "#/definitions/SuccessResponse"
|
||||
"404":
|
||||
description: "No more feature sets to be deleted"
|
||||
schema:
|
||||
$ref: "#/definitions/ErrorResponse"
|
||||
"500":
|
||||
$ref: "#/responses/Response_500"
|
||||
"501":
|
||||
$ref: "#/responses/Response_501"
|
||||
|
||||
/sdrangel/featureset/{featureSetIndex}:
|
||||
x-swagger-router-controller: featureset
|
||||
get:
|
||||
@ -2532,8 +2480,8 @@ definitions:
|
||||
$ref: "#/definitions/LoggingInfo"
|
||||
devicesetlist:
|
||||
$ref: "#/definitions/DeviceSetList"
|
||||
featuresetlist:
|
||||
$ref: "#/definitions/FeatureSetList"
|
||||
featureset:
|
||||
$ref: "#/definitions/FeatureSet"
|
||||
|
||||
InstanceConfigResponse:
|
||||
description: Preferences, Presets and Commands of the MainSettings saved by Qt
|
||||
@ -2773,18 +2721,6 @@ definitions:
|
||||
type: array
|
||||
items:
|
||||
$ref: "#/definitions/Feature"
|
||||
FeatureSetList:
|
||||
description: "List of feature sets opened in this instance"
|
||||
required:
|
||||
- featuresetcount
|
||||
properties:
|
||||
featuresetcount:
|
||||
description: "Number of feature sets opened in this instance"
|
||||
type: integer
|
||||
featureSets:
|
||||
type: array
|
||||
items:
|
||||
$ref: "#/definitions/FeatureSet"
|
||||
|
||||
SpectrumServer:
|
||||
description: "Spectrum server state"
|
||||
|
@ -75,8 +75,6 @@
|
||||
#include "SWGFeaturePresetGroup.h"
|
||||
#include "SWGFeaturePresetItem.h"
|
||||
#include "SWGFeaturePresetIdentifier.h"
|
||||
#include "SWGFeaturePresetTransfer.h"
|
||||
#include "SWGFeatureSetList.h"
|
||||
#include "SWGFeatureSettings.h"
|
||||
#include "SWGFeatureReport.h"
|
||||
#include "SWGFeatureActions.h"
|
||||
@ -127,8 +125,8 @@ int WebAPIAdapter::instanceSummary(
|
||||
SWGSDRangel::SWGDeviceSetList *deviceSetList = response.getDevicesetlist();
|
||||
getDeviceSetList(deviceSetList);
|
||||
|
||||
SWGSDRangel::SWGFeatureSetList *featureSetList = response.getFeaturesetlist();
|
||||
getFeatureSetList(featureSetList);
|
||||
SWGSDRangel::SWGFeatureSet *featureSet = response.getFeatureset();
|
||||
getFeatureSet(featureSet, m_mainCore->m_featureSets.back(), 0);
|
||||
|
||||
return 200;
|
||||
}
|
||||
@ -1489,15 +1487,6 @@ int WebAPIAdapter::instanceDeviceSetsGet(
|
||||
return 200;
|
||||
}
|
||||
|
||||
int WebAPIAdapter::instanceFeatureSetsGet(
|
||||
SWGSDRangel::SWGFeatureSetList& response,
|
||||
SWGSDRangel::SWGErrorResponse& error)
|
||||
{
|
||||
(void) error;
|
||||
getFeatureSetList(&response);
|
||||
return 200;
|
||||
}
|
||||
|
||||
int WebAPIAdapter::instanceDeviceSetPost(
|
||||
int direction,
|
||||
SWGSDRangel::SWGSuccessResponse& response,
|
||||
@ -1538,45 +1527,6 @@ int WebAPIAdapter::instanceDeviceSetDelete(
|
||||
}
|
||||
}
|
||||
|
||||
int WebAPIAdapter::instanceFeatureSetPost(
|
||||
SWGSDRangel::SWGSuccessResponse& response,
|
||||
SWGSDRangel::SWGErrorResponse& error)
|
||||
{
|
||||
(void) error;
|
||||
MainCore::MsgAddFeatureSet *msg = MainCore::MsgAddFeatureSet::create();
|
||||
m_mainCore->m_mainMessageQueue->push(msg);
|
||||
|
||||
response.init();
|
||||
*response.getMessage() = QString("Message to add a new feature set (MsgAddFeatureSet) was submitted successfully");
|
||||
|
||||
return 202;
|
||||
}
|
||||
|
||||
int WebAPIAdapter::instanceFeatureSetDelete(
|
||||
SWGSDRangel::SWGSuccessResponse& response,
|
||||
SWGSDRangel::SWGErrorResponse& error)
|
||||
{
|
||||
unsigned int minFeatureSets = QCoreApplication::applicationName() == "SDRangelSrv" ? 0 : 1;
|
||||
|
||||
if (m_mainCore->m_featureSets.size() > minFeatureSets)
|
||||
{
|
||||
MainCore::MsgRemoveLastFeatureSet *msg = MainCore::MsgRemoveLastFeatureSet::create();
|
||||
m_mainCore->m_mainMessageQueue->push(msg);
|
||||
|
||||
response.init();
|
||||
*response.getMessage() = QString("Message to remove last feature set (MsgRemoveLastFeatureSet) was submitted successfully");
|
||||
|
||||
return 202;
|
||||
}
|
||||
else
|
||||
{
|
||||
error.init();
|
||||
*error.getMessage() = "No more feature sets to be removed";
|
||||
|
||||
return 404;
|
||||
}
|
||||
}
|
||||
|
||||
int WebAPIAdapter::devicesetGet(
|
||||
int deviceSetIndex,
|
||||
SWGSDRangel::SWGDeviceSet& response,
|
||||
@ -3746,21 +3696,6 @@ int WebAPIAdapter::featuresetGet(
|
||||
}
|
||||
}
|
||||
|
||||
void WebAPIAdapter::getFeatureSetList(SWGSDRangel::SWGFeatureSetList* featureSetList)
|
||||
{
|
||||
featureSetList->init();
|
||||
featureSetList->setFeaturesetcount((int) m_mainCore->m_featureSets.size());
|
||||
|
||||
std::vector<FeatureSet*>::const_iterator it = m_mainCore->m_featureSets.begin();
|
||||
|
||||
for (int i = 0; it != m_mainCore->m_featureSets.end(); ++it, i++)
|
||||
{
|
||||
QList<SWGSDRangel::SWGFeatureSet*> *featureSets = featureSetList->getFeatureSets();
|
||||
featureSets->append(new SWGSDRangel::SWGFeatureSet());
|
||||
getFeatureSet(featureSets->back(), *it, i);
|
||||
}
|
||||
}
|
||||
|
||||
void WebAPIAdapter::getFeatureSet(SWGSDRangel::SWGFeatureSet *swgFeatureSet, const FeatureSet* featureSet, int featureSetIndex)
|
||||
{
|
||||
swgFeatureSet->init();
|
||||
|
@ -207,10 +207,6 @@ public:
|
||||
SWGSDRangel::SWGDeviceSetList& response,
|
||||
SWGSDRangel::SWGErrorResponse& error);
|
||||
|
||||
virtual int instanceFeatureSetsGet(
|
||||
SWGSDRangel::SWGFeatureSetList& response,
|
||||
SWGSDRangel::SWGErrorResponse& error);
|
||||
|
||||
virtual int instanceDeviceSetPost(
|
||||
int direction,
|
||||
SWGSDRangel::SWGSuccessResponse& response,
|
||||
@ -220,14 +216,6 @@ public:
|
||||
SWGSDRangel::SWGSuccessResponse& response,
|
||||
SWGSDRangel::SWGErrorResponse& error);
|
||||
|
||||
virtual int instanceFeatureSetPost(
|
||||
SWGSDRangel::SWGSuccessResponse& response,
|
||||
SWGSDRangel::SWGErrorResponse& error);
|
||||
|
||||
virtual int instanceFeatureSetDelete(
|
||||
SWGSDRangel::SWGSuccessResponse& response,
|
||||
SWGSDRangel::SWGErrorResponse& error);
|
||||
|
||||
virtual int devicesetGet(
|
||||
int deviceSetIndex,
|
||||
SWGSDRangel::SWGDeviceSet& response,
|
||||
@ -457,7 +445,6 @@ private:
|
||||
void getDeviceSetList(SWGSDRangel::SWGDeviceSetList* deviceSetList);
|
||||
void getDeviceSet(SWGSDRangel::SWGDeviceSet *swgDeviceSet, const DeviceSet* deviceSet, int deviceSetIndex);
|
||||
void getChannelsDetail(SWGSDRangel::SWGChannelsDetail *channelsDetail, const DeviceSet* deviceSet);
|
||||
void getFeatureSetList(SWGSDRangel::SWGFeatureSetList* featureSetList);
|
||||
void getFeatureSet(SWGSDRangel::SWGFeatureSet *swgFeatureSet, const FeatureSet* featureSet, int featureSetIndex);
|
||||
static QtMsgType getMsgTypeFromString(const QString& msgTypeString);
|
||||
static void getMsgTypeString(const QtMsgType& msgType, QString& level);
|
||||
|
@ -44,8 +44,6 @@ QString WebAPIAdapterInterface::instanceFeaturePresetsURL = "/sdrangel/featurepr
|
||||
QString WebAPIAdapterInterface::instanceFeaturePresetURL = "/sdrangel/featurepreset";
|
||||
QString WebAPIAdapterInterface::instanceDeviceSetsURL = "/sdrangel/devicesets";
|
||||
QString WebAPIAdapterInterface::instanceDeviceSetURL = "/sdrangel/deviceset";
|
||||
QString WebAPIAdapterInterface::instanceFeatureSetsURL = "/sdrangel/featuresets";
|
||||
QString WebAPIAdapterInterface::instanceFeatureSetURL = "/sdrangel/featureset";
|
||||
|
||||
std::regex WebAPIAdapterInterface::devicesetURLRe("^/sdrangel/deviceset/([0-9]{1,2})$");
|
||||
std::regex WebAPIAdapterInterface::devicesetFocusURLRe("^/sdrangel/deviceset/([0-9]{1,2})/focus$");
|
||||
|
@ -1472,8 +1472,6 @@ public:
|
||||
static QString instanceFeaturePresetURL;
|
||||
static QString instanceDeviceSetsURL;
|
||||
static QString instanceDeviceSetURL;
|
||||
static QString instanceFeatureSetsURL;
|
||||
static QString instanceFeatureSetURL;
|
||||
static std::regex devicesetURLRe;
|
||||
static std::regex devicesetFocusURLRe;
|
||||
static std::regex devicesetSpectrumSettingsURLRe;
|
||||
|
@ -55,8 +55,6 @@
|
||||
#include "SWGErrorResponse.h"
|
||||
#include "SWGFeaturePresets.h"
|
||||
#include "SWGFeaturePresetIdentifier.h"
|
||||
#include "SWGFeaturePresetTransfer.h"
|
||||
#include "SWGFeatureSetList.h"
|
||||
#include "SWGFeatureSettings.h"
|
||||
#include "SWGFeatureReport.h"
|
||||
#include "SWGFeatureActions.h"
|
||||
@ -161,10 +159,6 @@ void WebAPIRequestMapper::service(qtwebapp::HttpRequest& request, qtwebapp::Http
|
||||
instanceDeviceSetsService(request, response);
|
||||
} else if (path == WebAPIAdapterInterface::instanceDeviceSetURL) {
|
||||
instanceDeviceSetService(request, response);
|
||||
} else if (path == WebAPIAdapterInterface::instanceFeatureSetsURL) {
|
||||
instanceFeatureSetsService(request, response);
|
||||
} else if (path == WebAPIAdapterInterface::instanceFeatureSetURL) {
|
||||
instanceFeatureSetService(request, response);
|
||||
}
|
||||
else
|
||||
{
|
||||
@ -1475,33 +1469,6 @@ void WebAPIRequestMapper::instanceDeviceSetsService(qtwebapp::HttpRequest& reque
|
||||
}
|
||||
}
|
||||
|
||||
void WebAPIRequestMapper::instanceFeatureSetsService(qtwebapp::HttpRequest& request, qtwebapp::HttpResponse& response)
|
||||
{
|
||||
SWGSDRangel::SWGErrorResponse errorResponse;
|
||||
response.setHeader("Content-Type", "application/json");
|
||||
response.setHeader("Access-Control-Allow-Origin", "*");
|
||||
|
||||
if (request.getMethod() == "GET")
|
||||
{
|
||||
SWGSDRangel::SWGFeatureSetList normalResponse;
|
||||
int status = m_adapter->instanceFeatureSetsGet(normalResponse, errorResponse);
|
||||
response.setStatus(status);
|
||||
|
||||
if (status/100 == 2) {
|
||||
response.write(normalResponse.asJson().toUtf8());
|
||||
} else {
|
||||
response.write(errorResponse.asJson().toUtf8());
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
response.setStatus(405,"Invalid HTTP method");
|
||||
errorResponse.init();
|
||||
*errorResponse.getMessage() = "Invalid HTTP method";
|
||||
response.write(errorResponse.asJson().toUtf8());
|
||||
}
|
||||
}
|
||||
|
||||
void WebAPIRequestMapper::instanceDeviceSetService(qtwebapp::HttpRequest& request, qtwebapp::HttpResponse& response)
|
||||
{
|
||||
SWGSDRangel::SWGErrorResponse errorResponse;
|
||||
@ -1553,46 +1520,6 @@ void WebAPIRequestMapper::instanceDeviceSetService(qtwebapp::HttpRequest& reques
|
||||
}
|
||||
}
|
||||
|
||||
void WebAPIRequestMapper::instanceFeatureSetService(qtwebapp::HttpRequest& request, qtwebapp::HttpResponse& response)
|
||||
{
|
||||
SWGSDRangel::SWGErrorResponse errorResponse;
|
||||
response.setHeader("Content-Type", "application/json");
|
||||
response.setHeader("Access-Control-Allow-Origin", "*");
|
||||
|
||||
if (request.getMethod() == "POST")
|
||||
{
|
||||
SWGSDRangel::SWGSuccessResponse normalResponse;
|
||||
|
||||
int status = m_adapter->instanceFeatureSetPost(normalResponse, errorResponse);
|
||||
response.setStatus(status);
|
||||
|
||||
if (status/100 == 2) {
|
||||
response.write(normalResponse.asJson().toUtf8());
|
||||
} else {
|
||||
response.write(errorResponse.asJson().toUtf8());
|
||||
}
|
||||
}
|
||||
else if (request.getMethod() == "DELETE")
|
||||
{
|
||||
SWGSDRangel::SWGSuccessResponse normalResponse;
|
||||
int status = m_adapter->instanceFeatureSetDelete(normalResponse, errorResponse);
|
||||
response.setStatus(status);
|
||||
|
||||
if (status/100 == 2) {
|
||||
response.write(normalResponse.asJson().toUtf8());
|
||||
} else {
|
||||
response.write(errorResponse.asJson().toUtf8());
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
response.setStatus(405,"Invalid HTTP method");
|
||||
errorResponse.init();
|
||||
*errorResponse.getMessage() = "Invalid HTTP method";
|
||||
response.write(errorResponse.asJson().toUtf8());
|
||||
}
|
||||
}
|
||||
|
||||
void WebAPIRequestMapper::devicesetService(const std::string& indexStr, qtwebapp::HttpRequest& request, qtwebapp::HttpResponse& response)
|
||||
{
|
||||
SWGSDRangel::SWGErrorResponse errorResponse;
|
||||
@ -3216,17 +3143,6 @@ bool WebAPIRequestMapper::validatePresetIdentifer(SWGSDRangel::SWGPresetIdentifi
|
||||
return (presetIdentifier.getGroupName() && presetIdentifier.getName() && presetIdentifier.getType());
|
||||
}
|
||||
|
||||
bool WebAPIRequestMapper::validateFeaturePresetTransfer(SWGSDRangel::SWGFeaturePresetTransfer& presetTransfer)
|
||||
{
|
||||
SWGSDRangel::SWGFeaturePresetIdentifier *presetIdentifier = presetTransfer.getPreset();
|
||||
|
||||
if (presetIdentifier == 0) {
|
||||
return false;
|
||||
}
|
||||
|
||||
return validateFeaturePresetIdentifer(*presetIdentifier);
|
||||
}
|
||||
|
||||
bool WebAPIRequestMapper::validateFeaturePresetIdentifer(SWGSDRangel::SWGFeaturePresetIdentifier& presetIdentifier)
|
||||
{
|
||||
return (presetIdentifier.getGroupName() && presetIdentifier.getDescription());
|
||||
|
@ -80,8 +80,6 @@ private:
|
||||
void instanceFeaturePresetService(qtwebapp::HttpRequest& request, qtwebapp::HttpResponse& response);
|
||||
void instanceDeviceSetsService(qtwebapp::HttpRequest& request, qtwebapp::HttpResponse& response);
|
||||
void instanceDeviceSetService(qtwebapp::HttpRequest& request, qtwebapp::HttpResponse& response);
|
||||
void instanceFeatureSetsService(qtwebapp::HttpRequest& request, qtwebapp::HttpResponse& response);
|
||||
void instanceFeatureSetService(qtwebapp::HttpRequest& request, qtwebapp::HttpResponse& response);
|
||||
|
||||
void devicesetService(const std::string& indexStr, qtwebapp::HttpRequest& request, qtwebapp::HttpResponse& response);
|
||||
void devicesetFocusService(const std::string& indexStr, qtwebapp::HttpRequest& request, qtwebapp::HttpResponse& response);
|
||||
@ -118,7 +116,6 @@ private:
|
||||
bool validateDeviceActions(SWGSDRangel::SWGDeviceActions& deviceActions, QJsonObject& jsonObject, QStringList& deviceActionsKeys);
|
||||
bool validateChannelSettings(SWGSDRangel::SWGChannelSettings& channelSettings, QJsonObject& jsonObject, QStringList& channelSettingsKeys);
|
||||
bool validateChannelActions(SWGSDRangel::SWGChannelActions& channelActions, QJsonObject& jsonObject, QStringList& channelActionsKeys);
|
||||
bool validateFeaturePresetTransfer(SWGSDRangel::SWGFeaturePresetTransfer& presetTransfer);
|
||||
bool validateFeaturePresetIdentifer(SWGSDRangel::SWGFeaturePresetIdentifier& presetIdentifier);
|
||||
bool validateFeatureSettings(SWGSDRangel::SWGFeatureSettings& featureSettings, QJsonObject& jsonObject, QStringList& featureSettingsKeys);
|
||||
bool validateFeatureActions(SWGSDRangel::SWGFeatureActions& featureActions, QJsonObject& jsonObject, QStringList& featureActionsKeys);
|
||||
|
@ -951,23 +951,6 @@ paths:
|
||||
"501":
|
||||
$ref: "#/responses/Response_501"
|
||||
|
||||
/sdrangel/featuresets:
|
||||
x-swagger-router-controller: instance
|
||||
get:
|
||||
description: Get summary information about feature sets opened in the instance
|
||||
operationId: instanceFeatureSetsGet
|
||||
tags:
|
||||
- Instance
|
||||
responses:
|
||||
"200":
|
||||
description: On success return feature set list
|
||||
schema:
|
||||
$ref: "#/definitions/FeatureSetList"
|
||||
"500":
|
||||
$ref: "#/responses/Response_500"
|
||||
"501":
|
||||
$ref: "#/responses/Response_501"
|
||||
|
||||
/sdrangel/deviceset:
|
||||
x-swagger-router-controller: instance
|
||||
post:
|
||||
@ -1941,41 +1924,6 @@ paths:
|
||||
"501":
|
||||
$ref: "#/responses/Response_501"
|
||||
|
||||
/sdrangel/featureset:
|
||||
x-swagger-router-controller: instance
|
||||
post:
|
||||
description: Add (append) a new feature set
|
||||
operationId: instanceFeatureSetPost
|
||||
tags:
|
||||
- FeatureSet
|
||||
responses:
|
||||
"202":
|
||||
description: Message to add a new feature set was sent successfully
|
||||
schema:
|
||||
$ref: "#/definitions/SuccessResponse"
|
||||
"500":
|
||||
$ref: "#/responses/Response_500"
|
||||
"501":
|
||||
$ref: "#/responses/Response_501"
|
||||
delete:
|
||||
description: Remove last feature set. The GUI version does not remove the first feature set.
|
||||
operationId: instanceFeatureSetDelete
|
||||
tags:
|
||||
- FeatureSet
|
||||
responses:
|
||||
"202":
|
||||
description: Message to remove last feature set was sent successfully
|
||||
schema:
|
||||
$ref: "#/definitions/SuccessResponse"
|
||||
"404":
|
||||
description: "No more feature sets to be deleted"
|
||||
schema:
|
||||
$ref: "#/definitions/ErrorResponse"
|
||||
"500":
|
||||
$ref: "#/responses/Response_500"
|
||||
"501":
|
||||
$ref: "#/responses/Response_501"
|
||||
|
||||
/sdrangel/featureset/{featureSetIndex}:
|
||||
x-swagger-router-controller: featureset
|
||||
get:
|
||||
@ -2532,8 +2480,8 @@ definitions:
|
||||
$ref: "#/definitions/LoggingInfo"
|
||||
devicesetlist:
|
||||
$ref: "#/definitions/DeviceSetList"
|
||||
featuresetlist:
|
||||
$ref: "#/definitions/FeatureSetList"
|
||||
featureset:
|
||||
$ref: "#/definitions/FeatureSet"
|
||||
|
||||
InstanceConfigResponse:
|
||||
description: Preferences, Presets and Commands of the MainSettings saved by Qt
|
||||
@ -2773,18 +2721,6 @@ definitions:
|
||||
type: array
|
||||
items:
|
||||
$ref: "#/definitions/Feature"
|
||||
FeatureSetList:
|
||||
description: "List of feature sets opened in this instance"
|
||||
required:
|
||||
- featuresetcount
|
||||
properties:
|
||||
featuresetcount:
|
||||
description: "Number of feature sets opened in this instance"
|
||||
type: integer
|
||||
featureSets:
|
||||
type: array
|
||||
items:
|
||||
$ref: "#/definitions/FeatureSet"
|
||||
|
||||
SpectrumServer:
|
||||
description: "Spectrum server state"
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -1,110 +0,0 @@
|
||||
/**
|
||||
* SDRangel
|
||||
* This is the web REST/JSON API of SDRangel SDR software. SDRangel is an Open Source Qt5/OpenGL 3.0+ (4.3+ in Windows) GUI and server Software Defined Radio and signal analyzer in software. It supports Airspy, BladeRF, HackRF, LimeSDR, PlutoSDR, RTL-SDR, SDRplay RSP1 and FunCube --- Limitations and specifcities: * In SDRangel GUI the first Rx device set cannot be deleted. Conversely the server starts with no device sets and its number of device sets can be reduced to zero by as many calls as necessary to /sdrangel/deviceset with DELETE method. * Preset import and export from/to file is a server only feature. * Device set focus is a GUI only feature. * The following channels are not implemented (status 501 is returned): ATV and DATV demodulators, Channel Analyzer NG, LoRa demodulator * The device settings and report structures contains only the sub-structure corresponding to the device type. The DeviceSettings and DeviceReport structures documented here shows all of them but only one will be or should be present at a time * The channel settings and report structures contains only the sub-structure corresponding to the channel type. The ChannelSettings and ChannelReport structures documented here shows all of them but only one will be or should be present at a time ---
|
||||
*
|
||||
* OpenAPI spec version: 6.0.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 "SWGAISModActions_tx.h"
|
||||
|
||||
#include "SWGHelpers.h"
|
||||
|
||||
#include <QJsonDocument>
|
||||
#include <QJsonArray>
|
||||
#include <QObject>
|
||||
#include <QDebug>
|
||||
|
||||
namespace SWGSDRangel {
|
||||
|
||||
SWGAISModActions_tx::SWGAISModActions_tx(QString* json) {
|
||||
init();
|
||||
this->fromJson(*json);
|
||||
}
|
||||
|
||||
SWGAISModActions_tx::SWGAISModActions_tx() {
|
||||
data = nullptr;
|
||||
m_data_isSet = false;
|
||||
}
|
||||
|
||||
SWGAISModActions_tx::~SWGAISModActions_tx() {
|
||||
this->cleanup();
|
||||
}
|
||||
|
||||
void
|
||||
SWGAISModActions_tx::init() {
|
||||
data = new QString("");
|
||||
m_data_isSet = false;
|
||||
}
|
||||
|
||||
void
|
||||
SWGAISModActions_tx::cleanup() {
|
||||
if(data != nullptr) {
|
||||
delete data;
|
||||
}
|
||||
}
|
||||
|
||||
SWGAISModActions_tx*
|
||||
SWGAISModActions_tx::fromJson(QString &json) {
|
||||
QByteArray array (json.toStdString().c_str());
|
||||
QJsonDocument doc = QJsonDocument::fromJson(array);
|
||||
QJsonObject jsonObject = doc.object();
|
||||
this->fromJsonObject(jsonObject);
|
||||
return this;
|
||||
}
|
||||
|
||||
void
|
||||
SWGAISModActions_tx::fromJsonObject(QJsonObject &pJson) {
|
||||
::SWGSDRangel::setValue(&data, pJson["data"], "QString", "QString");
|
||||
|
||||
}
|
||||
|
||||
QString
|
||||
SWGAISModActions_tx::asJson ()
|
||||
{
|
||||
QJsonObject* obj = this->asJsonObject();
|
||||
|
||||
QJsonDocument doc(*obj);
|
||||
QByteArray bytes = doc.toJson();
|
||||
delete obj;
|
||||
return QString(bytes);
|
||||
}
|
||||
|
||||
QJsonObject*
|
||||
SWGAISModActions_tx::asJsonObject() {
|
||||
QJsonObject* obj = new QJsonObject();
|
||||
if(data != nullptr && *data != QString("")){
|
||||
toJsonValue(QString("data"), data, obj, QString("QString"));
|
||||
}
|
||||
|
||||
return obj;
|
||||
}
|
||||
|
||||
QString*
|
||||
SWGAISModActions_tx::getData() {
|
||||
return data;
|
||||
}
|
||||
void
|
||||
SWGAISModActions_tx::setData(QString* data) {
|
||||
this->data = data;
|
||||
this->m_data_isSet = true;
|
||||
}
|
||||
|
||||
|
||||
bool
|
||||
SWGAISModActions_tx::isSet(){
|
||||
bool isObjectUpdated = false;
|
||||
do{
|
||||
if(data && *data != QString("")){
|
||||
isObjectUpdated = true; break;
|
||||
}
|
||||
}while(false);
|
||||
return isObjectUpdated;
|
||||
}
|
||||
}
|
||||
|
@ -1,59 +0,0 @@
|
||||
/**
|
||||
* SDRangel
|
||||
* This is the web REST/JSON API of SDRangel SDR software. SDRangel is an Open Source Qt5/OpenGL 3.0+ (4.3+ in Windows) GUI and server Software Defined Radio and signal analyzer in software. It supports Airspy, BladeRF, HackRF, LimeSDR, PlutoSDR, RTL-SDR, SDRplay RSP1 and FunCube --- Limitations and specifcities: * In SDRangel GUI the first Rx device set cannot be deleted. Conversely the server starts with no device sets and its number of device sets can be reduced to zero by as many calls as necessary to /sdrangel/deviceset with DELETE method. * Preset import and export from/to file is a server only feature. * Device set focus is a GUI only feature. * The following channels are not implemented (status 501 is returned): ATV and DATV demodulators, Channel Analyzer NG, LoRa demodulator * The device settings and report structures contains only the sub-structure corresponding to the device type. The DeviceSettings and DeviceReport structures documented here shows all of them but only one will be or should be present at a time * The channel settings and report structures contains only the sub-structure corresponding to the channel type. The ChannelSettings and ChannelReport structures documented here shows all of them but only one will be or should be present at a time ---
|
||||
*
|
||||
* OpenAPI spec version: 6.0.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.
|
||||
*/
|
||||
|
||||
/*
|
||||
* SWGAISModActions_tx.h
|
||||
*
|
||||
* Transmit a message
|
||||
*/
|
||||
|
||||
#ifndef SWGAISModActions_tx_H_
|
||||
#define SWGAISModActions_tx_H_
|
||||
|
||||
#include <QJsonObject>
|
||||
|
||||
|
||||
#include <QString>
|
||||
|
||||
#include "SWGObject.h"
|
||||
#include "export.h"
|
||||
|
||||
namespace SWGSDRangel {
|
||||
|
||||
class SWG_API SWGAISModActions_tx: public SWGObject {
|
||||
public:
|
||||
SWGAISModActions_tx();
|
||||
SWGAISModActions_tx(QString* json);
|
||||
virtual ~SWGAISModActions_tx();
|
||||
void init();
|
||||
void cleanup();
|
||||
|
||||
virtual QString asJson () override;
|
||||
virtual QJsonObject* asJsonObject() override;
|
||||
virtual void fromJsonObject(QJsonObject &json) override;
|
||||
virtual SWGAISModActions_tx* fromJson(QString &jsonString) override;
|
||||
|
||||
QString* getData();
|
||||
void setData(QString* data);
|
||||
|
||||
|
||||
virtual bool isSet() override;
|
||||
|
||||
private:
|
||||
QString* data;
|
||||
bool m_data_isSet;
|
||||
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
#endif /* SWGAISModActions_tx_H_ */
|
@ -1,133 +0,0 @@
|
||||
/**
|
||||
* SDRangel
|
||||
* This is the web REST/JSON API of SDRangel SDR software. SDRangel is an Open Source Qt5/OpenGL 3.0+ (4.3+ in Windows) GUI and server Software Defined Radio and signal analyzer in software. It supports Airspy, BladeRF, HackRF, LimeSDR, PlutoSDR, RTL-SDR, SDRplay RSP1 and FunCube --- Limitations and specifcities: * In SDRangel GUI the first Rx device set cannot be deleted. Conversely the server starts with no device sets and its number of device sets can be reduced to zero by as many calls as necessary to /sdrangel/deviceset with DELETE method. * Preset import and export from/to file is a server only feature. * Device set focus is a GUI only feature. * The following channels are not implemented (status 501 is returned): ATV and DATV demodulators, Channel Analyzer NG, LoRa demodulator * The device settings and report structures contains only the sub-structure corresponding to the device type. The DeviceSettings and DeviceReport structures documented here shows all of them but only one will be or should be present at a time * The channel settings and report structures contains only the sub-structure corresponding to the channel type. The ChannelSettings and ChannelReport structures documented here shows all of them but only one will be or should be present at a time ---
|
||||
*
|
||||
* OpenAPI spec version: 6.0.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 "SWGFeaturePresetTransfer.h"
|
||||
|
||||
#include "SWGHelpers.h"
|
||||
|
||||
#include <QJsonDocument>
|
||||
#include <QJsonArray>
|
||||
#include <QObject>
|
||||
#include <QDebug>
|
||||
|
||||
namespace SWGSDRangel {
|
||||
|
||||
SWGFeaturePresetTransfer::SWGFeaturePresetTransfer(QString* json) {
|
||||
init();
|
||||
this->fromJson(*json);
|
||||
}
|
||||
|
||||
SWGFeaturePresetTransfer::SWGFeaturePresetTransfer() {
|
||||
feature_set_index = 0;
|
||||
m_feature_set_index_isSet = false;
|
||||
preset = nullptr;
|
||||
m_preset_isSet = false;
|
||||
}
|
||||
|
||||
SWGFeaturePresetTransfer::~SWGFeaturePresetTransfer() {
|
||||
this->cleanup();
|
||||
}
|
||||
|
||||
void
|
||||
SWGFeaturePresetTransfer::init() {
|
||||
feature_set_index = 0;
|
||||
m_feature_set_index_isSet = false;
|
||||
preset = new SWGFeaturePresetIdentifier();
|
||||
m_preset_isSet = false;
|
||||
}
|
||||
|
||||
void
|
||||
SWGFeaturePresetTransfer::cleanup() {
|
||||
|
||||
if(preset != nullptr) {
|
||||
delete preset;
|
||||
}
|
||||
}
|
||||
|
||||
SWGFeaturePresetTransfer*
|
||||
SWGFeaturePresetTransfer::fromJson(QString &json) {
|
||||
QByteArray array (json.toStdString().c_str());
|
||||
QJsonDocument doc = QJsonDocument::fromJson(array);
|
||||
QJsonObject jsonObject = doc.object();
|
||||
this->fromJsonObject(jsonObject);
|
||||
return this;
|
||||
}
|
||||
|
||||
void
|
||||
SWGFeaturePresetTransfer::fromJsonObject(QJsonObject &pJson) {
|
||||
::SWGSDRangel::setValue(&feature_set_index, pJson["featureSetIndex"], "qint32", "");
|
||||
|
||||
::SWGSDRangel::setValue(&preset, pJson["preset"], "SWGFeaturePresetIdentifier", "SWGFeaturePresetIdentifier");
|
||||
|
||||
}
|
||||
|
||||
QString
|
||||
SWGFeaturePresetTransfer::asJson ()
|
||||
{
|
||||
QJsonObject* obj = this->asJsonObject();
|
||||
|
||||
QJsonDocument doc(*obj);
|
||||
QByteArray bytes = doc.toJson();
|
||||
delete obj;
|
||||
return QString(bytes);
|
||||
}
|
||||
|
||||
QJsonObject*
|
||||
SWGFeaturePresetTransfer::asJsonObject() {
|
||||
QJsonObject* obj = new QJsonObject();
|
||||
if(m_feature_set_index_isSet){
|
||||
obj->insert("featureSetIndex", QJsonValue(feature_set_index));
|
||||
}
|
||||
if((preset != nullptr) && (preset->isSet())){
|
||||
toJsonValue(QString("preset"), preset, obj, QString("SWGFeaturePresetIdentifier"));
|
||||
}
|
||||
|
||||
return obj;
|
||||
}
|
||||
|
||||
qint32
|
||||
SWGFeaturePresetTransfer::getFeatureSetIndex() {
|
||||
return feature_set_index;
|
||||
}
|
||||
void
|
||||
SWGFeaturePresetTransfer::setFeatureSetIndex(qint32 feature_set_index) {
|
||||
this->feature_set_index = feature_set_index;
|
||||
this->m_feature_set_index_isSet = true;
|
||||
}
|
||||
|
||||
SWGFeaturePresetIdentifier*
|
||||
SWGFeaturePresetTransfer::getPreset() {
|
||||
return preset;
|
||||
}
|
||||
void
|
||||
SWGFeaturePresetTransfer::setPreset(SWGFeaturePresetIdentifier* preset) {
|
||||
this->preset = preset;
|
||||
this->m_preset_isSet = true;
|
||||
}
|
||||
|
||||
|
||||
bool
|
||||
SWGFeaturePresetTransfer::isSet(){
|
||||
bool isObjectUpdated = false;
|
||||
do{
|
||||
if(m_feature_set_index_isSet){
|
||||
isObjectUpdated = true; break;
|
||||
}
|
||||
if(preset && preset->isSet()){
|
||||
isObjectUpdated = true; break;
|
||||
}
|
||||
}while(false);
|
||||
return isObjectUpdated;
|
||||
}
|
||||
}
|
||||
|
@ -1,65 +0,0 @@
|
||||
/**
|
||||
* SDRangel
|
||||
* This is the web REST/JSON API of SDRangel SDR software. SDRangel is an Open Source Qt5/OpenGL 3.0+ (4.3+ in Windows) GUI and server Software Defined Radio and signal analyzer in software. It supports Airspy, BladeRF, HackRF, LimeSDR, PlutoSDR, RTL-SDR, SDRplay RSP1 and FunCube --- Limitations and specifcities: * In SDRangel GUI the first Rx device set cannot be deleted. Conversely the server starts with no device sets and its number of device sets can be reduced to zero by as many calls as necessary to /sdrangel/deviceset with DELETE method. * Preset import and export from/to file is a server only feature. * Device set focus is a GUI only feature. * The following channels are not implemented (status 501 is returned): ATV and DATV demodulators, Channel Analyzer NG, LoRa demodulator * The device settings and report structures contains only the sub-structure corresponding to the device type. The DeviceSettings and DeviceReport structures documented here shows all of them but only one will be or should be present at a time * The channel settings and report structures contains only the sub-structure corresponding to the channel type. The ChannelSettings and ChannelReport structures documented here shows all of them but only one will be or should be present at a time ---
|
||||
*
|
||||
* OpenAPI spec version: 6.0.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.
|
||||
*/
|
||||
|
||||
/*
|
||||
* SWGFeaturePresetTransfer.h
|
||||
*
|
||||
* Preset transfer to or from a feature set
|
||||
*/
|
||||
|
||||
#ifndef SWGFeaturePresetTransfer_H_
|
||||
#define SWGFeaturePresetTransfer_H_
|
||||
|
||||
#include <QJsonObject>
|
||||
|
||||
|
||||
#include "SWGFeaturePresetIdentifier.h"
|
||||
|
||||
#include "SWGObject.h"
|
||||
#include "export.h"
|
||||
|
||||
namespace SWGSDRangel {
|
||||
|
||||
class SWG_API SWGFeaturePresetTransfer: public SWGObject {
|
||||
public:
|
||||
SWGFeaturePresetTransfer();
|
||||
SWGFeaturePresetTransfer(QString* json);
|
||||
virtual ~SWGFeaturePresetTransfer();
|
||||
void init();
|
||||
void cleanup();
|
||||
|
||||
virtual QString asJson () override;
|
||||
virtual QJsonObject* asJsonObject() override;
|
||||
virtual void fromJsonObject(QJsonObject &json) override;
|
||||
virtual SWGFeaturePresetTransfer* fromJson(QString &jsonString) override;
|
||||
|
||||
qint32 getFeatureSetIndex();
|
||||
void setFeatureSetIndex(qint32 feature_set_index);
|
||||
|
||||
SWGFeaturePresetIdentifier* getPreset();
|
||||
void setPreset(SWGFeaturePresetIdentifier* preset);
|
||||
|
||||
|
||||
virtual bool isSet() override;
|
||||
|
||||
private:
|
||||
qint32 feature_set_index;
|
||||
bool m_feature_set_index_isSet;
|
||||
|
||||
SWGFeaturePresetIdentifier* preset;
|
||||
bool m_preset_isSet;
|
||||
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
#endif /* SWGFeaturePresetTransfer_H_ */
|
@ -823,109 +823,5 @@ SWGFeatureSetApi::featuresetPresetPutCallback(SWGHttpRequestWorker * worker) {
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
SWGFeatureSetApi::instanceFeatureSetDelete() {
|
||||
QString fullPath;
|
||||
fullPath.append(this->host).append(this->basePath).append("/sdrangel/featureset");
|
||||
|
||||
|
||||
|
||||
SWGHttpRequestWorker *worker = new SWGHttpRequestWorker();
|
||||
SWGHttpRequestInput input(fullPath, "DELETE");
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
foreach(QString key, this->defaultHeaders.keys()) {
|
||||
input.headers.insert(key, this->defaultHeaders.value(key));
|
||||
}
|
||||
|
||||
connect(worker,
|
||||
&SWGHttpRequestWorker::on_execution_finished,
|
||||
this,
|
||||
&SWGFeatureSetApi::instanceFeatureSetDeleteCallback);
|
||||
|
||||
worker->execute(&input);
|
||||
}
|
||||
|
||||
void
|
||||
SWGFeatureSetApi::instanceFeatureSetDeleteCallback(SWGHttpRequestWorker * worker) {
|
||||
QString msg;
|
||||
QString error_str = worker->error_str;
|
||||
QNetworkReply::NetworkError error_type = worker->error_type;
|
||||
|
||||
if (worker->error_type == QNetworkReply::NoError) {
|
||||
msg = QString("Success! %1 bytes").arg(worker->response.length());
|
||||
}
|
||||
else {
|
||||
msg = "Error: " + worker->error_str;
|
||||
}
|
||||
|
||||
|
||||
QString json(worker->response);
|
||||
SWGSuccessResponse* output = static_cast<SWGSuccessResponse*>(create(json, QString("SWGSuccessResponse")));
|
||||
worker->deleteLater();
|
||||
|
||||
if (worker->error_type == QNetworkReply::NoError) {
|
||||
emit instanceFeatureSetDeleteSignal(output);
|
||||
} else {
|
||||
emit instanceFeatureSetDeleteSignalE(output, error_type, error_str);
|
||||
emit instanceFeatureSetDeleteSignalEFull(worker, error_type, error_str);
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
SWGFeatureSetApi::instanceFeatureSetPost() {
|
||||
QString fullPath;
|
||||
fullPath.append(this->host).append(this->basePath).append("/sdrangel/featureset");
|
||||
|
||||
|
||||
|
||||
SWGHttpRequestWorker *worker = new SWGHttpRequestWorker();
|
||||
SWGHttpRequestInput input(fullPath, "POST");
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
foreach(QString key, this->defaultHeaders.keys()) {
|
||||
input.headers.insert(key, this->defaultHeaders.value(key));
|
||||
}
|
||||
|
||||
connect(worker,
|
||||
&SWGHttpRequestWorker::on_execution_finished,
|
||||
this,
|
||||
&SWGFeatureSetApi::instanceFeatureSetPostCallback);
|
||||
|
||||
worker->execute(&input);
|
||||
}
|
||||
|
||||
void
|
||||
SWGFeatureSetApi::instanceFeatureSetPostCallback(SWGHttpRequestWorker * worker) {
|
||||
QString msg;
|
||||
QString error_str = worker->error_str;
|
||||
QNetworkReply::NetworkError error_type = worker->error_type;
|
||||
|
||||
if (worker->error_type == QNetworkReply::NoError) {
|
||||
msg = QString("Success! %1 bytes").arg(worker->response.length());
|
||||
}
|
||||
else {
|
||||
msg = "Error: " + worker->error_str;
|
||||
}
|
||||
|
||||
|
||||
QString json(worker->response);
|
||||
SWGSuccessResponse* output = static_cast<SWGSuccessResponse*>(create(json, QString("SWGSuccessResponse")));
|
||||
worker->deleteLater();
|
||||
|
||||
if (worker->error_type == QNetworkReply::NoError) {
|
||||
emit instanceFeatureSetPostSignal(output);
|
||||
} else {
|
||||
emit instanceFeatureSetPostSignalE(output, error_type, error_str);
|
||||
emit instanceFeatureSetPostSignalEFull(worker, error_type, error_str);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
@ -55,8 +55,6 @@ public:
|
||||
void featuresetPresetPatch(qint32 feature_set_index, SWGFeaturePresetIdentifier& body);
|
||||
void featuresetPresetPost(qint32 feature_set_index, SWGFeaturePresetIdentifier& body);
|
||||
void featuresetPresetPut(qint32 feature_set_index, SWGFeaturePresetIdentifier& body);
|
||||
void instanceFeatureSetDelete();
|
||||
void instanceFeatureSetPost();
|
||||
|
||||
private:
|
||||
void featuresetFEatureSettingsPutCallback (SWGHttpRequestWorker * worker);
|
||||
@ -73,8 +71,6 @@ private:
|
||||
void featuresetPresetPatchCallback (SWGHttpRequestWorker * worker);
|
||||
void featuresetPresetPostCallback (SWGHttpRequestWorker * worker);
|
||||
void featuresetPresetPutCallback (SWGHttpRequestWorker * worker);
|
||||
void instanceFeatureSetDeleteCallback (SWGHttpRequestWorker * worker);
|
||||
void instanceFeatureSetPostCallback (SWGHttpRequestWorker * worker);
|
||||
|
||||
signals:
|
||||
void featuresetFEatureSettingsPutSignal(SWGFeatureSettings* summary);
|
||||
@ -91,8 +87,6 @@ signals:
|
||||
void featuresetPresetPatchSignal(SWGFeaturePresetIdentifier* summary);
|
||||
void featuresetPresetPostSignal(SWGPresetIdentifier* summary);
|
||||
void featuresetPresetPutSignal(SWGFeaturePresetIdentifier* summary);
|
||||
void instanceFeatureSetDeleteSignal(SWGSuccessResponse* summary);
|
||||
void instanceFeatureSetPostSignal(SWGSuccessResponse* summary);
|
||||
|
||||
void featuresetFEatureSettingsPutSignalE(SWGFeatureSettings* summary, QNetworkReply::NetworkError error_type, QString& error_str);
|
||||
void featuresetFeatureActionsPostSignalE(SWGSuccessResponse* summary, QNetworkReply::NetworkError error_type, QString& error_str);
|
||||
@ -108,8 +102,6 @@ signals:
|
||||
void featuresetPresetPatchSignalE(SWGFeaturePresetIdentifier* summary, QNetworkReply::NetworkError error_type, QString& error_str);
|
||||
void featuresetPresetPostSignalE(SWGPresetIdentifier* summary, QNetworkReply::NetworkError error_type, QString& error_str);
|
||||
void featuresetPresetPutSignalE(SWGFeaturePresetIdentifier* summary, QNetworkReply::NetworkError error_type, QString& error_str);
|
||||
void instanceFeatureSetDeleteSignalE(SWGSuccessResponse* summary, QNetworkReply::NetworkError error_type, QString& error_str);
|
||||
void instanceFeatureSetPostSignalE(SWGSuccessResponse* summary, QNetworkReply::NetworkError error_type, QString& error_str);
|
||||
|
||||
void featuresetFEatureSettingsPutSignalEFull(SWGHttpRequestWorker* worker, QNetworkReply::NetworkError error_type, QString& error_str);
|
||||
void featuresetFeatureActionsPostSignalEFull(SWGHttpRequestWorker* worker, QNetworkReply::NetworkError error_type, QString& error_str);
|
||||
@ -125,8 +117,6 @@ signals:
|
||||
void featuresetPresetPatchSignalEFull(SWGHttpRequestWorker* worker, QNetworkReply::NetworkError error_type, QString& error_str);
|
||||
void featuresetPresetPostSignalEFull(SWGHttpRequestWorker* worker, QNetworkReply::NetworkError error_type, QString& error_str);
|
||||
void featuresetPresetPutSignalEFull(SWGHttpRequestWorker* worker, QNetworkReply::NetworkError error_type, QString& error_str);
|
||||
void instanceFeatureSetDeleteSignalEFull(SWGHttpRequestWorker* worker, QNetworkReply::NetworkError error_type, QString& error_str);
|
||||
void instanceFeatureSetPostSignalEFull(SWGHttpRequestWorker* worker, QNetworkReply::NetworkError error_type, QString& error_str);
|
||||
|
||||
};
|
||||
|
||||
|
@ -1,137 +0,0 @@
|
||||
/**
|
||||
* SDRangel
|
||||
* This is the web REST/JSON API of SDRangel SDR software. SDRangel is an Open Source Qt5/OpenGL 3.0+ (4.3+ in Windows) GUI and server Software Defined Radio and signal analyzer in software. It supports Airspy, BladeRF, HackRF, LimeSDR, PlutoSDR, RTL-SDR, SDRplay RSP1 and FunCube --- Limitations and specifcities: * In SDRangel GUI the first Rx device set cannot be deleted. Conversely the server starts with no device sets and its number of device sets can be reduced to zero by as many calls as necessary to /sdrangel/deviceset with DELETE method. * Preset import and export from/to file is a server only feature. * Device set focus is a GUI only feature. * The following channels are not implemented (status 501 is returned): ATV and DATV demodulators, Channel Analyzer NG, LoRa demodulator * The device settings and report structures contains only the sub-structure corresponding to the device type. The DeviceSettings and DeviceReport structures documented here shows all of them but only one will be or should be present at a time * The channel settings and report structures contains only the sub-structure corresponding to the channel type. The ChannelSettings and ChannelReport structures documented here shows all of them but only one will be or should be present at a time ---
|
||||
*
|
||||
* OpenAPI spec version: 6.0.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 "SWGFeatureSetList.h"
|
||||
|
||||
#include "SWGHelpers.h"
|
||||
|
||||
#include <QJsonDocument>
|
||||
#include <QJsonArray>
|
||||
#include <QObject>
|
||||
#include <QDebug>
|
||||
|
||||
namespace SWGSDRangel {
|
||||
|
||||
SWGFeatureSetList::SWGFeatureSetList(QString* json) {
|
||||
init();
|
||||
this->fromJson(*json);
|
||||
}
|
||||
|
||||
SWGFeatureSetList::SWGFeatureSetList() {
|
||||
featuresetcount = 0;
|
||||
m_featuresetcount_isSet = false;
|
||||
feature_sets = nullptr;
|
||||
m_feature_sets_isSet = false;
|
||||
}
|
||||
|
||||
SWGFeatureSetList::~SWGFeatureSetList() {
|
||||
this->cleanup();
|
||||
}
|
||||
|
||||
void
|
||||
SWGFeatureSetList::init() {
|
||||
featuresetcount = 0;
|
||||
m_featuresetcount_isSet = false;
|
||||
feature_sets = new QList<SWGFeatureSet*>();
|
||||
m_feature_sets_isSet = false;
|
||||
}
|
||||
|
||||
void
|
||||
SWGFeatureSetList::cleanup() {
|
||||
|
||||
if(feature_sets != nullptr) {
|
||||
auto arr = feature_sets;
|
||||
for(auto o: *arr) {
|
||||
delete o;
|
||||
}
|
||||
delete feature_sets;
|
||||
}
|
||||
}
|
||||
|
||||
SWGFeatureSetList*
|
||||
SWGFeatureSetList::fromJson(QString &json) {
|
||||
QByteArray array (json.toStdString().c_str());
|
||||
QJsonDocument doc = QJsonDocument::fromJson(array);
|
||||
QJsonObject jsonObject = doc.object();
|
||||
this->fromJsonObject(jsonObject);
|
||||
return this;
|
||||
}
|
||||
|
||||
void
|
||||
SWGFeatureSetList::fromJsonObject(QJsonObject &pJson) {
|
||||
::SWGSDRangel::setValue(&featuresetcount, pJson["featuresetcount"], "qint32", "");
|
||||
|
||||
|
||||
::SWGSDRangel::setValue(&feature_sets, pJson["featureSets"], "QList", "SWGFeatureSet");
|
||||
}
|
||||
|
||||
QString
|
||||
SWGFeatureSetList::asJson ()
|
||||
{
|
||||
QJsonObject* obj = this->asJsonObject();
|
||||
|
||||
QJsonDocument doc(*obj);
|
||||
QByteArray bytes = doc.toJson();
|
||||
delete obj;
|
||||
return QString(bytes);
|
||||
}
|
||||
|
||||
QJsonObject*
|
||||
SWGFeatureSetList::asJsonObject() {
|
||||
QJsonObject* obj = new QJsonObject();
|
||||
if(m_featuresetcount_isSet){
|
||||
obj->insert("featuresetcount", QJsonValue(featuresetcount));
|
||||
}
|
||||
if(feature_sets && feature_sets->size() > 0){
|
||||
toJsonArray((QList<void*>*)feature_sets, obj, "featureSets", "SWGFeatureSet");
|
||||
}
|
||||
|
||||
return obj;
|
||||
}
|
||||
|
||||
qint32
|
||||
SWGFeatureSetList::getFeaturesetcount() {
|
||||
return featuresetcount;
|
||||
}
|
||||
void
|
||||
SWGFeatureSetList::setFeaturesetcount(qint32 featuresetcount) {
|
||||
this->featuresetcount = featuresetcount;
|
||||
this->m_featuresetcount_isSet = true;
|
||||
}
|
||||
|
||||
QList<SWGFeatureSet*>*
|
||||
SWGFeatureSetList::getFeatureSets() {
|
||||
return feature_sets;
|
||||
}
|
||||
void
|
||||
SWGFeatureSetList::setFeatureSets(QList<SWGFeatureSet*>* feature_sets) {
|
||||
this->feature_sets = feature_sets;
|
||||
this->m_feature_sets_isSet = true;
|
||||
}
|
||||
|
||||
|
||||
bool
|
||||
SWGFeatureSetList::isSet(){
|
||||
bool isObjectUpdated = false;
|
||||
do{
|
||||
if(m_featuresetcount_isSet){
|
||||
isObjectUpdated = true; break;
|
||||
}
|
||||
if(feature_sets && (feature_sets->size() > 0)){
|
||||
isObjectUpdated = true; break;
|
||||
}
|
||||
}while(false);
|
||||
return isObjectUpdated;
|
||||
}
|
||||
}
|
||||
|
@ -1,66 +0,0 @@
|
||||
/**
|
||||
* SDRangel
|
||||
* This is the web REST/JSON API of SDRangel SDR software. SDRangel is an Open Source Qt5/OpenGL 3.0+ (4.3+ in Windows) GUI and server Software Defined Radio and signal analyzer in software. It supports Airspy, BladeRF, HackRF, LimeSDR, PlutoSDR, RTL-SDR, SDRplay RSP1 and FunCube --- Limitations and specifcities: * In SDRangel GUI the first Rx device set cannot be deleted. Conversely the server starts with no device sets and its number of device sets can be reduced to zero by as many calls as necessary to /sdrangel/deviceset with DELETE method. * Preset import and export from/to file is a server only feature. * Device set focus is a GUI only feature. * The following channels are not implemented (status 501 is returned): ATV and DATV demodulators, Channel Analyzer NG, LoRa demodulator * The device settings and report structures contains only the sub-structure corresponding to the device type. The DeviceSettings and DeviceReport structures documented here shows all of them but only one will be or should be present at a time * The channel settings and report structures contains only the sub-structure corresponding to the channel type. The ChannelSettings and ChannelReport structures documented here shows all of them but only one will be or should be present at a time ---
|
||||
*
|
||||
* OpenAPI spec version: 6.0.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.
|
||||
*/
|
||||
|
||||
/*
|
||||
* SWGFeatureSetList.h
|
||||
*
|
||||
* List of feature sets opened in this instance
|
||||
*/
|
||||
|
||||
#ifndef SWGFeatureSetList_H_
|
||||
#define SWGFeatureSetList_H_
|
||||
|
||||
#include <QJsonObject>
|
||||
|
||||
|
||||
#include "SWGFeatureSet.h"
|
||||
#include <QList>
|
||||
|
||||
#include "SWGObject.h"
|
||||
#include "export.h"
|
||||
|
||||
namespace SWGSDRangel {
|
||||
|
||||
class SWG_API SWGFeatureSetList: public SWGObject {
|
||||
public:
|
||||
SWGFeatureSetList();
|
||||
SWGFeatureSetList(QString* json);
|
||||
virtual ~SWGFeatureSetList();
|
||||
void init();
|
||||
void cleanup();
|
||||
|
||||
virtual QString asJson () override;
|
||||
virtual QJsonObject* asJsonObject() override;
|
||||
virtual void fromJsonObject(QJsonObject &json) override;
|
||||
virtual SWGFeatureSetList* fromJson(QString &jsonString) override;
|
||||
|
||||
qint32 getFeaturesetcount();
|
||||
void setFeaturesetcount(qint32 featuresetcount);
|
||||
|
||||
QList<SWGFeatureSet*>* getFeatureSets();
|
||||
void setFeatureSets(QList<SWGFeatureSet*>* feature_sets);
|
||||
|
||||
|
||||
virtual bool isSet() override;
|
||||
|
||||
private:
|
||||
qint32 featuresetcount;
|
||||
bool m_featuresetcount_isSet;
|
||||
|
||||
QList<SWGFeatureSet*>* feature_sets;
|
||||
bool m_feature_sets_isSet;
|
||||
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
#endif /* SWGFeatureSetList_H_ */
|
@ -1,110 +0,0 @@
|
||||
/**
|
||||
* SDRangel
|
||||
* This is the web REST/JSON API of SDRangel SDR software. SDRangel is an Open Source Qt5/OpenGL 3.0+ (4.3+ in Windows) GUI and server Software Defined Radio and signal analyzer in software. It supports Airspy, BladeRF, HackRF, LimeSDR, PlutoSDR, RTL-SDR, SDRplay RSP1 and FunCube --- Limitations and specifcities: * In SDRangel GUI the first Rx device set cannot be deleted. Conversely the server starts with no device sets and its number of device sets can be reduced to zero by as many calls as necessary to /sdrangel/deviceset with DELETE method. * Preset import and export from/to file is a server only feature. * Device set focus is a GUI only feature. * The following channels are not implemented (status 501 is returned): ATV and DATV demodulators, Channel Analyzer NG, LoRa demodulator * The device settings and report structures contains only the sub-structure corresponding to the device type. The DeviceSettings and DeviceReport structures documented here shows all of them but only one will be or should be present at a time * The channel settings and report structures contains only the sub-structure corresponding to the channel type. The ChannelSettings and ChannelReport structures documented here shows all of them but only one will be or should be present at a time ---
|
||||
*
|
||||
* OpenAPI spec version: 6.0.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 "SWGIEEE_802_15_4_ModActions_tx.h"
|
||||
|
||||
#include "SWGHelpers.h"
|
||||
|
||||
#include <QJsonDocument>
|
||||
#include <QJsonArray>
|
||||
#include <QObject>
|
||||
#include <QDebug>
|
||||
|
||||
namespace SWGSDRangel {
|
||||
|
||||
SWGIEEE_802_15_4_ModActions_tx::SWGIEEE_802_15_4_ModActions_tx(QString* json) {
|
||||
init();
|
||||
this->fromJson(*json);
|
||||
}
|
||||
|
||||
SWGIEEE_802_15_4_ModActions_tx::SWGIEEE_802_15_4_ModActions_tx() {
|
||||
data = nullptr;
|
||||
m_data_isSet = false;
|
||||
}
|
||||
|
||||
SWGIEEE_802_15_4_ModActions_tx::~SWGIEEE_802_15_4_ModActions_tx() {
|
||||
this->cleanup();
|
||||
}
|
||||
|
||||
void
|
||||
SWGIEEE_802_15_4_ModActions_tx::init() {
|
||||
data = new QString("");
|
||||
m_data_isSet = false;
|
||||
}
|
||||
|
||||
void
|
||||
SWGIEEE_802_15_4_ModActions_tx::cleanup() {
|
||||
if(data != nullptr) {
|
||||
delete data;
|
||||
}
|
||||
}
|
||||
|
||||
SWGIEEE_802_15_4_ModActions_tx*
|
||||
SWGIEEE_802_15_4_ModActions_tx::fromJson(QString &json) {
|
||||
QByteArray array (json.toStdString().c_str());
|
||||
QJsonDocument doc = QJsonDocument::fromJson(array);
|
||||
QJsonObject jsonObject = doc.object();
|
||||
this->fromJsonObject(jsonObject);
|
||||
return this;
|
||||
}
|
||||
|
||||
void
|
||||
SWGIEEE_802_15_4_ModActions_tx::fromJsonObject(QJsonObject &pJson) {
|
||||
::SWGSDRangel::setValue(&data, pJson["data"], "QString", "QString");
|
||||
|
||||
}
|
||||
|
||||
QString
|
||||
SWGIEEE_802_15_4_ModActions_tx::asJson ()
|
||||
{
|
||||
QJsonObject* obj = this->asJsonObject();
|
||||
|
||||
QJsonDocument doc(*obj);
|
||||
QByteArray bytes = doc.toJson();
|
||||
delete obj;
|
||||
return QString(bytes);
|
||||
}
|
||||
|
||||
QJsonObject*
|
||||
SWGIEEE_802_15_4_ModActions_tx::asJsonObject() {
|
||||
QJsonObject* obj = new QJsonObject();
|
||||
if(data != nullptr && *data != QString("")){
|
||||
toJsonValue(QString("data"), data, obj, QString("QString"));
|
||||
}
|
||||
|
||||
return obj;
|
||||
}
|
||||
|
||||
QString*
|
||||
SWGIEEE_802_15_4_ModActions_tx::getData() {
|
||||
return data;
|
||||
}
|
||||
void
|
||||
SWGIEEE_802_15_4_ModActions_tx::setData(QString* data) {
|
||||
this->data = data;
|
||||
this->m_data_isSet = true;
|
||||
}
|
||||
|
||||
|
||||
bool
|
||||
SWGIEEE_802_15_4_ModActions_tx::isSet(){
|
||||
bool isObjectUpdated = false;
|
||||
do{
|
||||
if(data && *data != QString("")){
|
||||
isObjectUpdated = true; break;
|
||||
}
|
||||
}while(false);
|
||||
return isObjectUpdated;
|
||||
}
|
||||
}
|
||||
|
@ -1,59 +0,0 @@
|
||||
/**
|
||||
* SDRangel
|
||||
* This is the web REST/JSON API of SDRangel SDR software. SDRangel is an Open Source Qt5/OpenGL 3.0+ (4.3+ in Windows) GUI and server Software Defined Radio and signal analyzer in software. It supports Airspy, BladeRF, HackRF, LimeSDR, PlutoSDR, RTL-SDR, SDRplay RSP1 and FunCube --- Limitations and specifcities: * In SDRangel GUI the first Rx device set cannot be deleted. Conversely the server starts with no device sets and its number of device sets can be reduced to zero by as many calls as necessary to /sdrangel/deviceset with DELETE method. * Preset import and export from/to file is a server only feature. * Device set focus is a GUI only feature. * The following channels are not implemented (status 501 is returned): ATV and DATV demodulators, Channel Analyzer NG, LoRa demodulator * The device settings and report structures contains only the sub-structure corresponding to the device type. The DeviceSettings and DeviceReport structures documented here shows all of them but only one will be or should be present at a time * The channel settings and report structures contains only the sub-structure corresponding to the channel type. The ChannelSettings and ChannelReport structures documented here shows all of them but only one will be or should be present at a time ---
|
||||
*
|
||||
* OpenAPI spec version: 6.0.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.
|
||||
*/
|
||||
|
||||
/*
|
||||
* SWGIEEE_802_15_4_ModActions_tx.h
|
||||
*
|
||||
* Transmit a frame
|
||||
*/
|
||||
|
||||
#ifndef SWGIEEE_802_15_4_ModActions_tx_H_
|
||||
#define SWGIEEE_802_15_4_ModActions_tx_H_
|
||||
|
||||
#include <QJsonObject>
|
||||
|
||||
|
||||
#include <QString>
|
||||
|
||||
#include "SWGObject.h"
|
||||
#include "export.h"
|
||||
|
||||
namespace SWGSDRangel {
|
||||
|
||||
class SWG_API SWGIEEE_802_15_4_ModActions_tx: public SWGObject {
|
||||
public:
|
||||
SWGIEEE_802_15_4_ModActions_tx();
|
||||
SWGIEEE_802_15_4_ModActions_tx(QString* json);
|
||||
virtual ~SWGIEEE_802_15_4_ModActions_tx();
|
||||
void init();
|
||||
void cleanup();
|
||||
|
||||
virtual QString asJson () override;
|
||||
virtual QJsonObject* asJsonObject() override;
|
||||
virtual void fromJsonObject(QJsonObject &json) override;
|
||||
virtual SWGIEEE_802_15_4_ModActions_tx* fromJson(QString &jsonString) override;
|
||||
|
||||
QString* getData();
|
||||
void setData(QString* data);
|
||||
|
||||
|
||||
virtual bool isSet() override;
|
||||
|
||||
private:
|
||||
QString* data;
|
||||
bool m_data_isSet;
|
||||
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
#endif /* SWGIEEE_802_15_4_ModActions_tx_H_ */
|
@ -1163,58 +1163,6 @@ SWGInstanceApi::instanceFeaturePresetGetCallback(SWGHttpRequestWorker * worker)
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
SWGInstanceApi::instanceFeatureSetsGet() {
|
||||
QString fullPath;
|
||||
fullPath.append(this->host).append(this->basePath).append("/sdrangel/featuresets");
|
||||
|
||||
|
||||
|
||||
SWGHttpRequestWorker *worker = new SWGHttpRequestWorker();
|
||||
SWGHttpRequestInput input(fullPath, "GET");
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
foreach(QString key, this->defaultHeaders.keys()) {
|
||||
input.headers.insert(key, this->defaultHeaders.value(key));
|
||||
}
|
||||
|
||||
connect(worker,
|
||||
&SWGHttpRequestWorker::on_execution_finished,
|
||||
this,
|
||||
&SWGInstanceApi::instanceFeatureSetsGetCallback);
|
||||
|
||||
worker->execute(&input);
|
||||
}
|
||||
|
||||
void
|
||||
SWGInstanceApi::instanceFeatureSetsGetCallback(SWGHttpRequestWorker * worker) {
|
||||
QString msg;
|
||||
QString error_str = worker->error_str;
|
||||
QNetworkReply::NetworkError error_type = worker->error_type;
|
||||
|
||||
if (worker->error_type == QNetworkReply::NoError) {
|
||||
msg = QString("Success! %1 bytes").arg(worker->response.length());
|
||||
}
|
||||
else {
|
||||
msg = "Error: " + worker->error_str;
|
||||
}
|
||||
|
||||
|
||||
QString json(worker->response);
|
||||
SWGFeatureSetList* output = static_cast<SWGFeatureSetList*>(create(json, QString("SWGFeatureSetList")));
|
||||
worker->deleteLater();
|
||||
|
||||
if (worker->error_type == QNetworkReply::NoError) {
|
||||
emit instanceFeatureSetsGetSignal(output);
|
||||
} else {
|
||||
emit instanceFeatureSetsGetSignalE(output, error_type, error_str);
|
||||
emit instanceFeatureSetsGetSignalEFull(worker, error_type, error_str);
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
SWGInstanceApi::instanceFeatures() {
|
||||
QString fullPath;
|
||||
|
@ -25,7 +25,6 @@
|
||||
#include "SWGErrorResponse.h"
|
||||
#include "SWGFeaturePresetIdentifier.h"
|
||||
#include "SWGFeaturePresets.h"
|
||||
#include "SWGFeatureSetList.h"
|
||||
#include "SWGInstanceChannelsResponse.h"
|
||||
#include "SWGInstanceConfigResponse.h"
|
||||
#include "SWGInstanceDevicesResponse.h"
|
||||
@ -80,7 +79,6 @@ public:
|
||||
void instanceDevices(qint32 direction);
|
||||
void instanceFeaturePresetDelete(SWGFeaturePresetIdentifier& body);
|
||||
void instanceFeaturePresetGet();
|
||||
void instanceFeatureSetsGet();
|
||||
void instanceFeatures();
|
||||
void instanceLimeRFEConfigGet(QString* serial);
|
||||
void instanceLimeRFEConfigPut(SWGLimeRFESettings& body);
|
||||
@ -122,7 +120,6 @@ private:
|
||||
void instanceDevicesCallback (SWGHttpRequestWorker * worker);
|
||||
void instanceFeaturePresetDeleteCallback (SWGHttpRequestWorker * worker);
|
||||
void instanceFeaturePresetGetCallback (SWGHttpRequestWorker * worker);
|
||||
void instanceFeatureSetsGetCallback (SWGHttpRequestWorker * worker);
|
||||
void instanceFeaturesCallback (SWGHttpRequestWorker * worker);
|
||||
void instanceLimeRFEConfigGetCallback (SWGHttpRequestWorker * worker);
|
||||
void instanceLimeRFEConfigPutCallback (SWGHttpRequestWorker * worker);
|
||||
@ -164,7 +161,6 @@ signals:
|
||||
void instanceDevicesSignal(SWGInstanceDevicesResponse* summary);
|
||||
void instanceFeaturePresetDeleteSignal(SWGFeaturePresetIdentifier* summary);
|
||||
void instanceFeaturePresetGetSignal(SWGFeaturePresets* summary);
|
||||
void instanceFeatureSetsGetSignal(SWGFeatureSetList* summary);
|
||||
void instanceFeaturesSignal(SWGInstanceFeaturesResponse* summary);
|
||||
void instanceLimeRFEConfigGetSignal(SWGLimeRFESettings* summary);
|
||||
void instanceLimeRFEConfigPutSignal(SWGSuccessResponse* summary);
|
||||
@ -205,7 +201,6 @@ signals:
|
||||
void instanceDevicesSignalE(SWGInstanceDevicesResponse* summary, QNetworkReply::NetworkError error_type, QString& error_str);
|
||||
void instanceFeaturePresetDeleteSignalE(SWGFeaturePresetIdentifier* summary, QNetworkReply::NetworkError error_type, QString& error_str);
|
||||
void instanceFeaturePresetGetSignalE(SWGFeaturePresets* summary, QNetworkReply::NetworkError error_type, QString& error_str);
|
||||
void instanceFeatureSetsGetSignalE(SWGFeatureSetList* summary, QNetworkReply::NetworkError error_type, QString& error_str);
|
||||
void instanceFeaturesSignalE(SWGInstanceFeaturesResponse* summary, QNetworkReply::NetworkError error_type, QString& error_str);
|
||||
void instanceLimeRFEConfigGetSignalE(SWGLimeRFESettings* summary, QNetworkReply::NetworkError error_type, QString& error_str);
|
||||
void instanceLimeRFEConfigPutSignalE(SWGSuccessResponse* summary, QNetworkReply::NetworkError error_type, QString& error_str);
|
||||
@ -246,7 +241,6 @@ signals:
|
||||
void instanceDevicesSignalEFull(SWGHttpRequestWorker* worker, QNetworkReply::NetworkError error_type, QString& error_str);
|
||||
void instanceFeaturePresetDeleteSignalEFull(SWGHttpRequestWorker* worker, QNetworkReply::NetworkError error_type, QString& error_str);
|
||||
void instanceFeaturePresetGetSignalEFull(SWGHttpRequestWorker* worker, QNetworkReply::NetworkError error_type, QString& error_str);
|
||||
void instanceFeatureSetsGetSignalEFull(SWGHttpRequestWorker* worker, QNetworkReply::NetworkError error_type, QString& error_str);
|
||||
void instanceFeaturesSignalEFull(SWGHttpRequestWorker* worker, QNetworkReply::NetworkError error_type, QString& error_str);
|
||||
void instanceLimeRFEConfigGetSignalEFull(SWGHttpRequestWorker* worker, QNetworkReply::NetworkError error_type, QString& error_str);
|
||||
void instanceLimeRFEConfigPutSignalEFull(SWGHttpRequestWorker* worker, QNetworkReply::NetworkError error_type, QString& error_str);
|
||||
|
@ -48,8 +48,8 @@ SWGInstanceSummaryResponse::SWGInstanceSummaryResponse() {
|
||||
m_logging_isSet = false;
|
||||
devicesetlist = nullptr;
|
||||
m_devicesetlist_isSet = false;
|
||||
featuresetlist = nullptr;
|
||||
m_featuresetlist_isSet = false;
|
||||
featureset = nullptr;
|
||||
m_featureset_isSet = false;
|
||||
}
|
||||
|
||||
SWGInstanceSummaryResponse::~SWGInstanceSummaryResponse() {
|
||||
@ -78,8 +78,8 @@ SWGInstanceSummaryResponse::init() {
|
||||
m_logging_isSet = false;
|
||||
devicesetlist = new SWGDeviceSetList();
|
||||
m_devicesetlist_isSet = false;
|
||||
featuresetlist = new SWGFeatureSetList();
|
||||
m_featuresetlist_isSet = false;
|
||||
featureset = new SWGFeatureSet();
|
||||
m_featureset_isSet = false;
|
||||
}
|
||||
|
||||
void
|
||||
@ -108,8 +108,8 @@ SWGInstanceSummaryResponse::cleanup() {
|
||||
if(devicesetlist != nullptr) {
|
||||
delete devicesetlist;
|
||||
}
|
||||
if(featuresetlist != nullptr) {
|
||||
delete featuresetlist;
|
||||
if(featureset != nullptr) {
|
||||
delete featureset;
|
||||
}
|
||||
}
|
||||
|
||||
@ -144,7 +144,7 @@ SWGInstanceSummaryResponse::fromJsonObject(QJsonObject &pJson) {
|
||||
|
||||
::SWGSDRangel::setValue(&devicesetlist, pJson["devicesetlist"], "SWGDeviceSetList", "SWGDeviceSetList");
|
||||
|
||||
::SWGSDRangel::setValue(&featuresetlist, pJson["featuresetlist"], "SWGFeatureSetList", "SWGFeatureSetList");
|
||||
::SWGSDRangel::setValue(&featureset, pJson["featureset"], "SWGFeatureSet", "SWGFeatureSet");
|
||||
|
||||
}
|
||||
|
||||
@ -192,8 +192,8 @@ SWGInstanceSummaryResponse::asJsonObject() {
|
||||
if((devicesetlist != nullptr) && (devicesetlist->isSet())){
|
||||
toJsonValue(QString("devicesetlist"), devicesetlist, obj, QString("SWGDeviceSetList"));
|
||||
}
|
||||
if((featuresetlist != nullptr) && (featuresetlist->isSet())){
|
||||
toJsonValue(QString("featuresetlist"), featuresetlist, obj, QString("SWGFeatureSetList"));
|
||||
if((featureset != nullptr) && (featureset->isSet())){
|
||||
toJsonValue(QString("featureset"), featureset, obj, QString("SWGFeatureSet"));
|
||||
}
|
||||
|
||||
return obj;
|
||||
@ -299,14 +299,14 @@ SWGInstanceSummaryResponse::setDevicesetlist(SWGDeviceSetList* devicesetlist) {
|
||||
this->m_devicesetlist_isSet = true;
|
||||
}
|
||||
|
||||
SWGFeatureSetList*
|
||||
SWGInstanceSummaryResponse::getFeaturesetlist() {
|
||||
return featuresetlist;
|
||||
SWGFeatureSet*
|
||||
SWGInstanceSummaryResponse::getFeatureset() {
|
||||
return featureset;
|
||||
}
|
||||
void
|
||||
SWGInstanceSummaryResponse::setFeaturesetlist(SWGFeatureSetList* featuresetlist) {
|
||||
this->featuresetlist = featuresetlist;
|
||||
this->m_featuresetlist_isSet = true;
|
||||
SWGInstanceSummaryResponse::setFeatureset(SWGFeatureSet* featureset) {
|
||||
this->featureset = featureset;
|
||||
this->m_featureset_isSet = true;
|
||||
}
|
||||
|
||||
|
||||
@ -344,7 +344,7 @@ SWGInstanceSummaryResponse::isSet(){
|
||||
if(devicesetlist && devicesetlist->isSet()){
|
||||
isObjectUpdated = true; break;
|
||||
}
|
||||
if(featuresetlist && featuresetlist->isSet()){
|
||||
if(featureset && featureset->isSet()){
|
||||
isObjectUpdated = true; break;
|
||||
}
|
||||
}while(false);
|
||||
|
@ -23,7 +23,7 @@
|
||||
|
||||
|
||||
#include "SWGDeviceSetList.h"
|
||||
#include "SWGFeatureSetList.h"
|
||||
#include "SWGFeatureSet.h"
|
||||
#include "SWGLoggingInfo.h"
|
||||
#include <QString>
|
||||
|
||||
@ -75,8 +75,8 @@ public:
|
||||
SWGDeviceSetList* getDevicesetlist();
|
||||
void setDevicesetlist(SWGDeviceSetList* devicesetlist);
|
||||
|
||||
SWGFeatureSetList* getFeaturesetlist();
|
||||
void setFeaturesetlist(SWGFeatureSetList* featuresetlist);
|
||||
SWGFeatureSet* getFeatureset();
|
||||
void setFeatureset(SWGFeatureSet* featureset);
|
||||
|
||||
|
||||
virtual bool isSet() override;
|
||||
@ -112,8 +112,8 @@ private:
|
||||
SWGDeviceSetList* devicesetlist;
|
||||
bool m_devicesetlist_isSet;
|
||||
|
||||
SWGFeatureSetList* featuresetlist;
|
||||
bool m_featuresetlist_isSet;
|
||||
SWGFeatureSet* featureset;
|
||||
bool m_featureset_isSet;
|
||||
|
||||
};
|
||||
|
||||
|
@ -1,597 +0,0 @@
|
||||
/**
|
||||
* SDRangel
|
||||
* This is the web REST/JSON API of SDRangel SDR software. SDRangel is an Open Source Qt5/OpenGL 3.0+ (4.3+ in Windows) GUI and server Software Defined Radio and signal analyzer in software. It supports Airspy, BladeRF, HackRF, LimeSDR, PlutoSDR, RTL-SDR, SDRplay RSP1 and FunCube --- Limitations and specifcities: * In SDRangel GUI the first Rx device set cannot be deleted. Conversely the server starts with no device sets and its number of device sets can be reduced to zero by as many calls as necessary to /sdrangel/deviceset with DELETE method. * Preset import and export from/to file is a server only feature. * Device set focus is a GUI only feature. * The following channels are not implemented (status 501 is returned): ATV and DATV demodulators, Channel Analyzer NG, LoRa demodulator * The device settings and report structures contains only the sub-structure corresponding to the device type. The DeviceSettings and DeviceReport structures documented here shows all of them but only one will be or should be present at a time * The channel settings and report structures contains only the sub-structure corresponding to the channel type. The ChannelSettings and ChannelReport structures documented here shows all of them but only one will be or should be present at a time ---
|
||||
*
|
||||
* OpenAPI spec version: 6.0.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 "SWGLRPTDemodSettings.h"
|
||||
|
||||
#include "SWGHelpers.h"
|
||||
|
||||
#include <QJsonDocument>
|
||||
#include <QJsonArray>
|
||||
#include <QObject>
|
||||
#include <QDebug>
|
||||
|
||||
namespace SWGSDRangel {
|
||||
|
||||
SWGLRPTDemodSettings::SWGLRPTDemodSettings(QString* json) {
|
||||
init();
|
||||
this->fromJson(*json);
|
||||
}
|
||||
|
||||
SWGLRPTDemodSettings::SWGLRPTDemodSettings() {
|
||||
input_frequency_offset = 0L;
|
||||
m_input_frequency_offset_isSet = false;
|
||||
rf_bandwidth = 0.0f;
|
||||
m_rf_bandwidth_isSet = false;
|
||||
fm_deviation = 0;
|
||||
m_fm_deviation_isSet = false;
|
||||
crop_noise = 0;
|
||||
m_crop_noise_isSet = false;
|
||||
denoise = 0;
|
||||
m_denoise_isSet = false;
|
||||
linear_equalise = 0;
|
||||
m_linear_equalise_isSet = false;
|
||||
histogram_equalise = 0;
|
||||
m_histogram_equalise_isSet = false;
|
||||
precipitation_overlay = 0;
|
||||
m_precipitation_overlay_isSet = false;
|
||||
flip = 0;
|
||||
m_flip_isSet = false;
|
||||
channels = 0;
|
||||
m_channels_isSet = false;
|
||||
decode_enabled = 0;
|
||||
m_decode_enabled_isSet = false;
|
||||
auto_save = 0;
|
||||
m_auto_save_isSet = false;
|
||||
auto_save_path = nullptr;
|
||||
m_auto_save_path_isSet = false;
|
||||
auto_save_min_scan_lines = 0;
|
||||
m_auto_save_min_scan_lines_isSet = false;
|
||||
rgb_color = 0;
|
||||
m_rgb_color_isSet = false;
|
||||
title = nullptr;
|
||||
m_title_isSet = false;
|
||||
stream_index = 0;
|
||||
m_stream_index_isSet = false;
|
||||
use_reverse_api = 0;
|
||||
m_use_reverse_api_isSet = false;
|
||||
reverse_api_address = nullptr;
|
||||
m_reverse_api_address_isSet = false;
|
||||
reverse_api_port = 0;
|
||||
m_reverse_api_port_isSet = false;
|
||||
reverse_api_device_index = 0;
|
||||
m_reverse_api_device_index_isSet = false;
|
||||
reverse_api_channel_index = 0;
|
||||
m_reverse_api_channel_index_isSet = false;
|
||||
}
|
||||
|
||||
SWGLRPTDemodSettings::~SWGLRPTDemodSettings() {
|
||||
this->cleanup();
|
||||
}
|
||||
|
||||
void
|
||||
SWGLRPTDemodSettings::init() {
|
||||
input_frequency_offset = 0L;
|
||||
m_input_frequency_offset_isSet = false;
|
||||
rf_bandwidth = 0.0f;
|
||||
m_rf_bandwidth_isSet = false;
|
||||
fm_deviation = 0;
|
||||
m_fm_deviation_isSet = false;
|
||||
crop_noise = 0;
|
||||
m_crop_noise_isSet = false;
|
||||
denoise = 0;
|
||||
m_denoise_isSet = false;
|
||||
linear_equalise = 0;
|
||||
m_linear_equalise_isSet = false;
|
||||
histogram_equalise = 0;
|
||||
m_histogram_equalise_isSet = false;
|
||||
precipitation_overlay = 0;
|
||||
m_precipitation_overlay_isSet = false;
|
||||
flip = 0;
|
||||
m_flip_isSet = false;
|
||||
channels = 0;
|
||||
m_channels_isSet = false;
|
||||
decode_enabled = 0;
|
||||
m_decode_enabled_isSet = false;
|
||||
auto_save = 0;
|
||||
m_auto_save_isSet = false;
|
||||
auto_save_path = new QString("");
|
||||
m_auto_save_path_isSet = false;
|
||||
auto_save_min_scan_lines = 0;
|
||||
m_auto_save_min_scan_lines_isSet = false;
|
||||
rgb_color = 0;
|
||||
m_rgb_color_isSet = false;
|
||||
title = new QString("");
|
||||
m_title_isSet = false;
|
||||
stream_index = 0;
|
||||
m_stream_index_isSet = false;
|
||||
use_reverse_api = 0;
|
||||
m_use_reverse_api_isSet = false;
|
||||
reverse_api_address = new QString("");
|
||||
m_reverse_api_address_isSet = false;
|
||||
reverse_api_port = 0;
|
||||
m_reverse_api_port_isSet = false;
|
||||
reverse_api_device_index = 0;
|
||||
m_reverse_api_device_index_isSet = false;
|
||||
reverse_api_channel_index = 0;
|
||||
m_reverse_api_channel_index_isSet = false;
|
||||
}
|
||||
|
||||
void
|
||||
SWGLRPTDemodSettings::cleanup() {
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
if(auto_save_path != nullptr) {
|
||||
delete auto_save_path;
|
||||
}
|
||||
|
||||
|
||||
if(title != nullptr) {
|
||||
delete title;
|
||||
}
|
||||
|
||||
|
||||
if(reverse_api_address != nullptr) {
|
||||
delete reverse_api_address;
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
SWGLRPTDemodSettings*
|
||||
SWGLRPTDemodSettings::fromJson(QString &json) {
|
||||
QByteArray array (json.toStdString().c_str());
|
||||
QJsonDocument doc = QJsonDocument::fromJson(array);
|
||||
QJsonObject jsonObject = doc.object();
|
||||
this->fromJsonObject(jsonObject);
|
||||
return this;
|
||||
}
|
||||
|
||||
void
|
||||
SWGLRPTDemodSettings::fromJsonObject(QJsonObject &pJson) {
|
||||
::SWGSDRangel::setValue(&input_frequency_offset, pJson["inputFrequencyOffset"], "qint64", "");
|
||||
|
||||
::SWGSDRangel::setValue(&rf_bandwidth, pJson["rfBandwidth"], "float", "");
|
||||
|
||||
::SWGSDRangel::setValue(&fm_deviation, pJson["fmDeviation"], "qint32", "");
|
||||
|
||||
::SWGSDRangel::setValue(&crop_noise, pJson["cropNoise"], "qint32", "");
|
||||
|
||||
::SWGSDRangel::setValue(&denoise, pJson["denoise"], "qint32", "");
|
||||
|
||||
::SWGSDRangel::setValue(&linear_equalise, pJson["linearEqualise"], "qint32", "");
|
||||
|
||||
::SWGSDRangel::setValue(&histogram_equalise, pJson["histogramEqualise"], "qint32", "");
|
||||
|
||||
::SWGSDRangel::setValue(&precipitation_overlay, pJson["precipitationOverlay"], "qint32", "");
|
||||
|
||||
::SWGSDRangel::setValue(&flip, pJson["flip"], "qint32", "");
|
||||
|
||||
::SWGSDRangel::setValue(&channels, pJson["channels"], "qint32", "");
|
||||
|
||||
::SWGSDRangel::setValue(&decode_enabled, pJson["decodeEnabled"], "qint32", "");
|
||||
|
||||
::SWGSDRangel::setValue(&auto_save, pJson["autoSave"], "qint32", "");
|
||||
|
||||
::SWGSDRangel::setValue(&auto_save_path, pJson["autoSavePath"], "QString", "QString");
|
||||
|
||||
::SWGSDRangel::setValue(&auto_save_min_scan_lines, pJson["autoSaveMinScanLines"], "qint32", "");
|
||||
|
||||
::SWGSDRangel::setValue(&rgb_color, pJson["rgbColor"], "qint32", "");
|
||||
|
||||
::SWGSDRangel::setValue(&title, pJson["title"], "QString", "QString");
|
||||
|
||||
::SWGSDRangel::setValue(&stream_index, pJson["streamIndex"], "qint32", "");
|
||||
|
||||
::SWGSDRangel::setValue(&use_reverse_api, pJson["useReverseAPI"], "qint32", "");
|
||||
|
||||
::SWGSDRangel::setValue(&reverse_api_address, pJson["reverseAPIAddress"], "QString", "QString");
|
||||
|
||||
::SWGSDRangel::setValue(&reverse_api_port, pJson["reverseAPIPort"], "qint32", "");
|
||||
|
||||
::SWGSDRangel::setValue(&reverse_api_device_index, pJson["reverseAPIDeviceIndex"], "qint32", "");
|
||||
|
||||
::SWGSDRangel::setValue(&reverse_api_channel_index, pJson["reverseAPIChannelIndex"], "qint32", "");
|
||||
|
||||
}
|
||||
|
||||
QString
|
||||
SWGLRPTDemodSettings::asJson ()
|
||||
{
|
||||
QJsonObject* obj = this->asJsonObject();
|
||||
|
||||
QJsonDocument doc(*obj);
|
||||
QByteArray bytes = doc.toJson();
|
||||
delete obj;
|
||||
return QString(bytes);
|
||||
}
|
||||
|
||||
QJsonObject*
|
||||
SWGLRPTDemodSettings::asJsonObject() {
|
||||
QJsonObject* obj = new QJsonObject();
|
||||
if(m_input_frequency_offset_isSet){
|
||||
obj->insert("inputFrequencyOffset", QJsonValue(input_frequency_offset));
|
||||
}
|
||||
if(m_rf_bandwidth_isSet){
|
||||
obj->insert("rfBandwidth", QJsonValue(rf_bandwidth));
|
||||
}
|
||||
if(m_fm_deviation_isSet){
|
||||
obj->insert("fmDeviation", QJsonValue(fm_deviation));
|
||||
}
|
||||
if(m_crop_noise_isSet){
|
||||
obj->insert("cropNoise", QJsonValue(crop_noise));
|
||||
}
|
||||
if(m_denoise_isSet){
|
||||
obj->insert("denoise", QJsonValue(denoise));
|
||||
}
|
||||
if(m_linear_equalise_isSet){
|
||||
obj->insert("linearEqualise", QJsonValue(linear_equalise));
|
||||
}
|
||||
if(m_histogram_equalise_isSet){
|
||||
obj->insert("histogramEqualise", QJsonValue(histogram_equalise));
|
||||
}
|
||||
if(m_precipitation_overlay_isSet){
|
||||
obj->insert("precipitationOverlay", QJsonValue(precipitation_overlay));
|
||||
}
|
||||
if(m_flip_isSet){
|
||||
obj->insert("flip", QJsonValue(flip));
|
||||
}
|
||||
if(m_channels_isSet){
|
||||
obj->insert("channels", QJsonValue(channels));
|
||||
}
|
||||
if(m_decode_enabled_isSet){
|
||||
obj->insert("decodeEnabled", QJsonValue(decode_enabled));
|
||||
}
|
||||
if(m_auto_save_isSet){
|
||||
obj->insert("autoSave", QJsonValue(auto_save));
|
||||
}
|
||||
if(auto_save_path != nullptr && *auto_save_path != QString("")){
|
||||
toJsonValue(QString("autoSavePath"), auto_save_path, obj, QString("QString"));
|
||||
}
|
||||
if(m_auto_save_min_scan_lines_isSet){
|
||||
obj->insert("autoSaveMinScanLines", QJsonValue(auto_save_min_scan_lines));
|
||||
}
|
||||
if(m_rgb_color_isSet){
|
||||
obj->insert("rgbColor", QJsonValue(rgb_color));
|
||||
}
|
||||
if(title != nullptr && *title != QString("")){
|
||||
toJsonValue(QString("title"), title, obj, QString("QString"));
|
||||
}
|
||||
if(m_stream_index_isSet){
|
||||
obj->insert("streamIndex", QJsonValue(stream_index));
|
||||
}
|
||||
if(m_use_reverse_api_isSet){
|
||||
obj->insert("useReverseAPI", QJsonValue(use_reverse_api));
|
||||
}
|
||||
if(reverse_api_address != nullptr && *reverse_api_address != QString("")){
|
||||
toJsonValue(QString("reverseAPIAddress"), reverse_api_address, obj, QString("QString"));
|
||||
}
|
||||
if(m_reverse_api_port_isSet){
|
||||
obj->insert("reverseAPIPort", QJsonValue(reverse_api_port));
|
||||
}
|
||||
if(m_reverse_api_device_index_isSet){
|
||||
obj->insert("reverseAPIDeviceIndex", QJsonValue(reverse_api_device_index));
|
||||
}
|
||||
if(m_reverse_api_channel_index_isSet){
|
||||
obj->insert("reverseAPIChannelIndex", QJsonValue(reverse_api_channel_index));
|
||||
}
|
||||
|
||||
return obj;
|
||||
}
|
||||
|
||||
qint64
|
||||
SWGLRPTDemodSettings::getInputFrequencyOffset() {
|
||||
return input_frequency_offset;
|
||||
}
|
||||
void
|
||||
SWGLRPTDemodSettings::setInputFrequencyOffset(qint64 input_frequency_offset) {
|
||||
this->input_frequency_offset = input_frequency_offset;
|
||||
this->m_input_frequency_offset_isSet = true;
|
||||
}
|
||||
|
||||
float
|
||||
SWGLRPTDemodSettings::getRfBandwidth() {
|
||||
return rf_bandwidth;
|
||||
}
|
||||
void
|
||||
SWGLRPTDemodSettings::setRfBandwidth(float rf_bandwidth) {
|
||||
this->rf_bandwidth = rf_bandwidth;
|
||||
this->m_rf_bandwidth_isSet = true;
|
||||
}
|
||||
|
||||
qint32
|
||||
SWGLRPTDemodSettings::getFmDeviation() {
|
||||
return fm_deviation;
|
||||
}
|
||||
void
|
||||
SWGLRPTDemodSettings::setFmDeviation(qint32 fm_deviation) {
|
||||
this->fm_deviation = fm_deviation;
|
||||
this->m_fm_deviation_isSet = true;
|
||||
}
|
||||
|
||||
qint32
|
||||
SWGLRPTDemodSettings::getCropNoise() {
|
||||
return crop_noise;
|
||||
}
|
||||
void
|
||||
SWGLRPTDemodSettings::setCropNoise(qint32 crop_noise) {
|
||||
this->crop_noise = crop_noise;
|
||||
this->m_crop_noise_isSet = true;
|
||||
}
|
||||
|
||||
qint32
|
||||
SWGLRPTDemodSettings::getDenoise() {
|
||||
return denoise;
|
||||
}
|
||||
void
|
||||
SWGLRPTDemodSettings::setDenoise(qint32 denoise) {
|
||||
this->denoise = denoise;
|
||||
this->m_denoise_isSet = true;
|
||||
}
|
||||
|
||||
qint32
|
||||
SWGLRPTDemodSettings::getLinearEqualise() {
|
||||
return linear_equalise;
|
||||
}
|
||||
void
|
||||
SWGLRPTDemodSettings::setLinearEqualise(qint32 linear_equalise) {
|
||||
this->linear_equalise = linear_equalise;
|
||||
this->m_linear_equalise_isSet = true;
|
||||
}
|
||||
|
||||
qint32
|
||||
SWGLRPTDemodSettings::getHistogramEqualise() {
|
||||
return histogram_equalise;
|
||||
}
|
||||
void
|
||||
SWGLRPTDemodSettings::setHistogramEqualise(qint32 histogram_equalise) {
|
||||
this->histogram_equalise = histogram_equalise;
|
||||
this->m_histogram_equalise_isSet = true;
|
||||
}
|
||||
|
||||
qint32
|
||||
SWGLRPTDemodSettings::getPrecipitationOverlay() {
|
||||
return precipitation_overlay;
|
||||
}
|
||||
void
|
||||
SWGLRPTDemodSettings::setPrecipitationOverlay(qint32 precipitation_overlay) {
|
||||
this->precipitation_overlay = precipitation_overlay;
|
||||
this->m_precipitation_overlay_isSet = true;
|
||||
}
|
||||
|
||||
qint32
|
||||
SWGLRPTDemodSettings::getFlip() {
|
||||
return flip;
|
||||
}
|
||||
void
|
||||
SWGLRPTDemodSettings::setFlip(qint32 flip) {
|
||||
this->flip = flip;
|
||||
this->m_flip_isSet = true;
|
||||
}
|
||||
|
||||
qint32
|
||||
SWGLRPTDemodSettings::getChannels() {
|
||||
return channels;
|
||||
}
|
||||
void
|
||||
SWGLRPTDemodSettings::setChannels(qint32 channels) {
|
||||
this->channels = channels;
|
||||
this->m_channels_isSet = true;
|
||||
}
|
||||
|
||||
qint32
|
||||
SWGLRPTDemodSettings::getDecodeEnabled() {
|
||||
return decode_enabled;
|
||||
}
|
||||
void
|
||||
SWGLRPTDemodSettings::setDecodeEnabled(qint32 decode_enabled) {
|
||||
this->decode_enabled = decode_enabled;
|
||||
this->m_decode_enabled_isSet = true;
|
||||
}
|
||||
|
||||
qint32
|
||||
SWGLRPTDemodSettings::getAutoSave() {
|
||||
return auto_save;
|
||||
}
|
||||
void
|
||||
SWGLRPTDemodSettings::setAutoSave(qint32 auto_save) {
|
||||
this->auto_save = auto_save;
|
||||
this->m_auto_save_isSet = true;
|
||||
}
|
||||
|
||||
QString*
|
||||
SWGLRPTDemodSettings::getAutoSavePath() {
|
||||
return auto_save_path;
|
||||
}
|
||||
void
|
||||
SWGLRPTDemodSettings::setAutoSavePath(QString* auto_save_path) {
|
||||
this->auto_save_path = auto_save_path;
|
||||
this->m_auto_save_path_isSet = true;
|
||||
}
|
||||
|
||||
qint32
|
||||
SWGLRPTDemodSettings::getAutoSaveMinScanLines() {
|
||||
return auto_save_min_scan_lines;
|
||||
}
|
||||
void
|
||||
SWGLRPTDemodSettings::setAutoSaveMinScanLines(qint32 auto_save_min_scan_lines) {
|
||||
this->auto_save_min_scan_lines = auto_save_min_scan_lines;
|
||||
this->m_auto_save_min_scan_lines_isSet = true;
|
||||
}
|
||||
|
||||
qint32
|
||||
SWGLRPTDemodSettings::getRgbColor() {
|
||||
return rgb_color;
|
||||
}
|
||||
void
|
||||
SWGLRPTDemodSettings::setRgbColor(qint32 rgb_color) {
|
||||
this->rgb_color = rgb_color;
|
||||
this->m_rgb_color_isSet = true;
|
||||
}
|
||||
|
||||
QString*
|
||||
SWGLRPTDemodSettings::getTitle() {
|
||||
return title;
|
||||
}
|
||||
void
|
||||
SWGLRPTDemodSettings::setTitle(QString* title) {
|
||||
this->title = title;
|
||||
this->m_title_isSet = true;
|
||||
}
|
||||
|
||||
qint32
|
||||
SWGLRPTDemodSettings::getStreamIndex() {
|
||||
return stream_index;
|
||||
}
|
||||
void
|
||||
SWGLRPTDemodSettings::setStreamIndex(qint32 stream_index) {
|
||||
this->stream_index = stream_index;
|
||||
this->m_stream_index_isSet = true;
|
||||
}
|
||||
|
||||
qint32
|
||||
SWGLRPTDemodSettings::getUseReverseApi() {
|
||||
return use_reverse_api;
|
||||
}
|
||||
void
|
||||
SWGLRPTDemodSettings::setUseReverseApi(qint32 use_reverse_api) {
|
||||
this->use_reverse_api = use_reverse_api;
|
||||
this->m_use_reverse_api_isSet = true;
|
||||
}
|
||||
|
||||
QString*
|
||||
SWGLRPTDemodSettings::getReverseApiAddress() {
|
||||
return reverse_api_address;
|
||||
}
|
||||
void
|
||||
SWGLRPTDemodSettings::setReverseApiAddress(QString* reverse_api_address) {
|
||||
this->reverse_api_address = reverse_api_address;
|
||||
this->m_reverse_api_address_isSet = true;
|
||||
}
|
||||
|
||||
qint32
|
||||
SWGLRPTDemodSettings::getReverseApiPort() {
|
||||
return reverse_api_port;
|
||||
}
|
||||
void
|
||||
SWGLRPTDemodSettings::setReverseApiPort(qint32 reverse_api_port) {
|
||||
this->reverse_api_port = reverse_api_port;
|
||||
this->m_reverse_api_port_isSet = true;
|
||||
}
|
||||
|
||||
qint32
|
||||
SWGLRPTDemodSettings::getReverseApiDeviceIndex() {
|
||||
return reverse_api_device_index;
|
||||
}
|
||||
void
|
||||
SWGLRPTDemodSettings::setReverseApiDeviceIndex(qint32 reverse_api_device_index) {
|
||||
this->reverse_api_device_index = reverse_api_device_index;
|
||||
this->m_reverse_api_device_index_isSet = true;
|
||||
}
|
||||
|
||||
qint32
|
||||
SWGLRPTDemodSettings::getReverseApiChannelIndex() {
|
||||
return reverse_api_channel_index;
|
||||
}
|
||||
void
|
||||
SWGLRPTDemodSettings::setReverseApiChannelIndex(qint32 reverse_api_channel_index) {
|
||||
this->reverse_api_channel_index = reverse_api_channel_index;
|
||||
this->m_reverse_api_channel_index_isSet = true;
|
||||
}
|
||||
|
||||
|
||||
bool
|
||||
SWGLRPTDemodSettings::isSet(){
|
||||
bool isObjectUpdated = false;
|
||||
do{
|
||||
if(m_input_frequency_offset_isSet){
|
||||
isObjectUpdated = true; break;
|
||||
}
|
||||
if(m_rf_bandwidth_isSet){
|
||||
isObjectUpdated = true; break;
|
||||
}
|
||||
if(m_fm_deviation_isSet){
|
||||
isObjectUpdated = true; break;
|
||||
}
|
||||
if(m_crop_noise_isSet){
|
||||
isObjectUpdated = true; break;
|
||||
}
|
||||
if(m_denoise_isSet){
|
||||
isObjectUpdated = true; break;
|
||||
}
|
||||
if(m_linear_equalise_isSet){
|
||||
isObjectUpdated = true; break;
|
||||
}
|
||||
if(m_histogram_equalise_isSet){
|
||||
isObjectUpdated = true; break;
|
||||
}
|
||||
if(m_precipitation_overlay_isSet){
|
||||
isObjectUpdated = true; break;
|
||||
}
|
||||
if(m_flip_isSet){
|
||||
isObjectUpdated = true; break;
|
||||
}
|
||||
if(m_channels_isSet){
|
||||
isObjectUpdated = true; break;
|
||||
}
|
||||
if(m_decode_enabled_isSet){
|
||||
isObjectUpdated = true; break;
|
||||
}
|
||||
if(m_auto_save_isSet){
|
||||
isObjectUpdated = true; break;
|
||||
}
|
||||
if(auto_save_path && *auto_save_path != QString("")){
|
||||
isObjectUpdated = true; break;
|
||||
}
|
||||
if(m_auto_save_min_scan_lines_isSet){
|
||||
isObjectUpdated = true; break;
|
||||
}
|
||||
if(m_rgb_color_isSet){
|
||||
isObjectUpdated = true; break;
|
||||
}
|
||||
if(title && *title != QString("")){
|
||||
isObjectUpdated = true; break;
|
||||
}
|
||||
if(m_stream_index_isSet){
|
||||
isObjectUpdated = true; break;
|
||||
}
|
||||
if(m_use_reverse_api_isSet){
|
||||
isObjectUpdated = true; break;
|
||||
}
|
||||
if(reverse_api_address && *reverse_api_address != QString("")){
|
||||
isObjectUpdated = true; break;
|
||||
}
|
||||
if(m_reverse_api_port_isSet){
|
||||
isObjectUpdated = true; break;
|
||||
}
|
||||
if(m_reverse_api_device_index_isSet){
|
||||
isObjectUpdated = true; break;
|
||||
}
|
||||
if(m_reverse_api_channel_index_isSet){
|
||||
isObjectUpdated = true; break;
|
||||
}
|
||||
}while(false);
|
||||
return isObjectUpdated;
|
||||
}
|
||||
}
|
||||
|
@ -1,185 +0,0 @@
|
||||
/**
|
||||
* SDRangel
|
||||
* This is the web REST/JSON API of SDRangel SDR software. SDRangel is an Open Source Qt5/OpenGL 3.0+ (4.3+ in Windows) GUI and server Software Defined Radio and signal analyzer in software. It supports Airspy, BladeRF, HackRF, LimeSDR, PlutoSDR, RTL-SDR, SDRplay RSP1 and FunCube --- Limitations and specifcities: * In SDRangel GUI the first Rx device set cannot be deleted. Conversely the server starts with no device sets and its number of device sets can be reduced to zero by as many calls as necessary to /sdrangel/deviceset with DELETE method. * Preset import and export from/to file is a server only feature. * Device set focus is a GUI only feature. * The following channels are not implemented (status 501 is returned): ATV and DATV demodulators, Channel Analyzer NG, LoRa demodulator * The device settings and report structures contains only the sub-structure corresponding to the device type. The DeviceSettings and DeviceReport structures documented here shows all of them but only one will be or should be present at a time * The channel settings and report structures contains only the sub-structure corresponding to the channel type. The ChannelSettings and ChannelReport structures documented here shows all of them but only one will be or should be present at a time ---
|
||||
*
|
||||
* OpenAPI spec version: 6.0.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.
|
||||
*/
|
||||
|
||||
/*
|
||||
* SWGLRPTDemodSettings.h
|
||||
*
|
||||
* LRPTDemod
|
||||
*/
|
||||
|
||||
#ifndef SWGLRPTDemodSettings_H_
|
||||
#define SWGLRPTDemodSettings_H_
|
||||
|
||||
#include <QJsonObject>
|
||||
|
||||
|
||||
#include <QString>
|
||||
|
||||
#include "SWGObject.h"
|
||||
#include "export.h"
|
||||
|
||||
namespace SWGSDRangel {
|
||||
|
||||
class SWG_API SWGLRPTDemodSettings: public SWGObject {
|
||||
public:
|
||||
SWGLRPTDemodSettings();
|
||||
SWGLRPTDemodSettings(QString* json);
|
||||
virtual ~SWGLRPTDemodSettings();
|
||||
void init();
|
||||
void cleanup();
|
||||
|
||||
virtual QString asJson () override;
|
||||
virtual QJsonObject* asJsonObject() override;
|
||||
virtual void fromJsonObject(QJsonObject &json) override;
|
||||
virtual SWGLRPTDemodSettings* fromJson(QString &jsonString) override;
|
||||
|
||||
qint64 getInputFrequencyOffset();
|
||||
void setInputFrequencyOffset(qint64 input_frequency_offset);
|
||||
|
||||
float getRfBandwidth();
|
||||
void setRfBandwidth(float rf_bandwidth);
|
||||
|
||||
qint32 getFmDeviation();
|
||||
void setFmDeviation(qint32 fm_deviation);
|
||||
|
||||
qint32 getCropNoise();
|
||||
void setCropNoise(qint32 crop_noise);
|
||||
|
||||
qint32 getDenoise();
|
||||
void setDenoise(qint32 denoise);
|
||||
|
||||
qint32 getLinearEqualise();
|
||||
void setLinearEqualise(qint32 linear_equalise);
|
||||
|
||||
qint32 getHistogramEqualise();
|
||||
void setHistogramEqualise(qint32 histogram_equalise);
|
||||
|
||||
qint32 getPrecipitationOverlay();
|
||||
void setPrecipitationOverlay(qint32 precipitation_overlay);
|
||||
|
||||
qint32 getFlip();
|
||||
void setFlip(qint32 flip);
|
||||
|
||||
qint32 getChannels();
|
||||
void setChannels(qint32 channels);
|
||||
|
||||
qint32 getDecodeEnabled();
|
||||
void setDecodeEnabled(qint32 decode_enabled);
|
||||
|
||||
qint32 getAutoSave();
|
||||
void setAutoSave(qint32 auto_save);
|
||||
|
||||
QString* getAutoSavePath();
|
||||
void setAutoSavePath(QString* auto_save_path);
|
||||
|
||||
qint32 getAutoSaveMinScanLines();
|
||||
void setAutoSaveMinScanLines(qint32 auto_save_min_scan_lines);
|
||||
|
||||
qint32 getRgbColor();
|
||||
void setRgbColor(qint32 rgb_color);
|
||||
|
||||
QString* getTitle();
|
||||
void setTitle(QString* title);
|
||||
|
||||
qint32 getStreamIndex();
|
||||
void setStreamIndex(qint32 stream_index);
|
||||
|
||||
qint32 getUseReverseApi();
|
||||
void setUseReverseApi(qint32 use_reverse_api);
|
||||
|
||||
QString* getReverseApiAddress();
|
||||
void setReverseApiAddress(QString* reverse_api_address);
|
||||
|
||||
qint32 getReverseApiPort();
|
||||
void setReverseApiPort(qint32 reverse_api_port);
|
||||
|
||||
qint32 getReverseApiDeviceIndex();
|
||||
void setReverseApiDeviceIndex(qint32 reverse_api_device_index);
|
||||
|
||||
qint32 getReverseApiChannelIndex();
|
||||
void setReverseApiChannelIndex(qint32 reverse_api_channel_index);
|
||||
|
||||
|
||||
virtual bool isSet() override;
|
||||
|
||||
private:
|
||||
qint64 input_frequency_offset;
|
||||
bool m_input_frequency_offset_isSet;
|
||||
|
||||
float rf_bandwidth;
|
||||
bool m_rf_bandwidth_isSet;
|
||||
|
||||
qint32 fm_deviation;
|
||||
bool m_fm_deviation_isSet;
|
||||
|
||||
qint32 crop_noise;
|
||||
bool m_crop_noise_isSet;
|
||||
|
||||
qint32 denoise;
|
||||
bool m_denoise_isSet;
|
||||
|
||||
qint32 linear_equalise;
|
||||
bool m_linear_equalise_isSet;
|
||||
|
||||
qint32 histogram_equalise;
|
||||
bool m_histogram_equalise_isSet;
|
||||
|
||||
qint32 precipitation_overlay;
|
||||
bool m_precipitation_overlay_isSet;
|
||||
|
||||
qint32 flip;
|
||||
bool m_flip_isSet;
|
||||
|
||||
qint32 channels;
|
||||
bool m_channels_isSet;
|
||||
|
||||
qint32 decode_enabled;
|
||||
bool m_decode_enabled_isSet;
|
||||
|
||||
qint32 auto_save;
|
||||
bool m_auto_save_isSet;
|
||||
|
||||
QString* auto_save_path;
|
||||
bool m_auto_save_path_isSet;
|
||||
|
||||
qint32 auto_save_min_scan_lines;
|
||||
bool m_auto_save_min_scan_lines_isSet;
|
||||
|
||||
qint32 rgb_color;
|
||||
bool m_rgb_color_isSet;
|
||||
|
||||
QString* title;
|
||||
bool m_title_isSet;
|
||||
|
||||
qint32 stream_index;
|
||||
bool m_stream_index_isSet;
|
||||
|
||||
qint32 use_reverse_api;
|
||||
bool m_use_reverse_api_isSet;
|
||||
|
||||
QString* reverse_api_address;
|
||||
bool m_reverse_api_address_isSet;
|
||||
|
||||
qint32 reverse_api_port;
|
||||
bool m_reverse_api_port_isSet;
|
||||
|
||||
qint32 reverse_api_device_index;
|
||||
bool m_reverse_api_device_index_isSet;
|
||||
|
||||
qint32 reverse_api_channel_index;
|
||||
bool m_reverse_api_channel_index_isSet;
|
||||
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
#endif /* SWGLRPTDemodSettings_H_ */
|
@ -1,110 +0,0 @@
|
||||
/**
|
||||
* SDRangel
|
||||
* This is the web REST/JSON API of SDRangel SDR software. SDRangel is an Open Source Qt5/OpenGL 3.0+ (4.3+ in Windows) GUI and server Software Defined Radio and signal analyzer in software. It supports Airspy, BladeRF, HackRF, LimeSDR, PlutoSDR, RTL-SDR, SDRplay RSP1 and FunCube --- Limitations and specifcities: * In SDRangel GUI the first Rx device set cannot be deleted. Conversely the server starts with no device sets and its number of device sets can be reduced to zero by as many calls as necessary to /sdrangel/deviceset with DELETE method. * Preset import and export from/to file is a server only feature. * Device set focus is a GUI only feature. * The following channels are not implemented (status 501 is returned): ATV and DATV demodulators, Channel Analyzer NG, LoRa demodulator * The device settings and report structures contains only the sub-structure corresponding to the device type. The DeviceSettings and DeviceReport structures documented here shows all of them but only one will be or should be present at a time * The channel settings and report structures contains only the sub-structure corresponding to the channel type. The ChannelSettings and ChannelReport structures documented here shows all of them but only one will be or should be present at a time ---
|
||||
*
|
||||
* OpenAPI spec version: 6.0.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 "SWGMapActions_find.h"
|
||||
|
||||
#include "SWGHelpers.h"
|
||||
|
||||
#include <QJsonDocument>
|
||||
#include <QJsonArray>
|
||||
#include <QObject>
|
||||
#include <QDebug>
|
||||
|
||||
namespace SWGSDRangel {
|
||||
|
||||
SWGMapActions_find::SWGMapActions_find(QString* json) {
|
||||
init();
|
||||
this->fromJson(*json);
|
||||
}
|
||||
|
||||
SWGMapActions_find::SWGMapActions_find() {
|
||||
id = nullptr;
|
||||
m_id_isSet = false;
|
||||
}
|
||||
|
||||
SWGMapActions_find::~SWGMapActions_find() {
|
||||
this->cleanup();
|
||||
}
|
||||
|
||||
void
|
||||
SWGMapActions_find::init() {
|
||||
id = new QString("");
|
||||
m_id_isSet = false;
|
||||
}
|
||||
|
||||
void
|
||||
SWGMapActions_find::cleanup() {
|
||||
if(id != nullptr) {
|
||||
delete id;
|
||||
}
|
||||
}
|
||||
|
||||
SWGMapActions_find*
|
||||
SWGMapActions_find::fromJson(QString &json) {
|
||||
QByteArray array (json.toStdString().c_str());
|
||||
QJsonDocument doc = QJsonDocument::fromJson(array);
|
||||
QJsonObject jsonObject = doc.object();
|
||||
this->fromJsonObject(jsonObject);
|
||||
return this;
|
||||
}
|
||||
|
||||
void
|
||||
SWGMapActions_find::fromJsonObject(QJsonObject &pJson) {
|
||||
::SWGSDRangel::setValue(&id, pJson["id"], "QString", "QString");
|
||||
|
||||
}
|
||||
|
||||
QString
|
||||
SWGMapActions_find::asJson ()
|
||||
{
|
||||
QJsonObject* obj = this->asJsonObject();
|
||||
|
||||
QJsonDocument doc(*obj);
|
||||
QByteArray bytes = doc.toJson();
|
||||
delete obj;
|
||||
return QString(bytes);
|
||||
}
|
||||
|
||||
QJsonObject*
|
||||
SWGMapActions_find::asJsonObject() {
|
||||
QJsonObject* obj = new QJsonObject();
|
||||
if(id != nullptr && *id != QString("")){
|
||||
toJsonValue(QString("id"), id, obj, QString("QString"));
|
||||
}
|
||||
|
||||
return obj;
|
||||
}
|
||||
|
||||
QString*
|
||||
SWGMapActions_find::getId() {
|
||||
return id;
|
||||
}
|
||||
void
|
||||
SWGMapActions_find::setId(QString* id) {
|
||||
this->id = id;
|
||||
this->m_id_isSet = true;
|
||||
}
|
||||
|
||||
|
||||
bool
|
||||
SWGMapActions_find::isSet(){
|
||||
bool isObjectUpdated = false;
|
||||
do{
|
||||
if(id && *id != QString("")){
|
||||
isObjectUpdated = true; break;
|
||||
}
|
||||
}while(false);
|
||||
return isObjectUpdated;
|
||||
}
|
||||
}
|
||||
|
@ -1,59 +0,0 @@
|
||||
/**
|
||||
* SDRangel
|
||||
* This is the web REST/JSON API of SDRangel SDR software. SDRangel is an Open Source Qt5/OpenGL 3.0+ (4.3+ in Windows) GUI and server Software Defined Radio and signal analyzer in software. It supports Airspy, BladeRF, HackRF, LimeSDR, PlutoSDR, RTL-SDR, SDRplay RSP1 and FunCube --- Limitations and specifcities: * In SDRangel GUI the first Rx device set cannot be deleted. Conversely the server starts with no device sets and its number of device sets can be reduced to zero by as many calls as necessary to /sdrangel/deviceset with DELETE method. * Preset import and export from/to file is a server only feature. * Device set focus is a GUI only feature. * The following channels are not implemented (status 501 is returned): ATV and DATV demodulators, Channel Analyzer NG, LoRa demodulator * The device settings and report structures contains only the sub-structure corresponding to the device type. The DeviceSettings and DeviceReport structures documented here shows all of them but only one will be or should be present at a time * The channel settings and report structures contains only the sub-structure corresponding to the channel type. The ChannelSettings and ChannelReport structures documented here shows all of them but only one will be or should be present at a time ---
|
||||
*
|
||||
* OpenAPI spec version: 6.0.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.
|
||||
*/
|
||||
|
||||
/*
|
||||
* SWGMapActions_find.h
|
||||
*
|
||||
* A request to centre the map on an item.
|
||||
*/
|
||||
|
||||
#ifndef SWGMapActions_find_H_
|
||||
#define SWGMapActions_find_H_
|
||||
|
||||
#include <QJsonObject>
|
||||
|
||||
|
||||
#include <QString>
|
||||
|
||||
#include "SWGObject.h"
|
||||
#include "export.h"
|
||||
|
||||
namespace SWGSDRangel {
|
||||
|
||||
class SWG_API SWGMapActions_find: public SWGObject {
|
||||
public:
|
||||
SWGMapActions_find();
|
||||
SWGMapActions_find(QString* json);
|
||||
virtual ~SWGMapActions_find();
|
||||
void init();
|
||||
void cleanup();
|
||||
|
||||
virtual QString asJson () override;
|
||||
virtual QJsonObject* asJsonObject() override;
|
||||
virtual void fromJsonObject(QJsonObject &json) override;
|
||||
virtual SWGMapActions_find* fromJson(QString &jsonString) override;
|
||||
|
||||
QString* getId();
|
||||
void setId(QString* id);
|
||||
|
||||
|
||||
virtual bool isSet() override;
|
||||
|
||||
private:
|
||||
QString* id;
|
||||
bool m_id_isSet;
|
||||
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
#endif /* SWGMapActions_find_H_ */
|
@ -1,154 +0,0 @@
|
||||
/**
|
||||
* SDRangel
|
||||
* This is the web REST/JSON API of SDRangel SDR software. SDRangel is an Open Source Qt5/OpenGL 3.0+ (4.3+ in Windows) GUI and server Software Defined Radio and signal analyzer in software. It supports Airspy, BladeRF, HackRF, LimeSDR, PlutoSDR, RTL-SDR, SDRplay RSP1 and FunCube --- Limitations and specifcities: * In SDRangel GUI the first Rx device set cannot be deleted. Conversely the server starts with no device sets and its number of device sets can be reduced to zero by as many calls as necessary to /sdrangel/deviceset with DELETE method. * Preset import and export from/to file is a server only feature. * Device set focus is a GUI only feature. * The following channels are not implemented (status 501 is returned): ATV and DATV demodulators, Channel Analyzer NG, LoRa demodulator * The device settings and report structures contains only the sub-structure corresponding to the device type. The DeviceSettings and DeviceReport structures documented here shows all of them but only one will be or should be present at a time * The channel settings and report structures contains only the sub-structure corresponding to the channel type. The ChannelSettings and ChannelReport structures documented here shows all of them but only one will be or should be present at a time ---
|
||||
*
|
||||
* OpenAPI spec version: 6.0.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 "SWGMapItem_track.h"
|
||||
|
||||
#include "SWGHelpers.h"
|
||||
|
||||
#include <QJsonDocument>
|
||||
#include <QJsonArray>
|
||||
#include <QObject>
|
||||
#include <QDebug>
|
||||
|
||||
namespace SWGSDRangel {
|
||||
|
||||
SWGMapItem_track::SWGMapItem_track(QString* json) {
|
||||
init();
|
||||
this->fromJson(*json);
|
||||
}
|
||||
|
||||
SWGMapItem_track::SWGMapItem_track() {
|
||||
latitude = 0.0f;
|
||||
m_latitude_isSet = false;
|
||||
longitude = 0.0f;
|
||||
m_longitude_isSet = false;
|
||||
altitude = 0.0f;
|
||||
m_altitude_isSet = false;
|
||||
}
|
||||
|
||||
SWGMapItem_track::~SWGMapItem_track() {
|
||||
this->cleanup();
|
||||
}
|
||||
|
||||
void
|
||||
SWGMapItem_track::init() {
|
||||
latitude = 0.0f;
|
||||
m_latitude_isSet = false;
|
||||
longitude = 0.0f;
|
||||
m_longitude_isSet = false;
|
||||
altitude = 0.0f;
|
||||
m_altitude_isSet = false;
|
||||
}
|
||||
|
||||
void
|
||||
SWGMapItem_track::cleanup() {
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
SWGMapItem_track*
|
||||
SWGMapItem_track::fromJson(QString &json) {
|
||||
QByteArray array (json.toStdString().c_str());
|
||||
QJsonDocument doc = QJsonDocument::fromJson(array);
|
||||
QJsonObject jsonObject = doc.object();
|
||||
this->fromJsonObject(jsonObject);
|
||||
return this;
|
||||
}
|
||||
|
||||
void
|
||||
SWGMapItem_track::fromJsonObject(QJsonObject &pJson) {
|
||||
::SWGSDRangel::setValue(&latitude, pJson["latitude"], "float", "");
|
||||
|
||||
::SWGSDRangel::setValue(&longitude, pJson["longitude"], "float", "");
|
||||
|
||||
::SWGSDRangel::setValue(&altitude, pJson["altitude"], "float", "");
|
||||
|
||||
}
|
||||
|
||||
QString
|
||||
SWGMapItem_track::asJson ()
|
||||
{
|
||||
QJsonObject* obj = this->asJsonObject();
|
||||
|
||||
QJsonDocument doc(*obj);
|
||||
QByteArray bytes = doc.toJson();
|
||||
delete obj;
|
||||
return QString(bytes);
|
||||
}
|
||||
|
||||
QJsonObject*
|
||||
SWGMapItem_track::asJsonObject() {
|
||||
QJsonObject* obj = new QJsonObject();
|
||||
if(m_latitude_isSet){
|
||||
obj->insert("latitude", QJsonValue(latitude));
|
||||
}
|
||||
if(m_longitude_isSet){
|
||||
obj->insert("longitude", QJsonValue(longitude));
|
||||
}
|
||||
if(m_altitude_isSet){
|
||||
obj->insert("altitude", QJsonValue(altitude));
|
||||
}
|
||||
|
||||
return obj;
|
||||
}
|
||||
|
||||
float
|
||||
SWGMapItem_track::getLatitude() {
|
||||
return latitude;
|
||||
}
|
||||
void
|
||||
SWGMapItem_track::setLatitude(float latitude) {
|
||||
this->latitude = latitude;
|
||||
this->m_latitude_isSet = true;
|
||||
}
|
||||
|
||||
float
|
||||
SWGMapItem_track::getLongitude() {
|
||||
return longitude;
|
||||
}
|
||||
void
|
||||
SWGMapItem_track::setLongitude(float longitude) {
|
||||
this->longitude = longitude;
|
||||
this->m_longitude_isSet = true;
|
||||
}
|
||||
|
||||
float
|
||||
SWGMapItem_track::getAltitude() {
|
||||
return altitude;
|
||||
}
|
||||
void
|
||||
SWGMapItem_track::setAltitude(float altitude) {
|
||||
this->altitude = altitude;
|
||||
this->m_altitude_isSet = true;
|
||||
}
|
||||
|
||||
|
||||
bool
|
||||
SWGMapItem_track::isSet(){
|
||||
bool isObjectUpdated = false;
|
||||
do{
|
||||
if(m_latitude_isSet){
|
||||
isObjectUpdated = true; break;
|
||||
}
|
||||
if(m_longitude_isSet){
|
||||
isObjectUpdated = true; break;
|
||||
}
|
||||
if(m_altitude_isSet){
|
||||
isObjectUpdated = true; break;
|
||||
}
|
||||
}while(false);
|
||||
return isObjectUpdated;
|
||||
}
|
||||
}
|
||||
|
@ -1,70 +0,0 @@
|
||||
/**
|
||||
* SDRangel
|
||||
* This is the web REST/JSON API of SDRangel SDR software. SDRangel is an Open Source Qt5/OpenGL 3.0+ (4.3+ in Windows) GUI and server Software Defined Radio and signal analyzer in software. It supports Airspy, BladeRF, HackRF, LimeSDR, PlutoSDR, RTL-SDR, SDRplay RSP1 and FunCube --- Limitations and specifcities: * In SDRangel GUI the first Rx device set cannot be deleted. Conversely the server starts with no device sets and its number of device sets can be reduced to zero by as many calls as necessary to /sdrangel/deviceset with DELETE method. * Preset import and export from/to file is a server only feature. * Device set focus is a GUI only feature. * The following channels are not implemented (status 501 is returned): ATV and DATV demodulators, Channel Analyzer NG, LoRa demodulator * The device settings and report structures contains only the sub-structure corresponding to the device type. The DeviceSettings and DeviceReport structures documented here shows all of them but only one will be or should be present at a time * The channel settings and report structures contains only the sub-structure corresponding to the channel type. The ChannelSettings and ChannelReport structures documented here shows all of them but only one will be or should be present at a time ---
|
||||
*
|
||||
* OpenAPI spec version: 6.0.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.
|
||||
*/
|
||||
|
||||
/*
|
||||
* SWGMapItem_track.h
|
||||
*
|
||||
*
|
||||
*/
|
||||
|
||||
#ifndef SWGMapItem_track_H_
|
||||
#define SWGMapItem_track_H_
|
||||
|
||||
#include <QJsonObject>
|
||||
|
||||
|
||||
|
||||
#include "SWGObject.h"
|
||||
#include "export.h"
|
||||
|
||||
namespace SWGSDRangel {
|
||||
|
||||
class SWG_API SWGMapItem_track: public SWGObject {
|
||||
public:
|
||||
SWGMapItem_track();
|
||||
SWGMapItem_track(QString* json);
|
||||
virtual ~SWGMapItem_track();
|
||||
void init();
|
||||
void cleanup();
|
||||
|
||||
virtual QString asJson () override;
|
||||
virtual QJsonObject* asJsonObject() override;
|
||||
virtual void fromJsonObject(QJsonObject &json) override;
|
||||
virtual SWGMapItem_track* fromJson(QString &jsonString) override;
|
||||
|
||||
float getLatitude();
|
||||
void setLatitude(float latitude);
|
||||
|
||||
float getLongitude();
|
||||
void setLongitude(float longitude);
|
||||
|
||||
float getAltitude();
|
||||
void setAltitude(float altitude);
|
||||
|
||||
|
||||
virtual bool isSet() override;
|
||||
|
||||
private:
|
||||
float latitude;
|
||||
bool m_latitude_isSet;
|
||||
|
||||
float longitude;
|
||||
bool m_longitude_isSet;
|
||||
|
||||
float altitude;
|
||||
bool m_altitude_isSet;
|
||||
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
#endif /* SWGMapItem_track_H_ */
|
@ -111,7 +111,6 @@
|
||||
#include "SWGFeaturePresets.h"
|
||||
#include "SWGFeatureReport.h"
|
||||
#include "SWGFeatureSet.h"
|
||||
#include "SWGFeatureSetList.h"
|
||||
#include "SWGFeatureSetPreset.h"
|
||||
#include "SWGFeatureSettings.h"
|
||||
#include "SWGFileInputReport.h"
|
||||
@ -806,11 +805,6 @@ namespace SWGSDRangel {
|
||||
obj->init();
|
||||
return obj;
|
||||
}
|
||||
if(QString("SWGFeatureSetList").compare(type) == 0) {
|
||||
SWGFeatureSetList *obj = new SWGFeatureSetList();
|
||||
obj->init();
|
||||
return obj;
|
||||
}
|
||||
if(QString("SWGFeatureSetPreset").compare(type) == 0) {
|
||||
SWGFeatureSetPreset *obj = new SWGFeatureSetPreset();
|
||||
obj->init();
|
||||
|
@ -1,185 +0,0 @@
|
||||
/**
|
||||
* SDRangel
|
||||
* This is the web REST/JSON API of SDRangel SDR software. SDRangel is an Open Source Qt5/OpenGL 3.0+ (4.3+ in Windows) GUI and server Software Defined Radio and signal analyzer in software. It supports Airspy, BladeRF, HackRF, LimeSDR, PlutoSDR, RTL-SDR, SDRplay RSP1 and FunCube --- Limitations and specifcities: * In SDRangel GUI the first Rx device set cannot be deleted. Conversely the server starts with no device sets and its number of device sets can be reduced to zero by as many calls as necessary to /sdrangel/deviceset with DELETE method. * Preset import and export from/to file is a server only feature. * Device set focus is a GUI only feature. * The following channels are not implemented (status 501 is returned): ATV and DATV demodulators, Channel Analyzer NG, LoRa demodulator * The device settings and report structures contains only the sub-structure corresponding to the device type. The DeviceSettings and DeviceReport structures documented here shows all of them but only one will be or should be present at a time * The channel settings and report structures contains only the sub-structure corresponding to the channel type. The ChannelSettings and ChannelReport structures documented here shows all of them but only one will be or should be present at a time ---
|
||||
*
|
||||
* OpenAPI spec version: 6.0.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 "SWGPacketModActions_tx.h"
|
||||
|
||||
#include "SWGHelpers.h"
|
||||
|
||||
#include <QJsonDocument>
|
||||
#include <QJsonArray>
|
||||
#include <QObject>
|
||||
#include <QDebug>
|
||||
|
||||
namespace SWGSDRangel {
|
||||
|
||||
SWGPacketModActions_tx::SWGPacketModActions_tx(QString* json) {
|
||||
init();
|
||||
this->fromJson(*json);
|
||||
}
|
||||
|
||||
SWGPacketModActions_tx::SWGPacketModActions_tx() {
|
||||
callsign = nullptr;
|
||||
m_callsign_isSet = false;
|
||||
to = nullptr;
|
||||
m_to_isSet = false;
|
||||
via = nullptr;
|
||||
m_via_isSet = false;
|
||||
data = nullptr;
|
||||
m_data_isSet = false;
|
||||
}
|
||||
|
||||
SWGPacketModActions_tx::~SWGPacketModActions_tx() {
|
||||
this->cleanup();
|
||||
}
|
||||
|
||||
void
|
||||
SWGPacketModActions_tx::init() {
|
||||
callsign = new QString("");
|
||||
m_callsign_isSet = false;
|
||||
to = new QString("");
|
||||
m_to_isSet = false;
|
||||
via = new QString("");
|
||||
m_via_isSet = false;
|
||||
data = new QString("");
|
||||
m_data_isSet = false;
|
||||
}
|
||||
|
||||
void
|
||||
SWGPacketModActions_tx::cleanup() {
|
||||
if(callsign != nullptr) {
|
||||
delete callsign;
|
||||
}
|
||||
if(to != nullptr) {
|
||||
delete to;
|
||||
}
|
||||
if(via != nullptr) {
|
||||
delete via;
|
||||
}
|
||||
if(data != nullptr) {
|
||||
delete data;
|
||||
}
|
||||
}
|
||||
|
||||
SWGPacketModActions_tx*
|
||||
SWGPacketModActions_tx::fromJson(QString &json) {
|
||||
QByteArray array (json.toStdString().c_str());
|
||||
QJsonDocument doc = QJsonDocument::fromJson(array);
|
||||
QJsonObject jsonObject = doc.object();
|
||||
this->fromJsonObject(jsonObject);
|
||||
return this;
|
||||
}
|
||||
|
||||
void
|
||||
SWGPacketModActions_tx::fromJsonObject(QJsonObject &pJson) {
|
||||
::SWGSDRangel::setValue(&callsign, pJson["callsign"], "QString", "QString");
|
||||
|
||||
::SWGSDRangel::setValue(&to, pJson["to"], "QString", "QString");
|
||||
|
||||
::SWGSDRangel::setValue(&via, pJson["via"], "QString", "QString");
|
||||
|
||||
::SWGSDRangel::setValue(&data, pJson["data"], "QString", "QString");
|
||||
|
||||
}
|
||||
|
||||
QString
|
||||
SWGPacketModActions_tx::asJson ()
|
||||
{
|
||||
QJsonObject* obj = this->asJsonObject();
|
||||
|
||||
QJsonDocument doc(*obj);
|
||||
QByteArray bytes = doc.toJson();
|
||||
delete obj;
|
||||
return QString(bytes);
|
||||
}
|
||||
|
||||
QJsonObject*
|
||||
SWGPacketModActions_tx::asJsonObject() {
|
||||
QJsonObject* obj = new QJsonObject();
|
||||
if(callsign != nullptr && *callsign != QString("")){
|
||||
toJsonValue(QString("callsign"), callsign, obj, QString("QString"));
|
||||
}
|
||||
if(to != nullptr && *to != QString("")){
|
||||
toJsonValue(QString("to"), to, obj, QString("QString"));
|
||||
}
|
||||
if(via != nullptr && *via != QString("")){
|
||||
toJsonValue(QString("via"), via, obj, QString("QString"));
|
||||
}
|
||||
if(data != nullptr && *data != QString("")){
|
||||
toJsonValue(QString("data"), data, obj, QString("QString"));
|
||||
}
|
||||
|
||||
return obj;
|
||||
}
|
||||
|
||||
QString*
|
||||
SWGPacketModActions_tx::getCallsign() {
|
||||
return callsign;
|
||||
}
|
||||
void
|
||||
SWGPacketModActions_tx::setCallsign(QString* callsign) {
|
||||
this->callsign = callsign;
|
||||
this->m_callsign_isSet = true;
|
||||
}
|
||||
|
||||
QString*
|
||||
SWGPacketModActions_tx::getTo() {
|
||||
return to;
|
||||
}
|
||||
void
|
||||
SWGPacketModActions_tx::setTo(QString* to) {
|
||||
this->to = to;
|
||||
this->m_to_isSet = true;
|
||||
}
|
||||
|
||||
QString*
|
||||
SWGPacketModActions_tx::getVia() {
|
||||
return via;
|
||||
}
|
||||
void
|
||||
SWGPacketModActions_tx::setVia(QString* via) {
|
||||
this->via = via;
|
||||
this->m_via_isSet = true;
|
||||
}
|
||||
|
||||
QString*
|
||||
SWGPacketModActions_tx::getData() {
|
||||
return data;
|
||||
}
|
||||
void
|
||||
SWGPacketModActions_tx::setData(QString* data) {
|
||||
this->data = data;
|
||||
this->m_data_isSet = true;
|
||||
}
|
||||
|
||||
|
||||
bool
|
||||
SWGPacketModActions_tx::isSet(){
|
||||
bool isObjectUpdated = false;
|
||||
do{
|
||||
if(callsign && *callsign != QString("")){
|
||||
isObjectUpdated = true; break;
|
||||
}
|
||||
if(to && *to != QString("")){
|
||||
isObjectUpdated = true; break;
|
||||
}
|
||||
if(via && *via != QString("")){
|
||||
isObjectUpdated = true; break;
|
||||
}
|
||||
if(data && *data != QString("")){
|
||||
isObjectUpdated = true; break;
|
||||
}
|
||||
}while(false);
|
||||
return isObjectUpdated;
|
||||
}
|
||||
}
|
||||
|
@ -1,77 +0,0 @@
|
||||
/**
|
||||
* SDRangel
|
||||
* This is the web REST/JSON API of SDRangel SDR software. SDRangel is an Open Source Qt5/OpenGL 3.0+ (4.3+ in Windows) GUI and server Software Defined Radio and signal analyzer in software. It supports Airspy, BladeRF, HackRF, LimeSDR, PlutoSDR, RTL-SDR, SDRplay RSP1 and FunCube --- Limitations and specifcities: * In SDRangel GUI the first Rx device set cannot be deleted. Conversely the server starts with no device sets and its number of device sets can be reduced to zero by as many calls as necessary to /sdrangel/deviceset with DELETE method. * Preset import and export from/to file is a server only feature. * Device set focus is a GUI only feature. * The following channels are not implemented (status 501 is returned): ATV and DATV demodulators, Channel Analyzer NG, LoRa demodulator * The device settings and report structures contains only the sub-structure corresponding to the device type. The DeviceSettings and DeviceReport structures documented here shows all of them but only one will be or should be present at a time * The channel settings and report structures contains only the sub-structure corresponding to the channel type. The ChannelSettings and ChannelReport structures documented here shows all of them but only one will be or should be present at a time ---
|
||||
*
|
||||
* OpenAPI spec version: 6.0.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.
|
||||
*/
|
||||
|
||||
/*
|
||||
* SWGPacketModActions_tx.h
|
||||
*
|
||||
* Transmit a packet
|
||||
*/
|
||||
|
||||
#ifndef SWGPacketModActions_tx_H_
|
||||
#define SWGPacketModActions_tx_H_
|
||||
|
||||
#include <QJsonObject>
|
||||
|
||||
|
||||
#include <QString>
|
||||
|
||||
#include "SWGObject.h"
|
||||
#include "export.h"
|
||||
|
||||
namespace SWGSDRangel {
|
||||
|
||||
class SWG_API SWGPacketModActions_tx: public SWGObject {
|
||||
public:
|
||||
SWGPacketModActions_tx();
|
||||
SWGPacketModActions_tx(QString* json);
|
||||
virtual ~SWGPacketModActions_tx();
|
||||
void init();
|
||||
void cleanup();
|
||||
|
||||
virtual QString asJson () override;
|
||||
virtual QJsonObject* asJsonObject() override;
|
||||
virtual void fromJsonObject(QJsonObject &json) override;
|
||||
virtual SWGPacketModActions_tx* fromJson(QString &jsonString) override;
|
||||
|
||||
QString* getCallsign();
|
||||
void setCallsign(QString* callsign);
|
||||
|
||||
QString* getTo();
|
||||
void setTo(QString* to);
|
||||
|
||||
QString* getVia();
|
||||
void setVia(QString* via);
|
||||
|
||||
QString* getData();
|
||||
void setData(QString* data);
|
||||
|
||||
|
||||
virtual bool isSet() override;
|
||||
|
||||
private:
|
||||
QString* callsign;
|
||||
bool m_callsign_isSet;
|
||||
|
||||
QString* to;
|
||||
bool m_to_isSet;
|
||||
|
||||
QString* via;
|
||||
bool m_via_isSet;
|
||||
|
||||
QString* data;
|
||||
bool m_data_isSet;
|
||||
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
#endif /* SWGPacketModActions_tx_H_ */
|
@ -1,131 +0,0 @@
|
||||
/**
|
||||
* SDRangel
|
||||
* This is the web REST/JSON API of SDRangel SDR software. SDRangel is an Open Source Qt5/OpenGL 3.0+ (4.3+ in Windows) GUI and server Software Defined Radio and signal analyzer in software. It supports Airspy, BladeRF, HackRF, LimeSDR, PlutoSDR, RTL-SDR, SDRplay RSP1 and FunCube --- Limitations and specifcities: * In SDRangel GUI the first Rx device set cannot be deleted. Conversely the server starts with no device sets and its number of device sets can be reduced to zero by as many calls as necessary to /sdrangel/deviceset with DELETE method. * Preset import and export from/to file is a server only feature. * Device set focus is a GUI only feature. * The following channels are not implemented (status 501 is returned): ATV and DATV demodulators, Channel Analyzer NG, LoRa demodulator * The device settings and report structures contains only the sub-structure corresponding to the device type. The DeviceSettings and DeviceReport structures documented here shows all of them but only one will be or should be present at a time * The channel settings and report structures contains only the sub-structure corresponding to the channel type. The ChannelSettings and ChannelReport structures documented here shows all of them but only one will be or should be present at a time ---
|
||||
*
|
||||
* OpenAPI spec version: 6.0.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 "SWGVORLocalizerSettings_vorDemodChannels.h"
|
||||
|
||||
#include "SWGHelpers.h"
|
||||
|
||||
#include <QJsonDocument>
|
||||
#include <QJsonArray>
|
||||
#include <QObject>
|
||||
#include <QDebug>
|
||||
|
||||
namespace SWGSDRangel {
|
||||
|
||||
SWGVORLocalizerSettings_vorDemodChannels::SWGVORLocalizerSettings_vorDemodChannels(QString* json) {
|
||||
init();
|
||||
this->fromJson(*json);
|
||||
}
|
||||
|
||||
SWGVORLocalizerSettings_vorDemodChannels::SWGVORLocalizerSettings_vorDemodChannels() {
|
||||
device_set_index = 0;
|
||||
m_device_set_index_isSet = false;
|
||||
channel_index = 0;
|
||||
m_channel_index_isSet = false;
|
||||
}
|
||||
|
||||
SWGVORLocalizerSettings_vorDemodChannels::~SWGVORLocalizerSettings_vorDemodChannels() {
|
||||
this->cleanup();
|
||||
}
|
||||
|
||||
void
|
||||
SWGVORLocalizerSettings_vorDemodChannels::init() {
|
||||
device_set_index = 0;
|
||||
m_device_set_index_isSet = false;
|
||||
channel_index = 0;
|
||||
m_channel_index_isSet = false;
|
||||
}
|
||||
|
||||
void
|
||||
SWGVORLocalizerSettings_vorDemodChannels::cleanup() {
|
||||
|
||||
|
||||
}
|
||||
|
||||
SWGVORLocalizerSettings_vorDemodChannels*
|
||||
SWGVORLocalizerSettings_vorDemodChannels::fromJson(QString &json) {
|
||||
QByteArray array (json.toStdString().c_str());
|
||||
QJsonDocument doc = QJsonDocument::fromJson(array);
|
||||
QJsonObject jsonObject = doc.object();
|
||||
this->fromJsonObject(jsonObject);
|
||||
return this;
|
||||
}
|
||||
|
||||
void
|
||||
SWGVORLocalizerSettings_vorDemodChannels::fromJsonObject(QJsonObject &pJson) {
|
||||
::SWGSDRangel::setValue(&device_set_index, pJson["deviceSetIndex"], "qint32", "");
|
||||
|
||||
::SWGSDRangel::setValue(&channel_index, pJson["channelIndex"], "qint32", "");
|
||||
|
||||
}
|
||||
|
||||
QString
|
||||
SWGVORLocalizerSettings_vorDemodChannels::asJson ()
|
||||
{
|
||||
QJsonObject* obj = this->asJsonObject();
|
||||
|
||||
QJsonDocument doc(*obj);
|
||||
QByteArray bytes = doc.toJson();
|
||||
delete obj;
|
||||
return QString(bytes);
|
||||
}
|
||||
|
||||
QJsonObject*
|
||||
SWGVORLocalizerSettings_vorDemodChannels::asJsonObject() {
|
||||
QJsonObject* obj = new QJsonObject();
|
||||
if(m_device_set_index_isSet){
|
||||
obj->insert("deviceSetIndex", QJsonValue(device_set_index));
|
||||
}
|
||||
if(m_channel_index_isSet){
|
||||
obj->insert("channelIndex", QJsonValue(channel_index));
|
||||
}
|
||||
|
||||
return obj;
|
||||
}
|
||||
|
||||
qint32
|
||||
SWGVORLocalizerSettings_vorDemodChannels::getDeviceSetIndex() {
|
||||
return device_set_index;
|
||||
}
|
||||
void
|
||||
SWGVORLocalizerSettings_vorDemodChannels::setDeviceSetIndex(qint32 device_set_index) {
|
||||
this->device_set_index = device_set_index;
|
||||
this->m_device_set_index_isSet = true;
|
||||
}
|
||||
|
||||
qint32
|
||||
SWGVORLocalizerSettings_vorDemodChannels::getChannelIndex() {
|
||||
return channel_index;
|
||||
}
|
||||
void
|
||||
SWGVORLocalizerSettings_vorDemodChannels::setChannelIndex(qint32 channel_index) {
|
||||
this->channel_index = channel_index;
|
||||
this->m_channel_index_isSet = true;
|
||||
}
|
||||
|
||||
|
||||
bool
|
||||
SWGVORLocalizerSettings_vorDemodChannels::isSet(){
|
||||
bool isObjectUpdated = false;
|
||||
do{
|
||||
if(m_device_set_index_isSet){
|
||||
isObjectUpdated = true; break;
|
||||
}
|
||||
if(m_channel_index_isSet){
|
||||
isObjectUpdated = true; break;
|
||||
}
|
||||
}while(false);
|
||||
return isObjectUpdated;
|
||||
}
|
||||
}
|
||||
|
@ -1,64 +0,0 @@
|
||||
/**
|
||||
* SDRangel
|
||||
* This is the web REST/JSON API of SDRangel SDR software. SDRangel is an Open Source Qt5/OpenGL 3.0+ (4.3+ in Windows) GUI and server Software Defined Radio and signal analyzer in software. It supports Airspy, BladeRF, HackRF, LimeSDR, PlutoSDR, RTL-SDR, SDRplay RSP1 and FunCube --- Limitations and specifcities: * In SDRangel GUI the first Rx device set cannot be deleted. Conversely the server starts with no device sets and its number of device sets can be reduced to zero by as many calls as necessary to /sdrangel/deviceset with DELETE method. * Preset import and export from/to file is a server only feature. * Device set focus is a GUI only feature. * The following channels are not implemented (status 501 is returned): ATV and DATV demodulators, Channel Analyzer NG, LoRa demodulator * The device settings and report structures contains only the sub-structure corresponding to the device type. The DeviceSettings and DeviceReport structures documented here shows all of them but only one will be or should be present at a time * The channel settings and report structures contains only the sub-structure corresponding to the channel type. The ChannelSettings and ChannelReport structures documented here shows all of them but only one will be or should be present at a time ---
|
||||
*
|
||||
* OpenAPI spec version: 6.0.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.
|
||||
*/
|
||||
|
||||
/*
|
||||
* SWGVORLocalizerSettings_vorDemodChannels.h
|
||||
*
|
||||
*
|
||||
*/
|
||||
|
||||
#ifndef SWGVORLocalizerSettings_vorDemodChannels_H_
|
||||
#define SWGVORLocalizerSettings_vorDemodChannels_H_
|
||||
|
||||
#include <QJsonObject>
|
||||
|
||||
|
||||
|
||||
#include "SWGObject.h"
|
||||
#include "export.h"
|
||||
|
||||
namespace SWGSDRangel {
|
||||
|
||||
class SWG_API SWGVORLocalizerSettings_vorDemodChannels: public SWGObject {
|
||||
public:
|
||||
SWGVORLocalizerSettings_vorDemodChannels();
|
||||
SWGVORLocalizerSettings_vorDemodChannels(QString* json);
|
||||
virtual ~SWGVORLocalizerSettings_vorDemodChannels();
|
||||
void init();
|
||||
void cleanup();
|
||||
|
||||
virtual QString asJson () override;
|
||||
virtual QJsonObject* asJsonObject() override;
|
||||
virtual void fromJsonObject(QJsonObject &json) override;
|
||||
virtual SWGVORLocalizerSettings_vorDemodChannels* fromJson(QString &jsonString) override;
|
||||
|
||||
qint32 getDeviceSetIndex();
|
||||
void setDeviceSetIndex(qint32 device_set_index);
|
||||
|
||||
qint32 getChannelIndex();
|
||||
void setChannelIndex(qint32 channel_index);
|
||||
|
||||
|
||||
virtual bool isSet() override;
|
||||
|
||||
private:
|
||||
qint32 device_set_index;
|
||||
bool m_device_set_index_isSet;
|
||||
|
||||
qint32 channel_index;
|
||||
bool m_channel_index_isSet;
|
||||
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
#endif /* SWGVORLocalizerSettings_vorDemodChannels_H_ */
|
Loading…
Reference in New Issue
Block a user