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
545f39cf
Commit
545f39cf
authored
May 30, 2017
by
Sylvain Berfini
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Moved ZRTP token authentication into it's own component
parent
59010084
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
144 additions
and
123 deletions
+144
-123
en.ts
linphone-desktop/assets/languages/en.ts
+23
-20
fr.ts
linphone-desktop/assets/languages/fr.ts
+23
-20
resources.qrc
linphone-desktop/resources.qrc
+1
-0
Incall.qml
linphone-desktop/ui/views/App/Calls/Incall.qml
+1
-83
ZrtpTokenAuthentication.qml
...ne-desktop/ui/views/App/Calls/ZrtpTokenAuthentication.qml
+96
-0
No files found.
linphone-desktop/assets/languages/en.ts
View file @
545f39cf
...
...
@@ -731,26 +731,6 @@ Server url not configured.</translation>
<
source
>
pendingRequestLabel
<
/source
>
<
translation
>
Please
to
wait
,
a
request
is
pending
.
<
/translation
>
<
/message
>
<
message
>
<
source
>
Say
:
<
/source
>
<
translation
>
Say
:
<
/translation
>
<
/message
>
<
message
>
<
source
>
Your
correspondent
should
say
:
<
/source
>
<
translation
>
Your
correspondent
should
say
:
<
/translation
>
<
/message
>
<
message
>
<
source
>
Deny
<
/source
>
<
translation
>
DENY
<
/translation
>
<
/message
>
<
message
>
<
source
>
Accept
<
/source
>
<
translation
>
ACCEPT
<
/translation
>
<
/message
>
<
message
>
<
source
>
Confirm
the
following
SAS
with
peer
:
<
/source
>
<
translation
>
Confirm
the
following
SAS
with
peer
:
<
/translation
>
<
/message
>
<
/context
>
<
context
>
<
name
>
InviteFriends
<
/name
>
...
...
@@ -1365,4 +1345,27 @@ your friend's SIP address or username.</translation>
<
translation
>
Transport
<
/translation
>
<
/message
>
<
/context
>
<
context
>
<
name
>
ZrtpTokenAuthentication
<
/name
>
<
message
>
<
source
>
Confirm
the
following
SAS
with
peer
:
<
/source
>
<
translation
>
Confirm
the
following
SAS
with
peer
:
<
/translation
>
<
/message
>
<
message
>
<
source
>
Say
:
<
/source
>
<
translation
>
Say
:
<
/translation
>
<
/message
>
<
message
>
<
source
>
Your
correspondent
should
say
:
<
/source
>
<
translation
>
Your
correspondent
should
say
:
<
/translation
>
<
/message
>
<
message
>
<
source
>
Deny
<
/source
>
<
translation
>
DENY
<
/translation
>
<
/message
>
<
message
>
<
source
>
Accept
<
/source
>
<
translation
>
ACCEPT
<
/translation
>
<
/message
>
<
/context
>
<
/TS
>
linphone-desktop/assets/languages/fr.ts
View file @
545f39cf
...
...
@@ -731,26 +731,6 @@ Url du serveur non configurée.</translation>
<
source
>
pendingRequestLabel
<
/source
>
<
translation
>
Merci
de
patienter
,
une
requ
ê
te
est
en
attente
.
<
/translation
>
<
/message
>
<
message
>
<
source
>
Say
:
<
/source
>
<
translation
>
Dites
:
<
/translation
>
<
/message
>
<
message
>
<
source
>
Your
correspondent
should
say
:
<
/source
>
<
translation
>
Votre
interlocuteur
devrait
dire
:
<
/translation
>
<
/message
>
<
message
>
<
source
>
Deny
<
/source
>
<
translation
>
REJETER
<
/translation
>
<
/message
>
<
message
>
<
source
>
Accept
<
/source
>
<
translation
>
VALIDER
<
/translation
>
<
/message
>
<
message
>
<
source
>
Confirm
the
following
SAS
with
peer
:
<
/source
>
<
translation
>
Confirmez
le
SAS
suivant
avec
votre
interlocuteur
:
<
/translation
>
<
/message
>
<
/context
>
<
context
>
<
name
>
InviteFriends
<
/name
>
...
...
@@ -1364,4 +1344,27 @@ un chat ou ajouter un contact.</translation>
<
translation
>
Transport
<
/translation
>
<
/message
>
<
/context
>
<
context
>
<
name
>
ZrtpTokenAuthentication
<
/name
>
<
message
>
<
source
>
Confirm
the
following
SAS
with
peer
:
<
/source
>
<
translation
>
Confirmez
le
SAS
suivant
avec
votre
interlocuteur
:
<
/translation
>
<
/message
>
<
message
>
<
source
>
Say
:
<
/source
>
<
translation
>
Dites
:
<
/translation
>
<
/message
>
<
message
>
<
source
>
Your
correspondent
should
say
:
<
/source
>
<
translation
>
Votre
interlocuteur
devrait
dire
:
<
/translation
>
<
/message
>
<
message
>
<
source
>
Deny
<
/source
>
<
translation
>
REJETER
<
/translation
>
<
/message
>
<
message
>
<
source
>
Accept
<
/source
>
<
translation
>
VALIDER
<
/translation
>
<
/message
>
<
/context
>
<
/TS
>
linphone-desktop/resources.qrc
View file @
545f39cf
...
...
@@ -371,6 +371,7 @@
<file>
ui/views/App/Calls/Incall.qml
</file>
<file>
ui/views/App/Calls/IncomingCall.qml
</file>
<file>
ui/views/App/Calls/OutgoingCall.qml
</file>
<file>
ui/views/App/Calls/ZrtpTokenAuthentication.qml
</file>
<file>
ui/views/App/Main/Assistant/ActivateLinphoneSipAccountWithEmail.qml
</file>
<file>
ui/views/App/Main/Assistant/AssistantAbstractView.qml
</file>
<file>
ui/views/App/Main/Assistant/AssistantHome.qml
</file>
...
...
linphone-desktop/ui/views/App/Calls/Incall.qml
View file @
545f39cf
...
...
@@ -249,90 +249,8 @@ Rectangle {
}
}
Item
{
ZrtpTokenAuthentication
{
id
:
zrtp
height
:
CallStyle
.
zrtpArea
.
height
visible
:
false
Layout.fillWidth
:
true
anchors.top
:
container
.
bottom
Layout.margins
:
CallStyle
.
container
.
margins
GridLayout
{
anchors.centerIn
:
parent
columns
:
1
Text
{
Layout.fillWidth
:
true
anchors.horizontalCenter
:
parent
.
horizontalCenter
horizontalAlignment
:
Text
.
AlignHCenter
verticalAlignment
:
Text
.
AlignVCenter
text
:
qsTr
(
"
Confirm the following SAS with peer:
"
)
elide
:
Text
.
ElideRight
font.pointSize
:
CallStyle
.
zrtpArea
.
fontSize
font.bold
:
true
color
:
Colors
.
j
}
RowLayout
{
anchors.horizontalCenter
:
parent
.
horizontalCenter
spacing
:
CallStyle
.
zrtpArea
.
vu
.
spacing
Layout.fillWidth
:
true
Text
{
text
:
qsTr
(
"
Say:
"
)
font.pointSize
:
CallStyle
.
zrtpArea
.
fontSize
color
:
Colors
.
j
}
Text
{
text
:
incall
.
call
.
localSAS
font.pointSize
:
CallStyle
.
zrtpArea
.
fontSize
font.bold
:
true
color
:
Colors
.
i
}
Text
{
text
:
"
-
"
font.pointSize
:
CallStyle
.
zrtpArea
.
fontSize
color
:
Colors
.
j
}
Text
{
text
:
qsTr
(
"
Your correspondent should say:
"
)
font.pointSize
:
CallStyle
.
zrtpArea
.
fontSize
color
:
Colors
.
j
}
Text
{
text
:
incall
.
call
.
remoteSAS
font.pointSize
:
CallStyle
.
zrtpArea
.
fontSize
font.bold
:
true
color
:
Colors
.
i
}
}
RowLayout
{
anchors.horizontalCenter
:
parent
.
horizontalCenter
spacing
:
CallStyle
.
zrtpArea
.
vu
.
spacing
Layout.fillWidth
:
true
TextButtonA
{
text
:
qsTr
(
'
Deny
'
)
onClicked
:
{
zrtp
.
visible
=
false
incall
.
call
.
verifyAuthenticationToken
(
false
)
}
}
TextButtonB
{
text
:
qsTr
(
'
Accept
'
)
onClicked
:
{
zrtp
.
visible
=
false
incall
.
call
.
verifyAuthenticationToken
(
true
)
}
}
}
}
}
// -------------------------------------------------------------------------
...
...
linphone-desktop/ui/views/App/Calls/ZrtpTokenAuthentication.qml
0 → 100644
View file @
545f39cf
import
QtQuick
2.7
import
QtQuick
.
Controls
2.1
import
QtQuick
.
Layouts
1.3
import
Common
1.0
import
Common
.
Styles
1.0
import
Linphone
1.0
import
LinphoneUtils
1.0
import
Utils
1.0
import
App
.
Styles
1.0
Item
{
height
:
CallStyle
.
zrtpArea
.
height
visible
:
false
Layout.fillWidth
:
true
anchors.top
:
container
.
bottom
Layout.margins
:
CallStyle
.
container
.
margins
GridLayout
{
anchors.centerIn
:
parent
columns
:
1
Text
{
Layout.fillWidth
:
true
anchors.horizontalCenter
:
parent
.
horizontalCenter
horizontalAlignment
:
Text
.
AlignHCenter
verticalAlignment
:
Text
.
AlignVCenter
text
:
qsTr
(
"
Confirm the following SAS with peer:
"
)
elide
:
Text
.
ElideRight
font.pointSize
:
CallStyle
.
zrtpArea
.
fontSize
font.bold
:
true
color
:
Colors
.
j
}
RowLayout
{
anchors.horizontalCenter
:
parent
.
horizontalCenter
spacing
:
CallStyle
.
zrtpArea
.
vu
.
spacing
Layout.fillWidth
:
true
Text
{
text
:
qsTr
(
"
Say:
"
)
font.pointSize
:
CallStyle
.
zrtpArea
.
fontSize
color
:
Colors
.
j
}
Text
{
text
:
incall
.
call
.
localSAS
font.pointSize
:
CallStyle
.
zrtpArea
.
fontSize
font.bold
:
true
color
:
Colors
.
i
}
Text
{
text
:
"
-
"
font.pointSize
:
CallStyle
.
zrtpArea
.
fontSize
color
:
Colors
.
j
}
Text
{
text
:
qsTr
(
"
Your correspondent should say:
"
)
font.pointSize
:
CallStyle
.
zrtpArea
.
fontSize
color
:
Colors
.
j
}
Text
{
text
:
incall
.
call
.
remoteSAS
font.pointSize
:
CallStyle
.
zrtpArea
.
fontSize
font.bold
:
true
color
:
Colors
.
i
}
}
RowLayout
{
anchors.horizontalCenter
:
parent
.
horizontalCenter
spacing
:
CallStyle
.
zrtpArea
.
vu
.
spacing
Layout.fillWidth
:
true
TextButtonA
{
text
:
qsTr
(
'
Deny
'
)
onClicked
:
{
zrtp
.
visible
=
false
incall
.
call
.
verifyAuthenticationToken
(
false
)
}
}
TextButtonB
{
text
:
qsTr
(
'
Accept
'
)
onClicked
:
{
zrtp
.
visible
=
false
incall
.
call
.
verifyAuthenticationToken
(
true
)
}
}
}
}
}
\ No newline at end of file
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