-
Andrea Gianarda authored
- Add callback to notify the application that a participant has changed role in the conference - Take into account role when creating the list of participant informations of a conference - Give priority to the conference information stored in the database over that cached in the call log object - When a participant is added, give the application a pointer to it with all the informations up to date - In the event of a full state, reduce the number of database accesses by updating the conference information in the callback onFullStateReceived. Previously, for every participant added a DB access was required in order to update the conference information Tests: - Add verification of role and sequence id of every participant info in the conference information in the call logs and conference information - add helper functions to ease checking of conference informations
5f3273b8
/*
* Copyright (c) 2010-2023 Belledonne Communications SARL.
*
* This file is part of Liblinphone
* (see https://gitlab.linphone.org/BC/public/liblinphone).
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef _CONFERENCE_CBS_H_
#define _CONFERENCE_CBS_H_
#include "belle-sip/object++.hh"
#include "c-wrapper/c-wrapper.h"
#include "linphone/api/c-types.h"
#include "linphone/utils/general.h"
LINPHONE_BEGIN_NAMESPACE
class ConferenceCbs : public bellesip::HybridObject<LinphoneConferenceCbs, ConferenceCbs>, public Callbacks {
public:
LinphoneConferenceCbsParticipantAddedCb participantAddedCb;
LinphoneConferenceCbsParticipantRemovedCb participantRemovedCb;
LinphoneConferenceCbsParticipantDeviceAddedCb participantDeviceAddedCb;
LinphoneConferenceCbsParticipantDeviceRemovedCb participantDeviceRemovedCb;
LinphoneConferenceCbsParticipantRoleChangedCb participantRoleChangedCb;
LinphoneConferenceCbsParticipantAdminStatusChangedCb participantAdminStatusChangedCb;
LinphoneConferenceCbsParticipantDeviceMediaCapabilityChangedCb participantDeviceMediaCapabilityChangedCb;
LinphoneConferenceCbsParticipantDeviceMediaAvailabilityChangedCb participantDeviceMediaAvailabilityChangedCb;
LinphoneConferenceCbsParticipantDeviceStateChangedCb participantDeviceStateChangedCb;
LinphoneConferenceCbsStateChangedCb stateChangedCb;
LinphoneConferenceCbsSubjectChangedCb subjectChangedCb;
LinphoneConferenceCbsAvailableMediaChangedCb availableMediaChangedCb;
LinphoneConferenceCbsAudioDeviceChangedCb audioDeviceChangedCb;
LinphoneConferenceCbsParticipantDeviceIsSpeakingChangedCb participantDeviceIsSpeakingChangedCb;
LinphoneConferenceCbsParticipantDeviceIsMutedCb participantDeviceIsMutedCb;
LinphoneConferenceCbsActiveSpeakerParticipantDeviceCb activeSpeakerParticipantDeviceCb;
};
LINPHONE_END_NAMESPACE
#endif // _CONFERENCE_CBS_H_