diff options
Diffstat (limited to 'kdesktop/lock/securedlg.h')
-rw-r--r-- | kdesktop/lock/securedlg.h | 66 |
1 files changed, 66 insertions, 0 deletions
diff --git a/kdesktop/lock/securedlg.h b/kdesktop/lock/securedlg.h new file mode 100644 index 000000000..b9278d8d7 --- /dev/null +++ b/kdesktop/lock/securedlg.h @@ -0,0 +1,66 @@ +//=========================================================================== +// +// This file is part of the KDE project +// +// Copyright (c) 2010 Timothy Pearson <[email protected]> +// + +#ifndef __SECUREDLG_H__ +#define __SECUREDLG_H__ + +#include <tqdialog.h> +#include <tqstringlist.h> +#include <tqbutton.h> + +#include "lockprocess.h" + +class TQFrame; +class TQGridLayout; +class TQLabel; +class KPushButton; +class TQListView; + +//=========================================================================== +// +// Simple dialog for displaying an info message. +// It does not handle password validation. +// +class SecureDlg : public TQDialog +{ + Q_OBJECT + +public: + SecureDlg(LockProcess *parent); + ~SecureDlg(); + virtual void show(); + + void closeDialogForced(); + void setRetInt(int *); + +private slots: + void slotBtnCancel(); + void slotBtnLock(); + void slotBtnTask(); + void slotBtnShutdown(); + +protected slots: + virtual void reject(); + +private: + TQFrame *frame; + TQGridLayout *frameLayout; + TQLabel *mLogonStatus; + TQButton *mCancelButton; + TQButton *mLockButton; + TQButton *mTaskButton; + TQButton *mShutdownButton; + int mCapsLocked; + bool mUnlockingFailed; + TQStringList layoutsList; + TQStringList::iterator currLayout; + int sPid, sFd; + int* retInt; +}; + +#endif + |