21#ifndef LOMIRI_MOCK_GREETER_H
22#define LOMIRI_MOCK_GREETER_H
24#include <QtCore/QObject>
25#include <QtCore/QVariant>
36class Q_DECL_EXPORT Greeter :
public QObject
40 Q_PROPERTY(
bool authenticated READ isAuthenticated )
41 Q_PROPERTY(QString authenticationUser READ authenticationUser )
42 Q_PROPERTY(QString defaultSession READ defaultSessionHint CONSTANT)
43 Q_PROPERTY(QString selectUser READ selectUserHint CONSTANT)
44 Q_PROPERTY(
bool selectGuest READ selectGuestHint CONSTANT)
46 Q_PROPERTY(QString hostname READ hostname CONSTANT)
47 Q_PROPERTY(
bool hasGuestAccount READ hasGuestAccountHint CONSTANT)
62 explicit Greeter(QObject* parent=0);
65 QString getHint(
const QString &name)
const;
66 QString defaultSessionHint()
const;
67 bool hideUsersHint()
const;
68 bool showManualLoginHint()
const;
69 bool showRemoteLoginHint()
const;
70 bool hasGuestAccountHint()
const;
71 QString selectUserHint()
const;
72 bool selectGuestHint()
const;
73 QString autologinUserHint()
const;
74 bool autologinGuestHint()
const;
75 int autologinTimeoutHint()
const;
77 bool inAuthentication()
const;
78 bool isAuthenticated()
const;
79 QString authenticationUser()
const;
80 QString hostname()
const;
84 void authenticate(
const QString &username=QString());
85 void authenticateAsGuest();
86 void authenticateAutologin();
87 void authenticateRemote(
const QString &session=QString(),
const QString &username=QString());
88 void respond(
const QString &response);
89 void cancelAuthentication();
90 void setLanguage (
const QString &language);
91 bool startSessionSync(
const QString &session=QString());
94 void showMessage(QString text, QLightDM::Greeter::MessageType type);
95 void showPrompt(QString text, QLightDM::Greeter::PromptType type);
96 void authenticationComplete();
97 void autologinTimerExpired();
100 void sendAuthenticationComplete();
103 GreeterPrivate *d_ptr;
104 Q_DECLARE_PRIVATE(Greeter)