summaryrefslogtreecommitdiffstats
path: root/src/loginform.h
diff options
context:
space:
mode:
authorSimon Rettberg2017-08-11 17:53:29 +0200
committerSimon Rettberg2017-08-11 17:53:29 +0200
commit1a32f34505fd7960304e15e5ca539be877d06c24 (patch)
tree2e825bb8e77033193777207343c6ffa7a52075b7 /src/loginform.h
parentMove code to src/, tweak CMakeLists.txt (diff)
downloadslxgreeter-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.h12
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