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
c1645184
Commit
c1645184
authored
Apr 13, 2017
by
Ronan Abhamon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat(ui/views/App/Settings/SettingsSipAccounts): supports passwords deletion
parent
c7ed899f
Changes
7
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
35 additions
and
2 deletions
+35
-2
en.ts
linphone-desktop/assets/languages/en.ts
+4
-0
fr.ts
linphone-desktop/assets/languages/fr.ts
+4
-0
AccountSettingsModel.cpp
...-desktop/src/components/settings/AccountSettingsModel.cpp
+4
-0
AccountSettingsModel.hpp
...-desktop/src/components/settings/AccountSettingsModel.hpp
+2
-0
DialogPlus.qml
linphone-desktop/ui/modules/Common/Dialog/DialogPlus.qml
+9
-2
SettingsSipAccounts.js
...hone-desktop/ui/views/App/Settings/SettingsSipAccounts.js
+10
-0
SettingsSipAccounts.qml
...one-desktop/ui/views/App/Settings/SettingsSipAccounts.qml
+2
-0
No files found.
linphone-desktop/assets/languages/en.ts
View file @
c1645184
...
...
@@ -894,6 +894,10 @@ Server url not configured.</translation>
<
source
>
deleteAccountDescription
<
/source
>
<
translation
>
Are
you
sure
you
want
to
delete
this
account
?
<
/translation
>
<
/message
>
<
message
>
<
source
>
eraseAllPasswordsDescription
<
/source
>
<
translation
>
Are
you
sure
you
want
to
erase
all
passwords
?
<
/translation
>
<
/message
>
<
/context
>
<
context
>
<
name
>
SettingsSipAccountsEdit
<
/name
>
...
...
linphone-desktop/assets/languages/fr.ts
View file @
c1645184
...
...
@@ -894,6 +894,10 @@ Url du serveur non configurée.</translation>
<
source
>
deleteAccountDescription
<
/source
>
<
translation
>
Ê
tes
-
vous
s
û
r
de
vouloir
supprimer
ce
compte
?
<
/translation
>
<
/message
>
<
message
>
<
source
>
eraseAllPasswordsDescription
<
/source
>
<
translation
>
Ê
tes
-
vous
s
û
r
de
vouloir
supprimer
tous
vos
mots
de
passe
?
<
/translation
>
<
/message
>
<
/context
>
<
context
>
<
name
>
SettingsSipAccountsEdit
<
/name
>
...
...
linphone-desktop/src/components/settings/AccountSettingsModel.cpp
View file @
c1645184
...
...
@@ -171,6 +171,10 @@ shared_ptr<linphone::ProxyConfig> AccountSettingsModel::createProxyConfig () {
return
CoreManager
::
getInstance
()
->
getCore
()
->
createProxyConfig
();
}
void
AccountSettingsModel
::
eraseAllPasswords
()
{
CoreManager
::
getInstance
()
->
getCore
()
->
clearAllAuthInfo
();
}
// -----------------------------------------------------------------------------
QString
AccountSettingsModel
::
getUsername
()
const
{
...
...
linphone-desktop/src/components/settings/AccountSettingsModel.hpp
View file @
c1645184
...
...
@@ -66,6 +66,8 @@ public:
Q_INVOKABLE
std
::
shared_ptr
<
linphone
::
ProxyConfig
>
createProxyConfig
();
Q_INVOKABLE
void
eraseAllPasswords
();
signals:
void
accountSettingsUpdated
();
...
...
linphone-desktop/ui/modules/Common/Dialog/DialogPlus.qml
View file @
c1645184
...
...
@@ -9,13 +9,19 @@ import Common.Styles 1.0
// =============================================================================
Rectangle
{
id
:
dialog
property
alias
buttons
:
buttons
.
data
// Optionnal.
property
alias
descriptionText
:
description
.
text
// Optionnal.
property
bool
centeredButtons
:
false
default
property
alias
_content
:
content
.
data
// Required.
default
property
alias
_content
:
content
.
data
property
bool
_disableExitStatus
readonly
property
bool
contentIsEmpty
:
{
return
_content
==
null
||
!
_content
.
length
}
// ---------------------------------------------------------------------------
signal
exitStatus
(
int
status
)
...
...
@@ -54,13 +60,14 @@ Rectangle {
DialogDescription
{
id
:
description
Layout.fillHeight
:
dialog
.
contentIsEmpty
Layout.fillWidth
:
true
}
Item
{
id
:
content
Layout.fillHeight
:
true
Layout.fillHeight
:
!
dialog
.
contentIsEmpty
Layout.fillWidth
:
true
}
...
...
linphone-desktop/ui/views/App/Settings/SettingsSipAccounts.js
View file @
c1645184
...
...
@@ -23,3 +23,13 @@ function deleteAccount (account) {
}
})
}
function
eraseAllPasswords
()
{
window
.
attachVirtualWindow
(
Utils
.
buildDialogUri
(
'
ConfirmDialog
'
),
{
descriptionText
:
qsTr
(
'
eraseAllPasswordsDescription
'
),
},
function
(
status
)
{
if
(
status
)
{
Linphone
.
AccountSettingsModel
.
eraseAllPasswords
()
}
})
}
linphone-desktop/ui/views/App/Settings/SettingsSipAccounts.qml
View file @
c1645184
...
...
@@ -112,6 +112,8 @@ TabContainer {
TextButtonB
{
text
:
qsTr
(
'
eraseAllPasswords
'
)
onClicked
:
Logic
.
eraseAllPasswords
()
}
TextButtonB
{
...
...
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