summaryrefslogtreecommitdiffabout
path: root/pwmanager/pwmanager/pwmprefs.cpp
authorulf69 <ulf69>2004-10-15 19:05:03 (UTC)
committer ulf69 <ulf69>2004-10-15 19:05:03 (UTC)
commit3f4c05c0f72b269b70a508ac42d74fea3bfb20cc (patch) (side-by-side diff)
treea3c3a14048afbba18c69a799870506af9d385e17 /pwmanager/pwmanager/pwmprefs.cpp
parentb7fbbfff6b939278cb7665d78b2615c77856ce7d (diff)
downloadkdepimpi-3f4c05c0f72b269b70a508ac42d74fea3bfb20cc.zip
kdepimpi-3f4c05c0f72b269b70a508ac42d74fea3bfb20cc.tar.gz
kdepimpi-3f4c05c0f72b269b70a508ac42d74fea3bfb20cc.tar.bz2
added settings for crypto and hashalgorythm
Diffstat (limited to 'pwmanager/pwmanager/pwmprefs.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--pwmanager/pwmanager/pwmprefs.cpp20
1 files changed, 20 insertions, 0 deletions
diff --git a/pwmanager/pwmanager/pwmprefs.cpp b/pwmanager/pwmanager/pwmprefs.cpp
index 7fd347f..fdc34e0 100644
--- a/pwmanager/pwmanager/pwmprefs.cpp
+++ b/pwmanager/pwmanager/pwmprefs.cpp
@@ -42,12 +42,14 @@ PWMPrefs::PWMPrefs()
addItemString( "browserCommand", &mBrowserCommand, "" );
addItemString( "xtermCommand", &mXTermCommand, CONF_DEFAULT_XTERMCOMMAND);
addItemFont( "entryFont", &mEntryFont);
addItemInt( "pwTimeout", &mPwTimeout, CONF_DEFAULT_PWTIMEOUT );
addItemInt( "lockTimeout", &mLockTimeout, CONF_DEFAULT_LOCKTIMEOUT );
addItemInt( "compression", &mCompression, CONF_DEFAULT_COMPRESSION );
+ addItemInt("cryptAlgo", &mCryptAlgo, CONF_DEFAULT_CRYPTALGO);
+ addItemInt("hashAlgo", &mHashAlgo, CONF_DEFAULT_HASHALGO);
addItemInt( "filePermissions", &mFilePermissions, CONF_DEFAULT_FILEPERMISSIONS );
addItemInt( "minimizeLock", &mMinimizeLock, CONF_DEFAULT_MINIMIZELOCK );
addItemBool( "unlockOnOpen", &mUnlockOnOpen, CONF_DEFAULT_UNLOCKONOPEN );
addItemBool( "tray", &mTray, CONF_DEFAULT_TRAY );
addItemBool( "makeFileBackup", &mMakeFileBackup, CONF_DEFAULT_MAKEFILEBACKUP );
addItemBool( "autostartDeepLocked", &mAutostartDeeplocked, CONF_DEFAULT_AUTOSTART_DEEPL );
@@ -191,12 +193,22 @@ bool PWMPrefs::confWndAutoMinimizeOnStart()
bool PWMPrefs::confWndClose()
{
return mClose;
}
+int PWMPrefs::confGlobCryptAlgo()
+{
+ return mCryptAlgo + 1;
+}
+
+int PWMPrefs::confGlobHashAlgo()
+{
+ return mHashAlgo + 1;
+}
+
/*******************************************************************
* functions for writing the configuration settings
*******************************************************************/
void PWMPrefs::confGlobAutoStart(const QString &e)
{
@@ -295,7 +307,15 @@ void PWMPrefs::confWndAutoMinimizeOnStart(bool e)
void PWMPrefs::confWndClose(bool e)
{
mClose = e;
}
+void PWMPrefs::confGlobCryptAlgo(int e)
+{
+ mCryptAlgo = e - 1;
+}
+void PWMPrefs::confGlobHashAlgo(int e)
+{
+ mHashAlgo = e - 1;
+}