mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-04-28 05:46:22 +00:00
56 lines
2.3 KiB
C++
56 lines
2.3 KiB
C++
/*
|
|
* conference-interface.h
|
|
* Copyright (C) 2010-2017 Belledonne Communications SARL
|
|
*
|
|
* This program is free software; you can redistribute it and/or
|
|
* modify it under the terms of the GNU General Public License
|
|
* as published by the Free Software Foundation; either version 2
|
|
* 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 General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU General Public License
|
|
* along with this program; if not, write to the Free Software
|
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
|
*/
|
|
|
|
#ifndef _CONFERENCE_INTERFACE_H_
|
|
#define _CONFERENCE_INTERFACE_H_
|
|
|
|
#include <list>
|
|
#include <memory>
|
|
|
|
#include "address/address.h"
|
|
#include "conference/participant.h"
|
|
#include "conference/params/call-session-params.h"
|
|
|
|
// =============================================================================
|
|
|
|
LINPHONE_BEGIN_NAMESPACE
|
|
|
|
class LINPHONE_PUBLIC ConferenceInterface {
|
|
public:
|
|
virtual ~ConferenceInterface() = default;
|
|
|
|
virtual void addParticipant (const Address &addr, const CallSessionParams *params, bool hasMedia) = 0;
|
|
virtual void addParticipants (const std::list<Address> &addresses, const CallSessionParams *params, bool hasMedia) = 0;
|
|
virtual bool canHandleParticipants () const = 0;
|
|
virtual std::shared_ptr<Participant> findParticipant (const Address &addr) const = 0;
|
|
virtual const Address *getConferenceAddress () const = 0;
|
|
virtual int getNbParticipants () const = 0;
|
|
virtual std::list<std::shared_ptr<Participant>> getParticipants () const = 0;
|
|
virtual const std::string &getSubject () const = 0;
|
|
virtual void join () = 0;
|
|
virtual void leave () = 0;
|
|
virtual void removeParticipant (const std::shared_ptr<const Participant> &participant) = 0;
|
|
virtual void removeParticipants (const std::list<std::shared_ptr<Participant>> &participants) = 0;
|
|
virtual void setParticipantAdminStatus (std::shared_ptr<Participant> &participant, bool isAdmin) = 0;
|
|
virtual void setSubject (const std::string &subject) = 0;
|
|
};
|
|
|
|
LINPHONE_END_NAMESPACE
|
|
|
|
#endif // ifndef _CONFERENCE_INTERFACE_H_
|