mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-04-26 14:23:09 +00:00
[dialer] Emit the TpCaller::callInProgressChanged on any important Tp::Channel signals
This commit is contained in:
parent
fe7b3f36b0
commit
9795b7a9cb
1 changed files with 3 additions and 0 deletions
|
|
@ -57,6 +57,7 @@ TpCaller::TpCaller(QObject *parent)
|
|||
|
||||
void TpCaller::dial(const QString &number)
|
||||
{
|
||||
// FIXME: this should be replaced by kpeople thing
|
||||
auto pendingContact = m_simAccount->connection()->contactManager()->contactsForIdentifiers(QStringList() << number);
|
||||
|
||||
connect(pendingContact, &Tp::PendingOperation::finished, [=](){
|
||||
|
|
@ -73,6 +74,8 @@ void TpCaller::dial(const QString &number)
|
|||
}
|
||||
|
||||
m_callChannel = Tp::CallChannelPtr(qobject_cast<Tp::CallChannel*>(pendingChannel->channel().data()));
|
||||
connect(m_callChannel.data(), &Tp::Channel::invalidated, this, &TpCaller::callInProgressChanged);
|
||||
connect(m_callChannel.data(), &Tp::CallChannel::callStateChanged, this, &TpCaller::callInProgressChanged);
|
||||
Q_EMIT callInProgressChanged();
|
||||
});
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in a new issue