2 * Copyright (C) 2013-2016 Canonical Ltd.
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; version 3.
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
13 * You should have received a copy of the GNU General Public License
14 * along with this program. If not, see <http://www.gnu.org/licenses/>.
18import Lomiri.Components 1.3
23 property int delayMinutes
24 property bool alphaNumeric
27 anchors.left: parent.left
28 anchors.right: parent.right
29 anchors.leftMargin: units.gu(4)
30 anchors.rightMargin: units.gu(4)
31 anchors.verticalCenter: parent.verticalCenter
36 objectName: "deviceLockedLabel"
37 anchors.left: parent.left
38 anchors.right: parent.right
39 horizontalAlignment: Text.AlignHCenter
43 text: i18n.tr("Device Locked")
52 anchors.left: parent.left
53 anchors.right: parent.right
54 horizontalAlignment: Text.AlignHCenter
58 i18n.tr("You have been locked out due to too many failed passphrase attempts.") :
59 i18n.tr("You have been locked out due to too many failed passcode attempts.")
63 anchors.left: parent.left
64 anchors.right: parent.right
65 horizontalAlignment: Text.AlignHCenter
68 text: i18n.tr("Please wait %1 minute and then try again…",
69 "Please wait %1 minutes and then try again…",
70 root.delayMinutes).arg(root.delayMinutes)
83 anchors.horizontalCenter: parent.horizontalCenter