diff --git a/sdrbase/resources/webapi/doc/html2/index.html b/sdrbase/resources/webapi/doc/html2/index.html
index ba5d19681..794221a9f 100644
--- a/sdrbase/resources/webapi/doc/html2/index.html
+++ b/sdrbase/resources/webapi/doc/html2/index.html
@@ -13104,6 +13104,10 @@ margin-bottom: 20px;
"preFill" : {
"type" : "integer"
},
+ "protocol" : {
+ "type" : "string",
+ "description" : "(SDRangel or Spy Server)"
+ },
"useReverseAPI" : {
"type" : "integer",
"description" : "Synchronize with reverse API (1 for yes, 0 for no)"
@@ -58668,7 +58672,7 @@ except ApiException as e:
- Generated 2024-02-12T10:33:45.606+01:00
+ Generated 2024-02-27T15:07:08.970+01:00
diff --git a/sdrbase/resources/webapi/doc/swagger/include/RemoteTCPInput.yaml b/sdrbase/resources/webapi/doc/swagger/include/RemoteTCPInput.yaml
index df1bf0f8f..09cc073e6 100644
--- a/sdrbase/resources/webapi/doc/swagger/include/RemoteTCPInput.yaml
+++ b/sdrbase/resources/webapi/doc/swagger/include/RemoteTCPInput.yaml
@@ -43,6 +43,9 @@ RemoteTCPInputSettings:
type: integer
preFill:
type: integer
+ protocol:
+ description: (SDRangel or Spy Server)
+ type: string
useReverseAPI:
description: Synchronize with reverse API (1 for yes, 0 for no)
type: integer
diff --git a/swagger/sdrangel/code/html2/index.html b/swagger/sdrangel/code/html2/index.html
index ba5d19681..794221a9f 100644
--- a/swagger/sdrangel/code/html2/index.html
+++ b/swagger/sdrangel/code/html2/index.html
@@ -13104,6 +13104,10 @@ margin-bottom: 20px;
"preFill" : {
"type" : "integer"
},
+ "protocol" : {
+ "type" : "string",
+ "description" : "(SDRangel or Spy Server)"
+ },
"useReverseAPI" : {
"type" : "integer",
"description" : "Synchronize with reverse API (1 for yes, 0 for no)"
@@ -58668,7 +58672,7 @@ except ApiException as e:
- Generated 2024-02-12T10:33:45.606+01:00
+ Generated 2024-02-27T15:07:08.970+01:00
diff --git a/swagger/sdrangel/code/qt5/client/SWGRemoteTCPInputSettings.cpp b/swagger/sdrangel/code/qt5/client/SWGRemoteTCPInputSettings.cpp
index cb50977b5..1f86e8091 100644
--- a/swagger/sdrangel/code/qt5/client/SWGRemoteTCPInputSettings.cpp
+++ b/swagger/sdrangel/code/qt5/client/SWGRemoteTCPInputSettings.cpp
@@ -68,6 +68,8 @@ SWGRemoteTCPInputSettings::SWGRemoteTCPInputSettings() {
m_override_remote_settings_isSet = false;
pre_fill = 0;
m_pre_fill_isSet = false;
+ protocol = nullptr;
+ m_protocol_isSet = false;
use_reverse_api = 0;
m_use_reverse_api_isSet = false;
reverse_api_address = nullptr;
@@ -124,6 +126,8 @@ SWGRemoteTCPInputSettings::init() {
m_override_remote_settings_isSet = false;
pre_fill = 0;
m_pre_fill_isSet = false;
+ protocol = new QString("");
+ m_protocol_isSet = false;
use_reverse_api = 0;
m_use_reverse_api_isSet = false;
reverse_api_address = new QString("");
@@ -158,6 +162,9 @@ SWGRemoteTCPInputSettings::cleanup() {
+ if(protocol != nullptr) {
+ delete protocol;
+ }
if(reverse_api_address != nullptr) {
delete reverse_api_address;
@@ -217,6 +224,8 @@ SWGRemoteTCPInputSettings::fromJsonObject(QJsonObject &pJson) {
::SWGSDRangel::setValue(&pre_fill, pJson["preFill"], "qint32", "");
+ ::SWGSDRangel::setValue(&protocol, pJson["protocol"], "QString", "QString");
+
::SWGSDRangel::setValue(&use_reverse_api, pJson["useReverseAPI"], "qint32", "");
::SWGSDRangel::setValue(&reverse_api_address, pJson["reverseAPIAddress"], "QString", "QString");
@@ -301,6 +310,9 @@ SWGRemoteTCPInputSettings::asJsonObject() {
if(m_pre_fill_isSet){
obj->insert("preFill", QJsonValue(pre_fill));
}
+ if(protocol != nullptr && *protocol != QString("")){
+ toJsonValue(QString("protocol"), protocol, obj, QString("QString"));
+ }
if(m_use_reverse_api_isSet){
obj->insert("useReverseAPI", QJsonValue(use_reverse_api));
}
@@ -517,6 +529,16 @@ SWGRemoteTCPInputSettings::setPreFill(qint32 pre_fill) {
this->m_pre_fill_isSet = true;
}
+QString*
+SWGRemoteTCPInputSettings::getProtocol() {
+ return protocol;
+}
+void
+SWGRemoteTCPInputSettings::setProtocol(QString* protocol) {
+ this->protocol = protocol;
+ this->m_protocol_isSet = true;
+}
+
qint32
SWGRemoteTCPInputSettings::getUseReverseApi() {
return use_reverse_api;
@@ -622,6 +644,9 @@ SWGRemoteTCPInputSettings::isSet(){
if(m_pre_fill_isSet){
isObjectUpdated = true; break;
}
+ if(protocol && *protocol != QString("")){
+ isObjectUpdated = true; break;
+ }
if(m_use_reverse_api_isSet){
isObjectUpdated = true; break;
}
diff --git a/swagger/sdrangel/code/qt5/client/SWGRemoteTCPInputSettings.h b/swagger/sdrangel/code/qt5/client/SWGRemoteTCPInputSettings.h
index 80ee77496..5189b7c32 100644
--- a/swagger/sdrangel/code/qt5/client/SWGRemoteTCPInputSettings.h
+++ b/swagger/sdrangel/code/qt5/client/SWGRemoteTCPInputSettings.h
@@ -102,6 +102,9 @@ public:
qint32 getPreFill();
void setPreFill(qint32 pre_fill);
+ QString* getProtocol();
+ void setProtocol(QString* protocol);
+
qint32 getUseReverseApi();
void setUseReverseApi(qint32 use_reverse_api);
@@ -178,6 +181,9 @@ private:
qint32 pre_fill;
bool m_pre_fill_isSet;
+ QString* protocol;
+ bool m_protocol_isSet;
+
qint32 use_reverse_api;
bool m_use_reverse_api_isSet;