2 #include <Device/Protocol/ProtocolSettingsWidget.hpp>
4 #include <ossia/network/sockets/configuration.hpp>
17 auto layout =
new QFormLayout{
this};
18 layout->setContentsMargins(0, 0, 0, 0);
20 m_remotePort =
new QSpinBox(
this);
21 m_remotePort->setRange(0, 65535);
22 m_remotePort->setValue(9996);
23 proto.checkForChanges(m_remotePort);
25 layout->addRow(tr(
"Port"), m_remotePort);
28 ossia::net::ws_server_configuration settings()
const noexcept
30 ossia::net::ws_server_configuration conf;
31 conf.port = m_remotePort->value();
35 void setSettings(
const ossia::net::ws_server_configuration& conf)
37 m_remotePort->setValue(conf.port);
41 QSpinBox* m_remotePort{};