linphone-iphone/src/conference/participant.cpp
2017-09-07 13:56:43 +02:00

65 lines
1.7 KiB
C++

/*
* participant.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 <http://www.gnu.org/licenses/>.
*/
#include "object/object-p.h"
#include "participant.h"
using namespace std;
LINPHONE_BEGIN_NAMESPACE
// =============================================================================
class ParticipantPrivate : public ObjectPrivate {
public:
~ParticipantPrivate ();
Address addr;
bool isAdmin = false;
};
ParticipantPrivate::~ParticipantPrivate() {}
// =============================================================================
Participant::Participant (const Address &addr) : Object(*new ParticipantPrivate) {
L_D(Participant);
d->addr = addr;
}
// -----------------------------------------------------------------------------
const Address& Participant::getAddress () const {
L_D(const Participant);
return d->addr;
}
// -----------------------------------------------------------------------------
bool Participant::isAdmin () const {
L_D(const Participant);
return d->isAdmin;
}
void Participant::setAdmin (bool isAdmin) {
L_D(Participant);
d->isAdmin = isAdmin;
}
LINPHONE_END_NAMESPACE