From 9178c1a57a9f66592d305e54698d0e2ad5d3f170 Mon Sep 17 00:00:00 2001 From: Ghislain MARY Date: Thu, 28 Sep 2017 14:33:39 +0200 Subject: [PATCH] Add a method to set the address of a participant. --- src/conference/participant-p.h | 3 ++- src/conference/participant.cpp | 4 ---- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/src/conference/participant-p.h b/src/conference/participant-p.h index 8d863a9eb..58d522a34 100644 --- a/src/conference/participant-p.h +++ b/src/conference/participant-p.h @@ -39,7 +39,8 @@ public: virtual ~ParticipantPrivate () = default; std::shared_ptr createSession (const Conference &conference, const CallSessionParams *params, bool hasMedia, CallSessionListener *listener); - std::shared_ptr getSession () const; + std::shared_ptr getSession () const { return session; } + void setAddress (const Address &newAddr) { addr = newAddr; } private: Address addr; diff --git a/src/conference/participant.cpp b/src/conference/participant.cpp index 128660977..31a25000d 100644 --- a/src/conference/participant.cpp +++ b/src/conference/participant.cpp @@ -38,10 +38,6 @@ shared_ptr ParticipantPrivate::createSession (const Conference &con return session; } -shared_ptr ParticipantPrivate::getSession () const { - return session; -} - // ============================================================================= Participant::Participant (const Address &addr) : Object(*new ParticipantPrivate) {