From fc61014650d232b98eb83741f02b7f8a0efdd46e Mon Sep 17 00:00:00 2001 From: Erwan Croze Date: Fri, 1 Dec 2017 14:52:07 +0100 Subject: [PATCH] Adding setLastNotify to remote conference event handler --- .../handlers/local-conference-event-handler.cpp | 9 +++++++-- src/conference/handlers/local-conference-event-handler.h | 4 +++- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/src/conference/handlers/local-conference-event-handler.cpp b/src/conference/handlers/local-conference-event-handler.cpp index bceacae28..f705a59fe 100644 --- a/src/conference/handlers/local-conference-event-handler.cpp +++ b/src/conference/handlers/local-conference-event-handler.cpp @@ -346,12 +346,12 @@ string LocalConferenceEventHandlerPrivate::createNotifyParticipantDeviceRemoved // ============================================================================= -LocalConferenceEventHandler::LocalConferenceEventHandler (LocalConference *localConference) : +LocalConferenceEventHandler::LocalConferenceEventHandler (LocalConference *localConference, unsigned int notify) : Object(*new LocalConferenceEventHandlerPrivate) { L_D(); xercesc::XMLPlatformUtils::Initialize(); d->conf = localConference; - // TODO : init d->lastNotify = last notify + d->lastNotify = notify; } LocalConferenceEventHandler::~LocalConferenceEventHandler () { @@ -429,4 +429,9 @@ void LocalConferenceEventHandler::notifyParticipantDeviceRemoved (const Address d->notifyAll(d->createNotifyParticipantDeviceRemoved(addr, gruu)); } +void LocalConferenceEventHandler::setLastNotify (unsigned int lastNotify) { + L_D(); + d->lastNotify = lastNotify; +} + LINPHONE_END_NAMESPACE diff --git a/src/conference/handlers/local-conference-event-handler.h b/src/conference/handlers/local-conference-event-handler.h index bdb14700b..04f45632c 100644 --- a/src/conference/handlers/local-conference-event-handler.h +++ b/src/conference/handlers/local-conference-event-handler.h @@ -35,7 +35,7 @@ class LocalConferenceEventHandlerPrivate; class LocalConferenceEventHandler : public Object { public: - LocalConferenceEventHandler (LocalConference *localConference); + LocalConferenceEventHandler (LocalConference *localConference, unsigned int notify = 0); ~LocalConferenceEventHandler (); void subscribeReceived (LinphoneEvent *lev); @@ -45,6 +45,8 @@ public: void notifySubjectChanged (); void notifyParticipantDeviceAdded (const Address &addr, const Address &gruu); void notifyParticipantDeviceRemoved (const Address &addr, const Address &gruu); + + void setLastNotify (unsigned int lastNotify); private: L_DECLARE_PRIVATE(LocalConferenceEventHandler);