@@ -0,0 +1,60 @@
2+ * Copyright (C) 2015 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+ * Expose an API that allows interaction with the
19+ * integrated LightDM or real LightDM depending on shell mode
24+ source: "IntegratedLightDMImpl.qml"
25+ property bool valid: item !== null
27+ property bool active: item.active
28+ property bool authenticated: item.authenticated
29+ property bool promptless: item.promptless
30+ property real userCount: item.userCount
32+ property var theGreeter: item.theGreeter
33+ property var infographicModel: item.infographicModel
34+ property var userModel: item.userModel
36+ function authenticate(user) {
37+ if (valid) item.authenticate(user);
40+ function getUser(uid) {
41+ if (valid) item.getUser(uid);
44+ function infographicReadyForDataChange() {
45+ if (valid) return item.infographicReadyForDataChange();
48+ function respond(response) {
49+ if (valid) item.respond(response);
52+ function showGreeter() {
53+ if (valid) item.showGreeter();
56+ function startSessionSync() {
57+ if (valid) item.startSessionSync();