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
ff749bbb
Commit
ff749bbb
authored
Jan 23, 2017
by
Ronan Abhamon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat(ui/views/App/Calls/Incall): supports call quality
parent
3721814e
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
24 additions
and
1 deletion
+24
-1
CallModel.cpp
tests/src/components/call/CallModel.cpp
+4
-0
CallModel.hpp
tests/src/components/call/CallModel.hpp
+2
-0
Incall.qml
tests/ui/views/App/Calls/Incall.qml
+18
-1
No files found.
tests/src/components/call/CallModel.cpp
View file @
ff749bbb
...
...
@@ -57,6 +57,10 @@ void CallModel::transfer () {
// TODO
}
float
CallModel
::
getQuality
()
const
{
return
m_linphone_call
->
getCurrentQuality
();
}
// -----------------------------------------------------------------------------
QString
CallModel
::
getSipAddress
()
const
{
...
...
tests/src/components/call/CallModel.hpp
View file @
ff749bbb
...
...
@@ -37,6 +37,8 @@ public:
Q_INVOKABLE
void
terminate
();
Q_INVOKABLE
void
transfer
();
Q_INVOKABLE
float
getQuality
()
const
;
signals:
void
statusChanged
(
CallStatus
status
);
void
microMutedChanged
(
bool
status
);
...
...
tests/ui/views/App/Calls/Incall.qml
View file @
ff749bbb
...
...
@@ -47,8 +47,25 @@ Rectangle {
id
:
callQuality
anchors.left
:
parent
.
left
icon
:
'
call_quality_
'
+
2
icon
:
'
call_quality_
0
'
iconSize
:
CallStyle
.
header
.
iconSize
onIconChanged
:
console
.
log
(
icon
)
// See: http://www.linphone.org/docs/liblinphone/group__call__misc.html#ga62c7d3d08531b0cc634b797e273a0a73
Timer
{
interval
:
5000
repeat
:
true
running
:
true
triggeredOnStart
:
true
onTriggered
:
{
var
quality
=
call
.
getQuality
()
callQuality
.
icon
=
'
call_quality_
'
+
(
// Note: `quality` is in the [0, 5] interval.
// It's necessary to map in the `call_quality_` interval. ([0, 3])
quality
>=
0
?
Math
.
round
(
quality
/
(
5
/
3
))
:
0
)
}
}
}
ContactDescription
{
...
...
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