mirror of
https://github.com/f4exb/sdrangel.git
synced 2026-05-14 13:22:16 -04:00
swg: add sendJsonViaUDP to generated settings
This commit is contained in:
parent
88f29bc175
commit
dbaeeba650
@ -50,6 +50,8 @@ SWGMeshtasticDemodSettings::SWGMeshtasticDemodSettings() {
|
||||
m_packet_length_isSet = false;
|
||||
send_via_udp = 0;
|
||||
m_send_via_udp_isSet = false;
|
||||
send_json_via_udp = 0;
|
||||
m_send_json_via_udp_isSet = false;
|
||||
udp_enabled = 0;
|
||||
m_udp_enabled_isSet = false;
|
||||
udp_address = nullptr;
|
||||
@ -110,6 +112,8 @@ SWGMeshtasticDemodSettings::init() {
|
||||
m_packet_length_isSet = false;
|
||||
send_via_udp = 0;
|
||||
m_send_via_udp_isSet = false;
|
||||
send_json_via_udp = 0;
|
||||
m_send_json_via_udp_isSet = false;
|
||||
udp_enabled = 0;
|
||||
m_udp_enabled_isSet = false;
|
||||
udp_address = new QString("");
|
||||
@ -216,6 +220,8 @@ SWGMeshtasticDemodSettings::fromJsonObject(QJsonObject &pJson) {
|
||||
::SWGSDRangel::setValue(&packet_length, pJson["packetLength"], "qint32", "");
|
||||
|
||||
::SWGSDRangel::setValue(&send_via_udp, pJson["sendViaUDP"], "qint32", "");
|
||||
|
||||
::SWGSDRangel::setValue(&send_json_via_udp, pJson["sendJsonViaUDP"], "qint32", "");
|
||||
|
||||
::SWGSDRangel::setValue(&udp_enabled, pJson["udpEnabled"], "qint32", "");
|
||||
|
||||
@ -296,6 +302,9 @@ SWGMeshtasticDemodSettings::asJsonObject() {
|
||||
if(m_send_via_udp_isSet){
|
||||
obj->insert("sendViaUDP", QJsonValue(send_via_udp));
|
||||
}
|
||||
if(m_send_json_via_udp_isSet){
|
||||
obj->insert("sendJsonViaUDP", QJsonValue(send_json_via_udp));
|
||||
}
|
||||
if(m_udp_enabled_isSet){
|
||||
obj->insert("udpEnabled", QJsonValue(udp_enabled));
|
||||
}
|
||||
@ -455,6 +464,16 @@ SWGMeshtasticDemodSettings::setSendViaUdp(qint32 send_via_udp) {
|
||||
this->m_send_via_udp_isSet = true;
|
||||
}
|
||||
|
||||
qint32
|
||||
SWGMeshtasticDemodSettings::getSendJsonViaUdp() {
|
||||
return send_json_via_udp;
|
||||
}
|
||||
void
|
||||
SWGMeshtasticDemodSettings::setSendJsonViaUdp(qint32 send_json_via_udp) {
|
||||
this->send_json_via_udp = send_json_via_udp;
|
||||
this->m_send_json_via_udp_isSet = true;
|
||||
}
|
||||
|
||||
qint32
|
||||
SWGMeshtasticDemodSettings::getUdpEnabled() {
|
||||
return udp_enabled;
|
||||
@ -643,6 +662,9 @@ SWGMeshtasticDemodSettings::isSet(){
|
||||
if(m_send_via_udp_isSet){
|
||||
isObjectUpdated = true; break;
|
||||
}
|
||||
if(m_send_json_via_udp_isSet){
|
||||
isObjectUpdated = true; break;
|
||||
}
|
||||
if(m_udp_enabled_isSet){
|
||||
isObjectUpdated = true; break;
|
||||
}
|
||||
|
||||
@ -78,6 +78,9 @@ public:
|
||||
qint32 getSendViaUdp();
|
||||
void setSendViaUdp(qint32 send_via_udp);
|
||||
|
||||
qint32 getSendJsonViaUdp();
|
||||
void setSendJsonViaUdp(qint32 send_json_via_udp);
|
||||
|
||||
qint32 getUdpEnabled();
|
||||
void setUdpEnabled(qint32 udp_enabled);
|
||||
|
||||
@ -160,6 +163,9 @@ private:
|
||||
qint32 send_via_udp;
|
||||
bool m_send_via_udp_isSet;
|
||||
|
||||
qint32 send_json_via_udp;
|
||||
bool m_send_json_via_udp_isSet;
|
||||
|
||||
qint32 udp_enabled;
|
||||
bool m_udp_enabled_isSet;
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user