Commit d5ccf5b7 authored by Ronan Abhamon's avatar Ronan Abhamon

feat(ui/views/App/Calls/ConferenceManager): in progress

parent 13e4822e
...@@ -363,10 +363,6 @@ Server url not configured.</translation> ...@@ -363,10 +363,6 @@ Server url not configured.</translation>
<source>conferenceTitle</source> <source>conferenceTitle</source>
<translation>CONFERENCE</translation> <translation>CONFERENCE</translation>
</message> </message>
<message>
<source>pendingRequestLabel</source>
<translation>Please to wait, a request is pending.</translation>
</message>
</context> </context>
<context> <context>
<name>ConferenceManager</name> <name>ConferenceManager</name>
......
...@@ -363,10 +363,6 @@ Url du serveur non configurée.</translation> ...@@ -363,10 +363,6 @@ Url du serveur non configurée.</translation>
<source>conferenceTitle</source> <source>conferenceTitle</source>
<translation>CONFÉRENCE</translation> <translation>CONFÉRENCE</translation>
</message> </message>
<message>
<source>pendingRequestLabel</source>
<translation>Merci de patienter, une requête est en attente.</translation>
</message>
</context> </context>
<context> <context>
<name>ConferenceManager</name> <name>ConferenceManager</name>
......
...@@ -24,6 +24,7 @@ ...@@ -24,6 +24,7 @@
#include "../../Utils.hpp" #include "../../Utils.hpp"
#include "../core/CoreManager.hpp" #include "../core/CoreManager.hpp"
#include "ConferenceHelperModel.hpp"
#include "ConferenceModel.hpp" #include "ConferenceModel.hpp"
...@@ -57,6 +58,18 @@ QVariant ConferenceModel::data (const QModelIndex &index, int role) const { ...@@ -57,6 +58,18 @@ QVariant ConferenceModel::data (const QModelIndex &index, int role) const {
// ----------------------------------------------------------------------------- // -----------------------------------------------------------------------------
void ConferenceModel::terminate () {
shared_ptr<linphone::Core> core = CoreManager::getInstance()->getCore();
core->terminateConference();
for (const auto &call : core->getCalls()) {
if (call->getParams()->getLocalConferenceMode())
call->terminate();
}
}
// -----------------------------------------------------------------------------
void ConferenceModel::startRecording () { void ConferenceModel::startRecording () {
if (mRecording) if (mRecording)
return; return;
......
...@@ -43,6 +43,8 @@ public: ...@@ -43,6 +43,8 @@ public:
QHash<int, QByteArray> roleNames () const override; QHash<int, QByteArray> roleNames () const override;
QVariant data (const QModelIndex &index, int role = Qt::DisplayRole) const override; QVariant data (const QModelIndex &index, int role = Qt::DisplayRole) const override;
Q_INVOKABLE void terminate ();
Q_INVOKABLE void startRecording (); Q_INVOKABLE void startRecording ();
Q_INVOKABLE void stopRecording (); Q_INVOKABLE void stopRecording ();
......
...@@ -12,12 +12,15 @@ var forceClose = false ...@@ -12,12 +12,15 @@ var forceClose = false
function handleClosing (close) { function handleClosing (close) {
var callsList = Linphone.CallsListModel var callsList = Linphone.CallsListModel
window.detachVirtualWindow()
if (forceClose || callsList.getRunningCallsNumber() === 0) { if (forceClose || callsList.getRunningCallsNumber() === 0) {
forceClose = false
callsList.terminateAllCalls() callsList.terminateAllCalls()
return return
} }
window.detachVirtualWindow()
window.attachVirtualWindow(Utils.buildDialogUri('ConfirmDialog'), { window.attachVirtualWindow(Utils.buildDialogUri('ConfirmDialog'), {
descriptionText: qsTr('acceptClosingDescription'), descriptionText: qsTr('acceptClosingDescription'),
}, function (status) { }, function (status) {
......
import QtQuick 2.7 import QtQuick 2.7
import QtQuick.Controls 2.1
import QtQuick.Layouts 1.3 import QtQuick.Layouts 1.3
import Common 1.0 import Common 1.0
...@@ -9,8 +8,6 @@ import Utils 1.0 ...@@ -9,8 +8,6 @@ import Utils 1.0
import App.Styles 1.0 import App.Styles 1.0
//import 'Conference.js' as Logic
// ============================================================================= // =============================================================================
Rectangle { Rectangle {
...@@ -192,19 +189,6 @@ Rectangle { ...@@ -192,19 +189,6 @@ Rectangle {
} }
iconSize: CallStyle.actionArea.iconSize iconSize: CallStyle.actionArea.iconSize
ActionSwitch {
enabled: !conference.pausedByUser
icon: 'pause'
updating: conference.updating
onClicked: conference.pausedByUser = enabled
TooltipArea {
text: qsTr('pendingRequestLabel')
visible: parent.updating
}
}
ActionButton { ActionButton {
icon: 'hangup' icon: 'hangup'
......
linphone @ 87ca1adf
Subproject commit ef9a19def1bb0ac28af4f1963a248959e46dee97 Subproject commit 87ca1adf5ef967bb3876ea0c060cb9135f36718d
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment