Adding setLastNotify to remote conference event handler

This commit is contained in:
Erwan Croze 2017-12-01 14:52:07 +01:00 committed by Ghislain MARY
parent 2f1d16a306
commit fc61014650
2 changed files with 10 additions and 3 deletions

View file

@ -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

View file

@ -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);