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
ebd8de84
Commit
ebd8de84
authored
May 12, 2017
by
Ronan Abhamon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(src/components/call/CallModel): coding style
parent
16f90568
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
12 deletions
+22
-12
CallModel.cpp
linphone-desktop/src/components/call/CallModel.cpp
+22
-12
No files found.
linphone-desktop/src/components/call/CallModel.cpp
View file @
ebd8de84
...
...
@@ -153,13 +153,13 @@ void CallModel::takeSnapshot () {
QString
newName
=
QDateTime
::
currentDateTime
().
toString
(
"yyyy-MM-dd_hh:mm:ss"
)
+
".jpg"
;
if
(
newName
==
oldName
)
{
qWarning
()
<<
"Unable to take snapshot. Wait one second."
;
qWarning
()
<<
QStringLiteral
(
"Unable to take snapshot. Wait one second."
)
;
return
;
}
oldName
=
newName
;
qInfo
()
<<
"Take snapshot of call:"
<<
&
mCall
;
qInfo
()
<<
QStringLiteral
(
"Take snapshot of call:"
)
<<
this
;
mCall
->
takeVideoSnapshot
(
::
Utils
::
qStringToLinphoneString
(
...
...
@@ -172,7 +172,7 @@ void CallModel::startRecording () {
if
(
mRecording
)
return
;
qInfo
()
<<
"Start recording call:"
<<
&
mCall
;
qInfo
()
<<
QStringLiteral
(
"Start recording call:"
)
<<
this
;
mCall
->
startRecording
();
mRecording
=
true
;
...
...
@@ -182,7 +182,7 @@ void CallModel::startRecording () {
void
CallModel
::
stopRecording
()
{
if
(
mRecording
)
{
qInfo
()
<<
"Stop recording call:"
<<
&
mCall
;
qInfo
()
<<
QStringLiteral
(
"Stop recording call:"
)
<<
this
;
mRecording
=
false
;
mCall
->
stopRecording
();
...
...
@@ -199,8 +199,8 @@ void CallModel::handleCallStateChanged (const std::shared_ptr<linphone::Call> &c
switch
(
state
)
{
case
linphone
:
:
CallStateError
:
setCallErrorFromReason
(
call
->
getReason
());
case
linphone
:
:
CallStateEnd
:
setCallErrorFromReason
(
call
->
getReason
());
stopAutoAnswerTimer
();
mPausedByRemote
=
false
;
break
;
...
...
@@ -225,17 +225,24 @@ void CallModel::handleCallStateChanged (const std::shared_ptr<linphone::Call> &c
break
;
case
linphone
:
:
CallStateUpdatedByRemote
:
if
(
!
mCall
->
getCurrentParams
()
->
videoEnabled
()
&&
mCall
->
getRemoteParams
()
->
videoEnabled
()
)
{
if
(
!
mCall
->
getCurrentParams
()
->
videoEnabled
()
&&
mCall
->
getRemoteParams
()
->
videoEnabled
())
{
mCall
->
deferUpdate
();
emit
videoRequested
();
}
break
;
default:
case
linphone
:
:
CallStateIdle
:
case
linphone
:
:
CallStateIncomingReceived
:
case
linphone
:
:
CallStateOutgoingInit
:
case
linphone
:
:
CallStateOutgoingProgress
:
case
linphone
:
:
CallStateOutgoingRinging
:
case
linphone
:
:
CallStateOutgoingEarlyMedia
:
case
linphone
:
:
CallStatePaused
:
case
linphone
:
:
CallStateIncomingEarlyMedia
:
case
linphone
:
:
CallStateUpdating
:
case
linphone
:
:
CallStateEarlyUpdatedByRemote
:
case
linphone
:
:
CallStateEarlyUpdating
:
break
;
}
...
...
@@ -309,6 +316,9 @@ void CallModel::setCallErrorFromReason (linphone::Reason reason) {
break
;
}
if
(
!
mCallError
.
isEmpty
())
qInfo
()
<<
QStringLiteral
(
"Call terminated with error (%1):"
).
arg
(
mCallError
)
<<
this
;
emit
callErrorChanged
(
mCallError
);
}
...
...
@@ -546,7 +556,7 @@ QString CallModel::iceStateToString (linphone::IceState state) const {
return
tr
(
"iceStateHostConnection"
);
case
linphone
:
:
IceStateRelayConnection
:
return
tr
(
"iceStateRelayConnection"
);
default:
return
tr
(
"iceStateInvalid"
);
}
return
tr
(
"iceStateInvalid"
);
}
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