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
64e54ca6
Commit
64e54ca6
authored
Feb 20, 2017
by
Ghislain MARY
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Do not use deprecated call methods.
parent
e9db2d56
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
9 deletions
+9
-9
CallModel.cpp
linphone-desktop/src/components/call/CallModel.cpp
+9
-9
No files found.
linphone-desktop/src/components/call/CallModel.cpp
View file @
64e54ca6
...
...
@@ -68,7 +68,7 @@ CallModel::CallModel (shared_ptr<linphone::Call> linphone_call) {
!
m_linphone_call
->
getCurrentParams
()
->
videoEnabled
()
&&
m_linphone_call
->
getRemoteParams
()
->
videoEnabled
()
)
{
CoreManager
::
getInstance
()
->
getCore
()
->
deferCallUpdate
(
m_linphone_call
);
m_linphone_call
->
deferUpdate
(
);
emit
videoRequested
();
}
...
...
@@ -103,7 +103,7 @@ void CallModel::accept () {
setRecordFile
(
params
);
App
::
getInstance
()
->
getCallsWindow
()
->
show
();
core
->
acceptCallWithParams
(
m_linphone_call
,
params
);
m_linphone_call
->
acceptWithParams
(
params
);
}
void
CallModel
::
acceptWithVideo
()
{
...
...
@@ -113,11 +113,11 @@ void CallModel::acceptWithVideo () {
setRecordFile
(
params
);
App
::
getInstance
()
->
getCallsWindow
()
->
show
();
core
->
acceptCallWithParams
(
m_linphone_call
,
params
);
m_linphone_call
->
acceptWithParams
(
params
);
}
void
CallModel
::
terminate
()
{
CoreManager
::
getInstance
()
->
getCore
()
->
terminateCall
(
m_linphone_call
);
m_linphone_call
->
terminate
(
);
}
void
CallModel
::
transfer
()
{
...
...
@@ -129,11 +129,11 @@ void CallModel::acceptVideoRequest () {
shared_ptr
<
linphone
::
CallParams
>
params
=
core
->
createCallParams
(
m_linphone_call
);
params
->
enableVideo
(
true
);
core
->
acceptCallUpdate
(
m_linphone_call
,
params
);
m_linphone_call
->
acceptUpdate
(
params
);
}
void
CallModel
::
rejectVideoRequest
()
{
CoreManager
::
getInstance
()
->
getCore
()
->
acceptCallUpdate
(
m_linphone_call
,
m_linphone_call
->
getCurrentParams
());
m_linphone_call
->
acceptUpdate
(
m_linphone_call
->
getCurrentParams
());
}
void
CallModel
::
takeSnapshot
()
{
...
...
@@ -257,13 +257,13 @@ void CallModel::setPausedByUser (bool status) {
if
(
status
)
{
if
(
!
m_paused_by_user
)
CoreManager
::
getInstance
()
->
getCore
()
->
pauseCall
(
m_linphone_call
);
m_linphone_call
->
pause
(
);
return
;
}
if
(
m_paused_by_user
)
CoreManager
::
getInstance
()
->
getCore
()
->
resumeCall
(
m_linphone_call
);
m_linphone_call
->
resume
(
);
}
bool
CallModel
::
getVideoEnabled
()
const
{
...
...
@@ -286,7 +286,7 @@ void CallModel::setVideoEnabled (bool status) {
shared_ptr
<
linphone
::
CallParams
>
params
=
core
->
createCallParams
(
m_linphone_call
);
params
->
enableVideo
(
status
);
core
->
updateCall
(
m_linphone_call
,
params
);
m_linphone_call
->
update
(
params
);
}
bool
CallModel
::
getUpdating
()
const
{
...
...
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