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
7ea31e5b
Commit
7ea31e5b
authored
Mar 03, 2017
by
Ronan Abhamon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat(ui/views/App/Settings/SettingsAudio): supports echo cancellation
parent
576a7564
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
38 additions
and
0 deletions
+38
-0
en.ts
linphone-desktop/assets/languages/en.ts
+4
-0
fr.ts
linphone-desktop/assets/languages/fr.ts
+4
-0
SettingsModel.cpp
linphone-desktop/src/components/settings/SettingsModel.cpp
+11
-0
SettingsModel.hpp
linphone-desktop/src/components/settings/SettingsModel.hpp
+7
-0
SettingsAudio.qml
linphone-desktop/ui/views/App/Settings/SettingsAudio.qml
+12
-0
No files found.
linphone-desktop/assets/languages/en.ts
View file @
7ea31e5b
...
...
@@ -685,6 +685,10 @@ Server url not configured.</translation>
<
source
>
ringLabel
<
/source
>
<
translation
>
Ring
<
/translation
>
<
/message
>
<
message
>
<
source
>
echoCancellationLabel
<
/source
>
<
translation
>
Enable
echo
cancellation
<
/translation
>
<
/message
>
<
/context
>
<
context
>
<
name
>
SettingsCallsChat
<
/name
>
...
...
linphone-desktop/assets/languages/fr.ts
View file @
7ea31e5b
...
...
@@ -695,6 +695,10 @@ Url du serveur non configurée.</translation>
<
source
>
ringLabel
<
/source
>
<
translation
>
Sonnerie
<
/translation
>
<
/message
>
<
message
>
<
source
>
echoCancellationLabel
<
/source
>
<
translation
>
Activer
annulation
d
&
apos
;
é
cho
<
/translation
>
<
/message
>
<
/context
>
<
context
>
<
name
>
SettingsCallsChat
<
/name
>
...
...
linphone-desktop/src/components/settings/SettingsModel.cpp
View file @
7ea31e5b
...
...
@@ -137,6 +137,17 @@ void SettingsModel::setRingPath (const QString &path) {
emit
ringPathChanged
(
cleaned_path
);
}
// -----------------------------------------------------------------------------
bool
SettingsModel
::
getEchoCancellationEnabled
()
const
{
return
CoreManager
::
getInstance
()
->
getCore
()
->
echoCancellationEnabled
();
}
void
SettingsModel
::
setEchoCancellationEnabled
(
bool
status
)
{
CoreManager
::
getInstance
()
->
getCore
()
->
enableEchoCancellation
(
status
);
emit
echoCancellationEnabledChanged
(
status
);
}
// =============================================================================
// Chat & calls.
// =============================================================================
...
...
linphone-desktop/src/components/settings/SettingsModel.hpp
View file @
7ea31e5b
...
...
@@ -47,6 +47,8 @@ class SettingsModel : public QObject {
Q_PROPERTY
(
QString
ringPath
READ
getRingPath
WRITE
setRingPath
NOTIFY
ringPathChanged
);
Q_PROPERTY
(
bool
echoCancellationEnabled
READ
getEchoCancellationEnabled
WRITE
setEchoCancellationEnabled
NOTIFY
echoCancellationEnabledChanged
);
// Chat & calls. -------------------------------------------------------------
Q_PROPERTY
(
bool
autoAnswerStatus
READ
getAutoAnswerStatus
WRITE
setAutoAnswerStatus
NOTIFY
autoAnswerStatusChanged
);
...
...
@@ -142,6 +144,9 @@ public:
QString
getRingPath
()
const
;
void
setRingPath
(
const
QString
&
path
);
bool
getEchoCancellationEnabled
()
const
;
void
setEchoCancellationEnabled
(
bool
status
);
// Chat & calls. -------------------------------------------------------------
bool
getAutoAnswerStatus
()
const
;
...
...
@@ -242,6 +247,8 @@ signals:
void
ringPathChanged
(
const
QString
&
path
);
void
echoCancellationEnabledChanged
(
bool
status
);
// Chat & calls. -------------------------------------------------------------
void
autoAnswerStatusChanged
(
bool
status
);
...
...
linphone-desktop/ui/views/App/Settings/SettingsAudio.qml
View file @
7ea31e5b
...
...
@@ -70,5 +70,17 @@ TabContainer {
}
}
}
FormLine
{
FormGroup
{
label
:
qsTr
(
'
echoCancellationLabel
'
)
Switch
{
checked
:
SettingsModel
.
echoCancellationEnabled
onClicked
:
SettingsModel
.
echoCancellationEnabled
=
!
checked
}
}
}
}
}
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