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 @@ ...@@ -7,7 +7,7 @@
<x>0</x> <x>0</x>
<y>0</y> <y>0</y>
<width>748</width> <width>748</width>
<height>657</height> <height>677</height>
</rect> </rect>
</property> </property>
<property name="windowTitle"> <property name="windowTitle">
...@@ -470,449 +470,510 @@ ...@@ -470,449 +470,510 @@
</attribute> </attribute>
<layout class="QVBoxLayout" name="verticalLayout_7"> <layout class="QVBoxLayout" name="verticalLayout_7">
<item> <item>
<widget class="QLabel" name="label_2"> <widget class="QScrollArea" name="scrollArea">
<property name="font"> <property name="widgetResizable">
<font> <bool>true</bool>
<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>
</property> </property>
</widget> <widget class="QWidget" name="scrollAreaWidgetContents">
</item> <property name="geometry">
<item> <rect>
<layout class="QFormLayout" name="formLayout_4"> <x>0</x>
<item row="0" column="0"> <y>0</y>
<widget class="QLabel" name="label_10"> <width>693</width>
<property name="text"> <height>685</height>
<string>Local Port:</string> </rect>
</property> </property>
<property name="buddy"> <layout class="QVBoxLayout" name="verticalLayout_11">
<cstring>lrcfg_localPort</cstring>
</property>
</widget>
</item>
<item row="0" column="1">
<layout class="QHBoxLayout" name="horizontalLayout_7">
<item> <item>
<widget class="QSpinBox" name="lrcfg_localPort"> <widget class="QLabel" name="label_2">
<property name="minimumSize"> <property name="font">
<size> <font>
<width>100</width> <weight>75</weight>
<height>0</height> <bold>true</bold>
</size> </font>
</property> </property>
<property name="maximum"> <property name="text">
<number>65535</number> <string>Registration</string>
</property>
<property name="buddy">
<cstring>lrcfg_registrationExpire</cstring>
</property> </property>
</widget> </widget>
</item> </item>
<item> <item>
<spacer name="horizontalSpacer_4"> <layout class="QFormLayout" name="formLayout_3">
<property name="orientation"> <item row="0" column="0">
<enum>Qt::Horizontal</enum> <widget class="QLabel" name="label_9">
</property> <property name="text">
<property name="sizeHint" stdset="0"> <string>Registration expire timeout (seconds):</string>
<size> </property>
<width>40</width> <property name="buddy">
<height>20</height> <cstring>lrcfg_registrationExpire</cstring>
</size> </property>
</property> </widget>
</spacer> </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>
</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> <item>
<widget class="QLabel" name="label_12"> <widget class="QLabel" name="label_3">
<property name="text"> <property name="font">
<string>Adress</string> <font>
<weight>75</weight>
<bold>true</bold>
</font>
</property> </property>
<property name="buddy"> <property name="text">
<cstring>lrcfg_publishedAddress</cstring> <string>Network Interface</string>
</property> </property>
</widget> </widget>
</item> </item>
<item> <item>
<widget class="QLineEdit" name="lrcfg_publishedAddress"> <layout class="QFormLayout" name="formLayout_4">
<property name="enabled"> <item row="0" column="0">
<bool>false</bool> <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>
<property name="maximumSize"> <property name="text">
<size> <string>Published Adress</string>
<width>200</width>
<height>16777215</height>
</size>
</property> </property>
</widget> </widget>
</item> </item>
<item> <item>
<widget class="QLabel" name="label_11"> <layout class="QVBoxLayout" name="verticalLayout_8">
<property name="text"> <property name="topMargin">
<string>Port</string> <number>0</number>
</property> </property>
<property name="buddy"> <property name="bottomMargin">
<cstring>lrcfg_publishedPort</cstring> <number>0</number>
</property> </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>
<item> <item>
<widget class="QSpinBox" name="lrcfg_publishedPort"> <widget class="QLabel" name="label_5">
<property name="enabled"> <property name="font">
<bool>false</bool> <font>
</property> <weight>75</weight>
<property name="minimumSize"> <bold>true</bold>
<size> </font>
<width>100</width>
<height>0</height>
</size>
</property> </property>
<property name="maximum"> <property name="text">
<number>65535</number> <string>SDP Session Negotiation (ICE Fallback)</string>
</property> </property>
</widget> </widget>
</item> </item>
<item> <item>
<spacer name="horizontalSpacer_5"> <widget class="QLabel" name="label_6">
<property name="orientation"> <property name="text">
<enum>Qt::Horizontal</enum> <string>These settings are only used during SDP session negotiation in case ICE is not supported by the server or peer.</string>
</property> </property>
<property name="sizeHint" stdset="0"> <property name="wordWrap">
<size> <bool>true</bool>
<width>40</width>
<height>20</height>
</size>
</property> </property>
</spacer> </widget>
</item> </item>
</layout>
</item>
<item>
<layout class="QHBoxLayout" name="horizontalLayout_8">
<property name="topMargin">
<number>0</number>
</property>
<item> <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"> <property name="text">
<string>Use STUN</string> <string>Audio RTP Port Range</string>
</property> </property>
</widget> </widget>
</item> </item>
<item> <item>
<widget class="QLineEdit" name="lrcfg_sipStunServer"> <layout class="QHBoxLayout" name="horizontalLayout_5">
<property name="enabled"> <property name="leftMargin">
<bool>false</bool> <number>30</number>
</property> </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>