Commit b7b6691c authored by Martin Klapetek's avatar Martin Klapetek

[dialer] Add basic call failures handler

parent e528b417
......@@ -35,6 +35,24 @@ Item {
status.text = status.text + number
}
Rectangle {
width: parent.width / 2
x: parent.width / 4
y: parent.height - callStatusNotification.paintedHeight
color: PlasmaCore.ColorScope.backgroundColor
opacity: 0.6
visible: dialerUtils.callState == "failing"
PlasmaComponents.Label {
id: callStatusNotification
anchors.fill: parent
text: "Unable to make a call at this moment"
horizontalAlignment: Text.AlignHCenter
wrapMode: Text.WordWrap
color: PlasmaCore.ColorScope.textColor
}
}
ColumnLayout {
id: dialPadArea
......
......@@ -66,6 +66,7 @@ void DialerUtils::dial(const QString &number)
connect(pendingChannel, &Tp::PendingChannelRequest::finished, [=](){
if (pendingChannel->isError()) {
qWarning() << "Error when requesting channel" << pendingChannel->errorMessage();
setCallState("failed");
}
});
});
......
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