27 #include "GreeterPrivate.h"
28 #include <QtCore/QCoreApplication>
34 Greeter::Greeter(QObject *parent)
36 d_ptr(new GreeterPrivate(this))
44 QString Greeter::authenticationUser()
const
47 return d->authenticationUser;
50 bool Greeter::hasGuestAccountHint()
const
55 QString Greeter::getHint(
const QString &name)
const
58 return QLatin1String(
"");
61 QString Greeter::defaultSessionHint()
const
63 return QStringLiteral(
"lomiri");
66 bool Greeter::hideUsersHint()
const
71 bool Greeter::showManualLoginHint()
const
76 bool Greeter::showRemoteLoginHint()
const
81 QString Greeter::selectUserHint()
const
83 return QLatin1String(
"");
86 bool Greeter::selectGuestHint()
const
91 QString Greeter::autologinUserHint()
const
93 return QLatin1String(
"");
96 bool Greeter::autologinGuestHint()
const
101 int Greeter::autologinTimeoutHint()
const
106 bool Greeter::inAuthentication()
const
111 QString Greeter::hostname()
const
113 return QStringLiteral(
"hostname1");
116 bool Greeter::isAuthenticated()
const
119 return d->authenticated;
122 bool Greeter::connectSync()
127 void Greeter::authenticate(
const QString &username)
131 d->authenticated =
false;
132 d->authenticationUser = username;
133 d->handleAuthenticate();
136 void Greeter::authenticateAsGuest()
139 void Greeter::authenticateAutologin()
142 void Greeter::authenticateRemote(
const QString &session,
const QString &username)
148 void Greeter::cancelAuthentication()
151 d->cancelAuthentication();
154 void Greeter::setLanguage (
const QString &language)
159 bool Greeter::startSessionSync(
const QString &session)
165 void Greeter::respond(
const QString &response)
169 d->handleRespond(response);
172 void Greeter::sendAuthenticationComplete()
174 if (qEnvironmentVariableIsEmpty(
"LOMIRI_TESTING")) {
176 QTimer::singleShot(1000,
this, &Greeter::authenticationComplete);
178 Q_EMIT authenticationComplete();