summaryrefslogtreecommitdiffstats
path: root/kdesktop/lock/securedlg.h
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-09-15 19:17:28 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-09-15 19:17:28 +0000
commitff7322912780843dfb3bce1d720452aeed89592e (patch)
tree2b72956a83fb45a46c7d5cb985a758b3724ac35e /kdesktop/lock/securedlg.h
parentb82e4034156bf3c1d268aecc65a50e6569ecf2ee (diff)
downloadtdebase-ff7322912780843dfb3bce1d720452aeed89592e.tar.gz
tdebase-ff7322912780843dfb3bce1d720452aeed89592e.zip
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
Diffstat (limited to 'kdesktop/lock/securedlg.h')
-rw-r--r--kdesktop/lock/securedlg.h66
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 <kb9vqf@pearsoncomputing.net>
+//
+
+#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
+