Add a method to set the address of a participant.

This commit is contained in:
Ghislain MARY 2017-09-28 14:33:39 +02:00
parent f44d76f302
commit 9178c1a57a
2 changed files with 2 additions and 5 deletions

View file

@ -39,7 +39,8 @@ public:
virtual ~ParticipantPrivate () = default;
std::shared_ptr<CallSession> createSession (const Conference &conference, const CallSessionParams *params, bool hasMedia, CallSessionListener *listener);
std::shared_ptr<CallSession> getSession () const;
std::shared_ptr<CallSession> getSession () const { return session; }
void setAddress (const Address &newAddr) { addr = newAddr; }
private:
Address addr;

View file

@ -38,10 +38,6 @@ shared_ptr<CallSession> ParticipantPrivate::createSession (const Conference &con
return session;
}
shared_ptr<CallSession> ParticipantPrivate::getSession () const {
return session;
}
// =============================================================================
Participant::Participant (const Address &addr) : Object(*new ParticipantPrivate) {