2 * Copyright (C) 2013,2014 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/>.
18 import Ubuntu.Components 0.1
19 import "../Components"
25 property int delayMinutes
26 property bool alphaNumeric
28 function clear(playAnimation) {}
31 anchors.left: parent.left
32 anchors.right: parent.right
33 anchors.leftMargin: units.gu(4)
34 anchors.rightMargin: units.gu(4)
35 anchors.verticalCenter: parent.verticalCenter
40 objectName: "deviceLockedLabel"
41 anchors.left: parent.left
42 anchors.right: parent.right
43 horizontalAlignment: Text.AlignHCenter
47 text: i18n.tr("Device Locked")
56 anchors.left: parent.left
57 anchors.right: parent.right
58 horizontalAlignment: Text.AlignHCenter
62 i18n.tr("You have been locked out due to too many failed passphrase attempts.") :
63 i18n.tr("You have been locked out due to too many failed passcode attempts.")
67 anchors.left: parent.left
68 anchors.right: parent.right
69 horizontalAlignment: Text.AlignHCenter
72 text: i18n.tr("Please wait %1 minute and then try again…",
73 "Please wait %1 minutes and then try again…",
74 root.delayMinutes).arg(root.delayMinutes)
83 // It would be nice to use a less network-specific name,
84 // but this is the only lock icon we have.
85 name: "network-secure"
89 anchors.horizontalCenter: parent.horizontalCenter