mirror of
https://github.com/f4exb/sdrangel.git
synced 2025-05-23 18:52:28 -04:00
UDP Source multicast: REST API: generated code
This commit is contained in:
parent
a3f68a2c53
commit
cdc2d346c8
@ -6915,6 +6915,13 @@ margin-bottom: 20px;
|
|||||||
"type" : "integer",
|
"type" : "integer",
|
||||||
"format" : "uint16"
|
"format" : "uint16"
|
||||||
},
|
},
|
||||||
|
"multicastAddress" : {
|
||||||
|
"type" : "string"
|
||||||
|
},
|
||||||
|
"multicastJoin" : {
|
||||||
|
"type" : "integer",
|
||||||
|
"description" : "Joim multicast group * 0 - leave group * 1 - join group\n"
|
||||||
|
},
|
||||||
"title" : {
|
"title" : {
|
||||||
"type" : "string"
|
"type" : "string"
|
||||||
},
|
},
|
||||||
@ -33305,7 +33312,7 @@ except ApiException as e:
|
|||||||
</div>
|
</div>
|
||||||
<div id="generator">
|
<div id="generator">
|
||||||
<div class="content">
|
<div class="content">
|
||||||
Generated 2020-08-20T08:53:46.594+02:00
|
Generated 2020-08-25T00:09:04.978+02:00
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -47,6 +47,14 @@ UDPSourceSettings:
|
|||||||
udpPort:
|
udpPort:
|
||||||
type: integer
|
type: integer
|
||||||
format: uint16
|
format: uint16
|
||||||
|
multicastAddress:
|
||||||
|
type: string
|
||||||
|
multicastJoin:
|
||||||
|
type: integer
|
||||||
|
description: >
|
||||||
|
Joim multicast group
|
||||||
|
* 0 - leave group
|
||||||
|
* 1 - join group
|
||||||
title:
|
title:
|
||||||
type: string
|
type: string
|
||||||
streamIndex:
|
streamIndex:
|
||||||
|
@ -6915,6 +6915,13 @@ margin-bottom: 20px;
|
|||||||
"type" : "integer",
|
"type" : "integer",
|
||||||
"format" : "uint16"
|
"format" : "uint16"
|
||||||
},
|
},
|
||||||
|
"multicastAddress" : {
|
||||||
|
"type" : "string"
|
||||||
|
},
|
||||||
|
"multicastJoin" : {
|
||||||
|
"type" : "integer",
|
||||||
|
"description" : "Joim multicast group * 0 - leave group * 1 - join group\n"
|
||||||
|
},
|
||||||
"title" : {
|
"title" : {
|
||||||
"type" : "string"
|
"type" : "string"
|
||||||
},
|
},
|
||||||
@ -33305,7 +33312,7 @@ except ApiException as e:
|
|||||||
</div>
|
</div>
|
||||||
<div id="generator">
|
<div id="generator">
|
||||||
<div class="content">
|
<div class="content">
|
||||||
Generated 2020-08-20T08:53:46.594+02:00
|
Generated 2020-08-25T00:09:04.978+02:00
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -64,6 +64,10 @@ SWGUDPSourceSettings::SWGUDPSourceSettings() {
|
|||||||
m_udp_address_isSet = false;
|
m_udp_address_isSet = false;
|
||||||
udp_port = 0;
|
udp_port = 0;
|
||||||
m_udp_port_isSet = false;
|
m_udp_port_isSet = false;
|
||||||
|
multicast_address = nullptr;
|
||||||
|
m_multicast_address_isSet = false;
|
||||||
|
multicast_join = 0;
|
||||||
|
m_multicast_join_isSet = false;
|
||||||
title = nullptr;
|
title = nullptr;
|
||||||
m_title_isSet = false;
|
m_title_isSet = false;
|
||||||
stream_index = 0;
|
stream_index = 0;
|
||||||
@ -122,6 +126,10 @@ SWGUDPSourceSettings::init() {
|
|||||||
m_udp_address_isSet = false;
|
m_udp_address_isSet = false;
|
||||||
udp_port = 0;
|
udp_port = 0;
|
||||||
m_udp_port_isSet = false;
|
m_udp_port_isSet = false;
|
||||||
|
multicast_address = new QString("");
|
||||||
|
m_multicast_address_isSet = false;
|
||||||
|
multicast_join = 0;
|
||||||
|
m_multicast_join_isSet = false;
|
||||||
title = new QString("");
|
title = new QString("");
|
||||||
m_title_isSet = false;
|
m_title_isSet = false;
|
||||||
stream_index = 0;
|
stream_index = 0;
|
||||||
@ -160,6 +168,10 @@ SWGUDPSourceSettings::cleanup() {
|
|||||||
delete udp_address;
|
delete udp_address;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(multicast_address != nullptr) {
|
||||||
|
delete multicast_address;
|
||||||
|
}
|
||||||
|
|
||||||
if(title != nullptr) {
|
if(title != nullptr) {
|
||||||
delete title;
|
delete title;
|
||||||
}
|
}
|
||||||
@ -220,6 +232,10 @@ SWGUDPSourceSettings::fromJsonObject(QJsonObject &pJson) {
|
|||||||
|
|
||||||
::SWGSDRangel::setValue(&udp_port, pJson["udpPort"], "qint32", "");
|
::SWGSDRangel::setValue(&udp_port, pJson["udpPort"], "qint32", "");
|
||||||
|
|
||||||
|
::SWGSDRangel::setValue(&multicast_address, pJson["multicastAddress"], "QString", "QString");
|
||||||
|
|
||||||
|
::SWGSDRangel::setValue(&multicast_join, pJson["multicastJoin"], "qint32", "");
|
||||||
|
|
||||||
::SWGSDRangel::setValue(&title, pJson["title"], "QString", "QString");
|
::SWGSDRangel::setValue(&title, pJson["title"], "QString", "QString");
|
||||||
|
|
||||||
::SWGSDRangel::setValue(&stream_index, pJson["streamIndex"], "qint32", "");
|
::SWGSDRangel::setValue(&stream_index, pJson["streamIndex"], "qint32", "");
|
||||||
@ -304,6 +320,12 @@ SWGUDPSourceSettings::asJsonObject() {
|
|||||||
if(m_udp_port_isSet){
|
if(m_udp_port_isSet){
|
||||||
obj->insert("udpPort", QJsonValue(udp_port));
|
obj->insert("udpPort", QJsonValue(udp_port));
|
||||||
}
|
}
|
||||||
|
if(multicast_address != nullptr && *multicast_address != QString("")){
|
||||||
|
toJsonValue(QString("multicastAddress"), multicast_address, obj, QString("QString"));
|
||||||
|
}
|
||||||
|
if(m_multicast_join_isSet){
|
||||||
|
obj->insert("multicastJoin", QJsonValue(multicast_join));
|
||||||
|
}
|
||||||
if(title != nullptr && *title != QString("")){
|
if(title != nullptr && *title != QString("")){
|
||||||
toJsonValue(QString("title"), title, obj, QString("QString"));
|
toJsonValue(QString("title"), title, obj, QString("QString"));
|
||||||
}
|
}
|
||||||
@ -509,6 +531,26 @@ SWGUDPSourceSettings::setUdpPort(qint32 udp_port) {
|
|||||||
this->m_udp_port_isSet = true;
|
this->m_udp_port_isSet = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
QString*
|
||||||
|
SWGUDPSourceSettings::getMulticastAddress() {
|
||||||
|
return multicast_address;
|
||||||
|
}
|
||||||
|
void
|
||||||
|
SWGUDPSourceSettings::setMulticastAddress(QString* multicast_address) {
|
||||||
|
this->multicast_address = multicast_address;
|
||||||
|
this->m_multicast_address_isSet = true;
|
||||||
|
}
|
||||||
|
|
||||||
|
qint32
|
||||||
|
SWGUDPSourceSettings::getMulticastJoin() {
|
||||||
|
return multicast_join;
|
||||||
|
}
|
||||||
|
void
|
||||||
|
SWGUDPSourceSettings::setMulticastJoin(qint32 multicast_join) {
|
||||||
|
this->multicast_join = multicast_join;
|
||||||
|
this->m_multicast_join_isSet = true;
|
||||||
|
}
|
||||||
|
|
||||||
QString*
|
QString*
|
||||||
SWGUDPSourceSettings::getTitle() {
|
SWGUDPSourceSettings::getTitle() {
|
||||||
return title;
|
return title;
|
||||||
@ -638,6 +680,12 @@ SWGUDPSourceSettings::isSet(){
|
|||||||
if(m_udp_port_isSet){
|
if(m_udp_port_isSet){
|
||||||
isObjectUpdated = true; break;
|
isObjectUpdated = true; break;
|
||||||
}
|
}
|
||||||
|
if(multicast_address && *multicast_address != QString("")){
|
||||||
|
isObjectUpdated = true; break;
|
||||||
|
}
|
||||||
|
if(m_multicast_join_isSet){
|
||||||
|
isObjectUpdated = true; break;
|
||||||
|
}
|
||||||
if(title && *title != QString("")){
|
if(title && *title != QString("")){
|
||||||
isObjectUpdated = true; break;
|
isObjectUpdated = true; break;
|
||||||
}
|
}
|
||||||
|
@ -96,6 +96,12 @@ public:
|
|||||||
qint32 getUdpPort();
|
qint32 getUdpPort();
|
||||||
void setUdpPort(qint32 udp_port);
|
void setUdpPort(qint32 udp_port);
|
||||||
|
|
||||||
|
QString* getMulticastAddress();
|
||||||
|
void setMulticastAddress(QString* multicast_address);
|
||||||
|
|
||||||
|
qint32 getMulticastJoin();
|
||||||
|
void setMulticastJoin(qint32 multicast_join);
|
||||||
|
|
||||||
QString* getTitle();
|
QString* getTitle();
|
||||||
void setTitle(QString* title);
|
void setTitle(QString* title);
|
||||||
|
|
||||||
@ -175,6 +181,12 @@ private:
|
|||||||
qint32 udp_port;
|
qint32 udp_port;
|
||||||
bool m_udp_port_isSet;
|
bool m_udp_port_isSet;
|
||||||
|
|
||||||
|
QString* multicast_address;
|
||||||
|
bool m_multicast_address_isSet;
|
||||||
|
|
||||||
|
qint32 multicast_join;
|
||||||
|
bool m_multicast_join_isSet;
|
||||||
|
|
||||||
QString* title;
|
QString* title;
|
||||||
bool m_title_isSet;
|
bool m_title_isSet;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user