From 9360c4de0b449ba20e2bc7e0a6341563af4dea27 Mon Sep 17 00:00:00 2001 From: f4exb Date: Sun, 27 May 2018 11:57:23 +0200 Subject: [PATCH] SDRPlay input: implemeted WEB API (1) --- plugins/samplesource/sdrplay/sdrplaygui.cpp | 213 --------- plugins/samplesource/sdrplay/sdrplaygui.h | 46 -- plugins/samplesource/sdrplay/sdrplayinput.cpp | 263 +++++++++++ plugins/samplesource/sdrplay/sdrplayinput.h | 61 +++ .../samplesource/sdrplay/sdrplayplugin.cpp | 2 +- sdrbase/resources/webapi/doc/html2/index.html | 123 ++++- .../webapi/doc/swagger/include/SDRPlay.yaml | 77 ++++ .../resources/webapi/doc/swagger/swagger.yaml | 7 +- .../sdrangel/api/swagger/include/SDRPlay.yaml | 77 ++++ swagger/sdrangel/api/swagger/swagger.yaml | 9 +- swagger/sdrangel/code/html2/index.html | 123 ++++- .../code/qt5/client/SWGDeviceReport.cpp | 23 + .../code/qt5/client/SWGDeviceReport.h | 7 + .../code/qt5/client/SWGDeviceSettings.cpp | 23 + .../code/qt5/client/SWGDeviceSettings.h | 7 + .../code/qt5/client/SWGModelFactory.h | 20 + .../code/qt5/client/SWGSDRPlayReport.cpp | 193 ++++++++ .../code/qt5/client/SWGSDRPlayReport.h | 81 ++++ .../client/SWGSDRPlayReport_bandwidths.cpp | 106 +++++ .../qt5/client/SWGSDRPlayReport_bandwidths.h | 58 +++ .../SWGSDRPlayReport_frequencyBands.cpp | 150 +++++++ .../client/SWGSDRPlayReport_frequencyBands.h | 71 +++ ...GSDRPlayReport_intermediateFrequencies.cpp | 106 +++++ ...SWGSDRPlayReport_intermediateFrequencies.h | 58 +++ .../code/qt5/client/SWGSDRPlaySettings.cpp | 423 ++++++++++++++++++ .../code/qt5/client/SWGSDRPlaySettings.h | 149 ++++++ 26 files changed, 2211 insertions(+), 265 deletions(-) create mode 100644 sdrbase/resources/webapi/doc/swagger/include/SDRPlay.yaml create mode 100644 swagger/sdrangel/api/swagger/include/SDRPlay.yaml create mode 100644 swagger/sdrangel/code/qt5/client/SWGSDRPlayReport.cpp create mode 100644 swagger/sdrangel/code/qt5/client/SWGSDRPlayReport.h create mode 100644 swagger/sdrangel/code/qt5/client/SWGSDRPlayReport_bandwidths.cpp create mode 100644 swagger/sdrangel/code/qt5/client/SWGSDRPlayReport_bandwidths.h create mode 100644 swagger/sdrangel/code/qt5/client/SWGSDRPlayReport_frequencyBands.cpp create mode 100644 swagger/sdrangel/code/qt5/client/SWGSDRPlayReport_frequencyBands.h create mode 100644 swagger/sdrangel/code/qt5/client/SWGSDRPlayReport_intermediateFrequencies.cpp create mode 100644 swagger/sdrangel/code/qt5/client/SWGSDRPlayReport_intermediateFrequencies.h create mode 100644 swagger/sdrangel/code/qt5/client/SWGSDRPlaySettings.cpp create mode 100644 swagger/sdrangel/code/qt5/client/SWGSDRPlaySettings.h diff --git a/plugins/samplesource/sdrplay/sdrplaygui.cpp b/plugins/samplesource/sdrplay/sdrplaygui.cpp index b7fa82e93..34e4a3d13 100644 --- a/plugins/samplesource/sdrplay/sdrplaygui.cpp +++ b/plugins/samplesource/sdrplay/sdrplaygui.cpp @@ -472,216 +472,3 @@ void SDRPlayGui::on_record_toggled(bool checked) m_sampleSource->getInputMessageQueue()->push(message); } -// ==================================================================== - -unsigned int SDRPlaySampleRates::m_rates[m_nb_rates] = { - 1536000, // 0 - 1792000, // 1 - 2000000, // 2 - 2048000, // 3 - 2304000, // 4 - 2400000, // 5 - 3072000, // 6 - 3200000, // 7 - 4000000, // 8 - 4096000, // 9 - 4608000, // 10 - 4800000, // 11 - 5000000, // 12 - 6000000, // 13 - 6144000, // 14 - 6400000, // 15 - 8000000, // 16 - 8192000, // 17 -}; - -unsigned int SDRPlaySampleRates::getRate(unsigned int rate_index) -{ - if (rate_index < m_nb_rates) - { - return m_rates[rate_index]; - } - else - { - return m_rates[0]; - } -} - -unsigned int SDRPlaySampleRates::getRateIndex(unsigned int rate) -{ - for (unsigned int i=0; i < m_nb_rates; i++) - { - if (rate == m_rates[i]) - { - return i; - } - } - - return 0; -} - -unsigned int SDRPlaySampleRates::getNbRates() -{ - return SDRPlaySampleRates::m_nb_rates; -} - -// ==================================================================== - -unsigned int SDRPlayBandwidths::m_bw[m_nb_bw] = { - 200000, // 0 - 300000, // 1 - 600000, // 2 - 1536000, // 3 - 5000000, // 4 - 6000000, // 5 - 7000000, // 6 - 8000000, // 7 -}; - -unsigned int SDRPlayBandwidths::getBandwidth(unsigned int bandwidth_index) -{ - if (bandwidth_index < m_nb_bw) - { - return m_bw[bandwidth_index]; - } - else - { - return m_bw[0]; - } -} - -unsigned int SDRPlayBandwidths::getBandwidthIndex(unsigned int bandwidth) -{ - for (unsigned int i=0; i < m_nb_bw; i++) - { - if (bandwidth == m_bw[i]) - { - return i; - } - } - - return 0; -} - -unsigned int SDRPlayBandwidths::getNbBandwidths() -{ - return SDRPlayBandwidths::m_nb_bw; -} - -// ==================================================================== - -unsigned int SDRPlayIF::m_if[m_nb_if] = { - 0, // 0 - 450000, // 1 - 1620000, // 2 - 2048000, // 3 -}; - -unsigned int SDRPlayIF::getIF(unsigned int if_index) -{ - if (if_index < m_nb_if) - { - return m_if[if_index]; - } - else - { - return m_if[0]; - } -} - -unsigned int SDRPlayIF::getIFIndex(unsigned int iff) -{ - for (unsigned int i=0; i < m_nb_if; i++) - { - if (iff == m_if[i]) - { - return i; - } - } - - return 0; -} - -unsigned int SDRPlayIF::getNbIFs() -{ - return SDRPlayIF::m_nb_if; -} - -// ==================================================================== - -/** Lower frequency bound in kHz inclusive */ -unsigned int SDRPlayBands::m_bandLow[m_nb_bands] = { - 10, // 0 - 12000, // 1 - 30000, // 2 - 50000, // 3 - 120000, // 4 - 250000, // 5 - 380000, // 6 - 1000000, // 7 -}; - -/** Lower frequency bound in kHz exclusive */ -unsigned int SDRPlayBands::m_bandHigh[m_nb_bands] = { - 12000, // 0 - 30000, // 1 - 50000, // 2 - 120000, // 3 - 250000, // 4 - 380000, // 5 - 1000000, // 6 - 2000000, // 7 -}; - -const char* SDRPlayBands::m_bandName[m_nb_bands] = { - "10k-12M", // 0 - "12-30M", // 1 - "30-50M", // 2 - "50-120M", // 3 - "120-250M", // 4 - "250-380M", // 5 - "380M-1G", // 6 - "1-2G", // 7 -}; - -QString SDRPlayBands::getBandName(unsigned int band_index) -{ - if (band_index < m_nb_bands) - { - return QString(m_bandName[band_index]); - } - else - { - return QString(m_bandName[0]); - } -} - -unsigned int SDRPlayBands::getBandLow(unsigned int band_index) -{ - if (band_index < m_nb_bands) - { - return m_bandLow[band_index]; - } - else - { - return m_bandLow[0]; - } -} - -unsigned int SDRPlayBands::getBandHigh(unsigned int band_index) -{ - if (band_index < m_nb_bands) - { - return m_bandHigh[band_index]; - } - else - { - return m_bandHigh[0]; - } -} - - -unsigned int SDRPlayBands::getNbBands() -{ - return SDRPlayBands::m_nb_bands; -} diff --git a/plugins/samplesource/sdrplay/sdrplaygui.h b/plugins/samplesource/sdrplay/sdrplaygui.h index cab175969..12616b2c1 100644 --- a/plugins/samplesource/sdrplay/sdrplaygui.h +++ b/plugins/samplesource/sdrplay/sdrplaygui.h @@ -97,50 +97,4 @@ private slots: void on_record_toggled(bool checked); }; - -// ==================================================================== - -class SDRPlaySampleRates { -public: - static unsigned int getRate(unsigned int rate_index); - static unsigned int getRateIndex(unsigned int rate); - static unsigned int getNbRates(); -private: - static const unsigned int m_nb_rates = 18; - static unsigned int m_rates[m_nb_rates]; -}; - -class SDRPlayBandwidths { -public: - static unsigned int getBandwidth(unsigned int bandwidth_index); - static unsigned int getBandwidthIndex(unsigned int bandwidth); - static unsigned int getNbBandwidths(); -private: - static const unsigned int m_nb_bw = 8; - static unsigned int m_bw[m_nb_bw]; -}; - -class SDRPlayIF { -public: - static unsigned int getIF(unsigned int if_index); - static unsigned int getIFIndex(unsigned int iff); - static unsigned int getNbIFs(); -private: - static const unsigned int m_nb_if = 4; - static unsigned int m_if[m_nb_if]; -}; - -class SDRPlayBands { -public: - static QString getBandName(unsigned int band_index); - static unsigned int getBandLow(unsigned int band_index); - static unsigned int getBandHigh(unsigned int band_index); - static unsigned int getNbBands(); -private: - static const unsigned int m_nb_bands = 8; - static unsigned int m_bandLow[m_nb_bands]; - static unsigned int m_bandHigh[m_nb_bands]; - static const char* m_bandName[m_nb_bands]; -}; - #endif /* PLUGINS_SAMPLESOURCE_SDRPLAY_SDRPLAYGUI_H_ */ diff --git a/plugins/samplesource/sdrplay/sdrplayinput.cpp b/plugins/samplesource/sdrplay/sdrplayinput.cpp index a87b35e36..98c846291 100644 --- a/plugins/samplesource/sdrplay/sdrplayinput.cpp +++ b/plugins/samplesource/sdrplay/sdrplayinput.cpp @@ -20,6 +20,8 @@ #include "SWGDeviceSettings.h" #include "SWGDeviceState.h" +#include "SWGDeviceReport.h" +#include "SWGSDRPlayReport.h" #include "util/simpleserializer.h" #include "dsp/dspcommands.h" @@ -648,3 +650,264 @@ int SDRPlayInput::webapiRun( return 200; } +int SDRPlayInput::webapiReportGet( + SWGSDRangel::SWGDeviceReport& response, + QString& errorMessage __attribute__((unused))) +{ + response.setSdrPlayReport(new SWGSDRangel::SWGSDRPlayReport()); + response.getSdrPlayReport()->init(); + webapiFormatDeviceReport(response); + return 200; +} + +void SDRPlayInput::webapiFormatDeviceReport(SWGSDRangel::SWGDeviceReport& response) +{ + response.getSdrPlayReport()->setSampleRates(new QList); + + for (unsigned int i = 0; i < SDRPlaySampleRates::getNbRates(); i++) + { + response.getSdrPlayReport()->getSampleRates()->append(new SWGSDRangel::SWGAirspyReport_sampleRates); + response.getSdrPlayReport()->getSampleRates()->back()->setSampleRate(SDRPlaySampleRates::getRate(i)); + } + + response.getSdrPlayReport()->setIntermediateFrequencies(new QList); + + for (unsigned int i = 0; i < SDRPlayIF::getNbIFs(); i++) + { + response.getSdrPlayReport()->getIntermediateFrequencies()->append(new SWGSDRangel::SWGSDRPlayReport_intermediateFrequencies); + response.getSdrPlayReport()->getIntermediateFrequencies()->back()->setIntermediateFrequency(SDRPlayIF::getIF(i)); + } + + response.getSdrPlayReport()->setBandwidths(new QList); + + for (unsigned int i = 0; i < SDRPlayBandwidths::getNbBandwidths(); i++) + { + response.getSdrPlayReport()->getBandwidths()->append(new SWGSDRangel::SWGSDRPlayReport_bandwidths); + response.getSdrPlayReport()->getBandwidths()->back()->setBandwidth(SDRPlayBandwidths::getBandwidth(i)); + } + + response.getSdrPlayReport()->setFrequencyBands(new QList); + + for (unsigned int i = 0; i < SDRPlayBands::getNbBands(); i++) + { + response.getSdrPlayReport()->getFrequencyBands()->append(new SWGSDRangel::SWGSDRPlayReport_frequencyBands); + response.getSdrPlayReport()->getFrequencyBands()->back()->setBandName(new QString(SDRPlayBands::getBandName(i))); + response.getSdrPlayReport()->getFrequencyBands()->back()->setBandLow(SDRPlayBands::getBandLow(i)); + response.getSdrPlayReport()->getFrequencyBands()->back()->setBandHigh(SDRPlayBands::getBandHigh(i)); + } +} + +// ==================================================================== + +unsigned int SDRPlaySampleRates::m_rates[m_nb_rates] = { + 1536000, // 0 + 1792000, // 1 + 2000000, // 2 + 2048000, // 3 + 2304000, // 4 + 2400000, // 5 + 3072000, // 6 + 3200000, // 7 + 4000000, // 8 + 4096000, // 9 + 4608000, // 10 + 4800000, // 11 + 5000000, // 12 + 6000000, // 13 + 6144000, // 14 + 6400000, // 15 + 8000000, // 16 + 8192000, // 17 +}; + +unsigned int SDRPlaySampleRates::getRate(unsigned int rate_index) +{ + if (rate_index < m_nb_rates) + { + return m_rates[rate_index]; + } + else + { + return m_rates[0]; + } +} + +unsigned int SDRPlaySampleRates::getRateIndex(unsigned int rate) +{ + for (unsigned int i=0; i < m_nb_rates; i++) + { + if (rate == m_rates[i]) + { + return i; + } + } + + return 0; +} + +unsigned int SDRPlaySampleRates::getNbRates() +{ + return SDRPlaySampleRates::m_nb_rates; +} + +// ==================================================================== + +unsigned int SDRPlayBandwidths::m_bw[m_nb_bw] = { + 200000, // 0 + 300000, // 1 + 600000, // 2 + 1536000, // 3 + 5000000, // 4 + 6000000, // 5 + 7000000, // 6 + 8000000, // 7 +}; + +unsigned int SDRPlayBandwidths::getBandwidth(unsigned int bandwidth_index) +{ + if (bandwidth_index < m_nb_bw) + { + return m_bw[bandwidth_index]; + } + else + { + return m_bw[0]; + } +} + +unsigned int SDRPlayBandwidths::getBandwidthIndex(unsigned int bandwidth) +{ + for (unsigned int i=0; i < m_nb_bw; i++) + { + if (bandwidth == m_bw[i]) + { + return i; + } + } + + return 0; +} + +unsigned int SDRPlayBandwidths::getNbBandwidths() +{ + return SDRPlayBandwidths::m_nb_bw; +} + +// ==================================================================== + +unsigned int SDRPlayIF::m_if[m_nb_if] = { + 0, // 0 + 450000, // 1 + 1620000, // 2 + 2048000, // 3 +}; + +unsigned int SDRPlayIF::getIF(unsigned int if_index) +{ + if (if_index < m_nb_if) + { + return m_if[if_index]; + } + else + { + return m_if[0]; + } +} + +unsigned int SDRPlayIF::getIFIndex(unsigned int iff) +{ + for (unsigned int i=0; i < m_nb_if; i++) + { + if (iff == m_if[i]) + { + return i; + } + } + + return 0; +} + +unsigned int SDRPlayIF::getNbIFs() +{ + return SDRPlayIF::m_nb_if; +} + +// ==================================================================== + +/** Lower frequency bound in kHz inclusive */ +unsigned int SDRPlayBands::m_bandLow[m_nb_bands] = { + 10, // 0 + 12000, // 1 + 30000, // 2 + 50000, // 3 + 120000, // 4 + 250000, // 5 + 380000, // 6 + 1000000, // 7 +}; + +/** Lower frequency bound in kHz exclusive */ +unsigned int SDRPlayBands::m_bandHigh[m_nb_bands] = { + 12000, // 0 + 30000, // 1 + 50000, // 2 + 120000, // 3 + 250000, // 4 + 380000, // 5 + 1000000, // 6 + 2000000, // 7 +}; + +const char* SDRPlayBands::m_bandName[m_nb_bands] = { + "10k-12M", // 0 + "12-30M", // 1 + "30-50M", // 2 + "50-120M", // 3 + "120-250M", // 4 + "250-380M", // 5 + "380M-1G", // 6 + "1-2G", // 7 +}; + +QString SDRPlayBands::getBandName(unsigned int band_index) +{ + if (band_index < m_nb_bands) + { + return QString(m_bandName[band_index]); + } + else + { + return QString(m_bandName[0]); + } +} + +unsigned int SDRPlayBands::getBandLow(unsigned int band_index) +{ + if (band_index < m_nb_bands) + { + return m_bandLow[band_index]; + } + else + { + return m_bandLow[0]; + } +} + +unsigned int SDRPlayBands::getBandHigh(unsigned int band_index) +{ + if (band_index < m_nb_bands) + { + return m_bandHigh[band_index]; + } + else + { + return m_bandHigh[0]; + } +} + + +unsigned int SDRPlayBands::getNbBands() +{ + return SDRPlayBands::m_nb_bands; +} + diff --git a/plugins/samplesource/sdrplay/sdrplayinput.h b/plugins/samplesource/sdrplay/sdrplayinput.h index 3ee347188..3d5b52d6a 100644 --- a/plugins/samplesource/sdrplay/sdrplayinput.h +++ b/plugins/samplesource/sdrplay/sdrplayinput.h @@ -148,6 +148,20 @@ public: virtual bool handleMessage(const Message& message); + virtual int webapiSettingsGet( + SWGSDRangel::SWGDeviceSettings& response, + QString& errorMessage); + + virtual int webapiSettingsPutPatch( + bool force, + const QStringList& deviceSettingsKeys, + SWGSDRangel::SWGDeviceSettings& response, // query + response + QString& errorMessage); + + virtual int webapiReportGet( + SWGSDRangel::SWGDeviceReport& response, + QString& errorMessage); + virtual int webapiRunGet( SWGSDRangel::SWGDeviceState& response, QString& errorMessage); @@ -164,6 +178,8 @@ private: void closeDevice(); bool applySettings(const SDRPlaySettings& settings, bool forwardChange, bool force); bool setDeviceCenterFrequency(quint64 freq); + void webapiFormatDeviceSettings(SWGSDRangel::SWGDeviceSettings& response, const SDRPlaySettings& settings); + void webapiFormatDeviceReport(SWGSDRangel::SWGDeviceReport& response); DeviceSourceAPI *m_deviceAPI; QMutex m_mutex; @@ -177,4 +193,49 @@ private: FileRecord *m_fileSink; //!< File sink to record device I/Q output }; +// ==================================================================== + +class SDRPlaySampleRates { +public: + static unsigned int getRate(unsigned int rate_index); + static unsigned int getRateIndex(unsigned int rate); + static unsigned int getNbRates(); +private: + static const unsigned int m_nb_rates = 18; + static unsigned int m_rates[m_nb_rates]; +}; + +class SDRPlayBandwidths { +public: + static unsigned int getBandwidth(unsigned int bandwidth_index); + static unsigned int getBandwidthIndex(unsigned int bandwidth); + static unsigned int getNbBandwidths(); +private: + static const unsigned int m_nb_bw = 8; + static unsigned int m_bw[m_nb_bw]; +}; + +class SDRPlayIF { +public: + static unsigned int getIF(unsigned int if_index); + static unsigned int getIFIndex(unsigned int iff); + static unsigned int getNbIFs(); +private: + static const unsigned int m_nb_if = 4; + static unsigned int m_if[m_nb_if]; +}; + +class SDRPlayBands { +public: + static QString getBandName(unsigned int band_index); + static unsigned int getBandLow(unsigned int band_index); + static unsigned int getBandHigh(unsigned int band_index); + static unsigned int getNbBands(); +private: + static const unsigned int m_nb_bands = 8; + static unsigned int m_bandLow[m_nb_bands]; + static unsigned int m_bandHigh[m_nb_bands]; + static const char* m_bandName[m_nb_bands]; +}; + #endif /* PLUGINS_SAMPLESOURCE_SDRPLAY_SDRPLAYINPUT_H_ */ diff --git a/plugins/samplesource/sdrplay/sdrplayplugin.cpp b/plugins/samplesource/sdrplay/sdrplayplugin.cpp index 6628540a8..cb1ed4660 100644 --- a/plugins/samplesource/sdrplay/sdrplayplugin.cpp +++ b/plugins/samplesource/sdrplay/sdrplayplugin.cpp @@ -25,7 +25,7 @@ const PluginDescriptor SDRPlayPlugin::m_pluginDescriptor = { QString("SDRPlay RSP1 Input"), - QString("3.14.6"), + QString("4.0.0"), QString("(c) Edouard Griffiths, F4EXB"), QString("https://github.com/f4exb/sdrangel"), true, diff --git a/sdrbase/resources/webapi/doc/html2/index.html b/sdrbase/resources/webapi/doc/html2/index.html index 49a75bb9f..13e3d1406 100644 --- a/sdrbase/resources/webapi/doc/html2/index.html +++ b/sdrbase/resources/webapi/doc/html2/index.html @@ -1741,6 +1741,9 @@ margin-bottom: 20px; }, "sdrDaemonSourceReport" : { "$ref" : "#/definitions/SDRdaemonSourceReport" + }, + "sdrPlayReport" : { + "$ref" : "#/definitions/SDRPlayReport" } }, "description" : "Base device report. The specific device report present depends on deviceHwType" @@ -1844,6 +1847,9 @@ margin-bottom: 20px; }, "sdrDaemonSourceSettings" : { "$ref" : "#/definitions/SDRdaemonSourceSettings" + }, + "sdrPlaySettings" : { + "$ref" : "#/definitions/SDRPlaySettings" } }, "description" : "Base device settings. The specific device settings present depends on deviceHwType." @@ -3053,6 +3059,121 @@ margin-bottom: 20px; } }, "description" : "RTLSDR" +}; + defs.SDRPlayReport = { + "properties" : { + "sampleRates" : { + "type" : "array", + "items" : { + "$ref" : "#/definitions/AirspyReport_sampleRates" + } + }, + "bandwidths" : { + "type" : "array", + "items" : { + "$ref" : "#/definitions/SDRPlayReport_bandwidths" + } + }, + "intermediateFrequencies" : { + "type" : "array", + "items" : { + "$ref" : "#/definitions/SDRPlayReport_intermediateFrequencies" + } + }, + "frequencyBands" : { + "type" : "array", + "items" : { + "$ref" : "#/definitions/SDRPlayReport_frequencyBands" + } + } + }, + "description" : "SDRplay1" +}; + defs.SDRPlayReport_bandwidths = { + "properties" : { + "bandwidth" : { + "type" : "integer", + "description" : "bandwidth in Hz" + } + } +}; + defs.SDRPlayReport_frequencyBands = { + "properties" : { + "bandName" : { + "type" : "string" + }, + "bandLow" : { + "type" : "integer", + "description" : "lower frequency bound in Hz" + }, + "bandHigh" : { + "type" : "integer", + "description" : "higher frequency bound in Hz" + } + } +}; + defs.SDRPlayReport_intermediateFrequencies = { + "properties" : { + "intermediateFrequency" : { + "type" : "integer", + "description" : "frequency in Hz" + } + } +}; + defs.SDRPlaySettings = { + "properties" : { + "centerFrequency" : { + "type" : "integer", + "format" : "uint64" + }, + "tunerGain" : { + "type" : "integer" + }, + "LOppmTenths" : { + "type" : "integer" + }, + "frequencyBandIndex" : { + "type" : "integer" + }, + "ifFrequencyIndex" : { + "type" : "integer" + }, + "bandwidthIndex" : { + "type" : "integer" + }, + "devSampleRateIndex" : { + "type" : "integer" + }, + "log2Decim" : { + "type" : "integer" + }, + "fcPos" : { + "type" : "integer" + }, + "dcBlock" : { + "type" : "integer" + }, + "iqCorrection" : { + "type" : "integer" + }, + "tunerGainMode" : { + "type" : "integer", + "description" : "1 tuner (table) gain, 0 manual (LNA, Mixer, BB) gain" + }, + "lnaOn" : { + "type" : "integer" + }, + "mixerAmpOn" : { + "type" : "integer" + }, + "basebandGain" : { + "type" : "integer" + }, + "fileRecordName" : { + "type" : "string" + } + }, + "description" : "SDRplay1" }; defs.SDRdaemonSourceReport = { "properties" : { @@ -22374,7 +22495,7 @@ except ApiException as e:
- Generated 2018-05-26T23:41:15.758+02:00 + Generated 2018-05-27T11:38:07.698+02:00
diff --git a/sdrbase/resources/webapi/doc/swagger/include/SDRPlay.yaml b/sdrbase/resources/webapi/doc/swagger/include/SDRPlay.yaml new file mode 100644 index 000000000..a54937f24 --- /dev/null +++ b/sdrbase/resources/webapi/doc/swagger/include/SDRPlay.yaml @@ -0,0 +1,77 @@ +SDRPlaySettings: + description: SDRplay1 + properties: + centerFrequency: + type: integer + format: uint64 + tunerGain: + type: integer + LOppmTenths: + type: integer + frequencyBandIndex: + type: integer + ifFrequencyIndex: + type: integer + bandwidthIndex: + type: integer + devSampleRateIndex: + type: integer + log2Decim: + type: integer + fcPos: + type: integer + dcBlock: + type: integer + iqCorrection: + type: integer + tunerGainMode: + description: 1 tuner (table) gain, 0 manual (LNA, Mixer, BB) gain + type: integer + lnaOn: + type: integer + mixerAmpOn: + type: integer + basebandGain: + type: integer + iqCorrection: + type: integer + fileRecordName: + type: string + +SDRPlayReport: + description: SDRplay1 + properties: + sampleRates: + type: array + items: + properties: + sampleRate: + description: sample rate in S/s + type: integer + bandwidths: + type: array + items: + properties: + bandwidth: + description: bandwidth in Hz + type: integer + intermediateFrequencies: + type: array + items: + properties: + intermediateFrequency: + description: frequency in Hz + type: integer + frequencyBands: + type: array + items: + properties: + bandName: + type: string + bandLow: + description: lower frequency bound in Hz + type: integer + bandHigh: + description: higher frequency bound in Hz + type: integer + \ No newline at end of file diff --git a/sdrbase/resources/webapi/doc/swagger/swagger.yaml b/sdrbase/resources/webapi/doc/swagger/swagger.yaml index 9bd8c4f9a..5ef701b74 100644 --- a/sdrbase/resources/webapi/doc/swagger/swagger.yaml +++ b/sdrbase/resources/webapi/doc/swagger/swagger.yaml @@ -1777,7 +1777,10 @@ definitions: $ref: "/doc/swagger/include/RtlSdr.yaml#/RtlSdrSettings" sdrDaemonSourceSettings: $ref: "/doc/swagger/include/SDRDaemonSource.yaml#/SDRdaemonSourceSettings" + sdrPlaySettings: + $ref: "/doc/swagger/include/SDRPlay.yaml#/SDRPlaySettings" + DeviceReport: description: Base device report. The specific device report present depends on deviceHwType discriminator: deviceHwType @@ -1811,7 +1814,9 @@ definitions: $ref: "/doc/swagger/include/RtlSdr.yaml#/RtlSdrReport" sdrDaemonSourceReport: $ref: "/doc/swagger/include/SDRDaemonSource.yaml#/SDRdaemonSourceReport" - + sdrPlayReport: + $ref: "/doc/swagger/include/SDRPlay.yaml#/SDRPlayReport" + ChannelSettings: description: Base channel settings. The specific channel settings present depends on channelType. discriminator: channelType diff --git a/swagger/sdrangel/api/swagger/include/SDRPlay.yaml b/swagger/sdrangel/api/swagger/include/SDRPlay.yaml new file mode 100644 index 000000000..a54937f24 --- /dev/null +++ b/swagger/sdrangel/api/swagger/include/SDRPlay.yaml @@ -0,0 +1,77 @@ +SDRPlaySettings: + description: SDRplay1 + properties: + centerFrequency: + type: integer + format: uint64 + tunerGain: + type: integer + LOppmTenths: + type: integer + frequencyBandIndex: + type: integer + ifFrequencyIndex: + type: integer + bandwidthIndex: + type: integer + devSampleRateIndex: + type: integer + log2Decim: + type: integer + fcPos: + type: integer + dcBlock: + type: integer + iqCorrection: + type: integer + tunerGainMode: + description: 1 tuner (table) gain, 0 manual (LNA, Mixer, BB) gain + type: integer + lnaOn: + type: integer + mixerAmpOn: + type: integer + basebandGain: + type: integer + iqCorrection: + type: integer + fileRecordName: + type: string + +SDRPlayReport: + description: SDRplay1 + properties: + sampleRates: + type: array + items: + properties: + sampleRate: + description: sample rate in S/s + type: integer + bandwidths: + type: array + items: + properties: + bandwidth: + description: bandwidth in Hz + type: integer + intermediateFrequencies: + type: array + items: + properties: + intermediateFrequency: + description: frequency in Hz + type: integer + frequencyBands: + type: array + items: + properties: + bandName: + type: string + bandLow: + description: lower frequency bound in Hz + type: integer + bandHigh: + description: higher frequency bound in Hz + type: integer + \ No newline at end of file diff --git a/swagger/sdrangel/api/swagger/swagger.yaml b/swagger/sdrangel/api/swagger/swagger.yaml index 10d8f8183..dade77108 100644 --- a/swagger/sdrangel/api/swagger/swagger.yaml +++ b/swagger/sdrangel/api/swagger/swagger.yaml @@ -1777,7 +1777,10 @@ definitions: $ref: "http://localhost:8081/api/swagger/include/RtlSdr.yaml#/RtlSdrSettings" sdrDaemonSourceSettings: $ref: "http://localhost:8081/api/swagger/include/SDRDaemonSource.yaml#/SDRdaemonSourceSettings" + sdrPlaySettings: + $ref: "http://localhost:8081/api/swagger/include/SDRPlay.yaml#/SDRPlaySettings" + DeviceReport: description: Base device report. The specific device report present depends on deviceHwType discriminator: deviceHwType @@ -1810,8 +1813,10 @@ definitions: rtlSdrReport: $ref: "http://localhost:8081/api/swagger/include/RtlSdr.yaml#/RtlSdrReport" sdrDaemonSourceReport: - $ref: "http://localhost:8081/api/swagger/include/SDRDaemonSource.yaml#/SDRdaemonSourceReport " - + $ref: "http://localhost:8081/api/swagger/include/SDRDaemonSource.yaml#/SDRdaemonSourceReport" + sdrPlayReport: + $ref: "http://localhost:8081/api/swagger/include/SDRPlay.yaml#/SDRPlayReport" + ChannelSettings: description: Base channel settings. The specific channel settings present depends on channelType. discriminator: channelType diff --git a/swagger/sdrangel/code/html2/index.html b/swagger/sdrangel/code/html2/index.html index 49a75bb9f..13e3d1406 100644 --- a/swagger/sdrangel/code/html2/index.html +++ b/swagger/sdrangel/code/html2/index.html @@ -1741,6 +1741,9 @@ margin-bottom: 20px; }, "sdrDaemonSourceReport" : { "$ref" : "#/definitions/SDRdaemonSourceReport" + }, + "sdrPlayReport" : { + "$ref" : "#/definitions/SDRPlayReport" } }, "description" : "Base device report. The specific device report present depends on deviceHwType" @@ -1844,6 +1847,9 @@ margin-bottom: 20px; }, "sdrDaemonSourceSettings" : { "$ref" : "#/definitions/SDRdaemonSourceSettings" + }, + "sdrPlaySettings" : { + "$ref" : "#/definitions/SDRPlaySettings" } }, "description" : "Base device settings. The specific device settings present depends on deviceHwType." @@ -3053,6 +3059,121 @@ margin-bottom: 20px; } }, "description" : "RTLSDR" +}; + defs.SDRPlayReport = { + "properties" : { + "sampleRates" : { + "type" : "array", + "items" : { + "$ref" : "#/definitions/AirspyReport_sampleRates" + } + }, + "bandwidths" : { + "type" : "array", + "items" : { + "$ref" : "#/definitions/SDRPlayReport_bandwidths" + } + }, + "intermediateFrequencies" : { + "type" : "array", + "items" : { + "$ref" : "#/definitions/SDRPlayReport_intermediateFrequencies" + } + }, + "frequencyBands" : { + "type" : "array", + "items" : { + "$ref" : "#/definitions/SDRPlayReport_frequencyBands" + } + } + }, + "description" : "SDRplay1" +}; + defs.SDRPlayReport_bandwidths = { + "properties" : { + "bandwidth" : { + "type" : "integer", + "description" : "bandwidth in Hz" + } + } +}; + defs.SDRPlayReport_frequencyBands = { + "properties" : { + "bandName" : { + "type" : "string" + }, + "bandLow" : { + "type" : "integer", + "description" : "lower frequency bound in Hz" + }, + "bandHigh" : { + "type" : "integer", + "description" : "higher frequency bound in Hz" + } + } +}; + defs.SDRPlayReport_intermediateFrequencies = { + "properties" : { + "intermediateFrequency" : { + "type" : "integer", + "description" : "frequency in Hz" + } + } +}; + defs.SDRPlaySettings = { + "properties" : { + "centerFrequency" : { + "type" : "integer", + "format" : "uint64" + }, + "tunerGain" : { + "type" : "integer" + }, + "LOppmTenths" : { + "type" : "integer" + }, + "frequencyBandIndex" : { + "type" : "integer" + }, + "ifFrequencyIndex" : { + "type" : "integer" + }, + "bandwidthIndex" : { + "type" : "integer" + }, + "devSampleRateIndex" : { + "type" : "integer" + }, + "log2Decim" : { + "type" : "integer" + }, + "fcPos" : { + "type" : "integer" + }, + "dcBlock" : { + "type" : "integer" + }, + "iqCorrection" : { + "type" : "integer" + }, + "tunerGainMode" : { + "type" : "integer", + "description" : "1 tuner (table) gain, 0 manual (LNA, Mixer, BB) gain" + }, + "lnaOn" : { + "type" : "integer" + }, + "mixerAmpOn" : { + "type" : "integer" + }, + "basebandGain" : { + "type" : "integer" + }, + "fileRecordName" : { + "type" : "string" + } + }, + "description" : "SDRplay1" }; defs.SDRdaemonSourceReport = { "properties" : { @@ -22374,7 +22495,7 @@ except ApiException as e:
- Generated 2018-05-26T23:41:15.758+02:00 + Generated 2018-05-27T11:38:07.698+02:00
diff --git a/swagger/sdrangel/code/qt5/client/SWGDeviceReport.cpp b/swagger/sdrangel/code/qt5/client/SWGDeviceReport.cpp index c0956bf08..93f904470 100644 --- a/swagger/sdrangel/code/qt5/client/SWGDeviceReport.cpp +++ b/swagger/sdrangel/code/qt5/client/SWGDeviceReport.cpp @@ -52,6 +52,8 @@ SWGDeviceReport::SWGDeviceReport() { m_rtl_sdr_report_isSet = false; sdr_daemon_source_report = nullptr; m_sdr_daemon_source_report_isSet = false; + sdr_play_report = nullptr; + m_sdr_play_report_isSet = false; } SWGDeviceReport::~SWGDeviceReport() { @@ -84,6 +86,8 @@ SWGDeviceReport::init() { m_rtl_sdr_report_isSet = false; sdr_daemon_source_report = new SWGSDRdaemonSourceReport(); m_sdr_daemon_source_report_isSet = false; + sdr_play_report = new SWGSDRPlayReport(); + m_sdr_play_report_isSet = false; } void @@ -122,6 +126,9 @@ SWGDeviceReport::cleanup() { if(sdr_daemon_source_report != nullptr) { delete sdr_daemon_source_report; } + if(sdr_play_report != nullptr) { + delete sdr_play_report; + } } SWGDeviceReport* @@ -159,6 +166,8 @@ SWGDeviceReport::fromJsonObject(QJsonObject &pJson) { ::SWGSDRangel::setValue(&sdr_daemon_source_report, pJson["sdrDaemonSourceReport"], "SWGSDRdaemonSourceReport", "SWGSDRdaemonSourceReport"); + ::SWGSDRangel::setValue(&sdr_play_report, pJson["sdrPlayReport"], "SWGSDRPlayReport", "SWGSDRPlayReport"); + } QString @@ -211,6 +220,9 @@ SWGDeviceReport::asJsonObject() { if((sdr_daemon_source_report != nullptr) && (sdr_daemon_source_report->isSet())){ toJsonValue(QString("sdrDaemonSourceReport"), sdr_daemon_source_report, obj, QString("SWGSDRdaemonSourceReport")); } + if((sdr_play_report != nullptr) && (sdr_play_report->isSet())){ + toJsonValue(QString("sdrPlayReport"), sdr_play_report, obj, QString("SWGSDRPlayReport")); + } return obj; } @@ -335,6 +347,16 @@ SWGDeviceReport::setSdrDaemonSourceReport(SWGSDRdaemonSourceReport* sdr_daemon_s this->m_sdr_daemon_source_report_isSet = true; } +SWGSDRPlayReport* +SWGDeviceReport::getSdrPlayReport() { + return sdr_play_report; +} +void +SWGDeviceReport::setSdrPlayReport(SWGSDRPlayReport* sdr_play_report) { + this->sdr_play_report = sdr_play_report; + this->m_sdr_play_report_isSet = true; +} + bool SWGDeviceReport::isSet(){ @@ -352,6 +374,7 @@ SWGDeviceReport::isSet(){ if(pluto_sdr_output_report != nullptr && pluto_sdr_output_report->isSet()){ isObjectUpdated = true; break;} if(rtl_sdr_report != nullptr && rtl_sdr_report->isSet()){ isObjectUpdated = true; break;} if(sdr_daemon_source_report != nullptr && sdr_daemon_source_report->isSet()){ isObjectUpdated = true; break;} + if(sdr_play_report != nullptr && sdr_play_report->isSet()){ isObjectUpdated = true; break;} }while(false); return isObjectUpdated; } diff --git a/swagger/sdrangel/code/qt5/client/SWGDeviceReport.h b/swagger/sdrangel/code/qt5/client/SWGDeviceReport.h index ed8ea3348..05ac916f5 100644 --- a/swagger/sdrangel/code/qt5/client/SWGDeviceReport.h +++ b/swagger/sdrangel/code/qt5/client/SWGDeviceReport.h @@ -31,6 +31,7 @@ #include "SWGPlutoSdrInputReport.h" #include "SWGPlutoSdrOutputReport.h" #include "SWGRtlSdrReport.h" +#include "SWGSDRPlayReport.h" #include "SWGSDRdaemonSourceReport.h" #include @@ -88,6 +89,9 @@ public: SWGSDRdaemonSourceReport* getSdrDaemonSourceReport(); void setSdrDaemonSourceReport(SWGSDRdaemonSourceReport* sdr_daemon_source_report); + SWGSDRPlayReport* getSdrPlayReport(); + void setSdrPlayReport(SWGSDRPlayReport* sdr_play_report); + virtual bool isSet() override; @@ -128,6 +132,9 @@ private: SWGSDRdaemonSourceReport* sdr_daemon_source_report; bool m_sdr_daemon_source_report_isSet; + SWGSDRPlayReport* sdr_play_report; + bool m_sdr_play_report_isSet; + }; } diff --git a/swagger/sdrangel/code/qt5/client/SWGDeviceSettings.cpp b/swagger/sdrangel/code/qt5/client/SWGDeviceSettings.cpp index a041a3b1c..d3322d466 100644 --- a/swagger/sdrangel/code/qt5/client/SWGDeviceSettings.cpp +++ b/swagger/sdrangel/code/qt5/client/SWGDeviceSettings.cpp @@ -64,6 +64,8 @@ SWGDeviceSettings::SWGDeviceSettings() { m_rtl_sdr_settings_isSet = false; sdr_daemon_source_settings = nullptr; m_sdr_daemon_source_settings_isSet = false; + sdr_play_settings = nullptr; + m_sdr_play_settings_isSet = false; } SWGDeviceSettings::~SWGDeviceSettings() { @@ -108,6 +110,8 @@ SWGDeviceSettings::init() { m_rtl_sdr_settings_isSet = false; sdr_daemon_source_settings = new SWGSDRdaemonSourceSettings(); m_sdr_daemon_source_settings_isSet = false; + sdr_play_settings = new SWGSDRPlaySettings(); + m_sdr_play_settings_isSet = false; } void @@ -164,6 +168,9 @@ SWGDeviceSettings::cleanup() { if(sdr_daemon_source_settings != nullptr) { delete sdr_daemon_source_settings; } + if(sdr_play_settings != nullptr) { + delete sdr_play_settings; + } } SWGDeviceSettings* @@ -213,6 +220,8 @@ SWGDeviceSettings::fromJsonObject(QJsonObject &pJson) { ::SWGSDRangel::setValue(&sdr_daemon_source_settings, pJson["sdrDaemonSourceSettings"], "SWGSDRdaemonSourceSettings", "SWGSDRdaemonSourceSettings"); + ::SWGSDRangel::setValue(&sdr_play_settings, pJson["sdrPlaySettings"], "SWGSDRPlaySettings", "SWGSDRPlaySettings"); + } QString @@ -283,6 +292,9 @@ SWGDeviceSettings::asJsonObject() { if((sdr_daemon_source_settings != nullptr) && (sdr_daemon_source_settings->isSet())){ toJsonValue(QString("sdrDaemonSourceSettings"), sdr_daemon_source_settings, obj, QString("SWGSDRdaemonSourceSettings")); } + if((sdr_play_settings != nullptr) && (sdr_play_settings->isSet())){ + toJsonValue(QString("sdrPlaySettings"), sdr_play_settings, obj, QString("SWGSDRPlaySettings")); + } return obj; } @@ -467,6 +479,16 @@ SWGDeviceSettings::setSdrDaemonSourceSettings(SWGSDRdaemonSourceSettings* sdr_da this->m_sdr_daemon_source_settings_isSet = true; } +SWGSDRPlaySettings* +SWGDeviceSettings::getSdrPlaySettings() { + return sdr_play_settings; +} +void +SWGDeviceSettings::setSdrPlaySettings(SWGSDRPlaySettings* sdr_play_settings) { + this->sdr_play_settings = sdr_play_settings; + this->m_sdr_play_settings_isSet = true; +} + bool SWGDeviceSettings::isSet(){ @@ -490,6 +512,7 @@ SWGDeviceSettings::isSet(){ if(pluto_sdr_output_settings != nullptr && pluto_sdr_output_settings->isSet()){ isObjectUpdated = true; break;} if(rtl_sdr_settings != nullptr && rtl_sdr_settings->isSet()){ isObjectUpdated = true; break;} if(sdr_daemon_source_settings != nullptr && sdr_daemon_source_settings->isSet()){ isObjectUpdated = true; break;} + if(sdr_play_settings != nullptr && sdr_play_settings->isSet()){ isObjectUpdated = true; break;} }while(false); return isObjectUpdated; } diff --git a/swagger/sdrangel/code/qt5/client/SWGDeviceSettings.h b/swagger/sdrangel/code/qt5/client/SWGDeviceSettings.h index 8d81a5a02..784d4d05d 100644 --- a/swagger/sdrangel/code/qt5/client/SWGDeviceSettings.h +++ b/swagger/sdrangel/code/qt5/client/SWGDeviceSettings.h @@ -37,6 +37,7 @@ #include "SWGPlutoSdrInputSettings.h" #include "SWGPlutoSdrOutputSettings.h" #include "SWGRtlSdrSettings.h" +#include "SWGSDRPlaySettings.h" #include "SWGSDRdaemonSourceSettings.h" #include @@ -112,6 +113,9 @@ public: SWGSDRdaemonSourceSettings* getSdrDaemonSourceSettings(); void setSdrDaemonSourceSettings(SWGSDRdaemonSourceSettings* sdr_daemon_source_settings); + SWGSDRPlaySettings* getSdrPlaySettings(); + void setSdrPlaySettings(SWGSDRPlaySettings* sdr_play_settings); + virtual bool isSet() override; @@ -170,6 +174,9 @@ private: SWGSDRdaemonSourceSettings* sdr_daemon_source_settings; bool m_sdr_daemon_source_settings_isSet; + SWGSDRPlaySettings* sdr_play_settings; + bool m_sdr_play_settings_isSet; + }; } diff --git a/swagger/sdrangel/code/qt5/client/SWGModelFactory.h b/swagger/sdrangel/code/qt5/client/SWGModelFactory.h index b065d68da..c9f9f2718 100644 --- a/swagger/sdrangel/code/qt5/client/SWGModelFactory.h +++ b/swagger/sdrangel/code/qt5/client/SWGModelFactory.h @@ -86,6 +86,11 @@ #include "SWGRtlSdrReport.h" #include "SWGRtlSdrReport_gains.h" #include "SWGRtlSdrSettings.h" +#include "SWGSDRPlayReport.h" +#include "SWGSDRPlayReport_bandwidths.h" +#include "SWGSDRPlayReport_frequencyBands.h" +#include "SWGSDRPlayReport_intermediateFrequencies.h" +#include "SWGSDRPlaySettings.h" #include "SWGSDRdaemonSourceReport.h" #include "SWGSDRdaemonSourceSettings.h" #include "SWGSSBDemodReport.h" @@ -322,6 +327,21 @@ namespace SWGSDRangel { if(QString("SWGRtlSdrSettings").compare(type) == 0) { return new SWGRtlSdrSettings(); } + if(QString("SWGSDRPlayReport").compare(type) == 0) { + return new SWGSDRPlayReport(); + } + if(QString("SWGSDRPlayReport_bandwidths").compare(type) == 0) { + return new SWGSDRPlayReport_bandwidths(); + } + if(QString("SWGSDRPlayReport_frequencyBands").compare(type) == 0) { + return new SWGSDRPlayReport_frequencyBands(); + } + if(QString("SWGSDRPlayReport_intermediateFrequencies").compare(type) == 0) { + return new SWGSDRPlayReport_intermediateFrequencies(); + } + if(QString("SWGSDRPlaySettings").compare(type) == 0) { + return new SWGSDRPlaySettings(); + } if(QString("SWGSDRdaemonSourceReport").compare(type) == 0) { return new SWGSDRdaemonSourceReport(); } diff --git a/swagger/sdrangel/code/qt5/client/SWGSDRPlayReport.cpp b/swagger/sdrangel/code/qt5/client/SWGSDRPlayReport.cpp new file mode 100644 index 000000000..d339f4a83 --- /dev/null +++ b/swagger/sdrangel/code/qt5/client/SWGSDRPlayReport.cpp @@ -0,0 +1,193 @@ +/** + * 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. * Stopping instance i.e. /sdrangel with DELETE method is a server only feature. It allows stopping the instance nicely. * 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 demodulator, Channel Analyzer, Channel Analyzer NG, LoRa demodulator, TCP source * The content type returned is always application/json except in the following cases: * An incorrect URL was specified: this document is returned as text/html with a status 400 --- + * + * OpenAPI spec version: 4.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 "SWGSDRPlayReport.h" + +#include "SWGHelpers.h" + +#include +#include +#include +#include + +namespace SWGSDRangel { + +SWGSDRPlayReport::SWGSDRPlayReport(QString* json) { + init(); + this->fromJson(*json); +} + +SWGSDRPlayReport::SWGSDRPlayReport() { + sample_rates = nullptr; + m_sample_rates_isSet = false; + bandwidths = nullptr; + m_bandwidths_isSet = false; + intermediate_frequencies = nullptr; + m_intermediate_frequencies_isSet = false; + frequency_bands = nullptr; + m_frequency_bands_isSet = false; +} + +SWGSDRPlayReport::~SWGSDRPlayReport() { + this->cleanup(); +} + +void +SWGSDRPlayReport::init() { + sample_rates = new QList(); + m_sample_rates_isSet = false; + bandwidths = new QList(); + m_bandwidths_isSet = false; + intermediate_frequencies = new QList(); + m_intermediate_frequencies_isSet = false; + frequency_bands = new QList(); + m_frequency_bands_isSet = false; +} + +void +SWGSDRPlayReport::cleanup() { + if(sample_rates != nullptr) { + auto arr = sample_rates; + for(auto o: *arr) { + delete o; + } + delete sample_rates; + } + if(bandwidths != nullptr) { + auto arr = bandwidths; + for(auto o: *arr) { + delete o; + } + delete bandwidths; + } + if(intermediate_frequencies != nullptr) { + auto arr = intermediate_frequencies; + for(auto o: *arr) { + delete o; + } + delete intermediate_frequencies; + } + if(frequency_bands != nullptr) { + auto arr = frequency_bands; + for(auto o: *arr) { + delete o; + } + delete frequency_bands; + } +} + +SWGSDRPlayReport* +SWGSDRPlayReport::fromJson(QString &json) { + QByteArray array (json.toStdString().c_str()); + QJsonDocument doc = QJsonDocument::fromJson(array); + QJsonObject jsonObject = doc.object(); + this->fromJsonObject(jsonObject); + return this; +} + +void +SWGSDRPlayReport::fromJsonObject(QJsonObject &pJson) { + + ::SWGSDRangel::setValue(&sample_rates, pJson["sampleRates"], "QList", "SWGAirspyReport_sampleRates"); + + ::SWGSDRangel::setValue(&bandwidths, pJson["bandwidths"], "QList", "SWGSDRPlayReport_bandwidths"); + + ::SWGSDRangel::setValue(&intermediate_frequencies, pJson["intermediateFrequencies"], "QList", "SWGSDRPlayReport_intermediateFrequencies"); + + ::SWGSDRangel::setValue(&frequency_bands, pJson["frequencyBands"], "QList", "SWGSDRPlayReport_frequencyBands"); +} + +QString +SWGSDRPlayReport::asJson () +{ + QJsonObject* obj = this->asJsonObject(); + + QJsonDocument doc(*obj); + QByteArray bytes = doc.toJson(); + delete obj; + return QString(bytes); +} + +QJsonObject* +SWGSDRPlayReport::asJsonObject() { + QJsonObject* obj = new QJsonObject(); + if(sample_rates->size() > 0){ + toJsonArray((QList*)sample_rates, obj, "sampleRates", "SWGAirspyReport_sampleRates"); + } + if(bandwidths->size() > 0){ + toJsonArray((QList*)bandwidths, obj, "bandwidths", "SWGSDRPlayReport_bandwidths"); + } + if(intermediate_frequencies->size() > 0){ + toJsonArray((QList*)intermediate_frequencies, obj, "intermediateFrequencies", "SWGSDRPlayReport_intermediateFrequencies"); + } + if(frequency_bands->size() > 0){ + toJsonArray((QList*)frequency_bands, obj, "frequencyBands", "SWGSDRPlayReport_frequencyBands"); + } + + return obj; +} + +QList* +SWGSDRPlayReport::getSampleRates() { + return sample_rates; +} +void +SWGSDRPlayReport::setSampleRates(QList* sample_rates) { + this->sample_rates = sample_rates; + this->m_sample_rates_isSet = true; +} + +QList* +SWGSDRPlayReport::getBandwidths() { + return bandwidths; +} +void +SWGSDRPlayReport::setBandwidths(QList* bandwidths) { + this->bandwidths = bandwidths; + this->m_bandwidths_isSet = true; +} + +QList* +SWGSDRPlayReport::getIntermediateFrequencies() { + return intermediate_frequencies; +} +void +SWGSDRPlayReport::setIntermediateFrequencies(QList* intermediate_frequencies) { + this->intermediate_frequencies = intermediate_frequencies; + this->m_intermediate_frequencies_isSet = true; +} + +QList* +SWGSDRPlayReport::getFrequencyBands() { + return frequency_bands; +} +void +SWGSDRPlayReport::setFrequencyBands(QList* frequency_bands) { + this->frequency_bands = frequency_bands; + this->m_frequency_bands_isSet = true; +} + + +bool +SWGSDRPlayReport::isSet(){ + bool isObjectUpdated = false; + do{ + if(sample_rates->size() > 0){ isObjectUpdated = true; break;} + if(bandwidths->size() > 0){ isObjectUpdated = true; break;} + if(intermediate_frequencies->size() > 0){ isObjectUpdated = true; break;} + if(frequency_bands->size() > 0){ isObjectUpdated = true; break;} + }while(false); + return isObjectUpdated; +} +} + diff --git a/swagger/sdrangel/code/qt5/client/SWGSDRPlayReport.h b/swagger/sdrangel/code/qt5/client/SWGSDRPlayReport.h new file mode 100644 index 000000000..3fd62716c --- /dev/null +++ b/swagger/sdrangel/code/qt5/client/SWGSDRPlayReport.h @@ -0,0 +1,81 @@ +/** + * 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. * Stopping instance i.e. /sdrangel with DELETE method is a server only feature. It allows stopping the instance nicely. * 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 demodulator, Channel Analyzer, Channel Analyzer NG, LoRa demodulator, TCP source * The content type returned is always application/json except in the following cases: * An incorrect URL was specified: this document is returned as text/html with a status 400 --- + * + * OpenAPI spec version: 4.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. + */ + +/* + * SWGSDRPlayReport.h + * + * SDRplay1 + */ + +#ifndef SWGSDRPlayReport_H_ +#define SWGSDRPlayReport_H_ + +#include + + +#include "SWGAirspyReport_sampleRates.h" +#include "SWGSDRPlayReport_bandwidths.h" +#include "SWGSDRPlayReport_frequencyBands.h" +#include "SWGSDRPlayReport_intermediateFrequencies.h" +#include + +#include "SWGObject.h" +#include "export.h" + +namespace SWGSDRangel { + +class SWG_API SWGSDRPlayReport: public SWGObject { +public: + SWGSDRPlayReport(); + SWGSDRPlayReport(QString* json); + virtual ~SWGSDRPlayReport(); + void init(); + void cleanup(); + + virtual QString asJson () override; + virtual QJsonObject* asJsonObject() override; + virtual void fromJsonObject(QJsonObject &json) override; + virtual SWGSDRPlayReport* fromJson(QString &jsonString) override; + + QList* getSampleRates(); + void setSampleRates(QList* sample_rates); + + QList* getBandwidths(); + void setBandwidths(QList* bandwidths); + + QList* getIntermediateFrequencies(); + void setIntermediateFrequencies(QList* intermediate_frequencies); + + QList* getFrequencyBands(); + void setFrequencyBands(QList* frequency_bands); + + + virtual bool isSet() override; + +private: + QList* sample_rates; + bool m_sample_rates_isSet; + + QList* bandwidths; + bool m_bandwidths_isSet; + + QList* intermediate_frequencies; + bool m_intermediate_frequencies_isSet; + + QList* frequency_bands; + bool m_frequency_bands_isSet; + +}; + +} + +#endif /* SWGSDRPlayReport_H_ */ diff --git a/swagger/sdrangel/code/qt5/client/SWGSDRPlayReport_bandwidths.cpp b/swagger/sdrangel/code/qt5/client/SWGSDRPlayReport_bandwidths.cpp new file mode 100644 index 000000000..9801e4a99 --- /dev/null +++ b/swagger/sdrangel/code/qt5/client/SWGSDRPlayReport_bandwidths.cpp @@ -0,0 +1,106 @@ +/** + * 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. * Stopping instance i.e. /sdrangel with DELETE method is a server only feature. It allows stopping the instance nicely. * 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 demodulator, Channel Analyzer, Channel Analyzer NG, LoRa demodulator, TCP source * The content type returned is always application/json except in the following cases: * An incorrect URL was specified: this document is returned as text/html with a status 400 --- + * + * OpenAPI spec version: 4.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 "SWGSDRPlayReport_bandwidths.h" + +#include "SWGHelpers.h" + +#include +#include +#include +#include + +namespace SWGSDRangel { + +SWGSDRPlayReport_bandwidths::SWGSDRPlayReport_bandwidths(QString* json) { + init(); + this->fromJson(*json); +} + +SWGSDRPlayReport_bandwidths::SWGSDRPlayReport_bandwidths() { + bandwidth = 0; + m_bandwidth_isSet = false; +} + +SWGSDRPlayReport_bandwidths::~SWGSDRPlayReport_bandwidths() { + this->cleanup(); +} + +void +SWGSDRPlayReport_bandwidths::init() { + bandwidth = 0; + m_bandwidth_isSet = false; +} + +void +SWGSDRPlayReport_bandwidths::cleanup() { + +} + +SWGSDRPlayReport_bandwidths* +SWGSDRPlayReport_bandwidths::fromJson(QString &json) { + QByteArray array (json.toStdString().c_str()); + QJsonDocument doc = QJsonDocument::fromJson(array); + QJsonObject jsonObject = doc.object(); + this->fromJsonObject(jsonObject); + return this; +} + +void +SWGSDRPlayReport_bandwidths::fromJsonObject(QJsonObject &pJson) { + ::SWGSDRangel::setValue(&bandwidth, pJson["bandwidth"], "qint32", ""); + +} + +QString +SWGSDRPlayReport_bandwidths::asJson () +{ + QJsonObject* obj = this->asJsonObject(); + + QJsonDocument doc(*obj); + QByteArray bytes = doc.toJson(); + delete obj; + return QString(bytes); +} + +QJsonObject* +SWGSDRPlayReport_bandwidths::asJsonObject() { + QJsonObject* obj = new QJsonObject(); + if(m_bandwidth_isSet){ + obj->insert("bandwidth", QJsonValue(bandwidth)); + } + + return obj; +} + +qint32 +SWGSDRPlayReport_bandwidths::getBandwidth() { + return bandwidth; +} +void +SWGSDRPlayReport_bandwidths::setBandwidth(qint32 bandwidth) { + this->bandwidth = bandwidth; + this->m_bandwidth_isSet = true; +} + + +bool +SWGSDRPlayReport_bandwidths::isSet(){ + bool isObjectUpdated = false; + do{ + if(m_bandwidth_isSet){ isObjectUpdated = true; break;} + }while(false); + return isObjectUpdated; +} +} + diff --git a/swagger/sdrangel/code/qt5/client/SWGSDRPlayReport_bandwidths.h b/swagger/sdrangel/code/qt5/client/SWGSDRPlayReport_bandwidths.h new file mode 100644 index 000000000..67b0161c2 --- /dev/null +++ b/swagger/sdrangel/code/qt5/client/SWGSDRPlayReport_bandwidths.h @@ -0,0 +1,58 @@ +/** + * 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. * Stopping instance i.e. /sdrangel with DELETE method is a server only feature. It allows stopping the instance nicely. * 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 demodulator, Channel Analyzer, Channel Analyzer NG, LoRa demodulator, TCP source * The content type returned is always application/json except in the following cases: * An incorrect URL was specified: this document is returned as text/html with a status 400 --- + * + * OpenAPI spec version: 4.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. + */ + +/* + * SWGSDRPlayReport_bandwidths.h + * + * + */ + +#ifndef SWGSDRPlayReport_bandwidths_H_ +#define SWGSDRPlayReport_bandwidths_H_ + +#include + + + +#include "SWGObject.h" +#include "export.h" + +namespace SWGSDRangel { + +class SWG_API SWGSDRPlayReport_bandwidths: public SWGObject { +public: + SWGSDRPlayReport_bandwidths(); + SWGSDRPlayReport_bandwidths(QString* json); + virtual ~SWGSDRPlayReport_bandwidths(); + void init(); + void cleanup(); + + virtual QString asJson () override; + virtual QJsonObject* asJsonObject() override; + virtual void fromJsonObject(QJsonObject &json) override; + virtual SWGSDRPlayReport_bandwidths* fromJson(QString &jsonString) override; + + qint32 getBandwidth(); + void setBandwidth(qint32 bandwidth); + + + virtual bool isSet() override; + +private: + qint32 bandwidth; + bool m_bandwidth_isSet; + +}; + +} + +#endif /* SWGSDRPlayReport_bandwidths_H_ */ diff --git a/swagger/sdrangel/code/qt5/client/SWGSDRPlayReport_frequencyBands.cpp b/swagger/sdrangel/code/qt5/client/SWGSDRPlayReport_frequencyBands.cpp new file mode 100644 index 000000000..20c6cbf1d --- /dev/null +++ b/swagger/sdrangel/code/qt5/client/SWGSDRPlayReport_frequencyBands.cpp @@ -0,0 +1,150 @@ +/** + * 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. * Stopping instance i.e. /sdrangel with DELETE method is a server only feature. It allows stopping the instance nicely. * 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 demodulator, Channel Analyzer, Channel Analyzer NG, LoRa demodulator, TCP source * The content type returned is always application/json except in the following cases: * An incorrect URL was specified: this document is returned as text/html with a status 400 --- + * + * OpenAPI spec version: 4.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 "SWGSDRPlayReport_frequencyBands.h" + +#include "SWGHelpers.h" + +#include +#include +#include +#include + +namespace SWGSDRangel { + +SWGSDRPlayReport_frequencyBands::SWGSDRPlayReport_frequencyBands(QString* json) { + init(); + this->fromJson(*json); +} + +SWGSDRPlayReport_frequencyBands::SWGSDRPlayReport_frequencyBands() { + band_name = nullptr; + m_band_name_isSet = false; + band_low = 0; + m_band_low_isSet = false; + band_high = 0; + m_band_high_isSet = false; +} + +SWGSDRPlayReport_frequencyBands::~SWGSDRPlayReport_frequencyBands() { + this->cleanup(); +} + +void +SWGSDRPlayReport_frequencyBands::init() { + band_name = new QString(""); + m_band_name_isSet = false; + band_low = 0; + m_band_low_isSet = false; + band_high = 0; + m_band_high_isSet = false; +} + +void +SWGSDRPlayReport_frequencyBands::cleanup() { + if(band_name != nullptr) { + delete band_name; + } + + +} + +SWGSDRPlayReport_frequencyBands* +SWGSDRPlayReport_frequencyBands::fromJson(QString &json) { + QByteArray array (json.toStdString().c_str()); + QJsonDocument doc = QJsonDocument::fromJson(array); + QJsonObject jsonObject = doc.object(); + this->fromJsonObject(jsonObject); + return this; +} + +void +SWGSDRPlayReport_frequencyBands::fromJsonObject(QJsonObject &pJson) { + ::SWGSDRangel::setValue(&band_name, pJson["bandName"], "QString", "QString"); + + ::SWGSDRangel::setValue(&band_low, pJson["bandLow"], "qint32", ""); + + ::SWGSDRangel::setValue(&band_high, pJson["bandHigh"], "qint32", ""); + +} + +QString +SWGSDRPlayReport_frequencyBands::asJson () +{ + QJsonObject* obj = this->asJsonObject(); + + QJsonDocument doc(*obj); + QByteArray bytes = doc.toJson(); + delete obj; + return QString(bytes); +} + +QJsonObject* +SWGSDRPlayReport_frequencyBands::asJsonObject() { + QJsonObject* obj = new QJsonObject(); + if(band_name != nullptr && *band_name != QString("")){ + toJsonValue(QString("bandName"), band_name, obj, QString("QString")); + } + if(m_band_low_isSet){ + obj->insert("bandLow", QJsonValue(band_low)); + } + if(m_band_high_isSet){ + obj->insert("bandHigh", QJsonValue(band_high)); + } + + return obj; +} + +QString* +SWGSDRPlayReport_frequencyBands::getBandName() { + return band_name; +} +void +SWGSDRPlayReport_frequencyBands::setBandName(QString* band_name) { + this->band_name = band_name; + this->m_band_name_isSet = true; +} + +qint32 +SWGSDRPlayReport_frequencyBands::getBandLow() { + return band_low; +} +void +SWGSDRPlayReport_frequencyBands::setBandLow(qint32 band_low) { + this->band_low = band_low; + this->m_band_low_isSet = true; +} + +qint32 +SWGSDRPlayReport_frequencyBands::getBandHigh() { + return band_high; +} +void +SWGSDRPlayReport_frequencyBands::setBandHigh(qint32 band_high) { + this->band_high = band_high; + this->m_band_high_isSet = true; +} + + +bool +SWGSDRPlayReport_frequencyBands::isSet(){ + bool isObjectUpdated = false; + do{ + if(band_name != nullptr && *band_name != QString("")){ isObjectUpdated = true; break;} + if(m_band_low_isSet){ isObjectUpdated = true; break;} + if(m_band_high_isSet){ isObjectUpdated = true; break;} + }while(false); + return isObjectUpdated; +} +} + diff --git a/swagger/sdrangel/code/qt5/client/SWGSDRPlayReport_frequencyBands.h b/swagger/sdrangel/code/qt5/client/SWGSDRPlayReport_frequencyBands.h new file mode 100644 index 000000000..29653f799 --- /dev/null +++ b/swagger/sdrangel/code/qt5/client/SWGSDRPlayReport_frequencyBands.h @@ -0,0 +1,71 @@ +/** + * 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. * Stopping instance i.e. /sdrangel with DELETE method is a server only feature. It allows stopping the instance nicely. * 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 demodulator, Channel Analyzer, Channel Analyzer NG, LoRa demodulator, TCP source * The content type returned is always application/json except in the following cases: * An incorrect URL was specified: this document is returned as text/html with a status 400 --- + * + * OpenAPI spec version: 4.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. + */ + +/* + * SWGSDRPlayReport_frequencyBands.h + * + * + */ + +#ifndef SWGSDRPlayReport_frequencyBands_H_ +#define SWGSDRPlayReport_frequencyBands_H_ + +#include + + +#include + +#include "SWGObject.h" +#include "export.h" + +namespace SWGSDRangel { + +class SWG_API SWGSDRPlayReport_frequencyBands: public SWGObject { +public: + SWGSDRPlayReport_frequencyBands(); + SWGSDRPlayReport_frequencyBands(QString* json); + virtual ~SWGSDRPlayReport_frequencyBands(); + void init(); + void cleanup(); + + virtual QString asJson () override; + virtual QJsonObject* asJsonObject() override; + virtual void fromJsonObject(QJsonObject &json) override; + virtual SWGSDRPlayReport_frequencyBands* fromJson(QString &jsonString) override; + + QString* getBandName(); + void setBandName(QString* band_name); + + qint32 getBandLow(); + void setBandLow(qint32 band_low); + + qint32 getBandHigh(); + void setBandHigh(qint32 band_high); + + + virtual bool isSet() override; + +private: + QString* band_name; + bool m_band_name_isSet; + + qint32 band_low; + bool m_band_low_isSet; + + qint32 band_high; + bool m_band_high_isSet; + +}; + +} + +#endif /* SWGSDRPlayReport_frequencyBands_H_ */ diff --git a/swagger/sdrangel/code/qt5/client/SWGSDRPlayReport_intermediateFrequencies.cpp b/swagger/sdrangel/code/qt5/client/SWGSDRPlayReport_intermediateFrequencies.cpp new file mode 100644 index 000000000..653aae36c --- /dev/null +++ b/swagger/sdrangel/code/qt5/client/SWGSDRPlayReport_intermediateFrequencies.cpp @@ -0,0 +1,106 @@ +/** + * 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. * Stopping instance i.e. /sdrangel with DELETE method is a server only feature. It allows stopping the instance nicely. * 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 demodulator, Channel Analyzer, Channel Analyzer NG, LoRa demodulator, TCP source * The content type returned is always application/json except in the following cases: * An incorrect URL was specified: this document is returned as text/html with a status 400 --- + * + * OpenAPI spec version: 4.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 "SWGSDRPlayReport_intermediateFrequencies.h" + +#include "SWGHelpers.h" + +#include +#include +#include +#include + +namespace SWGSDRangel { + +SWGSDRPlayReport_intermediateFrequencies::SWGSDRPlayReport_intermediateFrequencies(QString* json) { + init(); + this->fromJson(*json); +} + +SWGSDRPlayReport_intermediateFrequencies::SWGSDRPlayReport_intermediateFrequencies() { + intermediate_frequency = 0; + m_intermediate_frequency_isSet = false; +} + +SWGSDRPlayReport_intermediateFrequencies::~SWGSDRPlayReport_intermediateFrequencies() { + this->cleanup(); +} + +void +SWGSDRPlayReport_intermediateFrequencies::init() { + intermediate_frequency = 0; + m_intermediate_frequency_isSet = false; +} + +void +SWGSDRPlayReport_intermediateFrequencies::cleanup() { + +} + +SWGSDRPlayReport_intermediateFrequencies* +SWGSDRPlayReport_intermediateFrequencies::fromJson(QString &json) { + QByteArray array (json.toStdString().c_str()); + QJsonDocument doc = QJsonDocument::fromJson(array); + QJsonObject jsonObject = doc.object(); + this->fromJsonObject(jsonObject); + return this; +} + +void +SWGSDRPlayReport_intermediateFrequencies::fromJsonObject(QJsonObject &pJson) { + ::SWGSDRangel::setValue(&intermediate_frequency, pJson["intermediateFrequency"], "qint32", ""); + +} + +QString +SWGSDRPlayReport_intermediateFrequencies::asJson () +{ + QJsonObject* obj = this->asJsonObject(); + + QJsonDocument doc(*obj); + QByteArray bytes = doc.toJson(); + delete obj; + return QString(bytes); +} + +QJsonObject* +SWGSDRPlayReport_intermediateFrequencies::asJsonObject() { + QJsonObject* obj = new QJsonObject(); + if(m_intermediate_frequency_isSet){ + obj->insert("intermediateFrequency", QJsonValue(intermediate_frequency)); + } + + return obj; +} + +qint32 +SWGSDRPlayReport_intermediateFrequencies::getIntermediateFrequency() { + return intermediate_frequency; +} +void +SWGSDRPlayReport_intermediateFrequencies::setIntermediateFrequency(qint32 intermediate_frequency) { + this->intermediate_frequency = intermediate_frequency; + this->m_intermediate_frequency_isSet = true; +} + + +bool +SWGSDRPlayReport_intermediateFrequencies::isSet(){ + bool isObjectUpdated = false; + do{ + if(m_intermediate_frequency_isSet){ isObjectUpdated = true; break;} + }while(false); + return isObjectUpdated; +} +} + diff --git a/swagger/sdrangel/code/qt5/client/SWGSDRPlayReport_intermediateFrequencies.h b/swagger/sdrangel/code/qt5/client/SWGSDRPlayReport_intermediateFrequencies.h new file mode 100644 index 000000000..93504fc3e --- /dev/null +++ b/swagger/sdrangel/code/qt5/client/SWGSDRPlayReport_intermediateFrequencies.h @@ -0,0 +1,58 @@ +/** + * 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. * Stopping instance i.e. /sdrangel with DELETE method is a server only feature. It allows stopping the instance nicely. * 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 demodulator, Channel Analyzer, Channel Analyzer NG, LoRa demodulator, TCP source * The content type returned is always application/json except in the following cases: * An incorrect URL was specified: this document is returned as text/html with a status 400 --- + * + * OpenAPI spec version: 4.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. + */ + +/* + * SWGSDRPlayReport_intermediateFrequencies.h + * + * + */ + +#ifndef SWGSDRPlayReport_intermediateFrequencies_H_ +#define SWGSDRPlayReport_intermediateFrequencies_H_ + +#include + + + +#include "SWGObject.h" +#include "export.h" + +namespace SWGSDRangel { + +class SWG_API SWGSDRPlayReport_intermediateFrequencies: public SWGObject { +public: + SWGSDRPlayReport_intermediateFrequencies(); + SWGSDRPlayReport_intermediateFrequencies(QString* json); + virtual ~SWGSDRPlayReport_intermediateFrequencies(); + void init(); + void cleanup(); + + virtual QString asJson () override; + virtual QJsonObject* asJsonObject() override; + virtual void fromJsonObject(QJsonObject &json) override; + virtual SWGSDRPlayReport_intermediateFrequencies* fromJson(QString &jsonString) override; + + qint32 getIntermediateFrequency(); + void setIntermediateFrequency(qint32 intermediate_frequency); + + + virtual bool isSet() override; + +private: + qint32 intermediate_frequency; + bool m_intermediate_frequency_isSet; + +}; + +} + +#endif /* SWGSDRPlayReport_intermediateFrequencies_H_ */ diff --git a/swagger/sdrangel/code/qt5/client/SWGSDRPlaySettings.cpp b/swagger/sdrangel/code/qt5/client/SWGSDRPlaySettings.cpp new file mode 100644 index 000000000..f5417988c --- /dev/null +++ b/swagger/sdrangel/code/qt5/client/SWGSDRPlaySettings.cpp @@ -0,0 +1,423 @@ +/** + * 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. * Stopping instance i.e. /sdrangel with DELETE method is a server only feature. It allows stopping the instance nicely. * 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 demodulator, Channel Analyzer, Channel Analyzer NG, LoRa demodulator, TCP source * The content type returned is always application/json except in the following cases: * An incorrect URL was specified: this document is returned as text/html with a status 400 --- + * + * OpenAPI spec version: 4.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 "SWGSDRPlaySettings.h" + +#include "SWGHelpers.h" + +#include +#include +#include +#include + +namespace SWGSDRangel { + +SWGSDRPlaySettings::SWGSDRPlaySettings(QString* json) { + init(); + this->fromJson(*json); +} + +SWGSDRPlaySettings::SWGSDRPlaySettings() { + center_frequency = 0; + m_center_frequency_isSet = false; + tuner_gain = 0; + m_tuner_gain_isSet = false; + l_oppm_tenths = 0; + m_l_oppm_tenths_isSet = false; + frequency_band_index = 0; + m_frequency_band_index_isSet = false; + if_frequency_index = 0; + m_if_frequency_index_isSet = false; + bandwidth_index = 0; + m_bandwidth_index_isSet = false; + dev_sample_rate_index = 0; + m_dev_sample_rate_index_isSet = false; + log2_decim = 0; + m_log2_decim_isSet = false; + fc_pos = 0; + m_fc_pos_isSet = false; + dc_block = 0; + m_dc_block_isSet = false; + iq_correction = 0; + m_iq_correction_isSet = false; + tuner_gain_mode = 0; + m_tuner_gain_mode_isSet = false; + lna_on = 0; + m_lna_on_isSet = false; + mixer_amp_on = 0; + m_mixer_amp_on_isSet = false; + baseband_gain = 0; + m_baseband_gain_isSet = false; + file_record_name = nullptr; + m_file_record_name_isSet = false; +} + +SWGSDRPlaySettings::~SWGSDRPlaySettings() { + this->cleanup(); +} + +void +SWGSDRPlaySettings::init() { + center_frequency = 0; + m_center_frequency_isSet = false; + tuner_gain = 0; + m_tuner_gain_isSet = false; + l_oppm_tenths = 0; + m_l_oppm_tenths_isSet = false; + frequency_band_index = 0; + m_frequency_band_index_isSet = false; + if_frequency_index = 0; + m_if_frequency_index_isSet = false; + bandwidth_index = 0; + m_bandwidth_index_isSet = false; + dev_sample_rate_index = 0; + m_dev_sample_rate_index_isSet = false; + log2_decim = 0; + m_log2_decim_isSet = false; + fc_pos = 0; + m_fc_pos_isSet = false; + dc_block = 0; + m_dc_block_isSet = false; + iq_correction = 0; + m_iq_correction_isSet = false; + tuner_gain_mode = 0; + m_tuner_gain_mode_isSet = false; + lna_on = 0; + m_lna_on_isSet = false; + mixer_amp_on = 0; + m_mixer_amp_on_isSet = false; + baseband_gain = 0; + m_baseband_gain_isSet = false; + file_record_name = new QString(""); + m_file_record_name_isSet = false; +} + +void +SWGSDRPlaySettings::cleanup() { + + + + + + + + + + + + + + + + if(file_record_name != nullptr) { + delete file_record_name; + } +} + +SWGSDRPlaySettings* +SWGSDRPlaySettings::fromJson(QString &json) { + QByteArray array (json.toStdString().c_str()); + QJsonDocument doc = QJsonDocument::fromJson(array); + QJsonObject jsonObject = doc.object(); + this->fromJsonObject(jsonObject); + return this; +} + +void +SWGSDRPlaySettings::fromJsonObject(QJsonObject &pJson) { + ::SWGSDRangel::setValue(¢er_frequency, pJson["centerFrequency"], "qint32", ""); + + ::SWGSDRangel::setValue(&tuner_gain, pJson["tunerGain"], "qint32", ""); + + ::SWGSDRangel::setValue(&l_oppm_tenths, pJson["LOppmTenths"], "qint32", ""); + + ::SWGSDRangel::setValue(&frequency_band_index, pJson["frequencyBandIndex"], "qint32", ""); + + ::SWGSDRangel::setValue(&if_frequency_index, pJson["ifFrequencyIndex"], "qint32", ""); + + ::SWGSDRangel::setValue(&bandwidth_index, pJson["bandwidthIndex"], "qint32", ""); + + ::SWGSDRangel::setValue(&dev_sample_rate_index, pJson["devSampleRateIndex"], "qint32", ""); + + ::SWGSDRangel::setValue(&log2_decim, pJson["log2Decim"], "qint32", ""); + + ::SWGSDRangel::setValue(&fc_pos, pJson["fcPos"], "qint32", ""); + + ::SWGSDRangel::setValue(&dc_block, pJson["dcBlock"], "qint32", ""); + + ::SWGSDRangel::setValue(&iq_correction, pJson["iqCorrection"], "qint32", ""); + + ::SWGSDRangel::setValue(&tuner_gain_mode, pJson["tunerGainMode"], "qint32", ""); + + ::SWGSDRangel::setValue(&lna_on, pJson["lnaOn"], "qint32", ""); + + ::SWGSDRangel::setValue(&mixer_amp_on, pJson["mixerAmpOn"], "qint32", ""); + + ::SWGSDRangel::setValue(&baseband_gain, pJson["basebandGain"], "qint32", ""); + + ::SWGSDRangel::setValue(&file_record_name, pJson["fileRecordName"], "QString", "QString"); + +} + +QString +SWGSDRPlaySettings::asJson () +{ + QJsonObject* obj = this->asJsonObject(); + + QJsonDocument doc(*obj); + QByteArray bytes = doc.toJson(); + delete obj; + return QString(bytes); +} + +QJsonObject* +SWGSDRPlaySettings::asJsonObject() { + QJsonObject* obj = new QJsonObject(); + if(m_center_frequency_isSet){ + obj->insert("centerFrequency", QJsonValue(center_frequency)); + } + if(m_tuner_gain_isSet){ + obj->insert("tunerGain", QJsonValue(tuner_gain)); + } + if(m_l_oppm_tenths_isSet){ + obj->insert("LOppmTenths", QJsonValue(l_oppm_tenths)); + } + if(m_frequency_band_index_isSet){ + obj->insert("frequencyBandIndex", QJsonValue(frequency_band_index)); + } + if(m_if_frequency_index_isSet){ + obj->insert("ifFrequencyIndex", QJsonValue(if_frequency_index)); + } + if(m_bandwidth_index_isSet){ + obj->insert("bandwidthIndex", QJsonValue(bandwidth_index)); + } + if(m_dev_sample_rate_index_isSet){ + obj->insert("devSampleRateIndex", QJsonValue(dev_sample_rate_index)); + } + if(m_log2_decim_isSet){ + obj->insert("log2Decim", QJsonValue(log2_decim)); + } + if(m_fc_pos_isSet){ + obj->insert("fcPos", QJsonValue(fc_pos)); + } + if(m_dc_block_isSet){ + obj->insert("dcBlock", QJsonValue(dc_block)); + } + if(m_iq_correction_isSet){ + obj->insert("iqCorrection", QJsonValue(iq_correction)); + } + if(m_tuner_gain_mode_isSet){ + obj->insert("tunerGainMode", QJsonValue(tuner_gain_mode)); + } + if(m_lna_on_isSet){ + obj->insert("lnaOn", QJsonValue(lna_on)); + } + if(m_mixer_amp_on_isSet){ + obj->insert("mixerAmpOn", QJsonValue(mixer_amp_on)); + } + if(m_baseband_gain_isSet){ + obj->insert("basebandGain", QJsonValue(baseband_gain)); + } + if(file_record_name != nullptr && *file_record_name != QString("")){ + toJsonValue(QString("fileRecordName"), file_record_name, obj, QString("QString")); + } + + return obj; +} + +qint32 +SWGSDRPlaySettings::getCenterFrequency() { + return center_frequency; +} +void +SWGSDRPlaySettings::setCenterFrequency(qint32 center_frequency) { + this->center_frequency = center_frequency; + this->m_center_frequency_isSet = true; +} + +qint32 +SWGSDRPlaySettings::getTunerGain() { + return tuner_gain; +} +void +SWGSDRPlaySettings::setTunerGain(qint32 tuner_gain) { + this->tuner_gain = tuner_gain; + this->m_tuner_gain_isSet = true; +} + +qint32 +SWGSDRPlaySettings::getLOppmTenths() { + return l_oppm_tenths; +} +void +SWGSDRPlaySettings::setLOppmTenths(qint32 l_oppm_tenths) { + this->l_oppm_tenths = l_oppm_tenths; + this->m_l_oppm_tenths_isSet = true; +} + +qint32 +SWGSDRPlaySettings::getFrequencyBandIndex() { + return frequency_band_index; +} +void +SWGSDRPlaySettings::setFrequencyBandIndex(qint32 frequency_band_index) { + this->frequency_band_index = frequency_band_index; + this->m_frequency_band_index_isSet = true; +} + +qint32 +SWGSDRPlaySettings::getIfFrequencyIndex() { + return if_frequency_index; +} +void +SWGSDRPlaySettings::setIfFrequencyIndex(qint32 if_frequency_index) { + this->if_frequency_index = if_frequency_index; + this->m_if_frequency_index_isSet = true; +} + +qint32 +SWGSDRPlaySettings::getBandwidthIndex() { + return bandwidth_index; +} +void +SWGSDRPlaySettings::setBandwidthIndex(qint32 bandwidth_index) { + this->bandwidth_index = bandwidth_index; + this->m_bandwidth_index_isSet = true; +} + +qint32 +SWGSDRPlaySettings::getDevSampleRateIndex() { + return dev_sample_rate_index; +} +void +SWGSDRPlaySettings::setDevSampleRateIndex(qint32 dev_sample_rate_index) { + this->dev_sample_rate_index = dev_sample_rate_index; + this->m_dev_sample_rate_index_isSet = true; +} + +qint32 +SWGSDRPlaySettings::getLog2Decim() { + return log2_decim; +} +void +SWGSDRPlaySettings::setLog2Decim(qint32 log2_decim) { + this->log2_decim = log2_decim; + this->m_log2_decim_isSet = true; +} + +qint32 +SWGSDRPlaySettings::getFcPos() { + return fc_pos; +} +void +SWGSDRPlaySettings::setFcPos(qint32 fc_pos) { + this->fc_pos = fc_pos; + this->m_fc_pos_isSet = true; +} + +qint32 +SWGSDRPlaySettings::getDcBlock() { + return dc_block; +} +void +SWGSDRPlaySettings::setDcBlock(qint32 dc_block) { + this->dc_block = dc_block; + this->m_dc_block_isSet = true; +} + +qint32 +SWGSDRPlaySettings::getIqCorrection() { + return iq_correction; +} +void +SWGSDRPlaySettings::setIqCorrection(qint32 iq_correction) { + this->iq_correction = iq_correction; + this->m_iq_correction_isSet = true; +} + +qint32 +SWGSDRPlaySettings::getTunerGainMode() { + return tuner_gain_mode; +} +void +SWGSDRPlaySettings::setTunerGainMode(qint32 tuner_gain_mode) { + this->tuner_gain_mode = tuner_gain_mode; + this->m_tuner_gain_mode_isSet = true; +} + +qint32 +SWGSDRPlaySettings::getLnaOn() { + return lna_on; +} +void +SWGSDRPlaySettings::setLnaOn(qint32 lna_on) { + this->lna_on = lna_on; + this->m_lna_on_isSet = true; +} + +qint32 +SWGSDRPlaySettings::getMixerAmpOn() { + return mixer_amp_on; +} +void +SWGSDRPlaySettings::setMixerAmpOn(qint32 mixer_amp_on) { + this->mixer_amp_on = mixer_amp_on; + this->m_mixer_amp_on_isSet = true; +} + +qint32 +SWGSDRPlaySettings::getBasebandGain() { + return baseband_gain; +} +void +SWGSDRPlaySettings::setBasebandGain(qint32 baseband_gain) { + this->baseband_gain = baseband_gain; + this->m_baseband_gain_isSet = true; +} + +QString* +SWGSDRPlaySettings::getFileRecordName() { + return file_record_name; +} +void +SWGSDRPlaySettings::setFileRecordName(QString* file_record_name) { + this->file_record_name = file_record_name; + this->m_file_record_name_isSet = true; +} + + +bool +SWGSDRPlaySettings::isSet(){ + bool isObjectUpdated = false; + do{ + if(m_center_frequency_isSet){ isObjectUpdated = true; break;} + if(m_tuner_gain_isSet){ isObjectUpdated = true; break;} + if(m_l_oppm_tenths_isSet){ isObjectUpdated = true; break;} + if(m_frequency_band_index_isSet){ isObjectUpdated = true; break;} + if(m_if_frequency_index_isSet){ isObjectUpdated = true; break;} + if(m_bandwidth_index_isSet){ isObjectUpdated = true; break;} + if(m_dev_sample_rate_index_isSet){ isObjectUpdated = true; break;} + if(m_log2_decim_isSet){ isObjectUpdated = true; break;} + if(m_fc_pos_isSet){ isObjectUpdated = true; break;} + if(m_dc_block_isSet){ isObjectUpdated = true; break;} + if(m_iq_correction_isSet){ isObjectUpdated = true; break;} + if(m_tuner_gain_mode_isSet){ isObjectUpdated = true; break;} + if(m_lna_on_isSet){ isObjectUpdated = true; break;} + if(m_mixer_amp_on_isSet){ isObjectUpdated = true; break;} + if(m_baseband_gain_isSet){ isObjectUpdated = true; break;} + if(file_record_name != nullptr && *file_record_name != QString("")){ isObjectUpdated = true; break;} + }while(false); + return isObjectUpdated; +} +} + diff --git a/swagger/sdrangel/code/qt5/client/SWGSDRPlaySettings.h b/swagger/sdrangel/code/qt5/client/SWGSDRPlaySettings.h new file mode 100644 index 000000000..b17561716 --- /dev/null +++ b/swagger/sdrangel/code/qt5/client/SWGSDRPlaySettings.h @@ -0,0 +1,149 @@ +/** + * 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. * Stopping instance i.e. /sdrangel with DELETE method is a server only feature. It allows stopping the instance nicely. * 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 demodulator, Channel Analyzer, Channel Analyzer NG, LoRa demodulator, TCP source * The content type returned is always application/json except in the following cases: * An incorrect URL was specified: this document is returned as text/html with a status 400 --- + * + * OpenAPI spec version: 4.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. + */ + +/* + * SWGSDRPlaySettings.h + * + * SDRplay1 + */ + +#ifndef SWGSDRPlaySettings_H_ +#define SWGSDRPlaySettings_H_ + +#include + + +#include + +#include "SWGObject.h" +#include "export.h" + +namespace SWGSDRangel { + +class SWG_API SWGSDRPlaySettings: public SWGObject { +public: + SWGSDRPlaySettings(); + SWGSDRPlaySettings(QString* json); + virtual ~SWGSDRPlaySettings(); + void init(); + void cleanup(); + + virtual QString asJson () override; + virtual QJsonObject* asJsonObject() override; + virtual void fromJsonObject(QJsonObject &json) override; + virtual SWGSDRPlaySettings* fromJson(QString &jsonString) override; + + qint32 getCenterFrequency(); + void setCenterFrequency(qint32 center_frequency); + + qint32 getTunerGain(); + void setTunerGain(qint32 tuner_gain); + + qint32 getLOppmTenths(); + void setLOppmTenths(qint32 l_oppm_tenths); + + qint32 getFrequencyBandIndex(); + void setFrequencyBandIndex(qint32 frequency_band_index); + + qint32 getIfFrequencyIndex(); + void setIfFrequencyIndex(qint32 if_frequency_index); + + qint32 getBandwidthIndex(); + void setBandwidthIndex(qint32 bandwidth_index); + + qint32 getDevSampleRateIndex(); + void setDevSampleRateIndex(qint32 dev_sample_rate_index); + + qint32 getLog2Decim(); + void setLog2Decim(qint32 log2_decim); + + qint32 getFcPos(); + void setFcPos(qint32 fc_pos); + + qint32 getDcBlock(); + void setDcBlock(qint32 dc_block); + + qint32 getIqCorrection(); + void setIqCorrection(qint32 iq_correction); + + qint32 getTunerGainMode(); + void setTunerGainMode(qint32 tuner_gain_mode); + + qint32 getLnaOn(); + void setLnaOn(qint32 lna_on); + + qint32 getMixerAmpOn(); + void setMixerAmpOn(qint32 mixer_amp_on); + + qint32 getBasebandGain(); + void setBasebandGain(qint32 baseband_gain); + + QString* getFileRecordName(); + void setFileRecordName(QString* file_record_name); + + + virtual bool isSet() override; + +private: + qint32 center_frequency; + bool m_center_frequency_isSet; + + qint32 tuner_gain; + bool m_tuner_gain_isSet; + + qint32 l_oppm_tenths; + bool m_l_oppm_tenths_isSet; + + qint32 frequency_band_index; + bool m_frequency_band_index_isSet; + + qint32 if_frequency_index; + bool m_if_frequency_index_isSet; + + qint32 bandwidth_index; + bool m_bandwidth_index_isSet; + + qint32 dev_sample_rate_index; + bool m_dev_sample_rate_index_isSet; + + qint32 log2_decim; + bool m_log2_decim_isSet; + + qint32 fc_pos; + bool m_fc_pos_isSet; + + qint32 dc_block; + bool m_dc_block_isSet; + + qint32 iq_correction; + bool m_iq_correction_isSet; + + qint32 tuner_gain_mode; + bool m_tuner_gain_mode_isSet; + + qint32 lna_on; + bool m_lna_on_isSet; + + qint32 mixer_amp_on; + bool m_mixer_amp_on_isSet; + + qint32 baseband_gain; + bool m_baseband_gain_isSet; + + QString* file_record_name; + bool m_file_record_name_isSet; + +}; + +} + +#endif /* SWGSDRPlaySettings_H_ */