00001
00002
00003
00004
00005
00006
00007
00008
00009 #ifndef __TIMEOUT_H__
00010 #define __TIMEOUT_H__
00011
00012 #include <tqstringlist.h>
00013
00014 #include <tqlayout.h>
00015
00016 class LockProcess;
00017 class TQFrame;
00018 class TQGridLayout;
00019 class TQLabel;
00020 class TQDialog;
00021 class TQProgressBar;
00022
00023 class AutoLogout : public QDialog
00024 {
00025 Q_OBJECT
00026
00027 public:
00028 AutoLogout(LockProcess *parent);
00029 ~AutoLogout();
00030 virtual void show();
00031
00032 protected:
00033 virtual void timerEvent(TQTimerEvent *);
00034
00035 private slots:
00036 void slotActivity();
00037
00038 private:
00039 void updateInfo(int);
00040 TQFrame *frame;
00041 TQGridLayout *frameLayout;
00042 TQLabel *mStatusLabel;
00043 int mCountdownTimerId;
00044 int mRemaining;
00045 TQTimer countDownTimer;
00046 TQProgressBar *mProgressRemaining;
00047 void logout();
00048 };
00049
00050 #endif
00051