mirror of
https://gitlab.linphone.org/BC/public/linphone-desktop.git
synced 2026-04-19 16:38:28 +00:00
Fix chat received time. Fix account creation layouts (Busy indicator, dynamic sizes, text errors) Update SDK to 5.2.66
68 lines
1.7 KiB
QML
68 lines
1.7 KiB
QML
import QtQuick 2.7
|
|
|
|
import Common 1.0
|
|
import Linphone 1.0
|
|
import Utils 1.0
|
|
|
|
import App.Styles 1.0
|
|
|
|
// =============================================================================
|
|
|
|
AssistantAbstractView {
|
|
property var assistantModel
|
|
|
|
backEnabled: false
|
|
|
|
title: qsTr('activateAppSipAccount').replace('%1', Qt.application.name.toUpperCase())
|
|
|
|
mainAction: requestBlock.execute
|
|
mainActionEnabled: !requestBlock.loading
|
|
mainActionLabel: qsTr('confirmAction')
|
|
|
|
Column {
|
|
anchors.centerIn: parent
|
|
spacing: ActivateAppSipAccountWithEmailStyle.spacing
|
|
width: parent.width
|
|
|
|
Text {
|
|
color: ActivateAppSipAccountWithEmailStyle.activationSteps.colorModel.color
|
|
font.pointSize: ActivateAppSipAccountWithEmailStyle.activationSteps.pointSize
|
|
horizontalAlignment: Text.AlignHCenter
|
|
text: qsTr('activationSteps').replace('%1', assistantModel.email)
|
|
width: parent.width
|
|
wrapMode: Text.WordWrap
|
|
}
|
|
|
|
RequestBlock {
|
|
id: requestBlock
|
|
|
|
action: assistantModel.activate
|
|
width: parent.width
|
|
loading: assistantModel.isProcessing
|
|
}
|
|
}
|
|
|
|
// ---------------------------------------------------------------------------
|
|
// Assistant.
|
|
// ---------------------------------------------------------------------------
|
|
|
|
Connections {
|
|
target: assistantModel
|
|
|
|
onActivateStatusChanged: {
|
|
requestBlock.setText(error)
|
|
if (!error.length) {
|
|
function quitToHome (window) {
|
|
window.unlockView()
|
|
window.setView('Home')
|
|
}
|
|
var codecInfo = VideoCodecsModel.getCodecInfo('H264')
|
|
if (codecInfo.downloadUrl) {
|
|
Utils.openCodecOnlineInstallerDialog(window, codecInfo, quitToHome)
|
|
} else {
|
|
quitToHome(window)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|