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
41c388e6
Commit
41c388e6
authored
May 24, 2017
by
Ronan Abhamon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat(ui/views/App/Calls/ConferenceManager): in progress
parent
67e51fa5
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
55 additions
and
21 deletions
+55
-21
CMakeLists.txt
linphone-desktop/CMakeLists.txt
+2
-2
Calls.js
linphone-desktop/ui/modules/Linphone/Calls/Calls.js
+44
-16
Calls.qml
linphone-desktop/ui/modules/Linphone/Calls/Calls.qml
+5
-3
IncomingMessage.qml
...hone-desktop/ui/modules/Linphone/Chat/IncomingMessage.qml
+3
-0
CallsWindow.qml
linphone-desktop/ui/views/App/Calls/CallsWindow.qml
+1
-0
No files found.
linphone-desktop/CMakeLists.txt
View file @
41c388e6
...
...
@@ -60,8 +60,8 @@ if(NOT WIN32)
set
(
CUSTOM_FLAGS
"
${
CUSTOM_FLAGS
}
-Wsuggest-override -Werror=suggest-override"
)
endif
()
endif
()
set
(
CMAKE_CXX_FLAGS
"
${
CMAKE_CXX_FLAGS
}
${
CUSTOM_FLAGS
}
"
)
set
(
CMAKE_CXX_FLAGS_DEBUG
"
${
CMAKE_CXX_FLAGS_DEBUG
}
-DQT_QML_DEBUG -DQT_DECLARATIVE_DEBUG"
)
set
(
CMAKE_CXX_FLAGS
"
${
CMAKE_CXX_FLAGS
}
${
CUSTOM_FLAGS
}
-DNDEBUG -DQT_NO_DEBUG
"
)
set
(
CMAKE_CXX_FLAGS_DEBUG
"
${
CMAKE_CXX_FLAGS_DEBUG
}
-D
DEBUG -D
QT_QML_DEBUG -DQT_DECLARATIVE_DEBUG"
)
# See: http://stackoverflow.com/a/1372836
if
(
WIN32
)
...
...
linphone-desktop/ui/modules/Linphone/Calls/Calls.js
View file @
41c388e6
...
...
@@ -90,33 +90,61 @@ function getParams (call) {
}
}
// -----------------------------------------------------------------------------
// Helpers.
// -----------------------------------------------------------------------------
function
handleCallRunning
(
index
,
call
)
{
calls
.
currentIndex
=
index
function
updateSelectedCall
(
call
,
index
)
{
calls
.
_selectedCall
=
call
if
(
index
!=
null
)
{
calls
.
currentIndex
=
index
}
}
function
handleCountChanged
(
count
)
{
if
(
count
===
0
)
{
return
0
function
resetSelectedCall
()
{
updateSelectedCall
(
null
,
-
1
)
}
function
setIndexWithCall
(
call
)
{
var
count
=
calls
.
count
for
(
var
i
=
0
;
i
<
count
;
i
++
)
{
if
(
call
===
model
.
data
(
model
.
index
(
i
,
0
)))
{
updateSelectedCall
(
call
,
i
)
return
}
}
}
var
index
=
calls
.
currentIndex
if
(
index
!==
-
1
)
{
// -----------------------------------------------------------------------------
// View handlers.
// -----------------------------------------------------------------------------
function
handleSelectedCall
(
call
)
{
setIndexWithCall
(
call
)
}
function
handleCountChanged
(
count
)
{
if
(
count
===
0
)
{
return
}
var
model
=
calls
.
model
index
=
count
-
1
var
call
=
calls
.
_selectedCall
calls
.
currentIndex
=
index
calls
.
_selectedCall
=
model
.
data
(
model
.
index
(
index
,
0
))
if
(
call
==
null
)
{
var
model
=
calls
.
model
var
index
=
count
-
1
updateSelectedCall
(
model
.
data
(
model
.
index
(
index
,
0
)),
index
)
}
else
{
setIndexWithCall
(
call
)
}
}
function
resetSelectedCall
()
{
calls
.
currentIndex
=
-
1
calls
.
_selectedCall
=
null
// -----------------------------------------------------------------------------
// Model handlers.
// -----------------------------------------------------------------------------
function
handleCallRunning
(
call
)
{
updateSelectedCall
(
call
)
}
function
handleRowsAboutToBeRemoved
(
_
,
first
,
last
)
{
...
...
@@ -134,13 +162,13 @@ function handleRowsInserted (_, first, last) {
var
call
=
model
.
data
(
model
.
index
(
index
,
0
))
if
(
call
.
isOutgoing
)
{
resetSelectedCall
(
)
updateSelectedCall
(
call
)
return
}
}
// First received call.
if
(
first
===
0
&&
model
.
rowCount
()
===
1
)
{
resetSelectedCall
(
)
updateSelectedCall
(
model
.
data
(
model
.
index
(
0
,
0
))
)
}
}
linphone-desktop/ui/modules/Linphone/Calls/Calls.qml
View file @
41c388e6
...
...
@@ -26,11 +26,12 @@ ListView {
// ---------------------------------------------------------------------------
onCountChanged
:
Logic
.
handleCountChanged
(
count
)
onSelectedCall
:
Logic
.
handleSelectedCall
(
call
)
Connections
{
target
:
model
onCallRunning
:
Logic
.
handleCallRunning
(
index
,
callModel
)
onCallRunning
:
Logic
.
handleCallRunning
(
callModel
)
onRowsAboutToBeRemoved
:
Logic
.
handleRowsAboutToBeRemoved
(
parent
,
first
,
last
)
onRowsInserted
:
Logic
.
handleRowsInserted
(
parent
,
first
,
last
)
}
...
...
@@ -86,6 +87,8 @@ ListView {
}
}
// ---------------------------------------------------------------------------
// Calls.
// ---------------------------------------------------------------------------
delegate
:
CallControls
{
...
...
@@ -119,8 +122,7 @@ ListView {
onClicked
:
{
if
(
$call
.
status
!==
CallModel
.
CallStatusEnded
)
{
_selectedCall
=
$call
calls
.
currentIndex
=
index
Logic
.
updateSelectedCall
(
$call
,
index
)
}
}
...
...
linphone-desktop/ui/modules/Linphone/Chat/IncomingMessage.qml
View file @
41c388e6
...
...
@@ -31,6 +31,9 @@ RowLayout {
}
var
previousEntry
=
proxyModel
.
data
(
proxyModel
.
index
(
index
-
1
,
0
))
if
(
!
previousEntry
)
{
return
true
}
// 2. Previous entry is a call event. => Visible.
// 3. I have sent a message before my contact. => Visible.
...
...
linphone-desktop/ui/views/App/Calls/CallsWindow.qml
View file @
41c388e6
...
...
@@ -23,6 +23,7 @@ Window {
isOutgoing
:
true
,
recording
:
false
,
sipAddress
:
''
,
type
:
false
,
updating
:
true
,
videoEnabled
:
false
})
...
...
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