25 #ifndef UNITY_GREETER_H
26 #define UNITY_GREETER_H
28 #include <QLightDM/Greeter>
29 #include <QtCore/QObject>
33 class Greeter :
public QObject
37 Q_PROPERTY(
bool authenticated READ isAuthenticated)
38 Q_PROPERTY(QString authenticationUser READ authenticationUser NOTIFY authenticationUserChanged)
39 Q_PROPERTY(
bool promptless READ promptless NOTIFY promptlessChanged)
42 explicit Greeter(QObject* parent=0);
44 bool isAuthenticated()
const;
45 QString authenticationUser()
const;
46 bool promptless()
const;
49 void authenticate(
const QString &username=QString());
50 void respond(
const QString &response);
51 bool startSessionSync(
const QString &session=QString());
54 void showMessage(
const QString &text,
bool isError);
55 void showPrompt(
const QString &text,
bool isSecret);
56 void authenticationComplete();
57 void authenticationUserChanged(
const QString &user);
58 void promptlessChanged();
62 void requestAuthenticationUser(
const QString &user);
65 GreeterPrivate *
const d_ptr;
67 Q_DECLARE_PRIVATE(Greeter)
70 void showMessageFilter(const QString &text, QLightDM::Greeter::MessageType type);
71 void showPromptFilter(const QString &text, QLightDM::Greeter::PromptType type);
72 void authenticationCompleteFilter();