mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-23 22:28:07 +00:00
Add the canHandleParticipants() method to the conference interface.
This commit is contained in:
parent
7c4de39e80
commit
bef0f90bf5
9 changed files with 21 additions and 0 deletions
|
|
@ -44,6 +44,10 @@ void BasicChatRoom::addParticipants (const list<Address> &addresses, const CallS
|
|||
lError() << "addParticipants() is not allowed on a BasicChatRoom";
|
||||
}
|
||||
|
||||
bool BasicChatRoom::canHandleParticipants () const {
|
||||
return false;
|
||||
}
|
||||
|
||||
const string& BasicChatRoom::getId () const {
|
||||
L_D(const BasicChatRoom);
|
||||
lError() << "a BasicChatRoom does not have a conference id";
|
||||
|
|
|
|||
|
|
@ -41,6 +41,7 @@ public:
|
|||
/* ConferenceInterface */
|
||||
std::shared_ptr<Participant> addParticipant (const Address &addr, const CallSessionParams *params, bool hasMedia);
|
||||
void addParticipants (const std::list<Address> &addresses, const CallSessionParams *params, bool hasMedia);
|
||||
bool canHandleParticipants () const;
|
||||
const std::string& getId () const;
|
||||
int getNbParticipants () const;
|
||||
std::list<std::shared_ptr<Participant>> getParticipants () const;
|
||||
|
|
|
|||
|
|
@ -54,6 +54,10 @@ void ClientGroupChatRoom::addParticipants (const list<Address> &addresses, const
|
|||
// TODO
|
||||
}
|
||||
|
||||
bool ClientGroupChatRoom::canHandleParticipants () const {
|
||||
return true;
|
||||
}
|
||||
|
||||
const string& ClientGroupChatRoom::getId () const {
|
||||
return id;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -42,6 +42,7 @@ public:
|
|||
/* ConferenceInterface */
|
||||
std::shared_ptr<Participant> addParticipant (const Address &addr, const CallSessionParams *params, bool hasMedia);
|
||||
void addParticipants (const std::list<Address> &addresses, const CallSessionParams *params, bool hasMedia);
|
||||
bool canHandleParticipants () const;
|
||||
const std::string& getId () const;
|
||||
int getNbParticipants () const;
|
||||
std::list<std::shared_ptr<Participant>> getParticipants () const;
|
||||
|
|
|
|||
|
|
@ -149,6 +149,10 @@ void RealTimeTextChatRoom::addParticipants (const list<Address> &addresses, cons
|
|||
lError() << "addParticipants() is not allowed on a RealTimeTextChatRoom";
|
||||
}
|
||||
|
||||
bool RealTimeTextChatRoom::canHandleParticipants () const {
|
||||
return false;
|
||||
}
|
||||
|
||||
const string& RealTimeTextChatRoom::getId () const {
|
||||
L_D(const RealTimeTextChatRoom);
|
||||
lError() << "a RealTimeTextChatRoom does not have a conference id";
|
||||
|
|
|
|||
|
|
@ -45,6 +45,7 @@ public:
|
|||
/* ConferenceInterface */
|
||||
std::shared_ptr<Participant> addParticipant (const Address &addr, const CallSessionParams *params, bool hasMedia);
|
||||
void addParticipants (const std::list<Address> &addresses, const CallSessionParams *params, bool hasMedia);
|
||||
bool canHandleParticipants () const;
|
||||
const std::string& getId () const;
|
||||
int getNbParticipants () const;
|
||||
std::list<std::shared_ptr<Participant>> getParticipants () const;
|
||||
|
|
|
|||
|
|
@ -36,6 +36,7 @@ public:
|
|||
|
||||
virtual std::shared_ptr<Participant> addParticipant (const Address &addr, const CallSessionParams *params, bool hasMedia) = 0;
|
||||
virtual void addParticipants (const std::list<Address> &addresses, const CallSessionParams *params, bool hasMedia) = 0;
|
||||
virtual bool canHandleParticipants () const = 0;
|
||||
virtual const std::string& getId () const = 0;
|
||||
virtual int getNbParticipants () const = 0;
|
||||
virtual std::list<std::shared_ptr<Participant>> getParticipants () const = 0;
|
||||
|
|
|
|||
|
|
@ -49,6 +49,10 @@ void Conference::addParticipants (const list<Address> &addresses, const CallSess
|
|||
// TODO
|
||||
}
|
||||
|
||||
bool Conference::canHandleParticipants () const {
|
||||
return true;
|
||||
}
|
||||
|
||||
const string& Conference::getId () const {
|
||||
return id;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -52,6 +52,7 @@ public:
|
|||
/* ConferenceInterface */
|
||||
virtual std::shared_ptr<Participant> addParticipant (const Address &addr, const CallSessionParams *params, bool hasMedia);
|
||||
virtual void addParticipants (const std::list<Address> &addresses, const CallSessionParams *params, bool hasMedia);
|
||||
virtual bool canHandleParticipants () const;
|
||||
virtual const std::string& getId () const;
|
||||
virtual int getNbParticipants () const;
|
||||
virtual std::list<std::shared_ptr<Participant>> getParticipants () const;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue