mirror of
https://gitlab.linphone.org/BC/public/linphone-desktop.git
synced 2026-01-21 21:58:06 +00:00
feat(ui/views/App/Calls/ConferenceManager): in progress
This commit is contained in:
parent
06ff2410d7
commit
13000110ca
3 changed files with 10 additions and 10 deletions
|
|
@ -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 ();
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue