Commit bef0f90b authored by Ghislain MARY's avatar Ghislain MARY
Browse files

Add the canHandleParticipants() method to the conference interface.

parent 7c4de39e
......@@ -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;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment