mirror of
https://gitlab.linphone.org/BC/public/linphone-desktop.git
synced 2026-01-21 21:58:06 +00:00
- set defaults for LDAP - add unsaving a server - adapt design for LDAP (placement, debug and verifications options) - Add hidden options in linphonerc to hide local sip account, start video call button and start chat button
86 lines
2.5 KiB
QML
86 lines
2.5 KiB
QML
import QtQuick 2.7
|
|
import QtQuick.Layouts 1.3
|
|
|
|
import Common 1.0
|
|
import Linphone 1.0
|
|
import Linphone.Styles 1.0
|
|
|
|
// =============================================================================
|
|
|
|
Notification {
|
|
id: notification
|
|
|
|
icon: 'call_sign_incoming'
|
|
|
|
// ---------------------------------------------------------------------------
|
|
|
|
readonly property var call: notificationData && notificationData.call
|
|
|
|
// ---------------------------------------------------------------------------
|
|
|
|
Loader {
|
|
active: Boolean(notification.call)
|
|
anchors {
|
|
fill: parent
|
|
|
|
leftMargin: NotificationReceivedCallStyle.leftMargin
|
|
rightMargin: NotificationReceivedCallStyle.rightMargin
|
|
bottomMargin: NotificationReceivedCallStyle.bottomMargin
|
|
}
|
|
|
|
sourceComponent: ColumnLayout {
|
|
spacing: NotificationReceivedCallStyle.spacing
|
|
|
|
Contact {
|
|
Layout.fillWidth: true
|
|
property var peerAddress: notification.call ? notification.call.fullPeerAddress : ''
|
|
onPeerAddressChanged: {
|
|
entry=SipAddressesModel.getSipAddressObserver(peerAddress, notification.call ? notification.call.fullLocalAddress : '')
|
|
}
|
|
entry: SipAddressesModel.getSipAddressObserver(peerAddress, notification.call ? notification.call.fullLocalAddress : '')
|
|
}
|
|
|
|
// ---------------------------------------------------------------------
|
|
// Action buttons.
|
|
// ---------------------------------------------------------------------
|
|
|
|
Item {
|
|
Layout.fillHeight: true
|
|
Layout.fillWidth: true
|
|
|
|
ActionBar {
|
|
id: acceptActionBar
|
|
|
|
anchors.centerIn: parent
|
|
iconSize: NotificationReceivedCallStyle.actionArea.iconSize
|
|
|
|
ActionButton {
|
|
icon: 'video_call_accept'
|
|
visible: SettingsModel.videoSupported
|
|
|
|
onClicked: notification._close(notification.call.acceptWithVideo)
|
|
}
|
|
|
|
ActionButton {
|
|
icon: 'call_accept'
|
|
onClicked: notification._close(notification.call.accept)
|
|
}
|
|
}
|
|
|
|
ActionBar {
|
|
anchors {
|
|
right: parent.right
|
|
rightMargin: NotificationReceivedCallStyle.actionArea.rightButtonsGroupMargin
|
|
verticalCenter: parent.verticalCenter
|
|
}
|
|
iconSize: NotificationReceivedCallStyle.actionArea.iconSize
|
|
|
|
ActionButton {
|
|
icon: 'hangup'
|
|
onClicked: notification._close(notification.call.terminate)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|