~ubuntu-branches/ubuntu/utopic/kde-workspace/utopic-proposed

« back to all changes in this revision

Viewing changes to krunner/lock/autologout.h

  • Committer: Bazaar Package Importer
  • Author(s): Michał Zając
  • Date: 2011-07-09 08:31:15 UTC
  • Revision ID: james.westby@ubuntu.com-20110709083115-ohyxn6z93mily9fc
Tags: upstream-4.6.90
Import upstream version 4.6.90

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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>
 
8
 
 
9
#ifndef AUTOLOGOUT_H
 
10
#define AUTOLOGOUT_H
 
11
 
 
12
#include <QLayout>
 
13
 
 
14
class LockProcess;
 
15
class QGridLayout;
 
16
class QLabel;
 
17
class QDialog;
 
18
class QProgressBar;
 
19
 
 
20
class AutoLogout : public QDialog
 
21
{
 
22
    Q_OBJECT
 
23
 
 
24
public:
 
25
    AutoLogout(LockProcess *parent);
 
26
    ~AutoLogout();
 
27
    virtual void setVisible(bool visible);
 
28
 
 
29
protected:
 
30
    virtual void timerEvent(QTimerEvent *);
 
31
 
 
32
private Q_SLOTS:
 
33
    void slotActivity();
 
34
 
 
35
private:
 
36
    void        updateInfo(int);
 
37
    QGridLayout *frameLayout;
 
38
    QLabel      *mStatusLabel;
 
39
    int         mCountdownTimerId;
 
40
    int         mRemaining;
 
41
    QTimer      countDownTimer;
 
42
    QProgressBar *mProgressRemaining;
 
43
    void logout();
 
44
};
 
45
 
 
46
#endif // AUTOLOGOUT_H