summaryrefslogtreecommitdiffstats
path: root/kdesktop/lock/lockprocess.cc
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-10-14 22:05:38 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-10-14 22:05:38 +0000
commite81d6b084c909f249cf398b3112a99fad0e91ac8 (patch)
tree3a0189e5d885285f6ed1cb7b22759ea96e3c0ce3 /kdesktop/lock/lockprocess.cc
parent082f536b5bfcf71bec5e04b940328de7894f4513 (diff)
downloadtdebase-e81d6b084c909f249cf398b3112a99fad0e91ac8.tar.gz
tdebase-e81d6b084c909f249cf398b3112a99fad0e91ac8.zip
Add a new intrusion detection feature to kdesktop_lock
When enabled the date and time of the last screen lock is shown before login git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdebase@1258934 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kdesktop/lock/lockprocess.cc')
-rw-r--r--kdesktop/lock/lockprocess.cc5
1 files changed, 4 insertions, 1 deletions
diff --git a/kdesktop/lock/lockprocess.cc b/kdesktop/lock/lockprocess.cc
index 827ea6b21..f4c22b863 100644
--- a/kdesktop/lock/lockprocess.cc
+++ b/kdesktop/lock/lockprocess.cc
@@ -157,6 +157,7 @@ LockProcess::LockProcess(bool child, bool useBlankOnly)
child_saver(child),
mParent(0),
mUseBlankOnly(useBlankOnly),
+ mShowLockDateTime(false),
mSuspended(false),
mVisibility(false),
mRestoreXF86Lock(false),
@@ -184,6 +185,8 @@ LockProcess::LockProcess(bool child, bool useBlankOnly)
setupSignals();
setupPipe();
+ mShowLockDateTime = KDesktopSettings::showLockDateTime();
+
kapp->installX11EventFilter(this);
mForceContinualLockDisplayTimer = new TQTimer( this );
@@ -1529,7 +1532,7 @@ bool LockProcess::checkPass()
}
showVkbd();
- PasswordDlg passDlg( this, &greetPlugin);
+ PasswordDlg passDlg( this, &greetPlugin, (mShowLockDateTime)?TQDateTime::currentDateTime():TQDateTime());
int ret = execDialog( &passDlg );
hideVkbd();