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 1.3
19 import "../Components"
24 property int delayMinutes
25 property bool alphaNumeric
27 signal entered(string passphrase) // unused
28 signal cancel() // unused
30 function clear(playAnimation) {}
33 anchors.left: parent.left
34 anchors.right: parent.right
35 anchors.leftMargin: units.gu(4)
36 anchors.rightMargin: units.gu(4)
37 anchors.verticalCenter: parent.verticalCenter
42 objectName: "deviceLockedLabel"
43 anchors.left: parent.left
44 anchors.right: parent.right
45 horizontalAlignment: Text.AlignHCenter
49 text: i18n.tr("Device Locked")
58 anchors.left: parent.left
59 anchors.right: parent.right
60 horizontalAlignment: Text.AlignHCenter
64 i18n.tr("You have been locked out due to too many failed passphrase attempts.") :
65 i18n.tr("You have been locked out due to too many failed passcode attempts.")
69 anchors.left: parent.left
70 anchors.right: parent.right
71 horizontalAlignment: Text.AlignHCenter
74 text: i18n.tr("Please wait %1 minute and then try again…",
75 "Please wait %1 minutes and then try again…",
76 root.delayMinutes).arg(root.delayMinutes)
85 // It would be nice to use a less network-specific name,
86 // but this is the only lock icon we have.
87 name: "network-secure"
91 anchors.horizontalCenter: parent.horizontalCenter