Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linphone-desktop
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
linphone-desktop
Commits
1086fdae
Commit
1086fdae
authored
Apr 20, 2017
by
Ronan Abhamon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat(ui/views/App/Settings/SettingsNetwork): supports tls port
parent
26171f84
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
26 additions
and
1 deletion
+26
-1
SettingsModel.cpp
linphone-desktop/src/components/settings/SettingsModel.cpp
+16
-0
SettingsModel.hpp
linphone-desktop/src/components/settings/SettingsModel.hpp
+5
-0
SettingsNetwork.qml
linphone-desktop/ui/views/App/Settings/SettingsNetwork.qml
+5
-1
No files found.
linphone-desktop/src/components/settings/SettingsModel.cpp
View file @
1086fdae
...
...
@@ -440,6 +440,22 @@ void SettingsModel::setUdpPort (int port) {
// -----------------------------------------------------------------------------
int
SettingsModel
::
getTlsPort
()
const
{
return
CoreManager
::
getInstance
()
->
getCore
()
->
getTransports
()
->
getTlsPort
();
}
void
SettingsModel
::
setTlsPort
(
int
port
)
{
shared_ptr
<
linphone
::
Core
>
core
=
CoreManager
::
getInstance
()
->
getCore
();
shared_ptr
<
linphone
::
Transports
>
transports
=
core
->
getTransports
();
transports
->
setTlsPort
(
port
);
core
->
setTransports
(
transports
);
emit
tlsPortChanged
(
port
);
}
// -----------------------------------------------------------------------------
QList
<
int
>
SettingsModel
::
getAudioPortRange
()
const
{
shared_ptr
<
linphone
::
Range
>
range
=
CoreManager
::
getInstance
()
->
getCore
()
->
getAudioPortsRange
();
return
QList
<
int
>
()
<<
range
->
getMin
()
<<
range
->
getMax
();
...
...
linphone-desktop/src/components/settings/SettingsModel.hpp
View file @
1086fdae
...
...
@@ -92,6 +92,7 @@ class SettingsModel : public QObject {
Q_PROPERTY
(
int
tcpPort
READ
getTcpPort
WRITE
setTcpPort
NOTIFY
tcpPortChanged
);
Q_PROPERTY
(
int
udpPort
READ
getUdpPort
WRITE
setUdpPort
NOTIFY
udpPortChanged
);
Q_PROPERTY
(
int
tlsPort
READ
getTlsPort
WRITE
setTlsPort
NOTIFY
tlsPortChanged
);
Q_PROPERTY
(
QList
<
int
>
audioPortRange
READ
getAudioPortRange
WRITE
setAudioPortRange
NOTIFY
audioPortRangeChanged
);
Q_PROPERTY
(
QList
<
int
>
videoPortRange
READ
getVideoPortRange
WRITE
setVideoPortRange
NOTIFY
videoPortRangeChanged
);
...
...
@@ -220,6 +221,9 @@ public:
int
getUdpPort
()
const
;
void
setUdpPort
(
int
port
);
int
getTlsPort
()
const
;
void
setTlsPort
(
int
port
);
QList
<
int
>
getAudioPortRange
()
const
;
void
setAudioPortRange
(
const
QList
<
int
>
&
range
);
...
...
@@ -309,6 +313,7 @@ signals:
void
tcpPortChanged
(
int
port
);
void
udpPortChanged
(
int
port
);
void
tlsPortChanged
(
int
port
);
void
audioPortRangeChanged
(
int
a
,
int
b
);
void
videoPortRangeChanged
(
int
a
,
int
b
);
...
...
linphone-desktop/ui/views/App/Settings/SettingsNetwork.qml
View file @
1086fdae
...
...
@@ -256,7 +256,11 @@ TabContainer {
FormGroup
{
label
:
qsTr
(
'
enableTlsLabel
'
)
Switch
{}
Switch
{
checked
:
SettingsModel
.
tlsPort
!==
0
onClicked
:
SettingsModel
.
tlsPort
=
checked
?
0
:
-
1
}
}
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment