conference-p.h 2.47 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
/*
 * conference-p.h
 * Copyright (C) 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 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 General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */

#ifndef _CONFERENCE_P_H_
#define _CONFERENCE_P_H_

22 23
#include <memory>

24 25
#include "object/object-p.h"

26 27 28
#include "conference/conference.h"
#include "conference/participant.h"
#include "conference/session/call-session-listener.h"
29 30 31 32 33 34 35

#include <string>

// =============================================================================

LINPHONE_BEGIN_NAMESPACE

36
class ConferencePrivate : public ObjectPrivate, CallSessionListener {
37 38 39
public:
	virtual ~ConferencePrivate () = default;

40 41 42 43 44 45 46 47 48 49 50 51 52 53
	LinphoneCore * getCore () const { return core; }

	virtual void ackBeingSent (const CallSession &session, LinphoneHeaders *headers);
	virtual void ackReceived (const CallSession &session, LinphoneHeaders *headers);
	virtual void callSessionAccepted (const CallSession &session);
	virtual void callSessionSetReleased (const CallSession &session);
	virtual void callSessionSetTerminated (const CallSession &session);
	virtual void callSessionStateChanged (const CallSession &session, LinphoneCallState state, const std::string &message);
	virtual void incomingCallSessionStarted (const CallSession &session);

	virtual void encryptionChanged (const CallSession &session, bool activated, const std::string &authToken);

	virtual void statsUpdated (const LinphoneCallStats *stats);

54
	virtual void resetCurrentSession (const CallSession &session);
55 56 57 58 59 60 61 62 63 64 65
	virtual void setCurrentSession (const CallSession &session);

	virtual void firstVideoFrameDecoded (const CallSession &session);
	virtual void resetFirstVideoFrameDecoded (const CallSession &session);

private:
	LinphoneCore *core = nullptr;
	CallListener *callListener = nullptr;

	std::shared_ptr<Participant> me = nullptr;
	std::shared_ptr<Participant> activeParticipant = nullptr;
66 67 68 69 70 71 72

	L_DECLARE_PUBLIC(Conference);
};

LINPHONE_END_NAMESPACE

#endif // ifndef _CONFERENCE_P_H_