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

This commit is contained in:
Ronan Abhamon 2017-05-23 12:07:57 +02:00
parent 06ff2410d7
commit 13000110ca
3 changed files with 10 additions and 10 deletions

View file

@ -25,7 +25,7 @@
#include <linphone++/linphone.hh>
#include <QObject>
#include <QDebug>
// =============================================================================
class CallModel : public QObject {
@ -76,6 +76,10 @@ public:
QString getSipAddress () const;
bool isInConference () const {
return mIsInConference;
}
static void setRecordFile (std::shared_ptr<linphone::CallParams> &callParams);
void updateStats (const std::shared_ptr<const linphone::CallStats> &callStats);
@ -114,11 +118,6 @@ private:
return mCall->getDir() == linphone::CallDirOutgoing;
}
bool isInConference () const {
qDebug() << "toto" << mIsInConference;
return mIsInConference;
}
void updateIsInConference ();
void acceptWithAutoAnswerDelay ();

View file

@ -43,7 +43,5 @@ CallsListProxyModel::CallsListProxyModel (QObject *parent) : QSortFilterProxyMod
bool CallsListProxyModel::filterAcceptsRow (int sourceRow, const QModelIndex &sourceParent) const {
const QModelIndex &index = sourceModel()->index(sourceRow, 0, sourceParent);
shared_ptr<linphone::Call> call = index.data().value<CallModel *>()->getCall();
return call->getConference() == nullptr;
return !index.data().value<CallModel *>()->isInConference();
}

View file

@ -24,7 +24,10 @@ function attachVirtualWindow (component, properties, exitStatusHandler) {
object.exitStatus.connect(exitStatusHandler)
}
object.exitStatus.connect(function () {
virtualWindow.unsetContent().destroy()
var content = virtualWindow.unsetContent()
if (content) {
content.destroy()
}
})
virtualWindow.setContent(object)