add more spacing
[personal-kdebase.git] / workspace / krunner / lock / autologout.h
blobd3c43c508f061ce7eb4171d869b47cc00938c217
1 //===========================================================================
2 //
3 // This file is part of the KDE project
4 //
5 // Copyright 1999 Martin R. Jones <mjones@kde.org>
6 // Copyright 2003 Oswald Buddenhagen <ossi@kde.org>
7 // Copyright 2004 Chris Howells <howells@kde.org>
9 #ifndef AUTOLOGOUT_H
10 #define AUTOLOGOUT_H
12 #include <QLayout>
14 class LockProcess;
15 class QFrame;
16 class QGridLayout;
17 class QLabel;
18 class QDialog;
19 class QProgressBar;
21 class AutoLogout : public QDialog
23 Q_OBJECT
25 public:
26 AutoLogout(LockProcess *parent);
27 ~AutoLogout();
28 virtual void setVisible(bool visible);
30 protected:
31 virtual void timerEvent(QTimerEvent *);
33 private Q_SLOTS:
34 void slotActivity();
36 private:
37 void updateInfo(int);
38 QFrame *frame;
39 QGridLayout *frameLayout;
40 QLabel *mStatusLabel;
41 int mCountdownTimerId;
42 int mRemaining;
43 QTimer countDownTimer;
44 QProgressBar *mProgressRemaining;
45 void logout();
48 #endif // AUTOLOGOUT_H