on bbbdccd help sign in
99 lines 2.6 kB history raw
1/*
2 * Copyright (C) 2015 Canonical, Ltd.
3 *
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.
7 *
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.
12 *
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/>.
15 */
17import QtQuick 2.4
18import Ubuntu.Components 1.3
19import "../Components"
21Item {
22 objectName: "testView"
24 property real dragHandleLeftMargin
25 property real launcherOffset
26 property int currentIndex
27 property int delayMinutes
28 property real backgroundTopMargin
29 property url background
30 property bool locked
31 property bool alphanumeric
32 property var userModel
33 property var infographicModel
34 readonly property bool fullyShown: _fullyShown
35 readonly property bool required: _required
37 property bool _fullyShown: true
38 property bool _required: true
40 signal selected(int index)
41 signal responded(string response)
42 signal tease()
43 signal emergencyCall()
45 signal _showMessageCalled(string html)
46 signal _showPromptCalled(string text, bool isSecret, bool isDefaultPrompt)
47 signal _showLastChanceCalled()
48 signal _hideCalled()
49 signal _notifyAuthenticationSucceededCalled()
50 signal _notifyAuthenticationFailedCalled()
51 signal _resetCalled()
52 signal _tryToUnlockCalled(bool toTheRight)
54 function showMessage(html) {
55 _showMessageCalled(html);
56 }
58 function showPrompt(text, isSecret, isDefaultPrompt) {
59 _showPromptCalled(text, isSecret, isDefaultPrompt);
60 }
62 function showLastChance() {
63 _showLastChanceCalled();
64 }
66 function hide() {
67 _hideCalled();
68 _required = false;
69 _fullyShown = false;
70 }
72 function notifyAuthenticationSucceeded() {
73 _notifyAuthenticationSucceededCalled();
74 }
76 function notifyAuthenticationFailed() {
77 _notifyAuthenticationFailedCalled();
78 }
80 function reset() {
81 _resetCalled();
82 }
84 function tryToUnlock(toTheRight) {
85 _tryToUnlockCalled(toTheRight);
86 return true;
87 }
89 Rectangle {
90 anchors.fill: parent
91 color: "black"
93 Label {
94 text: "Fake view, nothing to see here"
95 color: "white"
96 anchors.centerIn: parent
97 }
98 }