diff --git a/swagger/sdrangel/code/html2/index.html b/swagger/sdrangel/code/html2/index.html index 1e15029b6..dda20ebe0 100644 --- a/swagger/sdrangel/code/html2/index.html +++ b/swagger/sdrangel/code/html2/index.html @@ -11864,10 +11864,10 @@ margin-bottom: 20px; "type" : "integer" }, "prefixCRLF" : { - "type" : "string" + "type" : "integer" }, "postfixCRLF" : { - "type" : "string" + "type" : "integer" }, "udpEnabled" : { "type" : "integer", @@ -57998,7 +57998,7 @@ except ApiException as e:
- Generated 2023-09-01T20:05:30.444+02:00 + Generated 2023-09-01T20:07:45.995+02:00
diff --git a/swagger/sdrangel/code/qt5/client/SWGRTTYModSettings.cpp b/swagger/sdrangel/code/qt5/client/SWGRTTYModSettings.cpp index c54f01155..f45d6c82b 100644 --- a/swagger/sdrangel/code/qt5/client/SWGRTTYModSettings.cpp +++ b/swagger/sdrangel/code/qt5/client/SWGRTTYModSettings.cpp @@ -66,9 +66,9 @@ SWGRTTYModSettings::SWGRTTYModSettings() { m_msb_first_isSet = false; space_high = 0; m_space_high_isSet = false; - prefix_crlf = nullptr; + prefix_crlf = 0; m_prefix_crlf_isSet = false; - postfix_crlf = nullptr; + postfix_crlf = 0; m_postfix_crlf_isSet = false; udp_enabled = 0; m_udp_enabled_isSet = false; @@ -142,9 +142,9 @@ SWGRTTYModSettings::init() { m_msb_first_isSet = false; space_high = 0; m_space_high_isSet = false; - prefix_crlf = new QString(""); + prefix_crlf = 0; m_prefix_crlf_isSet = false; - postfix_crlf = new QString(""); + postfix_crlf = 0; m_postfix_crlf_isSet = false; udp_enabled = 0; m_udp_enabled_isSet = false; @@ -197,12 +197,8 @@ SWGRTTYModSettings::cleanup() { - if(prefix_crlf != nullptr) { - delete prefix_crlf; - } - if(postfix_crlf != nullptr) { - delete postfix_crlf; - } + + if(udp_address != nullptr) { delete udp_address; @@ -277,9 +273,9 @@ SWGRTTYModSettings::fromJsonObject(QJsonObject &pJson) { ::SWGSDRangel::setValue(&space_high, pJson["spaceHigh"], "qint32", ""); - ::SWGSDRangel::setValue(&prefix_crlf, pJson["prefixCRLF"], "QString", "QString"); + ::SWGSDRangel::setValue(&prefix_crlf, pJson["prefixCRLF"], "qint32", ""); - ::SWGSDRangel::setValue(&postfix_crlf, pJson["postfixCRLF"], "QString", "QString"); + ::SWGSDRangel::setValue(&postfix_crlf, pJson["postfixCRLF"], "qint32", ""); ::SWGSDRangel::setValue(&udp_enabled, pJson["udpEnabled"], "qint32", ""); @@ -380,11 +376,11 @@ SWGRTTYModSettings::asJsonObject() { if(m_space_high_isSet){ obj->insert("spaceHigh", QJsonValue(space_high)); } - if(prefix_crlf != nullptr && *prefix_crlf != QString("")){ - toJsonValue(QString("prefixCRLF"), prefix_crlf, obj, QString("QString")); + if(m_prefix_crlf_isSet){ + obj->insert("prefixCRLF", QJsonValue(prefix_crlf)); } - if(postfix_crlf != nullptr && *postfix_crlf != QString("")){ - toJsonValue(QString("postfixCRLF"), postfix_crlf, obj, QString("QString")); + if(m_postfix_crlf_isSet){ + obj->insert("postfixCRLF", QJsonValue(postfix_crlf)); } if(m_udp_enabled_isSet){ obj->insert("udpEnabled", QJsonValue(udp_enabled)); @@ -619,22 +615,22 @@ SWGRTTYModSettings::setSpaceHigh(qint32 space_high) { this->m_space_high_isSet = true; } -QString* +qint32 SWGRTTYModSettings::getPrefixCrlf() { return prefix_crlf; } void -SWGRTTYModSettings::setPrefixCrlf(QString* prefix_crlf) { +SWGRTTYModSettings::setPrefixCrlf(qint32 prefix_crlf) { this->prefix_crlf = prefix_crlf; this->m_prefix_crlf_isSet = true; } -QString* +qint32 SWGRTTYModSettings::getPostfixCrlf() { return postfix_crlf; } void -SWGRTTYModSettings::setPostfixCrlf(QString* postfix_crlf) { +SWGRTTYModSettings::setPostfixCrlf(qint32 postfix_crlf) { this->postfix_crlf = postfix_crlf; this->m_postfix_crlf_isSet = true; } @@ -831,10 +827,10 @@ SWGRTTYModSettings::isSet(){ if(m_space_high_isSet){ isObjectUpdated = true; break; } - if(prefix_crlf && *prefix_crlf != QString("")){ + if(m_prefix_crlf_isSet){ isObjectUpdated = true; break; } - if(postfix_crlf && *postfix_crlf != QString("")){ + if(m_postfix_crlf_isSet){ isObjectUpdated = true; break; } if(m_udp_enabled_isSet){ diff --git a/swagger/sdrangel/code/qt5/client/SWGRTTYModSettings.h b/swagger/sdrangel/code/qt5/client/SWGRTTYModSettings.h index cc6385230..7a6b8e41b 100644 --- a/swagger/sdrangel/code/qt5/client/SWGRTTYModSettings.h +++ b/swagger/sdrangel/code/qt5/client/SWGRTTYModSettings.h @@ -101,11 +101,11 @@ public: qint32 getSpaceHigh(); void setSpaceHigh(qint32 space_high); - QString* getPrefixCrlf(); - void setPrefixCrlf(QString* prefix_crlf); + qint32 getPrefixCrlf(); + void setPrefixCrlf(qint32 prefix_crlf); - QString* getPostfixCrlf(); - void setPostfixCrlf(QString* postfix_crlf); + qint32 getPostfixCrlf(); + void setPostfixCrlf(qint32 postfix_crlf); qint32 getUdpEnabled(); void setUdpEnabled(qint32 udp_enabled); @@ -207,10 +207,10 @@ private: qint32 space_high; bool m_space_high_isSet; - QString* prefix_crlf; + qint32 prefix_crlf; bool m_prefix_crlf_isSet; - QString* postfix_crlf; + qint32 postfix_crlf; bool m_postfix_crlf_isSet; qint32 udp_enabled;