linphone-iphone/src/conference/participant.h
2018-01-15 09:17:54 +01:00

74 lines
2.2 KiB
C++

/*
* participant.h
* Copyright (C) 2010-2018 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 _L_PARTICIPANT_H_
#define _L_PARTICIPANT_H_
#include <list>
#include "address/identity-address.h"
#include "object/object.h"
#include "conference/params/call-session-params.h"
#include "conference/participant-device.h"
// =============================================================================
LINPHONE_BEGIN_NAMESPACE
class ClientGroupChatRoom;
class ParticipantPrivate;
class Participant : public Object {
friend class Call;
friend class CallPrivate;
friend class ClientGroupChatRoom;
friend class ClientGroupChatRoomPrivate;
friend class Conference;
friend class LocalConference;
friend class LocalConferenceCall;
friend class LocalConferenceCallPrivate;
friend class LocalConferenceEventHandler;
friend class LocalConferenceEventHandlerPrivate;
friend class MainDb;
friend class MainDbPrivate;
friend class MediaSessionPrivate;
friend class RemoteConference;
friend class RemoteConferenceCall;
friend class RemoteConferenceCallPrivate;
friend class ServerGroupChatRoom;
friend class ServerGroupChatRoomPrivate;
public:
L_OVERRIDE_SHARED_FROM_THIS(Participant);
explicit Participant (const IdentityAddress &address);
const IdentityAddress &getAddress () const;
bool isAdmin () const;
private:
L_DECLARE_PRIVATE(Participant);
L_DISABLE_COPY(Participant);
};
std::ostream & operator<< (std::ostream &strm, const std::shared_ptr<Participant> &participant);
LINPHONE_END_NAMESPACE
#endif // ifndef _L_PARTICIPANT_H_