Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
J
jami-libclient
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
savoirfairelinux
jami-libclient
Commits
7d8f2ce9
Unverified
Commit
7d8f2ce9
authored
3 years ago
by
Amin Bandali
Browse files
Options
Downloads
Patches
Plain Diff
api: newcallmodel: add isConferenceHost()
Change-Id: Ie621a10fec496c70da8f28fdc689407226c2131f
parent
0a3545ac
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/api/newcallmodel.h
+7
-0
7 additions, 0 deletions
src/api/newcallmodel.h
src/newcallmodel.cpp
+11
-1
11 additions, 1 deletion
src/newcallmodel.cpp
with
18 additions
and
1 deletion
src/api/newcallmodel.h
+
7
−
0
View file @
7d8f2ce9
...
...
@@ -270,6 +270,13 @@ public:
*/
void
hangupParticipant
(
const
QString
&
confId
,
const
QString
&
participant
);
/**
* Check if a call is a conference or not
* @param callId The call to check
* @return if conference
*/
bool
isConferenceHost
(
const
QString
&
callId
);
Q_SIGNALS
:
/**
* Emitted when a call state changes
...
...
This diff is collapsed.
Click to expand it.
src/newcallmodel.cpp
+
11
−
1
View file @
7d8f2ce9
...
...
@@ -270,7 +270,7 @@ NewCallModel::createCall(const QString& uri, bool isAudioOnly)
auto
callId
=
isAudioOnly
?
CallManager
::
instance
().
placeCall
(
owner
.
id
,
uri
,
{{
"AUDIO_ONLY"
,
"true"
}})
:
CallManager
::
instance
().
placeCall
(
owner
.
id
,
uri
);
#else // dbus
#else
// dbus
// do not use auto here (QDBusPendingReply<QString>)
QString
callId
=
isAudioOnly
?
CallManager
::
instance
().
placeCallWithDetails
(
owner
.
id
,
...
...
@@ -808,6 +808,16 @@ NewCallModel::hangupCallsAndConferences()
}
}
bool
NewCallModel
::
isConferenceHost
(
const
QString
&
callId
)
{
auto
call
=
pimpl_
->
calls
.
find
(
callId
);
if
(
call
==
pimpl_
->
calls
.
end
()
or
not
call
->
second
)
return
false
;
else
return
call
->
second
->
type
==
lrc
::
api
::
call
::
Type
::
CONFERENCE
;
}
void
NewCallModelPimpl
::
slotIncomingCall
(
const
QString
&
accountId
,
const
QString
&
callId
,
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment