You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

53 lines
1.0 KiB

//===========================================================================
//
// This file is part of the KDE project
//
// Copyright 1999 Martin R. Jones <mjones@kde.org>
// Copyright 2003 Oswald Buddenhagen <ossi@kde.org>
// Copyright 2004 Chris Howells <howells@kde.org>
#ifndef AUTOLOGOUT_H
#define AUTOLOGOUT_H
#include <QTimer>
#include <QDialog>
#include <QLayout>
namespace ScreenLocker
{
class LockWindow;
}
class LockProcess;
class QGridLayout;
class QLabel;
class QDialog;
class QProgressBar;
class AutoLogout : public QDialog
{
Q_OBJECT
public:
AutoLogout(ScreenLocker::LockWindow *parent);
~AutoLogout();
virtual void setVisible(bool visible);
protected:
virtual void timerEvent(QTimerEvent *);
private Q_SLOTS:
void slotActivity();
private:
void updateInfo(int);
QGridLayout *frameLayout;
QLabel *mStatusLabel;
int mCountdownTimerId;
int mRemaining;
QTimer countDownTimer;
QProgressBar *mProgressRemaining;
void logout();
};
#endif // AUTOLOGOUT_H