/* * client-group-chat-room.cpp * 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 . */ #include "client-group-chat-room-p.h" #include "conference/participant-p.h" #include "logger/logger.h" using namespace std; LINPHONE_BEGIN_NAMESPACE // ============================================================================= ClientGroupChatRoomPrivate::ClientGroupChatRoomPrivate (LinphoneCore *core) : ChatRoomPrivate(core) {} // ============================================================================= ClientGroupChatRoom::ClientGroupChatRoom (LinphoneCore *core, const Address &me, std::list
&addresses) : ChatRoom(*new ChatRoomPrivate(core)), RemoteConference(core, me, nullptr) { string factoryUri = linphone_core_get_chat_conference_factory_uri(core); focus = make_shared(factoryUri); CallSessionParams csp; shared_ptr session = focus->getPrivate()->createSession(*this, &csp, false, this); session->configure(LinphoneCallOutgoing, nullptr, nullptr, me, focus->getAddress()); session->initiateOutgoing(); session->startInvite(nullptr); // TODO } // ----------------------------------------------------------------------------- shared_ptr ClientGroupChatRoom::addParticipant (const Address &addr, const CallSessionParams *params, bool hasMedia) { activeParticipant = make_shared(addr); activeParticipant->getPrivate()->createSession(*this, params, hasMedia, this); return activeParticipant; } void ClientGroupChatRoom::addParticipants (const list
&addresses, const CallSessionParams *params, bool hasMedia) { // TODO } const string& ClientGroupChatRoom::getId () const { return id; } int ClientGroupChatRoom::getNbParticipants () const { // TODO return 1; } list> ClientGroupChatRoom::getParticipants () const { return participants; } void ClientGroupChatRoom::removeParticipant (const shared_ptr participant) { // TODO } void ClientGroupChatRoom::removeParticipants (const list> participants) { // TODO } LINPHONE_END_NAMESPACE