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
853d46f1
Commit
853d46f1
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
ec2916f5
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
31 additions
and
81 deletions
+31
-81
ConferenceModel.cpp
...one-desktop/src/components/conference/ConferenceModel.cpp
+5
-21
ConferenceModel.hpp
...one-desktop/src/components/conference/ConferenceModel.hpp
+6
-8
Conference.qml
linphone-desktop/ui/views/App/Calls/Conference.qml
+13
-52
CallStyle.qml
linphone-desktop/ui/views/App/Styles/Calls/CallStyle.qml
+7
-0
No files found.
linphone-desktop/src/components/conference/ConferenceModel.cpp
View file @
853d46f1
...
...
@@ -24,7 +24,6 @@
#include "../../Utils.hpp"
#include "../core/CoreManager.hpp"
#include "ConferenceHelperModel.hpp"
#include "ConferenceModel.hpp"
...
...
@@ -32,28 +31,13 @@ using namespace std;
// =============================================================================
ConferenceModel
::
ConferenceModel
(
QObject
*
parent
)
:
Q
AbstractList
Model
(
parent
)
{}
ConferenceModel
::
ConferenceModel
(
QObject
*
parent
)
:
Q
SortFilterProxy
Model
(
parent
)
{}
int
ConferenceModel
::
rowCount
(
const
QModelIndex
&
index
)
const
{
return
mSipAddresses
.
count
();
}
QHash
<
int
,
QByteArray
>
ConferenceModel
::
roleNames
()
const
{
QHash
<
int
,
QByteArray
>
roles
;
roles
[
Qt
::
DisplayRole
]
=
"$sipAddress"
;
return
roles
;
}
QVariant
ConferenceModel
::
data
(
const
QModelIndex
&
index
,
int
role
)
const
{
int
row
=
index
.
row
();
if
(
!
index
.
isValid
()
||
row
<
0
||
row
>=
mSipAddresses
.
count
())
return
QVariant
();
if
(
role
==
Qt
::
DisplayRole
)
return
mSipAddresses
[
row
];
bool
ConferenceModel
::
filterAcceptsRow
(
int
sourceRow
,
const
QModelIndex
&
sourceParent
)
const
{
const
QModelIndex
&
index
=
sourceModel
()
->
index
(
sourceRow
,
0
,
sourceParent
);
const
CallModel
*
callModel
=
index
.
data
().
value
<
CallModel
*>
();
return
QVariant
();
return
callModel
->
getCall
()
->
getParams
()
->
getLocalConferenceMode
();
}
// -----------------------------------------------------------------------------
...
...
linphone-desktop/src/components/conference/ConferenceModel.hpp
View file @
853d46f1
...
...
@@ -23,11 +23,13 @@
#ifndef CONFERENCE_MODEL_H_
#define CONFERENCE_MODEL_H_
#include <Q
AbstractList
Model>
#include <Q
SortFilterProxy
Model>
// =============================================================================
class
ConferenceModel
:
public
QAbstractListModel
{
class
CallModel
;
class
ConferenceModel
:
public
QSortFilterProxyModel
{
Q_OBJECT
;
Q_PROPERTY
(
bool
microMuted
READ
getMicroMuted
WRITE
setMicroMuted
NOTIFY
microMutedChanged
);
...
...
@@ -38,10 +40,8 @@ public:
ConferenceModel
(
QObject
*
parent
=
Q_NULLPTR
);
~
ConferenceModel
()
=
default
;
int
rowCount
(
const
QModelIndex
&
index
=
QModelIndex
())
const
override
;
QHash
<
int
,
QByteArray
>
roleNames
()
const
override
;
QVariant
data
(
const
QModelIndex
&
index
,
int
role
=
Qt
::
DisplayRole
)
const
override
;
protected:
bool
filterAcceptsRow
(
int
sourceRow
,
const
QModelIndex
&
sourceParent
)
const
override
;
Q_INVOKABLE
void
terminate
();
...
...
@@ -59,8 +59,6 @@ private:
bool
getRecording
()
const
;
bool
mRecording
=
false
;
QStringList
mSipAddresses
;
};
#endif // CONFERENCE_MODEL_H_
linphone-desktop/ui/views/App/Calls/Conference.qml
View file @
853d46f1
...
...
@@ -11,15 +11,13 @@ import App.Styles 1.0
// =============================================================================
Rectangle
{
property
var
call
:
null
// TODO: Remove me
color
:
CallStyle
.
backgroundColor
// ---------------------------------------------------------------------------
ConferenceModel
{
id
:
conference
}
ConferenceModel
{
id
:
conference
}
ColumnLayout
{
anchors
{
...
...
@@ -30,7 +28,7 @@ Rectangle {
spacing
:
0
// -------------------------------------------------------------------------
// C
all
info.
// C
onference
info.
// -------------------------------------------------------------------------
Item
{
...
...
@@ -53,7 +51,14 @@ Rectangle {
anchors.centerIn
:
parent
horizontalAlignment
:
Text
.
AlignHCenter
text
:
qsTr
(
'
conferenceTitle
'
)
text
:
qsTr
(
'
conferenceTitle
'
)
color
:
CallStyle
.
header
.
conferenceDescription
.
color
font
{
bold
:
true
pointSize
:
CallStyle
.
header
.
conferenceDescription
.
fontSize
}
height
:
parent
.
height
width
:
parent
.
width
-
rightActions
.
width
-
leftActions
.
width
-
CallStyle
.
header
.
conferenceDescription
.
width
...
...
@@ -75,30 +80,12 @@ Rectangle {
useStates
:
false
onClicked
:
!
enabled
?
conference
.
startRecording
()
?
conference
.
startRecording
()
:
conference
.
stopRecording
()
}
}
}
Text
{
id
:
elapsedTime
Layout.fillWidth
:
true
color
:
CallStyle
.
header
.
elapsedTime
.
color
font.pointSize
:
CallStyle
.
header
.
elapsedTime
.
fontSize
horizontalAlignment
:
Text
.
AlignHCenter
Timer
{
interval
:
1000
repeat
:
true
running
:
true
triggeredOnStart
:
true
onTriggered
:
elapsedTime
.
text
=
Utils
.
formatElapsedTime
(
conference
.
duration
)
}
}
// -------------------------------------------------------------------------
// Contacts visual.
// -------------------------------------------------------------------------
...
...
@@ -153,32 +140,6 @@ Rectangle {
onClicked
:
conference
.
microMuted
=
enabled
}
}
Row
{
spacing
:
CallStyle
.
actionArea
.
vu
.
spacing
VuMeter
{
Timer
{
interval
:
50
repeat
:
true
running
:
speaker
.
enabled
onTriggered
:
parent
.
value
=
conference
.
speakerVu
}
enabled
:
speaker
.
enabled
}
ActionSwitch
{
id
:
speaker
enabled
:
true
icon
:
'
speaker
'
iconSize
:
CallStyle
.
actionArea
.
iconSize
onClicked
:
console
.
log
(
'
TODO
'
)
}
}
}
ActionBar
{
...
...
linphone-desktop/ui/views/App/Styles/Calls/CallStyle.qml
View file @
853d46f1
...
...
@@ -66,6 +66,13 @@ QtObject {
property
int
width
:
150
}
property
QtObject
conferenceDescription
:
QtObject
{
property
color
color
:
Colors
.
x
property
int
fontSize
:
12
property
int
height
:
60
property
int
width
:
150
}
property
QtObject
elapsedTime
:
QtObject
{
property
color
color
:
Colors
.
j
property
int
fontSize
:
10
...
...
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