server-group-chat-room-stub.cpp 4.48 KB
Newer Older
1
/*
2
 * server-group-chat-room-stub.cpp
3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
 * 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.
 */

20 21
#include "core/core.h"

22 23 24 25 26 27 28 29 30 31
#include "server-group-chat-room-p.h"

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

using namespace std;

LINPHONE_BEGIN_NAMESPACE

// -----------------------------------------------------------------------------

32
shared_ptr<Participant> ServerGroupChatRoomPrivate::addParticipant (const IdentityAddress &) {
33 34 35
	return nullptr;
}

36
void ServerGroupChatRoomPrivate::confirmCreation () {}
37

38
void ServerGroupChatRoomPrivate::confirmJoining (SalCallOp *) {}
39

40 41 42
shared_ptr<Participant> ServerGroupChatRoomPrivate::findRemovedParticipant (
	const shared_ptr<const CallSession> &
) const {
43 44 45 46 47 48 49
	return nullptr;
}

string ServerGroupChatRoomPrivate::generateConferenceId () const {
	return "";
}

50
void ServerGroupChatRoomPrivate::removeParticipant (const shared_ptr<const Participant> &) {}
51

52
void ServerGroupChatRoomPrivate::subscribeReceived (LinphoneEvent *) {}
53

54
void ServerGroupChatRoomPrivate::update (SalCallOp *) {}
55 56 57

// -----------------------------------------------------------------------------

58
void ServerGroupChatRoomPrivate::dispatchMessage (const IdentityAddress &, const Content &) {}
59

60
LinphoneReason ServerGroupChatRoomPrivate::messageReceived (SalOp *, const SalMessage *) {
61 62 63
	return LinphoneReasonNone;
}

64 65
void ServerGroupChatRoomPrivate::setConferenceAddress (const IdentityAddress &confAddr) {}

66 67
// -----------------------------------------------------------------------------

68
void ServerGroupChatRoomPrivate::designateAdmin () {}
69

70 71
void ServerGroupChatRoomPrivate::finalizeCreation () {}

72 73 74 75
bool ServerGroupChatRoomPrivate::isAdminLeft () const {
	return false;
}

76 77
void ServerGroupChatRoomPrivate::onChatMessageReceived(const shared_ptr<ChatMessage> &) {}

78 79
// =============================================================================

80
ServerGroupChatRoom::ServerGroupChatRoom (const shared_ptr<Core> &core, SalCallOp *op) :
81
ChatRoom(*new ServerGroupChatRoomPrivate, core, ChatRoomId(IdentityAddress(op->get_to()), IdentityAddress(op->get_to()))),
82
LocalConference(core, IdentityAddress(op->get_to()), nullptr) {}
83 84 85 86 87

int ServerGroupChatRoom::getCapabilities () const {
	return 0;
}

88
bool ServerGroupChatRoom::hasBeenLeft () const {
89 90 91
	return true;
}

92 93 94
bool ServerGroupChatRoom::canHandleParticipants () const {
	return false;
}
95

96
void ServerGroupChatRoom::addParticipant (const IdentityAddress &, const CallSessionParams *, bool) {}
97

98
void ServerGroupChatRoom::addParticipants (const list<IdentityAddress> &, const CallSessionParams *, bool) {}
99

100
const IdentityAddress &ServerGroupChatRoom::getConferenceAddress () const {
101
	return LocalConference::getConferenceAddress();
102 103
}

104 105 106 107
void ServerGroupChatRoom::removeParticipant (const shared_ptr<const Participant> &) {}

void ServerGroupChatRoom::removeParticipants (const list<shared_ptr<Participant>> &) {}

108
shared_ptr<Participant> ServerGroupChatRoom::findParticipant (const IdentityAddress &) const {
109 110 111
	return nullptr;
}

Ghislain MARY's avatar
Ghislain MARY committed
112 113 114 115
shared_ptr<Participant> ServerGroupChatRoom::getMe () const {
	return nullptr;
}

116 117 118 119
int ServerGroupChatRoom::getNbParticipants () const {
	return 0;
}

Ghislain MARY's avatar
Ghislain MARY committed
120
const list<shared_ptr<Participant>> &ServerGroupChatRoom::getParticipants () const {
121 122 123
	return LocalConference::getParticipants();
}

124 125
void ServerGroupChatRoom::setParticipantAdminStatus (shared_ptr<Participant> &, bool) {}

126 127 128 129
const string &ServerGroupChatRoom::getSubject () const {
	return LocalConference::getSubject();
}

130 131
void ServerGroupChatRoom::setSubject (const string &) {}

132 133 134 135 136 137
void ServerGroupChatRoom::join () {}

void ServerGroupChatRoom::leave () {}

// -----------------------------------------------------------------------------

138 139 140 141 142
void ServerGroupChatRoom::onCallSessionStateChanged (
	const shared_ptr<const CallSession> &,
	LinphoneCallState,
	const string &
) {}
143 144

LINPHONE_END_NAMESPACE