Skip to content
Snippets Groups Projects
Commit f070cca3 authored by Pierre Lespagnol's avatar Pierre Lespagnol
Browse files

conference: add mute participant for moderator

Change-Id: Ia15bb8dbf9937bc6895a7fcb50367c7c11eebda9
parent 0710808b
Branches
No related tags found
No related merge requests found
......@@ -255,6 +255,14 @@ public:
*/
void setModerator(const QString& confId, const QString& peerId, const bool& state);
/**
* Mute/unmute participant
* @param confId The conference to change
* @param peerId Uri of the participant to mute
* @param state State of the change (true mute participant / false unmute participant)
*/
void muteParticipant(const QString& confId, const QString& peerId, const bool& state);
Q_SIGNALS:
/**
* Emitted when a call state changes
......
......@@ -774,6 +774,12 @@ NewCallModel::setModerator(const QString& confId, const QString& peerId, const b
CallManager::instance().setModerator(confId, peerId, state);
}
void
NewCallModel::muteParticipant(const QString& confId, const QString& peerId, const bool& state)
{
CallManager::instance().muteParticipant(confId, peerId, state);
}
void
NewCallModel::sendSipMessage(const QString& callId, const QString& body) const
{
......
......@@ -391,6 +391,11 @@ public Q_SLOTS: // METHODS
DRing::setModerator(confId.toStdString(), peerId.toStdString(), state);
}
void muteParticipant(const QString& confId, const QString& peerId, const bool& state)
{
DRing::muteParticipant(confId.toStdString(), peerId.toStdString(), state);
}
Q_SIGNALS: // SIGNALS
void callStateChanged(const QString& callID, const QString& state, int code);
void transferFailed();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment