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) {}
31 function showText(text) {}
34 anchors.left: parent.left
35 anchors.right: parent.right
36 anchors.leftMargin: units.gu(4)
37 anchors.rightMargin: units.gu(4)
38 anchors.verticalCenter: parent.verticalCenter
43 objectName: "deviceLockedLabel"
44 anchors.left: parent.left
45 anchors.right: parent.right
46 horizontalAlignment: Text.AlignHCenter
50 text: i18n.tr("Device Locked")
59 anchors.left: parent.left
60 anchors.right: parent.right
61 horizontalAlignment: Text.AlignHCenter
65 i18n.tr("You have been locked out due to too many failed passphrase attempts.") :
66 i18n.tr("You have been locked out due to too many failed passcode attempts.")
70 anchors.left: parent.left
71 anchors.right: parent.right
72 horizontalAlignment: Text.AlignHCenter
75 text: i18n.tr("Please wait %1 minute and then try again…",
76 "Please wait %1 minutes and then try again…",
77 root.delayMinutes).arg(root.delayMinutes)
86 // It would be nice to use a less network-specific name,
87 // but this is the only lock icon we have.
88 name: "network-secure"
92 anchors.horizontalCenter: parent.horizontalCenter