Skip to content
Snippets Groups Projects
Commit 07df9834 authored by Pierre Lespagnol's avatar Pierre Lespagnol Committed by Sébastien Blin
Browse files

conference: host can add or remove moderator for a conference or rendez-vous

Change-Id: If816294eb5879a60293155c79738c2729148d909
parent 5d205e49
No related branches found
No related tags found
No related merge requests found
......@@ -247,6 +247,14 @@ public:
*/
bool isModerator(const QString& confId, const QString& uri = "");
/**
* Set/unset a moderator
* @param confId The conference to change
* @param peerId Uri of the participant to change
* @param state State of the change (true set moderator / false unset moderator)
*/
void setModerator(const QString& confId, const QString& peerId, const bool& state);
Q_SIGNALS:
/**
* Emitted when a call state changes
......
......@@ -768,6 +768,12 @@ NewCallModel::isModerator(const QString& confId, const QString& uri)
return isModerator;
}
void
NewCallModel::setModerator(const QString& confId, const QString& peerId, const bool& state)
{
CallManager::instance().setModerator(confId, peerId, state);
}
void
NewCallModel::sendSipMessage(const QString& callId, const QString& body) const
{
......
......@@ -386,6 +386,11 @@ public Q_SLOTS: // METHODS
#endif
}
void setModerator(const QString& confId, const QString& peerId, const bool& state)
{
DRing::setModerator(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