Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
BC
public
liblinphone
Commits
22214117
Commit
22214117
authored
Sep 22, 2017
by
Benjamin REIS
Browse files
Change getResourceLists to use address
parent
3abfd274
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/conference/remote-conference.cpp
View file @
22214117
...
...
@@ -60,13 +60,13 @@ void RemoteConference::removeParticipant (const shared_ptr<const Participant> &p
}
string
RemoteConference
::
getResourceLists
(
const
list
<
shared_ptr
<
const
Participant
>>
&
participant
s
)
{
string
RemoteConference
::
getResourceLists
(
const
list
<
shared_ptr
<
const
Address
>>
&
addresse
s
)
{
ResourceLists
rl
=
ResourceLists
();
ListType
l
=
ListType
();
for
(
const
auto
&
p
:
participant
s
)
{
EntryType
entry
=
EntryType
(
p
->
getAddress
().
asStringUriOnly
());
if
(
p
->
getAddress
().
getDisplayName
()
!=
""
)
{
entry
.
setDisplayName
(
DisplayName
(
p
->
getAddress
().
getDisplayName
()));
for
(
const
auto
&
addr
:
addresse
s
)
{
EntryType
entry
=
EntryType
(
addr
->
asStringUriOnly
());
if
(
addr
->
getDisplayName
()
!=
""
)
{
entry
.
setDisplayName
(
DisplayName
(
addr
->
getDisplayName
()));
}
l
.
getEntry
().
push_back
(
entry
);
}
...
...
src/conference/remote-conference.h
View file @
22214117
...
...
@@ -39,7 +39,7 @@ public:
std
::
shared_ptr
<
Participant
>
addParticipant
(
const
Address
&
addr
,
const
CallSessionParams
*
params
,
bool
hasMedia
)
override
;
void
removeParticipant
(
const
std
::
shared_ptr
<
const
Participant
>
&
participant
)
override
;
std
::
string
getResourceLists
(
const
std
::
list
<
std
::
shared_ptr
<
const
Participant
>>
&
participant
s
);
std
::
string
getResourceLists
(
const
std
::
list
<
std
::
shared_ptr
<
const
Address
>>
&
addresse
s
);
protected:
/* ConferenceListener */
...
...
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