diff options
author | Simon Rettberg | 2017-08-11 17:53:29 +0200 |
---|---|---|
committer | Simon Rettberg | 2017-08-11 17:53:29 +0200 |
commit | 1a32f34505fd7960304e15e5ca539be877d06c24 (patch) | |
tree | 2e825bb8e77033193777207343c6ffa7a52075b7 /src/loginform.h | |
parent | Move code to src/, tweak CMakeLists.txt (diff) | |
download | slxgreeter-1a32f34505fd7960304e15e5ca539be877d06c24.tar.gz slxgreeter-1a32f34505fd7960304e15e5ca539be877d06c24.tar.xz slxgreeter-1a32f34505fd7960304e15e5ca539be877d06c24.zip |
Strip unneeded stuff, simplify pam dialog handling, add safety timeout of 10 seconds
Diffstat (limited to 'src/loginform.h')
-rw-r--r-- | src/loginform.h | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/src/loginform.h b/src/loginform.h index 8346a58..6dfc390 100644 --- a/src/loginform.h +++ b/src/loginform.h @@ -14,6 +14,7 @@ #include <QKeyEvent> #include <QGraphicsOpacityEffect> #include <QMap> +#include <QTimer> #include <QLightDM/Power> #include <QLightDM/Greeter> @@ -37,11 +38,12 @@ public: virtual void setFocus(Qt::FocusReason reason); public slots: - void userChanged(); + void startAuthentication(); void leaveDropDownActivated(int index); - void respond(); void onPrompt(QString prompt, QLightDM::Greeter::PromptType promptType); - void authenticationComplete(); + void onMessage(QString prompt, QLightDM::Greeter::MessageType messageType); + void onAuthenticationComplete(); + void cancelLogin(); protected: virtual void keyPressEvent(QKeyEvent *event); @@ -59,6 +61,10 @@ private: QLightDM::SessionsModel sessionsModel; QMap<int, void (QLightDM::PowerInterface::*)()> powerSlots; + + QTimer cancelLoginTimer; + + bool clearMsg; }; #endif // LOGINFORM_H |