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
4033a928
Commit
4033a928
authored
May 22, 2017
by
Ronan Abhamon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat(src/components/calls/CallsListModel): remove `getCallModel` function
parent
7eb331dd
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
1 addition
and
8 deletions
+1
-8
CallsListModel.cpp
linphone-desktop/src/components/calls/CallsListModel.cpp
+0
-5
CallsListModel.hpp
linphone-desktop/src/components/calls/CallsListModel.hpp
+0
-2
Notifier.cpp
linphone-desktop/src/components/notifier/Notifier.cpp
+1
-1
No files found.
linphone-desktop/src/components/calls/CallsListModel.cpp
View file @
4033a928
...
...
@@ -80,11 +80,6 @@ QVariant CallsListModel::data (const QModelIndex &index, int role) const {
return
QVariant
();
}
CallModel
*
CallsListModel
::
getCallModel
(
const
shared_ptr
<
linphone
::
Call
>
&
call
)
const
{
auto
it
=
findCallModel
(
*
(
const_cast
<
QList
<
CallModel
*>
*>
(
&
mList
)),
call
);
return
it
!=
mList
.
end
()
?
*
it
:
nullptr
;
}
// -----------------------------------------------------------------------------
void
CallsListModel
::
launchAudioCall
(
const
QString
&
sipUri
)
const
{
...
...
linphone-desktop/src/components/calls/CallsListModel.hpp
View file @
4033a928
...
...
@@ -43,8 +43,6 @@ public:
QHash
<
int
,
QByteArray
>
roleNames
()
const
override
;
QVariant
data
(
const
QModelIndex
&
index
,
int
role
=
Qt
::
DisplayRole
)
const
override
;
CallModel
*
getCallModel
(
const
std
::
shared_ptr
<
linphone
::
Call
>
&
call
)
const
;
Q_INVOKABLE
void
launchAudioCall
(
const
QString
&
sipUri
)
const
;
Q_INVOKABLE
void
launchVideoCall
(
const
QString
&
sipUri
)
const
;
...
...
linphone-desktop/src/components/notifier/Notifier.cpp
View file @
4033a928
...
...
@@ -256,7 +256,7 @@ void Notifier::notifyReceivedCall (const shared_ptr<linphone::Call> &call) {
if
(
!
notification
)
return
;
CallModel
*
callModel
=
CoreManager
::
getInstance
()
->
getCallsListModel
()
->
getCallModel
(
call
);
CallModel
*
callModel
=
&
call
->
getData
<
CallModel
>
(
"call-model"
);
QObject
::
connect
(
callModel
,
&
CallModel
::
statusChanged
,
notification
,
[
this
,
notification
](
CallModel
::
CallStatus
status
)
{
...
...
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