linphone-desktop/Linphone/view/Item/Notification/NotificationReceivedCall.qml
Julien Wadel 577aee8c98 Feature : Call list.
- Add CallProxy for GUI to manage call list;
- Add a function on Core to retrieve remote address (TODO: change the name)
- Connect first/last call events.
- Fix wrong parameter in call notification.
2023-12-07 16:39:37 +01:00

55 lines
1.3 KiB
QML

import QtQuick 2.7
import QtQuick.Layouts 1.3
import Linphone
import UtilsCpp
// =============================================================================
Notification {
id: notification
// ---------------------------------------------------------------------------
readonly property var call: notificationData && notificationData.call
property var state: call.core.state
onStateChanged:{
if(state != LinphoneEnums.CallState.IncomingReceived){
close()
}
}
// ---------------------------------------------------------------------------
ColumnLayout {
anchors.fill: parent
anchors.leftMargin: 15
anchors.rightMargin: 15
anchors.bottomMargin:15
spacing: 0
// ---------------------------------------------------------------------
// Action buttons.
// ---------------------------------------------------------------------
RowLayout {
Layout.fillHeight: true
Layout.fillWidth: true
Button {
text: 'Accept'
Layout.rightMargin: 20
onClicked: {
notification.call.core.lAccept(true)
UtilsCpp.openCallsWindow(notification.call)
}
}
Item{
Layout.fillWidth: true
Layout.fillHeight: true
}
Button {
text: 'Reject'
Layout.rightMargin: 20
onClicked: {
notification.call.core.lDecline()
}
}
}
}
}