/* * Copyright (C) 2015 Canonical, Ltd. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; version 3. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ import QtQuick 2.4 import Ubuntu.Components 1.3 import "../Components" Item { objectName: "testView" property real dragHandleLeftMargin property real launcherOffset property int currentIndex property int delayMinutes property real backgroundTopMargin property url background property bool locked property bool alphanumeric property var userModel property var infographicModel readonly property bool fullyShown: _fullyShown readonly property bool required: _required property bool _fullyShown: true property bool _required: true signal selected(int index) signal responded(string response) signal tease() signal emergencyCall() signal _showMessageCalled(string html) signal _showPromptCalled(string text, bool isSecret, bool isDefaultPrompt) signal _showLastChanceCalled() signal _hideCalled() signal _notifyAuthenticationSucceededCalled() signal _notifyAuthenticationFailedCalled() signal _resetCalled() signal _tryToUnlockCalled(bool toTheRight) function showMessage(html) { _showMessageCalled(html); } function showPrompt(text, isSecret, isDefaultPrompt) { _showPromptCalled(text, isSecret, isDefaultPrompt); } function showLastChance() { _showLastChanceCalled(); } function hide() { _hideCalled(); _required = false; _fullyShown = false; } function notifyAuthenticationSucceeded() { _notifyAuthenticationSucceededCalled(); } function notifyAuthenticationFailed() { _notifyAuthenticationFailedCalled(); } function reset() { _resetCalled(); } function tryToUnlock(toTheRight) { _tryToUnlockCalled(toTheRight); return true; } Rectangle { anchors.fill: parent color: "black" Label { text: "Fake view, nothing to see here" color: "white" anchors.centerIn: parent } } }