From ff7322912780843dfb3bce1d720452aeed89592e Mon Sep 17 00:00:00 2001 From: tpearson Date: Thu, 15 Sep 2011 19:17:28 +0000 Subject: Add secure desktop area dialog to kdebase git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdebase@1253853 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- kdesktop/lock/securedlg.h | 66 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 66 insertions(+) create mode 100644 kdesktop/lock/securedlg.h (limited to 'kdesktop/lock/securedlg.h') 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 +// + +#ifndef __SECUREDLG_H__ +#define __SECUREDLG_H__ + +#include +#include +#include + +#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 + -- cgit v1.2.1