Commit 40def4cf authored by Edric Milaret's avatar Edric Milaret

turn: add turn settings accesor

Issue: #78300
Change-Id: Ibc44514c45b01e79e64c0dacaf3fa4ac2589599d
parent 7cb55bb2
......@@ -7,7 +7,7 @@
<x>0</x>
<y>0</y>
<width>748</width>
<height>657</height>
<height>677</height>
</rect>
</property>
<property name="windowTitle">
......@@ -470,449 +470,510 @@
</attribute>
<layout class="QVBoxLayout" name="verticalLayout_7">
<item>
<widget class="QLabel" name="label_2">
<property name="font">
<font>
<weight>75</weight>
<bold>true</bold>
</font>
</property>
<property name="text">
<string>Registration</string>
</property>
<property name="buddy">
<cstring>lrcfg_registrationExpire</cstring>
</property>
</widget>
</item>
<item>
<layout class="QFormLayout" name="formLayout_3">
<item row="0" column="0">
<widget class="QLabel" name="label_9">
<property name="text">
<string>Registration expire timeout (seconds):</string>
</property>
<property name="buddy">
<cstring>lrcfg_registrationExpire</cstring>
</property>
</widget>
</item>
<item row="0" column="1">
<widget class="QSpinBox" name="lrcfg_registrationExpire">
<property name="maximumSize">
<size>
<width>150</width>
<height>16777215</height>
</size>
</property>
</widget>
</item>
</layout>
</item>
<item>
<widget class="QLabel" name="label_3">
<property name="font">
<font>
<weight>75</weight>
<bold>true</bold>
</font>
</property>
<property name="text">
<string>Network Interface</string>
<widget class="QScrollArea" name="scrollArea">
<property name="widgetResizable">
<bool>true</bool>
</property>
</widget>
</item>
<item>
<layout class="QFormLayout" name="formLayout_4">
<item row="0" column="0">
<widget class="QLabel" name="label_10">
<property name="text">
<string>Local Port:</string>
</property>
<property name="buddy">
<cstring>lrcfg_localPort</cstring>
</property>
</widget>
</item>
<item row="0" column="1">
<layout class="QHBoxLayout" name="horizontalLayout_7">
<widget class="QWidget" name="scrollAreaWidgetContents">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>693</width>
<height>685</height>
</rect>
</property>
<layout class="QVBoxLayout" name="verticalLayout_11">
<item>
<widget class="QSpinBox" name="lrcfg_localPort">
<property name="minimumSize">
<size>
<width>100</width>
<height>0</height>
</size>
<widget class="QLabel" name="label_2">
<property name="font">
<font>
<weight>75</weight>
<bold>true</bold>
</font>
</property>
<property name="maximum">
<number>65535</number>
<property name="text">
<string>Registration</string>
</property>
<property name="buddy">
<cstring>lrcfg_registrationExpire</cstring>
</property>
</widget>
</item>
<item>
<spacer name="horizontalSpacer_4">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
<layout class="QFormLayout" name="formLayout_3">
<item row="0" column="0">
<widget class="QLabel" name="label_9">
<property name="text">
<string>Registration expire timeout (seconds):</string>
</property>
<property name="buddy">
<cstring>lrcfg_registrationExpire</cstring>
</property>
</widget>
</item>
<item row="0" column="1">
<widget class="QSpinBox" name="lrcfg_registrationExpire">
<property name="maximumSize">
<size>
<width>150</width>
<height>16777215</height>
</size>
</property>
</widget>
</item>
</layout>
</item>
</layout>
</item>
</layout>
</item>
<item>
<widget class="QLabel" name="label_4">
<property name="font">
<font>
<weight>75</weight>
<bold>true</bold>
</font>
</property>
<property name="text">
<string>Published Adress</string>
</property>
</widget>
</item>
<item>
<layout class="QVBoxLayout" name="verticalLayout_8">
<property name="topMargin">
<number>0</number>
</property>
<property name="bottomMargin">
<number>0</number>
</property>
<item>
<widget class="QRadioButton" name="puslishedSameAsLocalRadio">
<property name="text">
<string>Same as local parameters</string>
</property>
<property name="checked">
<bool>true</bool>
</property>
<attribute name="buttonGroup">
<string notr="true">publishGroup</string>
</attribute>
</widget>
</item>
<item>
<widget class="QRadioButton" name="customPublishedRadio">
<property name="text">
<string>Set published address and port:</string>
</property>
<attribute name="buttonGroup">
<string notr="true">publishGroup</string>
</attribute>
</widget>
</item>
<item>
<layout class="QHBoxLayout" name="publishAdressLayout">
<property name="leftMargin">
<number>30</number>
</property>
<property name="topMargin">
<number>0</number>
</property>
<item>
<widget class="QLabel" name="label_12">
<property name="text">
<string>Adress</string>
<widget class="QLabel" name="label_3">
<property name="font">
<font>
<weight>75</weight>
<bold>true</bold>
</font>
</property>
<property name="buddy">
<cstring>lrcfg_publishedAddress</cstring>
<property name="text">
<string>Network Interface</string>
</property>
</widget>
</item>
<item>
<widget class="QLineEdit" name="lrcfg_publishedAddress">
<property name="enabled">
<bool>false</bool>
<layout class="QFormLayout" name="formLayout_4">
<item row="0" column="0">
<widget class="QLabel" name="label_10">
<property name="text">
<string>Local Port:</string>
</property>
<property name="buddy">
<cstring>lrcfg_localPort</cstring>
</property>
</widget>
</item>
<item row="0" column="1">
<layout class="QHBoxLayout" name="horizontalLayout_7">
<item>
<widget class="QSpinBox" name="lrcfg_localPort">
<property name="minimumSize">
<size>
<width>100</width>
<height>0</height>
</size>
</property>
<property name="maximum">
<number>65535</number>
</property>
</widget>
</item>
<item>
<spacer name="horizontalSpacer_4">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
</layout>
</item>
</layout>
</item>
<item>
<widget class="QLabel" name="label_4">
<property name="font">
<font>
<weight>75</weight>
<bold>true</bold>
</font>
</property>
<property name="maximumSize">
<size>
<width>200</width>
<height>16777215</height>
</size>
<property name="text">
<string>Published Adress</string>
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="label_11">
<property name="text">
<string>Port</string>
<layout class="QVBoxLayout" name="verticalLayout_8">
<property name="topMargin">
<number>0</number>
</property>
<property name="buddy">
<cstring>lrcfg_publishedPort</cstring>
<property name="bottomMargin">
<number>0</number>
</property>
</widget>
<item>
<widget class="QRadioButton" name="puslishedSameAsLocalRadio">
<property name="text">
<string>Same as local parameters</string>
</property>
<property name="checked">
<bool>true</bool>
</property>
<attribute name="buttonGroup">
<string notr="true">publishGroup</string>
</attribute>
</widget>
</item>
<item>
<widget class="QRadioButton" name="customPublishedRadio">
<property name="text">
<string>Set published address and port:</string>
</property>
<attribute name="buttonGroup">
<string notr="true">publishGroup</string>
</attribute>
</widget>
</item>
<item>
<layout class="QHBoxLayout" name="publishAdressLayout">
<property name="leftMargin">
<number>30</number>
</property>
<property name="topMargin">
<number>0</number>
</property>
<item>
<widget class="QLabel" name="label_12">
<property name="text">
<string>Adress</string>
</property>
<property name="buddy">
<cstring>lrcfg_publishedAddress</cstring>
</property>
</widget>
</item>
<item>
<widget class="QLineEdit" name="lrcfg_publishedAddress">
<property name="enabled">
<bool>false</bool>
</property>
<property name="maximumSize">
<size>
<width>200</width>
<height>16777215</height>
</size>
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="label_11">
<property name="text">
<string>Port</string>
</property>
<property name="buddy">
<cstring>lrcfg_publishedPort</cstring>
</property>
</widget>
</item>
<item>
<widget class="QSpinBox" name="lrcfg_publishedPort">
<property name="enabled">
<bool>false</bool>
</property>
<property name="minimumSize">
<size>
<width>100</width>
<height>0</height>
</size>
</property>
<property name="maximum">
<number>65535</number>
</property>
</widget>
</item>
<item>
<spacer name="horizontalSpacer_5">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
</layout>
</item>
<item>
<layout class="QHBoxLayout" name="horizontalLayout_8">
<property name="topMargin">
<number>0</number>
</property>
<item>
<widget class="QCheckBox" name="lrcfg_sipStunEnabled">
<property name="text">
<string>Use STUN</string>
</property>
</widget>
</item>
<item>
<widget class="QLineEdit" name="lrcfg_sipStunServer">
<property name="enabled">
<bool>false</bool>
</property>
<property name="placeholderText">
<string>Server URL</string>
</property>
</widget>
</item>
</layout>
</item>
<item>
<layout class="QFormLayout" name="formLayout_6">
<property name="topMargin">
<number>0</number>
</property>
<property name="bottomMargin">
<number>0</number>
</property>
<item row="0" column="0">
<widget class="QCheckBox" name="lrcfg_turnEnabled">
<property name="text">
<string>Use TURN</string>
</property>
</widget>
</item>
<item row="0" column="1">
<widget class="QLineEdit" name="lrcfg_turnServer">
<property name="enabled">
<bool>false</bool>
</property>
<property name="placeholderText">
<string>Server URL</string>
</property>
</widget>
</item>
<item row="1" column="1">
<widget class="QLineEdit" name="lrcfg_turnServerUsername">
<property name="enabled">
<bool>false</bool>
</property>
<property name="placeholderText">
<string>Username</string>
</property>
</widget>
</item>
<item row="2" column="1">
<widget class="QLineEdit" name="lrcfg_turnServerPassword">
<property name="enabled">
<bool>false</bool>
</property>
<property name="echoMode">
<enum>QLineEdit::Password</enum>
</property>
<property name="placeholderText">
<string>Password</string>
</property>
</widget>
</item>
<item row="3" column="1">
<widget class="QLineEdit" name="lrcfg_turnServerRealm">
<property name="enabled">
<bool>false</bool>
</property>
<property name="placeholderText">
<string>Realm</string>
</property>
</widget>
</item>
</layout>
</item>
</layout>
</item>
<item>
<widget class="QSpinBox" name="lrcfg_publishedPort">
<property name="enabled">
<bool>false</bool>
</property>
<property name="minimumSize">
<size>
<width>100</width>
<height>0</height>
</size>
<widget class="QLabel" name="label_5">
<property name="font">
<font>
<weight>75</weight>
<bold>true</bold>
</font>
</property>
<property name="maximum">
<number>65535</number>
<property name="text">
<string>SDP Session Negotiation (ICE Fallback)</string>
</property>
</widget>
</item>
<item>
<spacer name="horizontalSpacer_5">
<property name="orientation">
<enum>Qt::Horizontal</enum>
<widget class="QLabel" name="label_6">
<property name="text">
<string>These settings are only used during SDP session negotiation in case ICE is not supported by the server or peer.</string>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>40</width>
<height>20</height>
</size>
<property name="wordWrap">
<bool>true</bool>
</property>
</spacer>
</widget>
</item>
</layout>
</item>
<item>
<layout class="QHBoxLayout" name="horizontalLayout_8">
<property name="topMargin">
<number>0</number>
</property>
<item>
<widget class="QCheckBox" name="lrcfg_sipStunEnabled">
<widget class="QLabel" name="label_8">
<property name="font">
<font>
<weight>75</weight>
<bold>true</bold>
</font>
</property>
<property name="text">
<string>Use STUN</string>
<string>Audio RTP Port Range</string>
</property>
</widget>
</item>
<item>
<widget class="QLineEdit" name="lrcfg_sipStunServer">
<property name="enabled">
<bool>false</bool>
<layout class="QHBoxLayout" name="horizontalLayout_5">
<property name="leftMargin">
<number>30</number>
</property>
</widget>
<property name="topMargin">
<number>0</number>
</property>
<item>
<widget class="QLabel" name="label_13">
<property name="text">
<string>Min</string>
</property>
<property name="buddy">
<cstring>lrcfg_audioPortMin</cstring>
</property>
</widget>
</item>
<item>
<widget class="QSpinBox" name="lrcfg_audioPortMin">
<property name="minimumSize">
<size>
<width>100</width>
<height>0</height>
</size>
</property>
<property name="maximum">
<number>65535</number>
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="label_14">
<property name="text">
<string>Max</string>
</property>
<property name="buddy">
<cstring>lrcfg_audioPortMax</cstring>
</property>
</widget>
</item>
<item>
<widget class="QSpinBox" name="lrcfg_audioPortMax">
<property name="minimumSize">
<size>
<width>100</width>
<height>0</height>
</size>
</property>
<property name="maximum">
<number>65535</number>
</property>
</widget>
</item>
<item>
<spacer name="horizontalSpacer_2">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
</layout>
</item>
</layout>
</item>
<item>
<layout class="QHBoxLayout" name="horizontalLayout_11">
<property name="topMargin">
<number>0</number>
</property>
<item>
<widget class="QCheckBox" name="lrcfg_turnEnabled">
<widget class="QLabel" name="label_7">
<property name="font">
<font>
<weight>75</weight>
<bold>true</bold>
</font>
</property>
<property name="text">
<string>Use TURN</string>
<string>Video RTP Port Range</string>
</property>
</widget>
</item>
<item>
<widget class="QLineEdit" name="lrcfg_sipTurnServer">
<property name="enabled">
<bool>false</bool>
<layout class="QHBoxLayout" name="horizontalLayout_6">
<property name="leftMargin">
<number>30</number>
</property>
</widget>
<property name="topMargin">
<number>0</number>
</property>
<item>