2 * Copyright (C) 2013 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/>.
16 * Author: Michael Terry <michael.terry@canonical.com>
20#include "GreeterPrivate.h"
21#include <QtCore/QCoreApplication>
27Greeter::Greeter(QObject *parent)
29 d_ptr(new GreeterPrivate(this))
37QString Greeter::authenticationUser() const
40 return d->authenticationUser;
43bool Greeter::hasGuestAccountHint() const
48QString Greeter::getHint(const QString &name) const
54QString Greeter::defaultSessionHint() const
59bool Greeter::hideUsersHint() const
64bool Greeter::showManualLoginHint() const
69bool Greeter::showRemoteLoginHint() const
74bool Greeter::lockHint () const
79QString Greeter::selectUserHint() const
84bool Greeter::selectGuestHint() const
89QString Greeter::autologinUserHint() const
94bool Greeter::autologinGuestHint() const
99int Greeter::autologinTimeoutHint() const
104bool Greeter::inAuthentication() const
109QString Greeter::hostname() const
114bool Greeter::isAuthenticated() const
117 return d->authenticated;
120bool Greeter::connectSync()
125void Greeter::authenticate(const QString &username)
129 d->authenticated = false;
130 d->authenticationUser = username;
131 d->twoFactorDone = false;
132 d->handleAuthenticate();
135void Greeter::authenticateAsGuest()
138void Greeter::authenticateAutologin()
141void Greeter::authenticateRemote(const QString &session, const QString &username)
147void Greeter::cancelAuthentication()
150void Greeter::setLanguage (const QString &language)
155bool Greeter::startSessionSync(const QString &session)
161void Greeter::respond(const QString &response)
165 d->handleRespond(response);
168void Greeter::sendAuthenticationComplete()
170 if (qgetenv("UNITY_TESTING").isEmpty()) {
171 // simulate PAM's delay
172 QTimer::singleShot(1000, this, SIGNAL(authenticationComplete()));
174 Q_EMIT authenticationComplete();
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list