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>
26
Greeter::Greeter(QObject *parent)
28
d_ptr(new GreeterPrivate(this))
36
QString Greeter::authenticationUser() const
39
return d->authenticationUser;
42
bool Greeter::hasGuestAccountHint() const
47
QString Greeter::getHint(const QString &name) const
53
QString Greeter::defaultSessionHint() const
58
bool Greeter::hideUsersHint() const
63
bool Greeter::showManualLoginHint() const
68
bool Greeter::showRemoteLoginHint() const
73
bool Greeter::lockHint () const
78
QString Greeter::selectUserHint() const
83
bool Greeter::selectGuestHint() const
88
QString Greeter::autologinUserHint() const
93
bool Greeter::autologinGuestHint() const
98
int Greeter::autologinTimeoutHint() const
103
bool Greeter::inAuthentication() const
108
QString Greeter::hostname() const
113
bool Greeter::isAuthenticated() const
116
return d->authenticated;
119
bool Greeter::connectSync()
124
void Greeter::authenticate(const QString &username)
128
d->authenticated = false;
129
d->authenticationUser = username;
130
d->twoFactorDone = false;
131
d->handleAuthenticate();
134
void Greeter::authenticateAsGuest()
137
void Greeter::authenticateAutologin()
140
void Greeter::authenticateRemote(const QString &session, const QString &username)
146
void Greeter::cancelAuthentication()
149
void Greeter::setLanguage (const QString &language)
154
bool Greeter::startSessionSync(const QString &session)
160
void Greeter::respond(const QString &response)
164
d->handleRespond(response);