From 879ce0e17bd1300a9b4e8052c9747d752c09bafd Mon Sep 17 00:00:00 2001 From: srcejon Date: Thu, 4 Apr 2024 15:24:08 +0100 Subject: [PATCH] Regenerate swagger --- sdrbase/resources/webapi/doc/html2/index.html | 14 +++- .../webapi/doc/swagger/include/KiwiSDR.yaml | 9 +++ swagger/sdrangel/code/html2/index.html | 14 +++- .../code/qt5/client/SWGKiwiSDRReport.cpp | 69 +++++++++++++++++++ .../code/qt5/client/SWGKiwiSDRReport.h | 18 +++++ 5 files changed, 122 insertions(+), 2 deletions(-) diff --git a/sdrbase/resources/webapi/doc/html2/index.html b/sdrbase/resources/webapi/doc/html2/index.html index baa657e21..038c51178 100644 --- a/sdrbase/resources/webapi/doc/html2/index.html +++ b/sdrbase/resources/webapi/doc/html2/index.html @@ -8558,6 +8558,18 @@ margin-bottom: 20px; "status" : { "type" : "integer", "description" : "0 for Idle, 1 for Connecting, 2 for Connected, 3 for Error, 4 for Disconnected" + }, + "latitude" : { + "type" : "number", + "format" : "float" + }, + "longitude" : { + "type" : "number", + "format" : "float" + }, + "altitude" : { + "type" : "number", + "format" : "float" } }, "description" : "KiwiSDR" @@ -58922,7 +58934,7 @@ except ApiException as e:
- Generated 2024-03-27T17:49:13.510+01:00 + Generated 2024-04-04T16:23:36.765+02:00
diff --git a/sdrbase/resources/webapi/doc/swagger/include/KiwiSDR.yaml b/sdrbase/resources/webapi/doc/swagger/include/KiwiSDR.yaml index d02981dbe..8042a9fc5 100644 --- a/sdrbase/resources/webapi/doc/swagger/include/KiwiSDR.yaml +++ b/sdrbase/resources/webapi/doc/swagger/include/KiwiSDR.yaml @@ -30,3 +30,12 @@ KiwiSDRReport: status: description: 0 for Idle, 1 for Connecting, 2 for Connected, 3 for Error, 4 for Disconnected type: integer + latitude: + type: number + format: float + longitude: + type: number + format: float + altitude: + type: number + format: float diff --git a/swagger/sdrangel/code/html2/index.html b/swagger/sdrangel/code/html2/index.html index baa657e21..038c51178 100644 --- a/swagger/sdrangel/code/html2/index.html +++ b/swagger/sdrangel/code/html2/index.html @@ -8558,6 +8558,18 @@ margin-bottom: 20px; "status" : { "type" : "integer", "description" : "0 for Idle, 1 for Connecting, 2 for Connected, 3 for Error, 4 for Disconnected" + }, + "latitude" : { + "type" : "number", + "format" : "float" + }, + "longitude" : { + "type" : "number", + "format" : "float" + }, + "altitude" : { + "type" : "number", + "format" : "float" } }, "description" : "KiwiSDR" @@ -58922,7 +58934,7 @@ except ApiException as e:
- Generated 2024-03-27T17:49:13.510+01:00 + Generated 2024-04-04T16:23:36.765+02:00
diff --git a/swagger/sdrangel/code/qt5/client/SWGKiwiSDRReport.cpp b/swagger/sdrangel/code/qt5/client/SWGKiwiSDRReport.cpp index 2ec8dcd47..e2b62345b 100644 --- a/swagger/sdrangel/code/qt5/client/SWGKiwiSDRReport.cpp +++ b/swagger/sdrangel/code/qt5/client/SWGKiwiSDRReport.cpp @@ -30,6 +30,12 @@ SWGKiwiSDRReport::SWGKiwiSDRReport(QString* json) { SWGKiwiSDRReport::SWGKiwiSDRReport() { status = 0; m_status_isSet = false; + latitude = 0.0f; + m_latitude_isSet = false; + longitude = 0.0f; + m_longitude_isSet = false; + altitude = 0.0f; + m_altitude_isSet = false; } SWGKiwiSDRReport::~SWGKiwiSDRReport() { @@ -40,11 +46,20 @@ void SWGKiwiSDRReport::init() { status = 0; m_status_isSet = false; + latitude = 0.0f; + m_latitude_isSet = false; + longitude = 0.0f; + m_longitude_isSet = false; + altitude = 0.0f; + m_altitude_isSet = false; } void SWGKiwiSDRReport::cleanup() { + + + } SWGKiwiSDRReport* @@ -60,6 +75,12 @@ void SWGKiwiSDRReport::fromJsonObject(QJsonObject &pJson) { ::SWGSDRangel::setValue(&status, pJson["status"], "qint32", ""); + ::SWGSDRangel::setValue(&latitude, pJson["latitude"], "float", ""); + + ::SWGSDRangel::setValue(&longitude, pJson["longitude"], "float", ""); + + ::SWGSDRangel::setValue(&altitude, pJson["altitude"], "float", ""); + } QString @@ -79,6 +100,15 @@ SWGKiwiSDRReport::asJsonObject() { if(m_status_isSet){ obj->insert("status", QJsonValue(status)); } + if(m_latitude_isSet){ + obj->insert("latitude", QJsonValue(latitude)); + } + if(m_longitude_isSet){ + obj->insert("longitude", QJsonValue(longitude)); + } + if(m_altitude_isSet){ + obj->insert("altitude", QJsonValue(altitude)); + } return obj; } @@ -93,6 +123,36 @@ SWGKiwiSDRReport::setStatus(qint32 status) { this->m_status_isSet = true; } +float +SWGKiwiSDRReport::getLatitude() { + return latitude; +} +void +SWGKiwiSDRReport::setLatitude(float latitude) { + this->latitude = latitude; + this->m_latitude_isSet = true; +} + +float +SWGKiwiSDRReport::getLongitude() { + return longitude; +} +void +SWGKiwiSDRReport::setLongitude(float longitude) { + this->longitude = longitude; + this->m_longitude_isSet = true; +} + +float +SWGKiwiSDRReport::getAltitude() { + return altitude; +} +void +SWGKiwiSDRReport::setAltitude(float altitude) { + this->altitude = altitude; + this->m_altitude_isSet = true; +} + bool SWGKiwiSDRReport::isSet(){ @@ -101,6 +161,15 @@ SWGKiwiSDRReport::isSet(){ if(m_status_isSet){ isObjectUpdated = true; break; } + if(m_latitude_isSet){ + isObjectUpdated = true; break; + } + if(m_longitude_isSet){ + isObjectUpdated = true; break; + } + if(m_altitude_isSet){ + isObjectUpdated = true; break; + } }while(false); return isObjectUpdated; } diff --git a/swagger/sdrangel/code/qt5/client/SWGKiwiSDRReport.h b/swagger/sdrangel/code/qt5/client/SWGKiwiSDRReport.h index c4c119470..340e46209 100644 --- a/swagger/sdrangel/code/qt5/client/SWGKiwiSDRReport.h +++ b/swagger/sdrangel/code/qt5/client/SWGKiwiSDRReport.h @@ -44,6 +44,15 @@ public: qint32 getStatus(); void setStatus(qint32 status); + float getLatitude(); + void setLatitude(float latitude); + + float getLongitude(); + void setLongitude(float longitude); + + float getAltitude(); + void setAltitude(float altitude); + virtual bool isSet() override; @@ -51,6 +60,15 @@ private: qint32 status; bool m_status_isSet; + float latitude; + bool m_latitude_isSet; + + float longitude; + bool m_longitude_isSet; + + float altitude; + bool m_altitude_isSet; + }; }