mirror of
https://github.com/f4exb/sdrangel.git
synced 2024-12-23 01:55:48 -05:00
Generate swagger files for RTTY mod
This commit is contained in:
parent
f5968816ef
commit
55ccfcd98c
@ -30,8 +30,8 @@
|
||||
#include "SWGWorkspaceInfo.h"
|
||||
#include "SWGChannelReport.h"
|
||||
#include "SWGChannelActions.h"
|
||||
/*#include "SWGRttyModReport.h"
|
||||
#include "SWGRttyModActions.h"*/
|
||||
#include "SWGRTTYModReport.h"
|
||||
#include "SWGRTTYModActions.h"
|
||||
|
||||
#include <stdio.h>
|
||||
#include <complex.h>
|
||||
@ -262,10 +262,6 @@ void RttyMod::applySettings(const RttyModSettings& settings, bool force)
|
||||
reverseAPIKeys.append("rfNoise");
|
||||
}
|
||||
|
||||
if ((settings.m_writeToFile != m_settings.m_writeToFile) || force) {
|
||||
reverseAPIKeys.append("writeToFile");
|
||||
}
|
||||
|
||||
if ((settings.m_data != m_settings.m_data) || force) {
|
||||
reverseAPIKeys.append("data");
|
||||
}
|
||||
@ -382,10 +378,10 @@ int RttyMod::webapiSettingsGet(
|
||||
QString& errorMessage)
|
||||
{
|
||||
(void) errorMessage;
|
||||
/*response.setRttyModSettings(new SWGSDRangel::SWGRttyModSettings());
|
||||
response.setRttyModSettings(new SWGSDRangel::SWGRTTYModSettings());
|
||||
response.getRttyModSettings()->init();
|
||||
webapiFormatChannelSettings(response, m_settings);
|
||||
*/
|
||||
|
||||
return 200;
|
||||
}
|
||||
|
||||
@ -427,7 +423,7 @@ void RttyMod::webapiUpdateChannelSettings(
|
||||
const QStringList& channelSettingsKeys,
|
||||
SWGSDRangel::SWGChannelSettings& response)
|
||||
{
|
||||
/*if (channelSettingsKeys.contains("inputFrequencyOffset")) {
|
||||
if (channelSettingsKeys.contains("inputFrequencyOffset")) {
|
||||
settings.m_inputFrequencyOffset = response.getRttyModSettings()->getInputFrequencyOffset();
|
||||
}
|
||||
if (channelSettingsKeys.contains("baud")) {
|
||||
@ -448,9 +444,6 @@ void RttyMod::webapiUpdateChannelSettings(
|
||||
if (channelSettingsKeys.contains("repeat")) {
|
||||
settings.m_repeat = response.getRttyModSettings()->getRepeat() != 0;
|
||||
}
|
||||
if (channelSettingsKeys.contains("repeatDelay")) {
|
||||
settings.m_repeatDelay = response.getRttyModSettings()->getRepeatDelay();
|
||||
}
|
||||
if (channelSettingsKeys.contains("repeatCount")) {
|
||||
settings.m_repeatCount = response.getRttyModSettings()->getRepeatCount();
|
||||
}
|
||||
@ -463,9 +456,6 @@ void RttyMod::webapiUpdateChannelSettings(
|
||||
if (channelSettingsKeys.contains("rfNoise")) {
|
||||
settings.m_rfNoise = response.getRttyModSettings()->getRfNoise() != 0;
|
||||
}
|
||||
if (channelSettingsKeys.contains("writeToFile")) {
|
||||
settings.m_writeToFile = response.getRttyModSettings()->getWriteToFile() != 0;
|
||||
}
|
||||
if (channelSettingsKeys.contains("data")) {
|
||||
settings.m_data = *response.getRttyModSettings()->getData();
|
||||
}
|
||||
@ -513,7 +503,7 @@ void RttyMod::webapiUpdateChannelSettings(
|
||||
}
|
||||
if (settings.m_rollupState && channelSettingsKeys.contains("rollupState")) {
|
||||
settings.m_rollupState->updateFrom(channelSettingsKeys, response.getRttyModSettings()->getRollupState());
|
||||
}*/
|
||||
}
|
||||
}
|
||||
|
||||
int RttyMod::webapiReportGet(
|
||||
@ -521,9 +511,9 @@ int RttyMod::webapiReportGet(
|
||||
QString& errorMessage)
|
||||
{
|
||||
(void) errorMessage;
|
||||
/*response.setRttyModReport(new SWGSDRangel::SWGRttyModReport());
|
||||
response.setRttyModReport(new SWGSDRangel::SWGRTTYModReport());
|
||||
response.getRttyModReport()->init();
|
||||
webapiFormatChannelReport(response);*/
|
||||
webapiFormatChannelReport(response);
|
||||
return 200;
|
||||
}
|
||||
|
||||
@ -532,7 +522,7 @@ int RttyMod::webapiActionsPost(
|
||||
SWGSDRangel::SWGChannelActions& query,
|
||||
QString& errorMessage)
|
||||
{
|
||||
/*SWGSDRangel::SWGRttyModActions *swgRttyModActions = query.getRttyModActions();
|
||||
SWGSDRangel::SWGRTTYModActions *swgRttyModActions = query.getRttyModActions();
|
||||
|
||||
if (swgRttyModActions)
|
||||
{
|
||||
@ -544,7 +534,7 @@ int RttyMod::webapiActionsPost(
|
||||
&& (swgRttyModActions->getPayload()->getData()))
|
||||
{
|
||||
MsgTXPacketData *msg = MsgTXPacketData::create(
|
||||
*swgRttyModActions->getPayload()->getData(
|
||||
*swgRttyModActions->getPayload()->getData()
|
||||
);
|
||||
m_basebandSource->getInputMessageQueue()->push(msg);
|
||||
}
|
||||
@ -572,25 +562,23 @@ int RttyMod::webapiActionsPost(
|
||||
{
|
||||
errorMessage = "Missing RttyModActions in query";
|
||||
return 400;
|
||||
}*/
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
void RttyMod::webapiFormatChannelSettings(SWGSDRangel::SWGChannelSettings& response, const RttyModSettings& settings)
|
||||
{
|
||||
/*response.getRttyModSettings()->setInputFrequencyOffset(settings.m_inputFrequencyOffset);
|
||||
response.getRttyModSettings()->setInputFrequencyOffset(settings.m_inputFrequencyOffset);
|
||||
response.getRttyModSettings()->setBaud(settings.m_baud);
|
||||
response.getRttyModSettings()->setRfBandwidth(settings.m_rfBandwidth);
|
||||
response.getRttyModSettings()->setFrequencyShift(settings.m_frequencyShift);
|
||||
response.getRttyModSettings()->setGain(settings.m_gain);
|
||||
response.getRttyModSettings()->setChannelMute(settings.m_channelMute ? 1 : 0);
|
||||
response.getRttyModSettings()->setRepeat(settings.m_repeat ? 1 : 0);
|
||||
response.getRttyModSettings()->setRepeatDelay(settings.m_repeatDelay);
|
||||
response.getRttyModSettings()->setRepeatCount(settings.m_repeatCount);
|
||||
response.getRttyModSettings()->setLpfTaps(settings.m_lpfTaps);
|
||||
response.getRttyModSettings()->setBbNoise(settings.m_bbNoise ? 1 : 0);
|
||||
response.getRttyModSettings()->setRfNoise(settings.m_rfNoise ? 1 : 0);
|
||||
response.getRttyModSettings()->setWriteToFile(settings.m_writeToFile ? 1 : 0);
|
||||
|
||||
if (response.getRttyModSettings()->getData()) {
|
||||
*response.getRttyModSettings()->getData() = settings.m_data;
|
||||
@ -651,13 +639,13 @@ void RttyMod::webapiFormatChannelSettings(SWGSDRangel::SWGChannelSettings& respo
|
||||
settings.m_rollupState->formatTo(swgRollupState);
|
||||
response.getRttyModSettings()->setRollupState(swgRollupState);
|
||||
}
|
||||
}*/
|
||||
}
|
||||
}
|
||||
|
||||
void RttyMod::webapiFormatChannelReport(SWGSDRangel::SWGChannelReport& response)
|
||||
{
|
||||
/*response.getRttyModReport()->setChannelPowerDb(CalcDb::dbPower(getMagSq()));
|
||||
response.getRttyModReport()->setChannelSampleRate(m_basebandSource->getChannelSampleRate());*/
|
||||
response.getRttyModReport()->setChannelPowerDb(CalcDb::dbPower(getMagSq()));
|
||||
response.getRttyModReport()->setChannelSampleRate(m_basebandSource->getChannelSampleRate());
|
||||
}
|
||||
|
||||
void RttyMod::webapiReverseSendSettings(QList<QString>& channelSettingsKeys, const RttyModSettings& settings, bool force)
|
||||
@ -717,12 +705,12 @@ void RttyMod::webapiFormatChannelSettings(
|
||||
bool force
|
||||
)
|
||||
{
|
||||
/*swgChannelSettings->setDirection(1); // single source (Tx)
|
||||
swgChannelSettings->setDirection(1); // single source (Tx)
|
||||
swgChannelSettings->setOriginatorChannelIndex(getIndexInDeviceSet());
|
||||
swgChannelSettings->setOriginatorDeviceSetIndex(getDeviceSetIndex());
|
||||
swgChannelSettings->setChannelType(new QString(m_channelId));
|
||||
swgChannelSettings->setRttyModSettings(new SWGSDRangel::SWGRttyModSettings());
|
||||
SWGSDRangel::SWGRttyModSettings *swgRttyModSettings = swgChannelSettings->getRttyModSettings();
|
||||
swgChannelSettings->setRttyModSettings(new SWGSDRangel::SWGRTTYModSettings());
|
||||
SWGSDRangel::SWGRTTYModSettings *swgRttyModSettings = swgChannelSettings->getRttyModSettings();
|
||||
|
||||
// transfer data that has been modified. When force is on transfer all data except reverse API data
|
||||
|
||||
@ -747,9 +735,6 @@ void RttyMod::webapiFormatChannelSettings(
|
||||
if (channelSettingsKeys.contains("repeat") || force) {
|
||||
swgRttyModSettings->setRepeat(settings.m_repeat ? 1 : 0);
|
||||
}
|
||||
if (channelSettingsKeys.contains("repeatDelay") || force) {
|
||||
swgRttyModSettings->setRepeatDelay(settings.m_repeatDelay);
|
||||
}
|
||||
if (channelSettingsKeys.contains("repeatCount") || force) {
|
||||
swgRttyModSettings->setRepeatCount(settings.m_repeatCount);
|
||||
}
|
||||
@ -762,9 +747,6 @@ void RttyMod::webapiFormatChannelSettings(
|
||||
if (channelSettingsKeys.contains("rfNoise")) {
|
||||
swgRttyModSettings->setRfNoise(settings.m_rfNoise ? 1 : 0);
|
||||
}
|
||||
if (channelSettingsKeys.contains("writeToFile")) {
|
||||
swgRttyModSettings->setWriteToFile(settings.m_writeToFile ? 1 : 0);
|
||||
}
|
||||
if (channelSettingsKeys.contains("data")) {
|
||||
swgRttyModSettings->setData(new QString(settings.m_data));
|
||||
}
|
||||
@ -805,7 +787,7 @@ void RttyMod::webapiFormatChannelSettings(
|
||||
SWGSDRangel::SWGRollupState *swgRollupState = new SWGSDRangel::SWGRollupState();
|
||||
settings.m_rollupState->formatTo(swgRollupState);
|
||||
swgRttyModSettings->setRollupState(swgRollupState);
|
||||
}*/
|
||||
}
|
||||
}
|
||||
|
||||
void RttyMod::networkManagerFinished(QNetworkReply *reply)
|
||||
|
@ -31,9 +31,9 @@ int RttyModWebAPIAdapter::webapiSettingsGet(
|
||||
QString& errorMessage)
|
||||
{
|
||||
(void) errorMessage;
|
||||
/*response.setRttyModSettings(new SWGSDRangel::SWGRttyModSettings());
|
||||
response.setRttyModSettings(new SWGSDRangel::SWGRTTYModSettings());
|
||||
response.getRttyModSettings()->init();
|
||||
RttyMod::webapiFormatChannelSettings(response, m_settings);*/
|
||||
RttyMod::webapiFormatChannelSettings(response, m_settings);
|
||||
|
||||
return 200;
|
||||
}
|
||||
|
@ -3484,6 +3484,9 @@ margin-bottom: 20px;
|
||||
"RadioAstronomyActions" : {
|
||||
"$ref" : "#/definitions/RadioAstronomyActions"
|
||||
},
|
||||
"RTTYModActions" : {
|
||||
"$ref" : "#/definitions/RTTYModActions"
|
||||
},
|
||||
"SigMFFileSinkActions" : {
|
||||
"$ref" : "#/definitions/SigMFFileSinkActions"
|
||||
}
|
||||
@ -3773,6 +3776,9 @@ margin-bottom: 20px;
|
||||
"RemoteSourceReport" : {
|
||||
"$ref" : "#/definitions/RemoteSourceReport"
|
||||
},
|
||||
"RTTYModReport" : {
|
||||
"$ref" : "#/definitions/RTTYModReport"
|
||||
},
|
||||
"PacketDemodReport" : {
|
||||
"$ref" : "#/definitions/PacketDemodReport"
|
||||
},
|
||||
@ -3904,6 +3910,9 @@ margin-bottom: 20px;
|
||||
"RTTYDemodSettings" : {
|
||||
"$ref" : "#/definitions/RTTYDemodSettings"
|
||||
},
|
||||
"RTTYModSettings" : {
|
||||
"$ref" : "#/definitions/RTTYModSettings"
|
||||
},
|
||||
"HeatMapSettings" : {
|
||||
"$ref" : "#/definitions/HeatMapSettings"
|
||||
},
|
||||
@ -5895,7 +5904,8 @@ margin-bottom: 20px;
|
||||
},
|
||||
"bandwidth" : {
|
||||
"type" : "number",
|
||||
"format" : "float"
|
||||
"format" : "float",
|
||||
"description" : "bandwidth ratio [0.0, 1.0]"
|
||||
}
|
||||
},
|
||||
"description" : "FFT filter band definition"
|
||||
@ -7269,11 +7279,13 @@ margin-bottom: 20px;
|
||||
"description" : "Identifier of the channel or feature plugin providing azimuth and elevation (E.g. R0:0 ADSBDemod)"
|
||||
},
|
||||
"azimuthOffset" : {
|
||||
"type" : "integer",
|
||||
"type" : "number",
|
||||
"format" : "float",
|
||||
"description" : "Azimuth offset in degrees"
|
||||
},
|
||||
"elevationOffset" : {
|
||||
"type" : "integer",
|
||||
"type" : "number",
|
||||
"format" : "float",
|
||||
"description" : "Elevation offset in degrees"
|
||||
},
|
||||
"azimuthMin" : {
|
||||
@ -8960,7 +8972,7 @@ margin-bottom: 20px;
|
||||
},
|
||||
"fftOn" : {
|
||||
"type" : "integer",
|
||||
"description" : "Activate FFT multiband filter\n * 0 - do not run flter\n * 1 - run filter\n"
|
||||
"description" : "Activate FFT multiband filter\n * 0 - do not run filter\n * 1 - run filter\n"
|
||||
},
|
||||
"log2FFT" : {
|
||||
"type" : "integer",
|
||||
@ -8977,7 +8989,8 @@ margin-bottom: 20px;
|
||||
}
|
||||
},
|
||||
"reverseFilter" : {
|
||||
"type" : "integer"
|
||||
"type" : "integer",
|
||||
"description" : "* 0 - band definitions are bandpass * 1 - band definitions are band reject\n"
|
||||
},
|
||||
"streamIndex" : {
|
||||
"type" : "integer",
|
||||
@ -9446,7 +9459,8 @@ margin-bottom: 20px;
|
||||
"description" : "Angle to rotate the image by"
|
||||
},
|
||||
"text" : {
|
||||
"type" : "string"
|
||||
"type" : "string",
|
||||
"description" : "Text to draw on the map when item is selected"
|
||||
},
|
||||
"latitude" : {
|
||||
"type" : "number",
|
||||
@ -9519,7 +9533,7 @@ margin-bottom: 20px;
|
||||
"labelAltitudeOffset" : {
|
||||
"type" : "number",
|
||||
"format" : "float",
|
||||
"description" : "Veritical offset to position label at"
|
||||
"description" : "Vertical offset to position label at"
|
||||
},
|
||||
"modelAltitudeOffset" : {
|
||||
"type" : "number",
|
||||
@ -9605,7 +9619,8 @@ margin-bottom: 20px;
|
||||
"description" : "Angle to rotate the image by"
|
||||
},
|
||||
"text" : {
|
||||
"type" : "string"
|
||||
"type" : "string",
|
||||
"description" : "Text to draw on the map when item is selected"
|
||||
},
|
||||
"latitude" : {
|
||||
"type" : "number",
|
||||
@ -9678,7 +9693,7 @@ margin-bottom: 20px;
|
||||
"labelAltitudeOffset" : {
|
||||
"type" : "number",
|
||||
"format" : "float",
|
||||
"description" : "Veritical offset to position label at"
|
||||
"description" : "Vertical offset to position label at"
|
||||
},
|
||||
"modelAltitudeOffset" : {
|
||||
"type" : "number",
|
||||
@ -11747,6 +11762,140 @@ margin-bottom: 20px;
|
||||
}
|
||||
},
|
||||
"description" : "ACARSDemod"
|
||||
};
|
||||
defs.RTTYModActions = {
|
||||
"properties" : {
|
||||
"tx" : {
|
||||
"type" : "integer",
|
||||
"description" : "Transmit current text\n * 0 - Do nothing\n * 1 - Transmit\n"
|
||||
},
|
||||
"payload" : {
|
||||
"$ref" : "#/definitions/RTTYModActions_payload"
|
||||
}
|
||||
},
|
||||
"description" : "RTTYMod"
|
||||
};
|
||||
defs.RTTYModActions_payload = {
|
||||
"properties" : {
|
||||
"data" : {
|
||||
"type" : "string"
|
||||
}
|
||||
}
|
||||
};
|
||||
defs.RTTYModReport = {
|
||||
"properties" : {
|
||||
"channelPowerDB" : {
|
||||
"type" : "number",
|
||||
"format" : "float",
|
||||
"description" : "power transmitted in channel (dB)"
|
||||
},
|
||||
"channelSampleRate" : {
|
||||
"type" : "integer"
|
||||
}
|
||||
},
|
||||
"description" : "RTTYMod"
|
||||
};
|
||||
defs.RTTYModSettings = {
|
||||
"properties" : {
|
||||
"inputFrequencyOffset" : {
|
||||
"type" : "integer",
|
||||
"format" : "int64"
|
||||
},
|
||||
"baud" : {
|
||||
"type" : "number",
|
||||
"format" : "float",
|
||||
"description" : "Baud rate"
|
||||
},
|
||||
"rfBandwidth" : {
|
||||
"type" : "integer"
|
||||
},
|
||||
"frequencyShift" : {
|
||||
"type" : "integer"
|
||||
},
|
||||
"gain" : {
|
||||
"type" : "number",
|
||||
"format" : "float"
|
||||
},
|
||||
"channelMute" : {
|
||||
"type" : "integer"
|
||||
},
|
||||
"repeat" : {
|
||||
"type" : "integer"
|
||||
},
|
||||
"repeatCount" : {
|
||||
"type" : "integer"
|
||||
},
|
||||
"lpfTaps" : {
|
||||
"type" : "integer"
|
||||
},
|
||||
"bbNoise" : {
|
||||
"type" : "integer",
|
||||
"description" : "Boolean\n * 0 - off\n * 1 - on\n"
|
||||
},
|
||||
"rfNoise" : {
|
||||
"type" : "integer",
|
||||
"description" : "Boolean\n * 0 - off\n * 1 - on\n"
|
||||
},
|
||||
"data" : {
|
||||
"type" : "string"
|
||||
},
|
||||
"pulseShaping" : {
|
||||
"type" : "integer",
|
||||
"description" : "Boolean\n * 0 - off\n * 1 - on\n"
|
||||
},
|
||||
"beta" : {
|
||||
"type" : "number",
|
||||
"format" : "float"
|
||||
},
|
||||
"symbolSpan" : {
|
||||
"type" : "integer"
|
||||
},
|
||||
"udpEnabled" : {
|
||||
"type" : "integer",
|
||||
"description" : "Whether to receive text to transmit on specified UDP port"
|
||||
},
|
||||
"udpAddress" : {
|
||||
"type" : "string",
|
||||
"description" : "UDP address to receive text to transmit via"
|
||||
},
|
||||
"udpPort" : {
|
||||
"type" : "integer",
|
||||
"description" : "UDP port to receive text to transmit via"
|
||||
},
|
||||
"rgbColor" : {
|
||||
"type" : "integer"
|
||||
},
|
||||
"title" : {
|
||||
"type" : "string"
|
||||
},
|
||||
"streamIndex" : {
|
||||
"type" : "integer",
|
||||
"description" : "MIMO channel. Not relevant when connected to SI (single Rx)."
|
||||
},
|
||||
"useReverseAPI" : {
|
||||
"type" : "integer",
|
||||
"description" : "Synchronize with reverse API (1 for yes, 0 for no)"
|
||||
},
|
||||
"reverseAPIAddress" : {
|
||||
"type" : "string"
|
||||
},
|
||||
"reverseAPIPort" : {
|
||||
"type" : "integer"
|
||||
},
|
||||
"reverseAPIDeviceIndex" : {
|
||||
"type" : "integer"
|
||||
},
|
||||
"reverseAPIChannelIndex" : {
|
||||
"type" : "integer"
|
||||
},
|
||||
"channelMarker" : {
|
||||
"$ref" : "#/definitions/ChannelMarker"
|
||||
},
|
||||
"rollupState" : {
|
||||
"$ref" : "#/definitions/RollupState"
|
||||
}
|
||||
},
|
||||
"description" : "RTTYMod"
|
||||
};
|
||||
defs.RadioAstronomyActions = {
|
||||
"properties" : {
|
||||
@ -14449,15 +14598,18 @@ margin-bottom: 20px;
|
||||
},
|
||||
"b" : {
|
||||
"type" : "number",
|
||||
"format" : "float"
|
||||
"format" : "float",
|
||||
"description" : "Galactic latitude in degrees"
|
||||
},
|
||||
"l" : {
|
||||
"type" : "number",
|
||||
"format" : "float"
|
||||
"format" : "float",
|
||||
"description" : "Galactic longitude in degrees"
|
||||
},
|
||||
"d" : {
|
||||
"type" : "number",
|
||||
"format" : "float"
|
||||
"format" : "float",
|
||||
"description" : "Distance to object from Sun in kpc"
|
||||
}
|
||||
},
|
||||
"description" : "Details of object to display in Star Tracker line-of-sight view. Can be sent by other plugins to startracker.display message queue"
|
||||
@ -14469,15 +14621,18 @@ margin-bottom: 20px;
|
||||
},
|
||||
"b" : {
|
||||
"type" : "number",
|
||||
"format" : "float"
|
||||
"format" : "float",
|
||||
"description" : "Galactic latitude in degrees"
|
||||
},
|
||||
"l" : {
|
||||
"type" : "number",
|
||||
"format" : "float"
|
||||
"format" : "float",
|
||||
"description" : "Galactic longitude in degrees"
|
||||
},
|
||||
"d" : {
|
||||
"type" : "number",
|
||||
"format" : "float"
|
||||
"format" : "float",
|
||||
"description" : "Distance to object from Sun in kpc"
|
||||
}
|
||||
},
|
||||
"description" : "Details of object to display in Star Tracker line-of-sight view. Can be sent by other plugins to startracker.display message queue"
|
||||
@ -14490,11 +14645,13 @@ margin-bottom: 20px;
|
||||
},
|
||||
"azimuth" : {
|
||||
"type" : "number",
|
||||
"format" : "float"
|
||||
"format" : "float",
|
||||
"description" : "The azimuth angle in degrees to the target"
|
||||
},
|
||||
"elevation" : {
|
||||
"type" : "number",
|
||||
"format" : "float"
|
||||
"format" : "float",
|
||||
"description" : "The elevation angle in degrees to the target"
|
||||
}
|
||||
},
|
||||
"description" : "Settings to display in Star Tracker. Can be sent by other plugins to startracker.display message queue."
|
||||
@ -14507,11 +14664,13 @@ margin-bottom: 20px;
|
||||
},
|
||||
"azimuth" : {
|
||||
"type" : "number",
|
||||
"format" : "float"
|
||||
"format" : "float",
|
||||
"description" : "The azimuth angle in degrees to the target"
|
||||
},
|
||||
"elevation" : {
|
||||
"type" : "number",
|
||||
"format" : "float"
|
||||
"format" : "float",
|
||||
"description" : "The elevation angle in degrees to the target"
|
||||
}
|
||||
},
|
||||
"description" : "Settings to display in Star Tracker. Can be sent by other plugins to startracker.display message queue."
|
||||
@ -14595,7 +14754,7 @@ margin-bottom: 20px;
|
||||
"temperature" : {
|
||||
"type" : "number",
|
||||
"format" : "float",
|
||||
"description" : "Air temperature in Celsuis, for refraction"
|
||||
"description" : "Air temperature in Celsius, for refraction"
|
||||
},
|
||||
"humidity" : {
|
||||
"type" : "number",
|
||||
@ -14618,7 +14777,8 @@ margin-bottom: 20px;
|
||||
"description" : "Frequency of radio waves being observed in MHz"
|
||||
},
|
||||
"stellariumServerEnabled" : {
|
||||
"type" : "integer"
|
||||
"type" : "integer",
|
||||
"description" : "Enable Stellarium server (1 for yes, 0 for no)"
|
||||
},
|
||||
"stellariumPort" : {
|
||||
"type" : "integer",
|
||||
@ -14676,15 +14836,18 @@ margin-bottom: 20px;
|
||||
defs.StarTrackerTarget = {
|
||||
"properties" : {
|
||||
"name" : {
|
||||
"type" : "string"
|
||||
"type" : "string",
|
||||
"description" : "The name of the target"
|
||||
},
|
||||
"azimuth" : {
|
||||
"type" : "number",
|
||||
"format" : "float"
|
||||
"format" : "float",
|
||||
"description" : "The azimuth angle in degrees to the target"
|
||||
},
|
||||
"elevation" : {
|
||||
"type" : "number",
|
||||
"format" : "float"
|
||||
"format" : "float",
|
||||
"description" : "The elevation angle in degrees to the target"
|
||||
},
|
||||
"ra" : {
|
||||
"type" : "number",
|
||||
@ -14698,11 +14861,13 @@ margin-bottom: 20px;
|
||||
},
|
||||
"b" : {
|
||||
"type" : "number",
|
||||
"format" : "float"
|
||||
"format" : "float",
|
||||
"description" : "Galactic latitude in degrees"
|
||||
},
|
||||
"l" : {
|
||||
"type" : "number",
|
||||
"format" : "float"
|
||||
"format" : "float",
|
||||
"description" : "Galactic longitude in degrees"
|
||||
},
|
||||
"earthRotationVelocity" : {
|
||||
"type" : "number",
|
||||
@ -14745,15 +14910,18 @@ margin-bottom: 20px;
|
||||
defs.StarTrackerTarget_2 = {
|
||||
"properties" : {
|
||||
"name" : {
|
||||
"type" : "string"
|
||||
"type" : "string",
|
||||
"description" : "The name of the target"
|
||||
},
|
||||
"azimuth" : {
|
||||
"type" : "number",
|
||||
"format" : "float"
|
||||
"format" : "float",
|
||||
"description" : "The azimuth angle in degrees to the target"
|
||||
},
|
||||
"elevation" : {
|
||||
"type" : "number",
|
||||
"format" : "float"
|
||||
"format" : "float",
|
||||
"description" : "The elevation angle in degrees to the target"
|
||||
},
|
||||
"ra" : {
|
||||
"type" : "number",
|
||||
@ -14767,11 +14935,13 @@ margin-bottom: 20px;
|
||||
},
|
||||
"b" : {
|
||||
"type" : "number",
|
||||
"format" : "float"
|
||||
"format" : "float",
|
||||
"description" : "Galactic latitude in degrees"
|
||||
},
|
||||
"l" : {
|
||||
"type" : "number",
|
||||
"format" : "float"
|
||||
"format" : "float",
|
||||
"description" : "Galactic longitude in degrees"
|
||||
},
|
||||
"earthRotationVelocity" : {
|
||||
"type" : "number",
|
||||
@ -14822,15 +14992,18 @@ margin-bottom: 20px;
|
||||
defs.TargetAzimuthElevation = {
|
||||
"properties" : {
|
||||
"name" : {
|
||||
"type" : "string"
|
||||
"type" : "string",
|
||||
"description" : "The name of the target"
|
||||
},
|
||||
"azimuth" : {
|
||||
"type" : "number",
|
||||
"format" : "float"
|
||||
"format" : "float",
|
||||
"description" : "The azimuth angle in degrees to the target"
|
||||
},
|
||||
"elevation" : {
|
||||
"type" : "number",
|
||||
"format" : "float"
|
||||
"format" : "float",
|
||||
"description" : "The elevation angle in degrees to the target"
|
||||
}
|
||||
},
|
||||
"description" : "A target azimuth and elevation"
|
||||
@ -22563,7 +22736,7 @@ $(document).ready(function() {
|
||||
|
||||
|
||||
<h2>Responses</h2>
|
||||
<h3> Status: 202 - On successful semding of the message it returns the details of the device being set </h3>
|
||||
<h3> Status: 202 - On successful sending of the message it returns the details of the device being set </h3>
|
||||
|
||||
<ul class="nav nav-tabs nav-tabs-examples" >
|
||||
<li class="active">
|
||||
@ -22578,7 +22751,7 @@ $(document).ready(function() {
|
||||
<script>
|
||||
$(document).ready(function() {
|
||||
var schemaWrapper = {
|
||||
"description" : "On successful semding of the message it returns the details of the device being set",
|
||||
"description" : "On successful sending of the message it returns the details of the device being set",
|
||||
"schema" : {
|
||||
"$ref" : "#/definitions/DeviceListItem"
|
||||
}
|
||||
@ -31220,7 +31393,7 @@ $(document).ready(function() {
|
||||
<div class="pull-right"></div>
|
||||
<div class="clearfix"></div>
|
||||
<p></p>
|
||||
<p class="marked">Apply main spectrum settings unconditionnaly (force)</p>
|
||||
<p class="marked">Apply main spectrum settings unconditionally (force)</p>
|
||||
<p></p>
|
||||
<br />
|
||||
<pre class="prettyprint language-html prettyprinted" data-type="put"><code><span class="pln">/sdrangel/deviceset/{deviceSetIndex}/spectrum/settings</span></code></pre>
|
||||
@ -41339,7 +41512,7 @@ except ApiException as e:
|
||||
<div class="pull-right"></div>
|
||||
<div class="clearfix"></div>
|
||||
<p></p>
|
||||
<p class="marked">Delete audio input device paramaters and return to defaults</p>
|
||||
<p class="marked">Delete audio input device parameters and return to defaults</p>
|
||||
<p></p>
|
||||
<br />
|
||||
<pre class="prettyprint language-html prettyprinted" data-type="delete"><code><span class="pln">/sdrangel/audio/input/parameters</span></code></pre>
|
||||
@ -41769,7 +41942,7 @@ $(document).ready(function() {
|
||||
<div class="pull-right"></div>
|
||||
<div class="clearfix"></div>
|
||||
<p></p>
|
||||
<p class="marked">Set audio input device paramaters</p>
|
||||
<p class="marked">Set audio input device parameters</p>
|
||||
<p></p>
|
||||
<br />
|
||||
<pre class="prettyprint language-html prettyprinted" data-type="patch"><code><span class="pln">/sdrangel/audio/input/parameters</span></code></pre>
|
||||
@ -42534,7 +42707,7 @@ except ApiException as e:
|
||||
<div class="pull-right"></div>
|
||||
<div class="clearfix"></div>
|
||||
<p></p>
|
||||
<p class="marked">Delete audio output device paramaters and return to defaults</p>
|
||||
<p class="marked">Delete audio output device parameters and return to defaults</p>
|
||||
<p></p>
|
||||
<br />
|
||||
<pre class="prettyprint language-html prettyprinted" data-type="delete"><code><span class="pln">/sdrangel/audio/output/parameters</span></code></pre>
|
||||
@ -52246,7 +52419,7 @@ except ApiException as e:
|
||||
<div class="pull-right"></div>
|
||||
<div class="clearfix"></div>
|
||||
<p></p>
|
||||
<p class="marked">Change logging parmeters for this instance</p>
|
||||
<p class="marked">Change logging parameters for this instance</p>
|
||||
<p></p>
|
||||
<br />
|
||||
<pre class="prettyprint language-html prettyprinted" data-type="put"><code><span class="pln">/sdrangel/logging</span></code></pre>
|
||||
@ -57806,7 +57979,7 @@ except ApiException as e:
|
||||
</div>
|
||||
<div id="generator">
|
||||
<div class="content">
|
||||
Generated 2023-07-09T18:31:34.285+02:00
|
||||
Generated 2023-09-01T18:13:33.975+02:00
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -50,6 +50,8 @@ SWGChannelActions::SWGChannelActions() {
|
||||
m_packet_mod_actions_isSet = false;
|
||||
radio_astronomy_actions = nullptr;
|
||||
m_radio_astronomy_actions_isSet = false;
|
||||
rtty_mod_actions = nullptr;
|
||||
m_rtty_mod_actions_isSet = false;
|
||||
sig_mf_file_sink_actions = nullptr;
|
||||
m_sig_mf_file_sink_actions_isSet = false;
|
||||
}
|
||||
@ -82,6 +84,8 @@ SWGChannelActions::init() {
|
||||
m_packet_mod_actions_isSet = false;
|
||||
radio_astronomy_actions = new SWGRadioAstronomyActions();
|
||||
m_radio_astronomy_actions_isSet = false;
|
||||
rtty_mod_actions = new SWGRTTYModActions();
|
||||
m_rtty_mod_actions_isSet = false;
|
||||
sig_mf_file_sink_actions = new SWGSigMFFileSinkActions();
|
||||
m_sig_mf_file_sink_actions_isSet = false;
|
||||
}
|
||||
@ -115,6 +119,9 @@ SWGChannelActions::cleanup() {
|
||||
if(radio_astronomy_actions != nullptr) {
|
||||
delete radio_astronomy_actions;
|
||||
}
|
||||
if(rtty_mod_actions != nullptr) {
|
||||
delete rtty_mod_actions;
|
||||
}
|
||||
if(sig_mf_file_sink_actions != nullptr) {
|
||||
delete sig_mf_file_sink_actions;
|
||||
}
|
||||
@ -153,6 +160,8 @@ SWGChannelActions::fromJsonObject(QJsonObject &pJson) {
|
||||
|
||||
::SWGSDRangel::setValue(&radio_astronomy_actions, pJson["RadioAstronomyActions"], "SWGRadioAstronomyActions", "SWGRadioAstronomyActions");
|
||||
|
||||
::SWGSDRangel::setValue(&rtty_mod_actions, pJson["RTTYModActions"], "SWGRTTYModActions", "SWGRTTYModActions");
|
||||
|
||||
::SWGSDRangel::setValue(&sig_mf_file_sink_actions, pJson["SigMFFileSinkActions"], "SWGSigMFFileSinkActions", "SWGSigMFFileSinkActions");
|
||||
|
||||
}
|
||||
@ -204,6 +213,9 @@ SWGChannelActions::asJsonObject() {
|
||||
if((radio_astronomy_actions != nullptr) && (radio_astronomy_actions->isSet())){
|
||||
toJsonValue(QString("RadioAstronomyActions"), radio_astronomy_actions, obj, QString("SWGRadioAstronomyActions"));
|
||||
}
|
||||
if((rtty_mod_actions != nullptr) && (rtty_mod_actions->isSet())){
|
||||
toJsonValue(QString("RTTYModActions"), rtty_mod_actions, obj, QString("SWGRTTYModActions"));
|
||||
}
|
||||
if((sig_mf_file_sink_actions != nullptr) && (sig_mf_file_sink_actions->isSet())){
|
||||
toJsonValue(QString("SigMFFileSinkActions"), sig_mf_file_sink_actions, obj, QString("SWGSigMFFileSinkActions"));
|
||||
}
|
||||
@ -321,6 +333,16 @@ SWGChannelActions::setRadioAstronomyActions(SWGRadioAstronomyActions* radio_astr
|
||||
this->m_radio_astronomy_actions_isSet = true;
|
||||
}
|
||||
|
||||
SWGRTTYModActions*
|
||||
SWGChannelActions::getRttyModActions() {
|
||||
return rtty_mod_actions;
|
||||
}
|
||||
void
|
||||
SWGChannelActions::setRttyModActions(SWGRTTYModActions* rtty_mod_actions) {
|
||||
this->rtty_mod_actions = rtty_mod_actions;
|
||||
this->m_rtty_mod_actions_isSet = true;
|
||||
}
|
||||
|
||||
SWGSigMFFileSinkActions*
|
||||
SWGChannelActions::getSigMfFileSinkActions() {
|
||||
return sig_mf_file_sink_actions;
|
||||
@ -369,6 +391,9 @@ SWGChannelActions::isSet(){
|
||||
if(radio_astronomy_actions && radio_astronomy_actions->isSet()){
|
||||
isObjectUpdated = true; break;
|
||||
}
|
||||
if(rtty_mod_actions && rtty_mod_actions->isSet()){
|
||||
isObjectUpdated = true; break;
|
||||
}
|
||||
if(sig_mf_file_sink_actions && sig_mf_file_sink_actions->isSet()){
|
||||
isObjectUpdated = true; break;
|
||||
}
|
||||
|
@ -28,6 +28,7 @@
|
||||
#include "SWGFileSourceActions.h"
|
||||
#include "SWGIEEE_802_15_4_ModActions.h"
|
||||
#include "SWGPacketModActions.h"
|
||||
#include "SWGRTTYModActions.h"
|
||||
#include "SWGRadioAstronomyActions.h"
|
||||
#include "SWGSigMFFileSinkActions.h"
|
||||
#include <QString>
|
||||
@ -83,6 +84,9 @@ public:
|
||||
SWGRadioAstronomyActions* getRadioAstronomyActions();
|
||||
void setRadioAstronomyActions(SWGRadioAstronomyActions* radio_astronomy_actions);
|
||||
|
||||
SWGRTTYModActions* getRttyModActions();
|
||||
void setRttyModActions(SWGRTTYModActions* rtty_mod_actions);
|
||||
|
||||
SWGSigMFFileSinkActions* getSigMfFileSinkActions();
|
||||
void setSigMfFileSinkActions(SWGSigMFFileSinkActions* sig_mf_file_sink_actions);
|
||||
|
||||
@ -123,6 +127,9 @@ private:
|
||||
SWGRadioAstronomyActions* radio_astronomy_actions;
|
||||
bool m_radio_astronomy_actions_isSet;
|
||||
|
||||
SWGRTTYModActions* rtty_mod_actions;
|
||||
bool m_rtty_mod_actions_isSet;
|
||||
|
||||
SWGSigMFFileSinkActions* sig_mf_file_sink_actions;
|
||||
bool m_sig_mf_file_sink_actions_isSet;
|
||||
|
||||
|
@ -102,6 +102,8 @@ SWGChannelReport::SWGChannelReport() {
|
||||
m_radiosonde_demod_report_isSet = false;
|
||||
remote_source_report = nullptr;
|
||||
m_remote_source_report_isSet = false;
|
||||
rtty_mod_report = nullptr;
|
||||
m_rtty_mod_report_isSet = false;
|
||||
packet_demod_report = nullptr;
|
||||
m_packet_demod_report_isSet = false;
|
||||
packet_mod_report = nullptr;
|
||||
@ -204,6 +206,8 @@ SWGChannelReport::init() {
|
||||
m_radiosonde_demod_report_isSet = false;
|
||||
remote_source_report = new SWGRemoteSourceReport();
|
||||
m_remote_source_report_isSet = false;
|
||||
rtty_mod_report = new SWGRTTYModReport();
|
||||
m_rtty_mod_report_isSet = false;
|
||||
packet_demod_report = new SWGPacketDemodReport();
|
||||
m_packet_demod_report_isSet = false;
|
||||
packet_mod_report = new SWGPacketModReport();
|
||||
@ -337,6 +341,9 @@ SWGChannelReport::cleanup() {
|
||||
if(remote_source_report != nullptr) {
|
||||
delete remote_source_report;
|
||||
}
|
||||
if(rtty_mod_report != nullptr) {
|
||||
delete rtty_mod_report;
|
||||
}
|
||||
if(packet_demod_report != nullptr) {
|
||||
delete packet_demod_report;
|
||||
}
|
||||
@ -454,6 +461,8 @@ SWGChannelReport::fromJsonObject(QJsonObject &pJson) {
|
||||
|
||||
::SWGSDRangel::setValue(&remote_source_report, pJson["RemoteSourceReport"], "SWGRemoteSourceReport", "SWGRemoteSourceReport");
|
||||
|
||||
::SWGSDRangel::setValue(&rtty_mod_report, pJson["RTTYModReport"], "SWGRTTYModReport", "SWGRTTYModReport");
|
||||
|
||||
::SWGSDRangel::setValue(&packet_demod_report, pJson["PacketDemodReport"], "SWGPacketDemodReport", "SWGPacketDemodReport");
|
||||
|
||||
::SWGSDRangel::setValue(&packet_mod_report, pJson["PacketModReport"], "SWGPacketModReport", "SWGPacketModReport");
|
||||
@ -601,6 +610,9 @@ SWGChannelReport::asJsonObject() {
|
||||
if((remote_source_report != nullptr) && (remote_source_report->isSet())){
|
||||
toJsonValue(QString("RemoteSourceReport"), remote_source_report, obj, QString("SWGRemoteSourceReport"));
|
||||
}
|
||||
if((rtty_mod_report != nullptr) && (rtty_mod_report->isSet())){
|
||||
toJsonValue(QString("RTTYModReport"), rtty_mod_report, obj, QString("SWGRTTYModReport"));
|
||||
}
|
||||
if((packet_demod_report != nullptr) && (packet_demod_report->isSet())){
|
||||
toJsonValue(QString("PacketDemodReport"), packet_demod_report, obj, QString("SWGPacketDemodReport"));
|
||||
}
|
||||
@ -1005,6 +1017,16 @@ SWGChannelReport::setRemoteSourceReport(SWGRemoteSourceReport* remote_source_rep
|
||||
this->m_remote_source_report_isSet = true;
|
||||
}
|
||||
|
||||
SWGRTTYModReport*
|
||||
SWGChannelReport::getRttyModReport() {
|
||||
return rtty_mod_report;
|
||||
}
|
||||
void
|
||||
SWGChannelReport::setRttyModReport(SWGRTTYModReport* rtty_mod_report) {
|
||||
this->rtty_mod_report = rtty_mod_report;
|
||||
this->m_rtty_mod_report_isSet = true;
|
||||
}
|
||||
|
||||
SWGPacketDemodReport*
|
||||
SWGChannelReport::getPacketDemodReport() {
|
||||
return packet_demod_report;
|
||||
@ -1221,6 +1243,9 @@ SWGChannelReport::isSet(){
|
||||
if(remote_source_report && remote_source_report->isSet()){
|
||||
isObjectUpdated = true; break;
|
||||
}
|
||||
if(rtty_mod_report && rtty_mod_report->isSet()){
|
||||
isObjectUpdated = true; break;
|
||||
}
|
||||
if(packet_demod_report && packet_demod_report->isSet()){
|
||||
isObjectUpdated = true; break;
|
||||
}
|
||||
|
@ -55,6 +55,7 @@
|
||||
#include "SWGPacketModReport.h"
|
||||
#include "SWGPagerDemodReport.h"
|
||||
#include "SWGRTTYDemodReport.h"
|
||||
#include "SWGRTTYModReport.h"
|
||||
#include "SWGRadioAstronomyReport.h"
|
||||
#include "SWGRadioClockReport.h"
|
||||
#include "SWGRadiosondeDemodReport.h"
|
||||
@ -198,6 +199,9 @@ public:
|
||||
SWGRemoteSourceReport* getRemoteSourceReport();
|
||||
void setRemoteSourceReport(SWGRemoteSourceReport* remote_source_report);
|
||||
|
||||
SWGRTTYModReport* getRttyModReport();
|
||||
void setRttyModReport(SWGRTTYModReport* rtty_mod_report);
|
||||
|
||||
SWGPacketDemodReport* getPacketDemodReport();
|
||||
void setPacketDemodReport(SWGPacketDemodReport* packet_demod_report);
|
||||
|
||||
@ -343,6 +347,9 @@ private:
|
||||
SWGRemoteSourceReport* remote_source_report;
|
||||
bool m_remote_source_report_isSet;
|
||||
|
||||
SWGRTTYModReport* rtty_mod_report;
|
||||
bool m_rtty_mod_report_isSet;
|
||||
|
||||
SWGPacketDemodReport* packet_demod_report;
|
||||
bool m_packet_demod_report_isSet;
|
||||
|
||||
|
@ -88,6 +88,8 @@ SWGChannelSettings::SWGChannelSettings() {
|
||||
m_ft8_demod_settings_isSet = false;
|
||||
rtty_demod_settings = nullptr;
|
||||
m_rtty_demod_settings_isSet = false;
|
||||
rtty_mod_settings = nullptr;
|
||||
m_rtty_mod_settings_isSet = false;
|
||||
heat_map_settings = nullptr;
|
||||
m_heat_map_settings_isSet = false;
|
||||
ils_demod_settings = nullptr;
|
||||
@ -214,6 +216,8 @@ SWGChannelSettings::init() {
|
||||
m_ft8_demod_settings_isSet = false;
|
||||
rtty_demod_settings = new SWGRTTYDemodSettings();
|
||||
m_rtty_demod_settings_isSet = false;
|
||||
rtty_mod_settings = new SWGRTTYModSettings();
|
||||
m_rtty_mod_settings_isSet = false;
|
||||
heat_map_settings = new SWGHeatMapSettings();
|
||||
m_heat_map_settings_isSet = false;
|
||||
ils_demod_settings = new SWGILSDemodSettings();
|
||||
@ -360,6 +364,9 @@ SWGChannelSettings::cleanup() {
|
||||
if(rtty_demod_settings != nullptr) {
|
||||
delete rtty_demod_settings;
|
||||
}
|
||||
if(rtty_mod_settings != nullptr) {
|
||||
delete rtty_mod_settings;
|
||||
}
|
||||
if(heat_map_settings != nullptr) {
|
||||
delete heat_map_settings;
|
||||
}
|
||||
@ -520,6 +527,8 @@ SWGChannelSettings::fromJsonObject(QJsonObject &pJson) {
|
||||
|
||||
::SWGSDRangel::setValue(&rtty_demod_settings, pJson["RTTYDemodSettings"], "SWGRTTYDemodSettings", "SWGRTTYDemodSettings");
|
||||
|
||||
::SWGSDRangel::setValue(&rtty_mod_settings, pJson["RTTYModSettings"], "SWGRTTYModSettings", "SWGRTTYModSettings");
|
||||
|
||||
::SWGSDRangel::setValue(&heat_map_settings, pJson["HeatMapSettings"], "SWGHeatMapSettings", "SWGHeatMapSettings");
|
||||
|
||||
::SWGSDRangel::setValue(&ils_demod_settings, pJson["ILSDemodSettings"], "SWGILSDemodSettings", "SWGILSDemodSettings");
|
||||
@ -684,6 +693,9 @@ SWGChannelSettings::asJsonObject() {
|
||||
if((rtty_demod_settings != nullptr) && (rtty_demod_settings->isSet())){
|
||||
toJsonValue(QString("RTTYDemodSettings"), rtty_demod_settings, obj, QString("SWGRTTYDemodSettings"));
|
||||
}
|
||||
if((rtty_mod_settings != nullptr) && (rtty_mod_settings->isSet())){
|
||||
toJsonValue(QString("RTTYModSettings"), rtty_mod_settings, obj, QString("SWGRTTYModSettings"));
|
||||
}
|
||||
if((heat_map_settings != nullptr) && (heat_map_settings->isSet())){
|
||||
toJsonValue(QString("HeatMapSettings"), heat_map_settings, obj, QString("SWGHeatMapSettings"));
|
||||
}
|
||||
@ -1075,6 +1087,16 @@ SWGChannelSettings::setRttyDemodSettings(SWGRTTYDemodSettings* rtty_demod_settin
|
||||
this->m_rtty_demod_settings_isSet = true;
|
||||
}
|
||||
|
||||
SWGRTTYModSettings*
|
||||
SWGChannelSettings::getRttyModSettings() {
|
||||
return rtty_mod_settings;
|
||||
}
|
||||
void
|
||||
SWGChannelSettings::setRttyModSettings(SWGRTTYModSettings* rtty_mod_settings) {
|
||||
this->rtty_mod_settings = rtty_mod_settings;
|
||||
this->m_rtty_mod_settings_isSet = true;
|
||||
}
|
||||
|
||||
SWGHeatMapSettings*
|
||||
SWGChannelSettings::getHeatMapSettings() {
|
||||
return heat_map_settings;
|
||||
@ -1460,6 +1482,9 @@ SWGChannelSettings::isSet(){
|
||||
if(rtty_demod_settings && rtty_demod_settings->isSet()){
|
||||
isObjectUpdated = true; break;
|
||||
}
|
||||
if(rtty_mod_settings && rtty_mod_settings->isSet()){
|
||||
isObjectUpdated = true; break;
|
||||
}
|
||||
if(heat_map_settings && heat_map_settings->isSet()){
|
||||
isObjectUpdated = true; break;
|
||||
}
|
||||
|
@ -63,6 +63,7 @@
|
||||
#include "SWGPacketModSettings.h"
|
||||
#include "SWGPagerDemodSettings.h"
|
||||
#include "SWGRTTYDemodSettings.h"
|
||||
#include "SWGRTTYModSettings.h"
|
||||
#include "SWGRadioAstronomySettings.h"
|
||||
#include "SWGRadioClockSettings.h"
|
||||
#include "SWGRadiosondeDemodSettings.h"
|
||||
@ -187,6 +188,9 @@ public:
|
||||
SWGRTTYDemodSettings* getRttyDemodSettings();
|
||||
void setRttyDemodSettings(SWGRTTYDemodSettings* rtty_demod_settings);
|
||||
|
||||
SWGRTTYModSettings* getRttyModSettings();
|
||||
void setRttyModSettings(SWGRTTYModSettings* rtty_mod_settings);
|
||||
|
||||
SWGHeatMapSettings* getHeatMapSettings();
|
||||
void setHeatMapSettings(SWGHeatMapSettings* heat_map_settings);
|
||||
|
||||
@ -368,6 +372,9 @@ private:
|
||||
SWGRTTYDemodSettings* rtty_demod_settings;
|
||||
bool m_rtty_demod_settings_isSet;
|
||||
|
||||
SWGRTTYModSettings* rtty_mod_settings;
|
||||
bool m_rtty_mod_settings_isSet;
|
||||
|
||||
SWGHeatMapSettings* heat_map_settings;
|
||||
bool m_heat_map_settings_isSet;
|
||||
|
||||
|
@ -251,6 +251,10 @@
|
||||
#include "SWGRDSReport_altFrequencies.h"
|
||||
#include "SWGRTTYDemodReport.h"
|
||||
#include "SWGRTTYDemodSettings.h"
|
||||
#include "SWGRTTYModActions.h"
|
||||
#include "SWGRTTYModActions_payload.h"
|
||||
#include "SWGRTTYModReport.h"
|
||||
#include "SWGRTTYModSettings.h"
|
||||
#include "SWGRadioAstronomyActions.h"
|
||||
#include "SWGRadioAstronomyReport.h"
|
||||
#include "SWGRadioAstronomySettings.h"
|
||||
@ -1545,6 +1549,26 @@ namespace SWGSDRangel {
|
||||
obj->init();
|
||||
return obj;
|
||||
}
|
||||
if(QString("SWGRTTYModActions").compare(type) == 0) {
|
||||
SWGRTTYModActions *obj = new SWGRTTYModActions();
|
||||
obj->init();
|
||||
return obj;
|
||||
}
|
||||
if(QString("SWGRTTYModActions_payload").compare(type) == 0) {
|
||||
SWGRTTYModActions_payload *obj = new SWGRTTYModActions_payload();
|
||||
obj->init();
|
||||
return obj;
|
||||
}
|
||||
if(QString("SWGRTTYModReport").compare(type) == 0) {
|
||||
SWGRTTYModReport *obj = new SWGRTTYModReport();
|
||||
obj->init();
|
||||
return obj;
|
||||
}
|
||||
if(QString("SWGRTTYModSettings").compare(type) == 0) {
|
||||
SWGRTTYModSettings *obj = new SWGRTTYModSettings();
|
||||
obj->init();
|
||||
return obj;
|
||||
}
|
||||
if(QString("SWGRadioAstronomyActions").compare(type) == 0) {
|
||||
SWGRadioAstronomyActions *obj = new SWGRadioAstronomyActions();
|
||||
obj->init();
|
||||
|
133
swagger/sdrangel/code/qt5/client/SWGRTTYModActions.cpp
Normal file
133
swagger/sdrangel/code/qt5/client/SWGRTTYModActions.cpp
Normal file
@ -0,0 +1,133 @@
|
||||
/**
|
||||
* 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: 7.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 "SWGRTTYModActions.h"
|
||||
|
||||
#include "SWGHelpers.h"
|
||||
|
||||
#include <QJsonDocument>
|
||||
#include <QJsonArray>
|
||||
#include <QObject>
|
||||
#include <QDebug>
|
||||
|
||||
namespace SWGSDRangel {
|
||||
|
||||
SWGRTTYModActions::SWGRTTYModActions(QString* json) {
|
||||
init();
|
||||
this->fromJson(*json);
|
||||
}
|
||||
|
||||
SWGRTTYModActions::SWGRTTYModActions() {
|
||||
tx = 0;
|
||||
m_tx_isSet = false;
|
||||
payload = nullptr;
|
||||
m_payload_isSet = false;
|
||||
}
|
||||
|
||||
SWGRTTYModActions::~SWGRTTYModActions() {
|
||||
this->cleanup();
|
||||
}
|
||||
|
||||
void
|
||||
SWGRTTYModActions::init() {
|
||||
tx = 0;
|
||||
m_tx_isSet = false;
|
||||
payload = new SWGRTTYModActions_payload();
|
||||
m_payload_isSet = false;
|
||||
}
|
||||
|
||||
void
|
||||
SWGRTTYModActions::cleanup() {
|
||||
|
||||
if(payload != nullptr) {
|
||||
delete payload;
|
||||
}
|
||||
}
|
||||
|
||||
SWGRTTYModActions*
|
||||
SWGRTTYModActions::fromJson(QString &json) {
|
||||
QByteArray array (json.toStdString().c_str());
|
||||
QJsonDocument doc = QJsonDocument::fromJson(array);
|
||||
QJsonObject jsonObject = doc.object();
|
||||
this->fromJsonObject(jsonObject);
|
||||
return this;
|
||||
}
|
||||
|
||||
void
|
||||
SWGRTTYModActions::fromJsonObject(QJsonObject &pJson) {
|
||||
::SWGSDRangel::setValue(&tx, pJson["tx"], "qint32", "");
|
||||
|
||||
::SWGSDRangel::setValue(&payload, pJson["payload"], "SWGRTTYModActions_payload", "SWGRTTYModActions_payload");
|
||||
|
||||
}
|
||||
|
||||
QString
|
||||
SWGRTTYModActions::asJson ()
|
||||
{
|
||||
QJsonObject* obj = this->asJsonObject();
|
||||
|
||||
QJsonDocument doc(*obj);
|
||||
QByteArray bytes = doc.toJson();
|
||||
delete obj;
|
||||
return QString(bytes);
|
||||
}
|
||||
|
||||
QJsonObject*
|
||||
SWGRTTYModActions::asJsonObject() {
|
||||
QJsonObject* obj = new QJsonObject();
|
||||
if(m_tx_isSet){
|
||||
obj->insert("tx", QJsonValue(tx));
|
||||
}
|
||||
if((payload != nullptr) && (payload->isSet())){
|
||||
toJsonValue(QString("payload"), payload, obj, QString("SWGRTTYModActions_payload"));
|
||||
}
|
||||
|
||||
return obj;
|
||||
}
|
||||
|
||||
qint32
|
||||
SWGRTTYModActions::getTx() {
|
||||
return tx;
|
||||
}
|
||||
void
|
||||
SWGRTTYModActions::setTx(qint32 tx) {
|
||||
this->tx = tx;
|
||||
this->m_tx_isSet = true;
|
||||
}
|
||||
|
||||
SWGRTTYModActions_payload*
|
||||
SWGRTTYModActions::getPayload() {
|
||||
return payload;
|
||||
}
|
||||
void
|
||||
SWGRTTYModActions::setPayload(SWGRTTYModActions_payload* payload) {
|
||||
this->payload = payload;
|
||||
this->m_payload_isSet = true;
|
||||
}
|
||||
|
||||
|
||||
bool
|
||||
SWGRTTYModActions::isSet(){
|
||||
bool isObjectUpdated = false;
|
||||
do{
|
||||
if(m_tx_isSet){
|
||||
isObjectUpdated = true; break;
|
||||
}
|
||||
if(payload && payload->isSet()){
|
||||
isObjectUpdated = true; break;
|
||||
}
|
||||
}while(false);
|
||||
return isObjectUpdated;
|
||||
}
|
||||
}
|
||||
|
65
swagger/sdrangel/code/qt5/client/SWGRTTYModActions.h
Normal file
65
swagger/sdrangel/code/qt5/client/SWGRTTYModActions.h
Normal file
@ -0,0 +1,65 @@
|
||||
/**
|
||||
* 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: 7.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.
|
||||
*/
|
||||
|
||||
/*
|
||||
* SWGRTTYModActions.h
|
||||
*
|
||||
* RTTYMod
|
||||
*/
|
||||
|
||||
#ifndef SWGRTTYModActions_H_
|
||||
#define SWGRTTYModActions_H_
|
||||
|
||||
#include <QJsonObject>
|
||||
|
||||
|
||||
#include "SWGRTTYModActions_payload.h"
|
||||
|
||||
#include "SWGObject.h"
|
||||
#include "export.h"
|
||||
|
||||
namespace SWGSDRangel {
|
||||
|
||||
class SWG_API SWGRTTYModActions: public SWGObject {
|
||||
public:
|
||||
SWGRTTYModActions();
|
||||
SWGRTTYModActions(QString* json);
|
||||
virtual ~SWGRTTYModActions();
|
||||
void init();
|
||||
void cleanup();
|
||||
|
||||
virtual QString asJson () override;
|
||||
virtual QJsonObject* asJsonObject() override;
|
||||
virtual void fromJsonObject(QJsonObject &json) override;
|
||||
virtual SWGRTTYModActions* fromJson(QString &jsonString) override;
|
||||
|
||||
qint32 getTx();
|
||||
void setTx(qint32 tx);
|
||||
|
||||
SWGRTTYModActions_payload* getPayload();
|
||||
void setPayload(SWGRTTYModActions_payload* payload);
|
||||
|
||||
|
||||
virtual bool isSet() override;
|
||||
|
||||
private:
|
||||
qint32 tx;
|
||||
bool m_tx_isSet;
|
||||
|
||||
SWGRTTYModActions_payload* payload;
|
||||
bool m_payload_isSet;
|
||||
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
#endif /* SWGRTTYModActions_H_ */
|
110
swagger/sdrangel/code/qt5/client/SWGRTTYModActions_payload.cpp
Normal file
110
swagger/sdrangel/code/qt5/client/SWGRTTYModActions_payload.cpp
Normal file
@ -0,0 +1,110 @@
|
||||
/**
|
||||
* 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: 7.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 "SWGRTTYModActions_payload.h"
|
||||
|
||||
#include "SWGHelpers.h"
|
||||
|
||||
#include <QJsonDocument>
|
||||
#include <QJsonArray>
|
||||
#include <QObject>
|
||||
#include <QDebug>
|
||||
|
||||
namespace SWGSDRangel {
|
||||
|
||||
SWGRTTYModActions_payload::SWGRTTYModActions_payload(QString* json) {
|
||||
init();
|
||||
this->fromJson(*json);
|
||||
}
|
||||
|
||||
SWGRTTYModActions_payload::SWGRTTYModActions_payload() {
|
||||
data = nullptr;
|
||||
m_data_isSet = false;
|
||||
}
|
||||
|
||||
SWGRTTYModActions_payload::~SWGRTTYModActions_payload() {
|
||||
this->cleanup();
|
||||
}
|
||||
|
||||
void
|
||||
SWGRTTYModActions_payload::init() {
|
||||
data = new QString("");
|
||||
m_data_isSet = false;
|
||||
}
|
||||
|
||||
void
|
||||
SWGRTTYModActions_payload::cleanup() {
|
||||
if(data != nullptr) {
|
||||
delete data;
|
||||
}
|
||||
}
|
||||
|
||||
SWGRTTYModActions_payload*
|
||||
SWGRTTYModActions_payload::fromJson(QString &json) {
|
||||
QByteArray array (json.toStdString().c_str());
|
||||
QJsonDocument doc = QJsonDocument::fromJson(array);
|
||||
QJsonObject jsonObject = doc.object();
|
||||
this->fromJsonObject(jsonObject);
|
||||
return this;
|
||||
}
|
||||
|
||||
void
|
||||
SWGRTTYModActions_payload::fromJsonObject(QJsonObject &pJson) {
|
||||
::SWGSDRangel::setValue(&data, pJson["data"], "QString", "QString");
|
||||
|
||||
}
|
||||
|
||||
QString
|
||||
SWGRTTYModActions_payload::asJson ()
|
||||
{
|
||||
QJsonObject* obj = this->asJsonObject();
|
||||
|
||||
QJsonDocument doc(*obj);
|
||||
QByteArray bytes = doc.toJson();
|
||||
delete obj;
|
||||
return QString(bytes);
|
||||
}
|
||||
|
||||
QJsonObject*
|
||||
SWGRTTYModActions_payload::asJsonObject() {
|
||||
QJsonObject* obj = new QJsonObject();
|
||||
if(data != nullptr && *data != QString("")){
|
||||
toJsonValue(QString("data"), data, obj, QString("QString"));
|
||||
}
|
||||
|
||||
return obj;
|
||||
}
|
||||
|
||||
QString*
|
||||
SWGRTTYModActions_payload::getData() {
|
||||
return data;
|
||||
}
|
||||
void
|
||||
SWGRTTYModActions_payload::setData(QString* data) {
|
||||
this->data = data;
|
||||
this->m_data_isSet = true;
|
||||
}
|
||||
|
||||
|
||||
bool
|
||||
SWGRTTYModActions_payload::isSet(){
|
||||
bool isObjectUpdated = false;
|
||||
do{
|
||||
if(data && *data != QString("")){
|
||||
isObjectUpdated = true; break;
|
||||
}
|
||||
}while(false);
|
||||
return isObjectUpdated;
|
||||
}
|
||||
}
|
||||
|
59
swagger/sdrangel/code/qt5/client/SWGRTTYModActions_payload.h
Normal file
59
swagger/sdrangel/code/qt5/client/SWGRTTYModActions_payload.h
Normal file
@ -0,0 +1,59 @@
|
||||
/**
|
||||
* 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: 7.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.
|
||||
*/
|
||||
|
||||
/*
|
||||
* SWGRTTYModActions_payload.h
|
||||
*
|
||||
*
|
||||
*/
|
||||
|
||||
#ifndef SWGRTTYModActions_payload_H_
|
||||
#define SWGRTTYModActions_payload_H_
|
||||
|
||||
#include <QJsonObject>
|
||||
|
||||
|
||||
#include <QString>
|
||||
|
||||
#include "SWGObject.h"
|
||||
#include "export.h"
|
||||
|
||||
namespace SWGSDRangel {
|
||||
|
||||
class SWG_API SWGRTTYModActions_payload: public SWGObject {
|
||||
public:
|
||||
SWGRTTYModActions_payload();
|
||||
SWGRTTYModActions_payload(QString* json);
|
||||
virtual ~SWGRTTYModActions_payload();
|
||||
void init();
|
||||
void cleanup();
|
||||
|
||||
virtual QString asJson () override;
|
||||
virtual QJsonObject* asJsonObject() override;
|
||||
virtual void fromJsonObject(QJsonObject &json) override;
|
||||
virtual SWGRTTYModActions_payload* fromJson(QString &jsonString) override;
|
||||
|
||||
QString* getData();
|
||||
void setData(QString* data);
|
||||
|
||||
|
||||
virtual bool isSet() override;
|
||||
|
||||
private:
|
||||
QString* data;
|
||||
bool m_data_isSet;
|
||||
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
#endif /* SWGRTTYModActions_payload_H_ */
|
131
swagger/sdrangel/code/qt5/client/SWGRTTYModReport.cpp
Normal file
131
swagger/sdrangel/code/qt5/client/SWGRTTYModReport.cpp
Normal file
@ -0,0 +1,131 @@
|
||||
/**
|
||||
* 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: 7.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 "SWGRTTYModReport.h"
|
||||
|
||||
#include "SWGHelpers.h"
|
||||
|
||||
#include <QJsonDocument>
|
||||
#include <QJsonArray>
|
||||
#include <QObject>
|
||||
#include <QDebug>
|
||||
|
||||
namespace SWGSDRangel {
|
||||
|
||||
SWGRTTYModReport::SWGRTTYModReport(QString* json) {
|
||||
init();
|
||||
this->fromJson(*json);
|
||||
}
|
||||
|
||||
SWGRTTYModReport::SWGRTTYModReport() {
|
||||
channel_power_db = 0.0f;
|
||||
m_channel_power_db_isSet = false;
|
||||
channel_sample_rate = 0;
|
||||
m_channel_sample_rate_isSet = false;
|
||||
}
|
||||
|
||||
SWGRTTYModReport::~SWGRTTYModReport() {
|
||||
this->cleanup();
|
||||
}
|
||||
|
||||
void
|
||||
SWGRTTYModReport::init() {
|
||||
channel_power_db = 0.0f;
|
||||
m_channel_power_db_isSet = false;
|
||||
channel_sample_rate = 0;
|
||||
m_channel_sample_rate_isSet = false;
|
||||
}
|
||||
|
||||
void
|
||||
SWGRTTYModReport::cleanup() {
|
||||
|
||||
|
||||
}
|
||||
|
||||
SWGRTTYModReport*
|
||||
SWGRTTYModReport::fromJson(QString &json) {
|
||||
QByteArray array (json.toStdString().c_str());
|
||||
QJsonDocument doc = QJsonDocument::fromJson(array);
|
||||
QJsonObject jsonObject = doc.object();
|
||||
this->fromJsonObject(jsonObject);
|
||||
return this;
|
||||
}
|
||||
|
||||
void
|
||||
SWGRTTYModReport::fromJsonObject(QJsonObject &pJson) {
|
||||
::SWGSDRangel::setValue(&channel_power_db, pJson["channelPowerDB"], "float", "");
|
||||
|
||||
::SWGSDRangel::setValue(&channel_sample_rate, pJson["channelSampleRate"], "qint32", "");
|
||||
|
||||
}
|
||||
|
||||
QString
|
||||
SWGRTTYModReport::asJson ()
|
||||
{
|
||||
QJsonObject* obj = this->asJsonObject();
|
||||
|
||||
QJsonDocument doc(*obj);
|
||||
QByteArray bytes = doc.toJson();
|
||||
delete obj;
|
||||
return QString(bytes);
|
||||
}
|
||||
|
||||
QJsonObject*
|
||||
SWGRTTYModReport::asJsonObject() {
|
||||
QJsonObject* obj = new QJsonObject();
|
||||
if(m_channel_power_db_isSet){
|
||||
obj->insert("channelPowerDB", QJsonValue(channel_power_db));
|
||||
}
|
||||
if(m_channel_sample_rate_isSet){
|
||||
obj->insert("channelSampleRate", QJsonValue(channel_sample_rate));
|
||||
}
|
||||
|
||||
return obj;
|
||||
}
|
||||
|
||||
float
|
||||
SWGRTTYModReport::getChannelPowerDb() {
|
||||
return channel_power_db;
|
||||
}
|
||||
void
|
||||
SWGRTTYModReport::setChannelPowerDb(float channel_power_db) {
|
||||
this->channel_power_db = channel_power_db;
|
||||
this->m_channel_power_db_isSet = true;
|
||||
}
|
||||
|
||||
qint32
|
||||
SWGRTTYModReport::getChannelSampleRate() {
|
||||
return channel_sample_rate;
|
||||
}
|
||||
void
|
||||
SWGRTTYModReport::setChannelSampleRate(qint32 channel_sample_rate) {
|
||||
this->channel_sample_rate = channel_sample_rate;
|
||||
this->m_channel_sample_rate_isSet = true;
|
||||
}
|
||||
|
||||
|
||||
bool
|
||||
SWGRTTYModReport::isSet(){
|
||||
bool isObjectUpdated = false;
|
||||
do{
|
||||
if(m_channel_power_db_isSet){
|
||||
isObjectUpdated = true; break;
|
||||
}
|
||||
if(m_channel_sample_rate_isSet){
|
||||
isObjectUpdated = true; break;
|
||||
}
|
||||
}while(false);
|
||||
return isObjectUpdated;
|
||||
}
|
||||
}
|
||||
|
64
swagger/sdrangel/code/qt5/client/SWGRTTYModReport.h
Normal file
64
swagger/sdrangel/code/qt5/client/SWGRTTYModReport.h
Normal file
@ -0,0 +1,64 @@
|
||||
/**
|
||||
* 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: 7.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.
|
||||
*/
|
||||
|
||||
/*
|
||||
* SWGRTTYModReport.h
|
||||
*
|
||||
* RTTYMod
|
||||
*/
|
||||
|
||||
#ifndef SWGRTTYModReport_H_
|
||||
#define SWGRTTYModReport_H_
|
||||
|
||||
#include <QJsonObject>
|
||||
|
||||
|
||||
|
||||
#include "SWGObject.h"
|
||||
#include "export.h"
|
||||
|
||||
namespace SWGSDRangel {
|
||||
|
||||
class SWG_API SWGRTTYModReport: public SWGObject {
|
||||
public:
|
||||
SWGRTTYModReport();
|
||||
SWGRTTYModReport(QString* json);
|
||||
virtual ~SWGRTTYModReport();
|
||||
void init();
|
||||
void cleanup();
|
||||
|
||||
virtual QString asJson () override;
|
||||
virtual QJsonObject* asJsonObject() override;
|
||||
virtual void fromJsonObject(QJsonObject &json) override;
|
||||
virtual SWGRTTYModReport* fromJson(QString &jsonString) override;
|
||||
|
||||
float getChannelPowerDb();
|
||||
void setChannelPowerDb(float channel_power_db);
|
||||
|
||||
qint32 getChannelSampleRate();
|
||||
void setChannelSampleRate(qint32 channel_sample_rate);
|
||||
|
||||
|
||||
virtual bool isSet() override;
|
||||
|
||||
private:
|
||||
float channel_power_db;
|
||||
bool m_channel_power_db_isSet;
|
||||
|
||||
qint32 channel_sample_rate;
|
||||
bool m_channel_sample_rate_isSet;
|
||||
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
#endif /* SWGRTTYModReport_H_ */
|
741
swagger/sdrangel/code/qt5/client/SWGRTTYModSettings.cpp
Normal file
741
swagger/sdrangel/code/qt5/client/SWGRTTYModSettings.cpp
Normal file
@ -0,0 +1,741 @@
|
||||
/**
|
||||
* 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: 7.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 "SWGRTTYModSettings.h"
|
||||
|
||||
#include "SWGHelpers.h"
|
||||
|
||||
#include <QJsonDocument>
|
||||
#include <QJsonArray>
|
||||
#include <QObject>
|
||||
#include <QDebug>
|
||||
|
||||
namespace SWGSDRangel {
|
||||
|
||||
SWGRTTYModSettings::SWGRTTYModSettings(QString* json) {
|
||||
init();
|
||||
this->fromJson(*json);
|
||||
}
|
||||
|
||||
SWGRTTYModSettings::SWGRTTYModSettings() {
|
||||
input_frequency_offset = 0L;
|
||||
m_input_frequency_offset_isSet = false;
|
||||
baud = 0.0f;
|
||||
m_baud_isSet = false;
|
||||
rf_bandwidth = 0;
|
||||
m_rf_bandwidth_isSet = false;
|
||||
frequency_shift = 0;
|
||||
m_frequency_shift_isSet = false;
|
||||
gain = 0.0f;
|
||||
m_gain_isSet = false;
|
||||
channel_mute = 0;
|
||||
m_channel_mute_isSet = false;
|
||||
repeat = 0;
|
||||
m_repeat_isSet = false;
|
||||
repeat_count = 0;
|
||||
m_repeat_count_isSet = false;
|
||||
lpf_taps = 0;
|
||||
m_lpf_taps_isSet = false;
|
||||
bb_noise = 0;
|
||||
m_bb_noise_isSet = false;
|
||||
rf_noise = 0;
|
||||
m_rf_noise_isSet = false;
|
||||
data = nullptr;
|
||||
m_data_isSet = false;
|
||||
pulse_shaping = 0;
|
||||
m_pulse_shaping_isSet = false;
|
||||
beta = 0.0f;
|
||||
m_beta_isSet = false;
|
||||
symbol_span = 0;
|
||||
m_symbol_span_isSet = false;
|
||||
udp_enabled = 0;
|
||||
m_udp_enabled_isSet = false;
|
||||
udp_address = nullptr;
|
||||
m_udp_address_isSet = false;
|
||||
udp_port = 0;
|
||||
m_udp_port_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;
|
||||
channel_marker = nullptr;
|
||||
m_channel_marker_isSet = false;
|
||||
rollup_state = nullptr;
|
||||
m_rollup_state_isSet = false;
|
||||
}
|
||||
|
||||
SWGRTTYModSettings::~SWGRTTYModSettings() {
|
||||
this->cleanup();
|
||||
}
|
||||
|
||||
void
|
||||
SWGRTTYModSettings::init() {
|
||||
input_frequency_offset = 0L;
|
||||
m_input_frequency_offset_isSet = false;
|
||||
baud = 0.0f;
|
||||
m_baud_isSet = false;
|
||||
rf_bandwidth = 0;
|
||||
m_rf_bandwidth_isSet = false;
|
||||
frequency_shift = 0;
|
||||
m_frequency_shift_isSet = false;
|
||||
gain = 0.0f;
|
||||
m_gain_isSet = false;
|
||||
channel_mute = 0;
|
||||
m_channel_mute_isSet = false;
|
||||
repeat = 0;
|
||||
m_repeat_isSet = false;
|
||||
repeat_count = 0;
|
||||
m_repeat_count_isSet = false;
|
||||
lpf_taps = 0;
|
||||
m_lpf_taps_isSet = false;
|
||||
bb_noise = 0;
|
||||
m_bb_noise_isSet = false;
|
||||
rf_noise = 0;
|
||||
m_rf_noise_isSet = false;
|
||||
data = new QString("");
|
||||
m_data_isSet = false;
|
||||
pulse_shaping = 0;
|
||||
m_pulse_shaping_isSet = false;
|
||||
beta = 0.0f;
|
||||
m_beta_isSet = false;
|
||||
symbol_span = 0;
|
||||
m_symbol_span_isSet = false;
|
||||
udp_enabled = 0;
|
||||
m_udp_enabled_isSet = false;
|
||||
udp_address = new QString("");
|
||||
m_udp_address_isSet = false;
|
||||
udp_port = 0;
|
||||
m_udp_port_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;
|
||||
channel_marker = new SWGChannelMarker();
|
||||
m_channel_marker_isSet = false;
|
||||
rollup_state = new SWGRollupState();
|
||||
m_rollup_state_isSet = false;
|
||||
}
|
||||
|
||||
void
|
||||
SWGRTTYModSettings::cleanup() {
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
if(data != nullptr) {
|
||||
delete data;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
if(udp_address != nullptr) {
|
||||
delete udp_address;
|
||||
}
|
||||
|
||||
|
||||
if(title != nullptr) {
|
||||
delete title;
|
||||
}
|
||||
|
||||
|
||||
if(reverse_api_address != nullptr) {
|
||||
delete reverse_api_address;
|
||||
}
|
||||
|
||||
|
||||
|
||||
if(channel_marker != nullptr) {
|
||||
delete channel_marker;
|
||||
}
|
||||
if(rollup_state != nullptr) {
|
||||
delete rollup_state;
|
||||
}
|
||||
}
|
||||
|
||||
SWGRTTYModSettings*
|
||||
SWGRTTYModSettings::fromJson(QString &json) {
|
||||
QByteArray array (json.toStdString().c_str());
|
||||
QJsonDocument doc = QJsonDocument::fromJson(array);
|
||||
QJsonObject jsonObject = doc.object();
|
||||
this->fromJsonObject(jsonObject);
|
||||
return this;
|
||||
}
|
||||
|
||||
void
|
||||
SWGRTTYModSettings::fromJsonObject(QJsonObject &pJson) {
|
||||
::SWGSDRangel::setValue(&input_frequency_offset, pJson["inputFrequencyOffset"], "qint64", "");
|
||||
|
||||
::SWGSDRangel::setValue(&baud, pJson["baud"], "float", "");
|
||||
|
||||
::SWGSDRangel::setValue(&rf_bandwidth, pJson["rfBandwidth"], "qint32", "");
|
||||
|
||||
::SWGSDRangel::setValue(&frequency_shift, pJson["frequencyShift"], "qint32", "");
|
||||
|
||||
::SWGSDRangel::setValue(&gain, pJson["gain"], "float", "");
|
||||
|
||||
::SWGSDRangel::setValue(&channel_mute, pJson["channelMute"], "qint32", "");
|
||||
|
||||
::SWGSDRangel::setValue(&repeat, pJson["repeat"], "qint32", "");
|
||||
|
||||
::SWGSDRangel::setValue(&repeat_count, pJson["repeatCount"], "qint32", "");
|
||||
|
||||
::SWGSDRangel::setValue(&lpf_taps, pJson["lpfTaps"], "qint32", "");
|
||||
|
||||
::SWGSDRangel::setValue(&bb_noise, pJson["bbNoise"], "qint32", "");
|
||||
|
||||
::SWGSDRangel::setValue(&rf_noise, pJson["rfNoise"], "qint32", "");
|
||||
|
||||
::SWGSDRangel::setValue(&data, pJson["data"], "QString", "QString");
|
||||
|
||||
::SWGSDRangel::setValue(&pulse_shaping, pJson["pulseShaping"], "qint32", "");
|
||||
|
||||
::SWGSDRangel::setValue(&beta, pJson["beta"], "float", "");
|
||||
|
||||
::SWGSDRangel::setValue(&symbol_span, pJson["symbolSpan"], "qint32", "");
|
||||
|
||||
::SWGSDRangel::setValue(&udp_enabled, pJson["udpEnabled"], "qint32", "");
|
||||
|
||||
::SWGSDRangel::setValue(&udp_address, pJson["udpAddress"], "QString", "QString");
|
||||
|
||||
::SWGSDRangel::setValue(&udp_port, pJson["udpPort"], "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", "");
|
||||
|
||||
::SWGSDRangel::setValue(&channel_marker, pJson["channelMarker"], "SWGChannelMarker", "SWGChannelMarker");
|
||||
|
||||
::SWGSDRangel::setValue(&rollup_state, pJson["rollupState"], "SWGRollupState", "SWGRollupState");
|
||||
|
||||
}
|
||||
|
||||
QString
|
||||
SWGRTTYModSettings::asJson ()
|
||||
{
|
||||
QJsonObject* obj = this->asJsonObject();
|
||||
|
||||
QJsonDocument doc(*obj);
|
||||
QByteArray bytes = doc.toJson();
|
||||
delete obj;
|
||||
return QString(bytes);
|
||||
}
|
||||
|
||||
QJsonObject*
|
||||
SWGRTTYModSettings::asJsonObject() {
|
||||
QJsonObject* obj = new QJsonObject();
|
||||
if(m_input_frequency_offset_isSet){
|
||||
obj->insert("inputFrequencyOffset", QJsonValue(input_frequency_offset));
|
||||
}
|
||||
if(m_baud_isSet){
|
||||
obj->insert("baud", QJsonValue(baud));
|
||||
}
|
||||
if(m_rf_bandwidth_isSet){
|
||||
obj->insert("rfBandwidth", QJsonValue(rf_bandwidth));
|
||||
}
|
||||
if(m_frequency_shift_isSet){
|
||||
obj->insert("frequencyShift", QJsonValue(frequency_shift));
|
||||
}
|
||||
if(m_gain_isSet){
|
||||
obj->insert("gain", QJsonValue(gain));
|
||||
}
|
||||
if(m_channel_mute_isSet){
|
||||
obj->insert("channelMute", QJsonValue(channel_mute));
|
||||
}
|
||||
if(m_repeat_isSet){
|
||||
obj->insert("repeat", QJsonValue(repeat));
|
||||
}
|
||||
if(m_repeat_count_isSet){
|
||||
obj->insert("repeatCount", QJsonValue(repeat_count));
|
||||
}
|
||||
if(m_lpf_taps_isSet){
|
||||
obj->insert("lpfTaps", QJsonValue(lpf_taps));
|
||||
}
|
||||
if(m_bb_noise_isSet){
|
||||
obj->insert("bbNoise", QJsonValue(bb_noise));
|
||||
}
|
||||
if(m_rf_noise_isSet){
|
||||
obj->insert("rfNoise", QJsonValue(rf_noise));
|
||||
}
|
||||
if(data != nullptr && *data != QString("")){
|
||||
toJsonValue(QString("data"), data, obj, QString("QString"));
|
||||
}
|
||||
if(m_pulse_shaping_isSet){
|
||||
obj->insert("pulseShaping", QJsonValue(pulse_shaping));
|
||||
}
|
||||
if(m_beta_isSet){
|
||||
obj->insert("beta", QJsonValue(beta));
|
||||
}
|
||||
if(m_symbol_span_isSet){
|
||||
obj->insert("symbolSpan", QJsonValue(symbol_span));
|
||||
}
|
||||
if(m_udp_enabled_isSet){
|
||||
obj->insert("udpEnabled", QJsonValue(udp_enabled));
|
||||
}
|
||||
if(udp_address != nullptr && *udp_address != QString("")){
|
||||
toJsonValue(QString("udpAddress"), udp_address, obj, QString("QString"));
|
||||
}
|
||||
if(m_udp_port_isSet){
|
||||
obj->insert("udpPort", QJsonValue(udp_port));
|
||||
}
|
||||
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));
|
||||
}
|
||||
if((channel_marker != nullptr) && (channel_marker->isSet())){
|
||||
toJsonValue(QString("channelMarker"), channel_marker, obj, QString("SWGChannelMarker"));
|
||||
}
|
||||
if((rollup_state != nullptr) && (rollup_state->isSet())){
|
||||
toJsonValue(QString("rollupState"), rollup_state, obj, QString("SWGRollupState"));
|
||||
}
|
||||
|
||||
return obj;
|
||||
}
|
||||
|
||||
qint64
|
||||
SWGRTTYModSettings::getInputFrequencyOffset() {
|
||||
return input_frequency_offset;
|
||||
}
|
||||
void
|
||||
SWGRTTYModSettings::setInputFrequencyOffset(qint64 input_frequency_offset) {
|
||||
this->input_frequency_offset = input_frequency_offset;
|
||||
this->m_input_frequency_offset_isSet = true;
|
||||
}
|
||||
|
||||
float
|
||||
SWGRTTYModSettings::getBaud() {
|
||||
return baud;
|
||||
}
|
||||
void
|
||||
SWGRTTYModSettings::setBaud(float baud) {
|
||||
this->baud = baud;
|
||||
this->m_baud_isSet = true;
|
||||
}
|
||||
|
||||
qint32
|
||||
SWGRTTYModSettings::getRfBandwidth() {
|
||||
return rf_bandwidth;
|
||||
}
|
||||
void
|
||||
SWGRTTYModSettings::setRfBandwidth(qint32 rf_bandwidth) {
|
||||
this->rf_bandwidth = rf_bandwidth;
|
||||
this->m_rf_bandwidth_isSet = true;
|
||||
}
|
||||
|
||||
qint32
|
||||
SWGRTTYModSettings::getFrequencyShift() {
|
||||
return frequency_shift;
|
||||
}
|
||||
void
|
||||
SWGRTTYModSettings::setFrequencyShift(qint32 frequency_shift) {
|
||||
this->frequency_shift = frequency_shift;
|
||||
this->m_frequency_shift_isSet = true;
|
||||
}
|
||||
|
||||
float
|
||||
SWGRTTYModSettings::getGain() {
|
||||
return gain;
|
||||
}
|
||||
void
|
||||
SWGRTTYModSettings::setGain(float gain) {
|
||||
this->gain = gain;
|
||||
this->m_gain_isSet = true;
|
||||
}
|
||||
|
||||
qint32
|
||||
SWGRTTYModSettings::getChannelMute() {
|
||||
return channel_mute;
|
||||
}
|
||||
void
|
||||
SWGRTTYModSettings::setChannelMute(qint32 channel_mute) {
|
||||
this->channel_mute = channel_mute;
|
||||
this->m_channel_mute_isSet = true;
|
||||
}
|
||||
|
||||
qint32
|
||||
SWGRTTYModSettings::getRepeat() {
|
||||
return repeat;
|
||||
}
|
||||
void
|
||||
SWGRTTYModSettings::setRepeat(qint32 repeat) {
|
||||
this->repeat = repeat;
|
||||
this->m_repeat_isSet = true;
|
||||
}
|
||||
|
||||
qint32
|
||||
SWGRTTYModSettings::getRepeatCount() {
|
||||
return repeat_count;
|
||||
}
|
||||
void
|
||||
SWGRTTYModSettings::setRepeatCount(qint32 repeat_count) {
|
||||
this->repeat_count = repeat_count;
|
||||
this->m_repeat_count_isSet = true;
|
||||
}
|
||||
|
||||
qint32
|
||||
SWGRTTYModSettings::getLpfTaps() {
|
||||
return lpf_taps;
|
||||
}
|
||||
void
|
||||
SWGRTTYModSettings::setLpfTaps(qint32 lpf_taps) {
|
||||
this->lpf_taps = lpf_taps;
|
||||
this->m_lpf_taps_isSet = true;
|
||||
}
|
||||
|
||||
qint32
|
||||
SWGRTTYModSettings::getBbNoise() {
|
||||
return bb_noise;
|
||||
}
|
||||
void
|
||||
SWGRTTYModSettings::setBbNoise(qint32 bb_noise) {
|
||||
this->bb_noise = bb_noise;
|
||||
this->m_bb_noise_isSet = true;
|
||||
}
|
||||
|
||||
qint32
|
||||
SWGRTTYModSettings::getRfNoise() {
|
||||
return rf_noise;
|
||||
}
|
||||
void
|
||||
SWGRTTYModSettings::setRfNoise(qint32 rf_noise) {
|
||||
this->rf_noise = rf_noise;
|
||||
this->m_rf_noise_isSet = true;
|
||||
}
|
||||
|
||||
QString*
|
||||
SWGRTTYModSettings::getData() {
|
||||
return data;
|
||||
}
|
||||
void
|
||||
SWGRTTYModSettings::setData(QString* data) {
|
||||
this->data = data;
|
||||
this->m_data_isSet = true;
|
||||
}
|
||||
|
||||
qint32
|
||||
SWGRTTYModSettings::getPulseShaping() {
|
||||
return pulse_shaping;
|
||||
}
|
||||
void
|
||||
SWGRTTYModSettings::setPulseShaping(qint32 pulse_shaping) {
|
||||
this->pulse_shaping = pulse_shaping;
|
||||
this->m_pulse_shaping_isSet = true;
|
||||
}
|
||||
|
||||
float
|
||||
SWGRTTYModSettings::getBeta() {
|
||||
return beta;
|
||||
}
|
||||
void
|
||||
SWGRTTYModSettings::setBeta(float beta) {
|
||||
this->beta = beta;
|
||||
this->m_beta_isSet = true;
|
||||
}
|
||||
|
||||
qint32
|
||||
SWGRTTYModSettings::getSymbolSpan() {
|
||||
return symbol_span;
|
||||
}
|
||||
void
|
||||
SWGRTTYModSettings::setSymbolSpan(qint32 symbol_span) {
|
||||
this->symbol_span = symbol_span;
|
||||
this->m_symbol_span_isSet = true;
|
||||
}
|
||||
|
||||
qint32
|
||||
SWGRTTYModSettings::getUdpEnabled() {
|
||||
return udp_enabled;
|
||||
}
|
||||
void
|
||||
SWGRTTYModSettings::setUdpEnabled(qint32 udp_enabled) {
|
||||
this->udp_enabled = udp_enabled;
|
||||
this->m_udp_enabled_isSet = true;
|
||||
}
|
||||
|
||||
QString*
|
||||
SWGRTTYModSettings::getUdpAddress() {
|
||||
return udp_address;
|
||||
}
|
||||
void
|
||||
SWGRTTYModSettings::setUdpAddress(QString* udp_address) {
|
||||
this->udp_address = udp_address;
|
||||
this->m_udp_address_isSet = true;
|
||||
}
|
||||
|
||||
qint32
|
||||
SWGRTTYModSettings::getUdpPort() {
|
||||
return udp_port;
|
||||
}
|
||||
void
|
||||
SWGRTTYModSettings::setUdpPort(qint32 udp_port) {
|
||||
this->udp_port = udp_port;
|
||||
this->m_udp_port_isSet = true;
|
||||
}
|
||||
|
||||
qint32
|
||||
SWGRTTYModSettings::getRgbColor() {
|
||||
return rgb_color;
|
||||
}
|
||||
void
|
||||
SWGRTTYModSettings::setRgbColor(qint32 rgb_color) {
|
||||
this->rgb_color = rgb_color;
|
||||
this->m_rgb_color_isSet = true;
|
||||
}
|
||||
|
||||
QString*
|
||||
SWGRTTYModSettings::getTitle() {
|
||||
return title;
|
||||
}
|
||||
void
|
||||
SWGRTTYModSettings::setTitle(QString* title) {
|
||||
this->title = title;
|
||||
this->m_title_isSet = true;
|
||||
}
|
||||
|
||||
qint32
|
||||
SWGRTTYModSettings::getStreamIndex() {
|
||||
return stream_index;
|
||||
}
|
||||
void
|
||||
SWGRTTYModSettings::setStreamIndex(qint32 stream_index) {
|
||||
this->stream_index = stream_index;
|
||||
this->m_stream_index_isSet = true;
|
||||
}
|
||||
|
||||
qint32
|
||||
SWGRTTYModSettings::getUseReverseApi() {
|
||||
return use_reverse_api;
|
||||
}
|
||||
void
|
||||
SWGRTTYModSettings::setUseReverseApi(qint32 use_reverse_api) {
|
||||
this->use_reverse_api = use_reverse_api;
|
||||
this->m_use_reverse_api_isSet = true;
|
||||
}
|
||||
|
||||
QString*
|
||||
SWGRTTYModSettings::getReverseApiAddress() {
|
||||
return reverse_api_address;
|
||||
}
|
||||
void
|
||||
SWGRTTYModSettings::setReverseApiAddress(QString* reverse_api_address) {
|
||||
this->reverse_api_address = reverse_api_address;
|
||||
this->m_reverse_api_address_isSet = true;
|
||||
}
|
||||
|
||||
qint32
|
||||
SWGRTTYModSettings::getReverseApiPort() {
|
||||
return reverse_api_port;
|
||||
}
|
||||
void
|
||||
SWGRTTYModSettings::setReverseApiPort(qint32 reverse_api_port) {
|
||||
this->reverse_api_port = reverse_api_port;
|
||||
this->m_reverse_api_port_isSet = true;
|
||||
}
|
||||
|
||||
qint32
|
||||
SWGRTTYModSettings::getReverseApiDeviceIndex() {
|
||||
return reverse_api_device_index;
|
||||
}
|
||||
void
|
||||
SWGRTTYModSettings::setReverseApiDeviceIndex(qint32 reverse_api_device_index) {
|
||||
this->reverse_api_device_index = reverse_api_device_index;
|
||||
this->m_reverse_api_device_index_isSet = true;
|
||||
}
|
||||
|
||||
qint32
|
||||
SWGRTTYModSettings::getReverseApiChannelIndex() {
|
||||
return reverse_api_channel_index;
|
||||
}
|
||||
void
|
||||
SWGRTTYModSettings::setReverseApiChannelIndex(qint32 reverse_api_channel_index) {
|
||||
this->reverse_api_channel_index = reverse_api_channel_index;
|
||||
this->m_reverse_api_channel_index_isSet = true;
|
||||
}
|
||||
|
||||
SWGChannelMarker*
|
||||
SWGRTTYModSettings::getChannelMarker() {
|
||||
return channel_marker;
|
||||
}
|
||||
void
|
||||
SWGRTTYModSettings::setChannelMarker(SWGChannelMarker* channel_marker) {
|
||||
this->channel_marker = channel_marker;
|
||||
this->m_channel_marker_isSet = true;
|
||||
}
|
||||
|
||||
SWGRollupState*
|
||||
SWGRTTYModSettings::getRollupState() {
|
||||
return rollup_state;
|
||||
}
|
||||
void
|
||||
SWGRTTYModSettings::setRollupState(SWGRollupState* rollup_state) {
|
||||
this->rollup_state = rollup_state;
|
||||
this->m_rollup_state_isSet = true;
|
||||
}
|
||||
|
||||
|
||||
bool
|
||||
SWGRTTYModSettings::isSet(){
|
||||
bool isObjectUpdated = false;
|
||||
do{
|
||||
if(m_input_frequency_offset_isSet){
|
||||
isObjectUpdated = true; break;
|
||||
}
|
||||
if(m_baud_isSet){
|
||||
isObjectUpdated = true; break;
|
||||
}
|
||||
if(m_rf_bandwidth_isSet){
|
||||
isObjectUpdated = true; break;
|
||||
}
|
||||
if(m_frequency_shift_isSet){
|
||||
isObjectUpdated = true; break;
|
||||
}
|
||||
if(m_gain_isSet){
|
||||
isObjectUpdated = true; break;
|
||||
}
|
||||
if(m_channel_mute_isSet){
|
||||
isObjectUpdated = true; break;
|
||||
}
|
||||
if(m_repeat_isSet){
|
||||
isObjectUpdated = true; break;
|
||||
}
|
||||
if(m_repeat_count_isSet){
|
||||
isObjectUpdated = true; break;
|
||||
}
|
||||
if(m_lpf_taps_isSet){
|
||||
isObjectUpdated = true; break;
|
||||
}
|
||||
if(m_bb_noise_isSet){
|
||||
isObjectUpdated = true; break;
|
||||
}
|
||||
if(m_rf_noise_isSet){
|
||||
isObjectUpdated = true; break;
|
||||
}
|
||||
if(data && *data != QString("")){
|
||||
isObjectUpdated = true; break;
|
||||
}
|
||||
if(m_pulse_shaping_isSet){
|
||||
isObjectUpdated = true; break;
|
||||
}
|
||||
if(m_beta_isSet){
|
||||
isObjectUpdated = true; break;
|
||||
}
|
||||
if(m_symbol_span_isSet){
|
||||
isObjectUpdated = true; break;
|
||||
}
|
||||
if(m_udp_enabled_isSet){
|
||||
isObjectUpdated = true; break;
|
||||
}
|
||||
if(udp_address && *udp_address != QString("")){
|
||||
isObjectUpdated = true; break;
|
||||
}
|
||||
if(m_udp_port_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;
|
||||
}
|
||||
if(channel_marker && channel_marker->isSet()){
|
||||
isObjectUpdated = true; break;
|
||||
}
|
||||
if(rollup_state && rollup_state->isSet()){
|
||||
isObjectUpdated = true; break;
|
||||
}
|
||||
}while(false);
|
||||
return isObjectUpdated;
|
||||
}
|
||||
}
|
||||
|
223
swagger/sdrangel/code/qt5/client/SWGRTTYModSettings.h
Normal file
223
swagger/sdrangel/code/qt5/client/SWGRTTYModSettings.h
Normal file
@ -0,0 +1,223 @@
|
||||
/**
|
||||
* SDRangel
|
||||
* This is the web REST/JSON API of SDRangel SDR software. SDRangel is an Open Source Qt5/OpenGL 3.0+ (4.3+ in Windows) GUI and server Software Defined Radio and signal analyzer in software. It supports Airspy, BladeRF, HackRF, LimeSDR, PlutoSDR, RTL-SDR, SDRplay RSP1 and FunCube --- Limitations and specifcities: * In SDRangel GUI the first Rx device set cannot be deleted. Conversely the server starts with no device sets and its number of device sets can be reduced to zero by as many calls as necessary to /sdrangel/deviceset with DELETE method. * Preset import and export from/to file is a server only feature. * Device set focus is a GUI only feature. * The following channels are not implemented (status 501 is returned): ATV and DATV demodulators, Channel Analyzer NG, LoRa demodulator * The device settings and report structures contains only the sub-structure corresponding to the device type. The DeviceSettings and DeviceReport structures documented here shows all of them but only one will be or should be present at a time * The channel settings and report structures contains only the sub-structure corresponding to the channel type. The ChannelSettings and ChannelReport structures documented here shows all of them but only one will be or should be present at a time ---
|
||||
*
|
||||
* OpenAPI spec version: 7.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.
|
||||
*/
|
||||
|
||||
/*
|
||||
* SWGRTTYModSettings.h
|
||||
*
|
||||
* RTTYMod
|
||||
*/
|
||||
|
||||
#ifndef SWGRTTYModSettings_H_
|
||||
#define SWGRTTYModSettings_H_
|
||||
|
||||
#include <QJsonObject>
|
||||
|
||||
|
||||
#include "SWGChannelMarker.h"
|
||||
#include "SWGRollupState.h"
|
||||
#include <QString>
|
||||
|
||||
#include "SWGObject.h"
|
||||
#include "export.h"
|
||||
|
||||
namespace SWGSDRangel {
|
||||
|
||||
class SWG_API SWGRTTYModSettings: public SWGObject {
|
||||
public:
|
||||
SWGRTTYModSettings();
|
||||
SWGRTTYModSettings(QString* json);
|
||||
virtual ~SWGRTTYModSettings();
|
||||
void init();
|
||||
void cleanup();
|
||||
|
||||
virtual QString asJson () override;
|
||||
virtual QJsonObject* asJsonObject() override;
|
||||
virtual void fromJsonObject(QJsonObject &json) override;
|
||||
virtual SWGRTTYModSettings* fromJson(QString &jsonString) override;
|
||||
|
||||
qint64 getInputFrequencyOffset();
|
||||
void setInputFrequencyOffset(qint64 input_frequency_offset);
|
||||
|
||||
float getBaud();
|
||||
void setBaud(float baud);
|
||||
|
||||
qint32 getRfBandwidth();
|
||||
void setRfBandwidth(qint32 rf_bandwidth);
|
||||
|
||||
qint32 getFrequencyShift();
|
||||
void setFrequencyShift(qint32 frequency_shift);
|
||||
|
||||
float getGain();
|
||||
void setGain(float gain);
|
||||
|
||||
qint32 getChannelMute();
|
||||
void setChannelMute(qint32 channel_mute);
|
||||
|
||||
qint32 getRepeat();
|
||||
void setRepeat(qint32 repeat);
|
||||
|
||||
qint32 getRepeatCount();
|
||||
void setRepeatCount(qint32 repeat_count);
|
||||
|
||||
qint32 getLpfTaps();
|
||||
void setLpfTaps(qint32 lpf_taps);
|
||||
|
||||
qint32 getBbNoise();
|
||||
void setBbNoise(qint32 bb_noise);
|
||||
|
||||
qint32 getRfNoise();
|
||||
void setRfNoise(qint32 rf_noise);
|
||||
|
||||
QString* getData();
|
||||
void setData(QString* data);
|
||||
|
||||
qint32 getPulseShaping();
|
||||
void setPulseShaping(qint32 pulse_shaping);
|
||||
|
||||
float getBeta();
|
||||
void setBeta(float beta);
|
||||
|
||||
qint32 getSymbolSpan();
|
||||
void setSymbolSpan(qint32 symbol_span);
|
||||
|
||||
qint32 getUdpEnabled();
|
||||
void setUdpEnabled(qint32 udp_enabled);
|
||||
|
||||
QString* getUdpAddress();
|
||||
void setUdpAddress(QString* udp_address);
|
||||
|
||||
qint32 getUdpPort();
|
||||
void setUdpPort(qint32 udp_port);
|
||||
|
||||
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);
|
||||
|
||||
SWGChannelMarker* getChannelMarker();
|
||||
void setChannelMarker(SWGChannelMarker* channel_marker);
|
||||
|
||||
SWGRollupState* getRollupState();
|
||||
void setRollupState(SWGRollupState* rollup_state);
|
||||
|
||||
|
||||
virtual bool isSet() override;
|
||||
|
||||
private:
|
||||
qint64 input_frequency_offset;
|
||||
bool m_input_frequency_offset_isSet;
|
||||
|
||||
float baud;
|
||||
bool m_baud_isSet;
|
||||
|
||||
qint32 rf_bandwidth;
|
||||
bool m_rf_bandwidth_isSet;
|
||||
|
||||
qint32 frequency_shift;
|
||||
bool m_frequency_shift_isSet;
|
||||
|
||||
float gain;
|
||||
bool m_gain_isSet;
|
||||
|
||||
qint32 channel_mute;
|
||||
bool m_channel_mute_isSet;
|
||||
|
||||
qint32 repeat;
|
||||
bool m_repeat_isSet;
|
||||
|
||||
qint32 repeat_count;
|
||||
bool m_repeat_count_isSet;
|
||||
|
||||
qint32 lpf_taps;
|
||||
bool m_lpf_taps_isSet;
|
||||
|
||||
qint32 bb_noise;
|
||||
bool m_bb_noise_isSet;
|
||||
|
||||
qint32 rf_noise;
|
||||
bool m_rf_noise_isSet;
|
||||
|
||||
QString* data;
|
||||
bool m_data_isSet;
|
||||
|
||||
qint32 pulse_shaping;
|
||||
bool m_pulse_shaping_isSet;
|
||||
|
||||
float beta;
|
||||
bool m_beta_isSet;
|
||||
|
||||
qint32 symbol_span;
|
||||
bool m_symbol_span_isSet;
|
||||
|
||||
qint32 udp_enabled;
|
||||
bool m_udp_enabled_isSet;
|
||||
|
||||
QString* udp_address;
|
||||
bool m_udp_address_isSet;
|
||||
|
||||
qint32 udp_port;
|
||||
bool m_udp_port_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;
|
||||
|
||||
SWGChannelMarker* channel_marker;
|
||||
bool m_channel_marker_isSet;
|
||||
|
||||
SWGRollupState* rollup_state;
|
||||
bool m_rollup_state_isSet;
|
||||
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
#endif /* SWGRTTYModSettings_H_ */
|
Loading…
Reference in New Issue
Block a user