source: src-qt4/PCDM/src/pcdm-logindelay.h @ 28c79ad

releng/10.0.1releng/10.0.2releng/10.0.3releng/10.1
Last change on this file since 28c79ad was 28c79ad, checked in by Ken Moore <ken@…>, 10 months ago

Add an auto-login delay function for PCDM that defaults to 10 seconds. This will pop-up a window giving the user the specified amount of time to either cancel the auto-login or immediately continue on.

  • Property mode set to 100644
File size: 455 bytes
Line 
1#ifndef _PCDM_LOGIN_DELAY_H
2#define _PCDM_LOGIN_DELAY_H
3
4#include <QDialog>
5#include <QTimer>
6#include <QString>
7
8
9namespace Ui{
10        class loginDelay;
11};
12
13class loginDelay : public QDialog{
14        Q_OBJECT
15public:
16        loginDelay(int seconds, QString username);
17        ~loginDelay();
18
19        void start();
20
21        bool continueLogin;
22
23private:
24        Ui::loginDelay *ui; //designer file
25        QTimer *delay;
26
27private slots:
28        void updateTimer();
29        void cancelLogin();
30        void startLogin();
31};
32
33#endif
Note: See TracBrowser for help on using the repository browser.