From 3f4c05c0f72b269b70a508ac42d74fea3bfb20cc Mon Sep 17 00:00:00 2001 From: ulf69 Date: Fri, 15 Oct 2004 19:05:03 +0000 Subject: added settings for crypto and hashalgorythm --- (limited to 'pwmanager/pwmanager/pwmprefs.h') diff --git a/pwmanager/pwmanager/pwmprefs.h b/pwmanager/pwmanager/pwmprefs.h index 9fed7d2..1c8b982 100644 --- a/pwmanager/pwmanager/pwmprefs.h +++ b/pwmanager/pwmanager/pwmprefs.h @@ -36,23 +36,28 @@ class KConfig; #define conf() PWMPrefs::instance() -#define CONF_DEFAULT_PWTIMEOUT 10 /* 10 sec */ -#define CONF_DEFAULT_LOCKTIMEOUT 0 /* 0 == disable */ -#define CONF_DEFAULT_TRAY true -#define CONF_DEFAULT_UNLOCKONOPEN false -#define CONF_DEFAULT_MAINVIEWSTYLE 0 -#define CONF_DEFAULT_COMPRESSION 0x01 /* gzip */ -#define CONF_DEFAULT_AUTOMINIMIZE false -#define CONF_DEFAULT_BROWSERCOMMAND "" -#define CONF_DEFAULT_XTERMCOMMAND "konsole -e" -#define CONF_DEFAULT_FILEPERMISSIONS 0600 -#define CONF_DEFAULT_MAKEFILEBACKUP false -#define CONF_DEFAULT_AUTOSTART_DEEPL true -#define CONF_DEFAULT_AUTODEEPLOCK true -#define CONF_DEFAULT_KWALLETEMU true -#define CONF_DEFAULT_MINIMIZELOCK 2 /* deep-lock */ -#define CONF_DEFAULT_NEWENTRLOCKSTAT true /* locked */ -#define CONF_DEFAULT_WNDCLOSE true /* don't minimize to tray */ + + +#define CONF_DEFAULT_PWTIMEOUT 10/* 10 sec */ +#define CONF_DEFAULT_LOCKTIMEOUT 0/* 0 == disable */ +#define CONF_DEFAULT_TRAY true +#define CONF_DEFAULT_UNLOCKONOPEN true +#define CONF_DEFAULT_MAINVIEWSTYLE 1/* Category List Left */ +#define CONF_DEFAULT_COMPRESSION 0x01/* gzip */ +#define CONF_DEFAULT_CRYPTALGO (0x01 - 1)/* blowfish */ +#define CONF_DEFAULT_HASHALGO (0x01 - 1)/* sha1 */ +#define CONF_DEFAULT_AUTOMINIMIZE false +#define CONF_DEFAULT_BROWSERCOMMAND "" +#define CONF_DEFAULT_XTERMCOMMAND "konsole -e" +#define CONF_DEFAULT_FILEPERMISSIONS 0600 +#define CONF_DEFAULT_MAKEFILEBACKUP false +#define CONF_DEFAULT_AUTOSTART_DEEPL true +#define CONF_DEFAULT_AUTODEEPLOCK true +#define CONF_DEFAULT_KWALLETEMU true +#define CONF_DEFAULT_MINIMIZELOCK 2/* deep-lock */ +#define CONF_DEFAULT_NEWENTRLOCKSTAT false/* new entries unlocked */ +#define CONF_DEFAULT_WNDCLOSE true/* don't minimize to tray */ + class PWMPrefs : public KPimPrefs { @@ -71,6 +76,8 @@ public: int confGlobPwTimeout(); int confGlobLockTimeout(); int confGlobCompression(); + int confGlobCryptAlgo(); + int confGlobHashAlgo(); int confGlobFilePermissions(); int confGlobMinimizeLock(); bool confGlobUnlockOnOpen(); @@ -96,6 +103,9 @@ public: void confGlobPwTimeout(int e); void confGlobLockTimeout(int e); void confGlobCompression(int e); + void confGlobCryptAlgo(int e); + void confGlobHashAlgo(int e); + void confGlobFilePermissions(int e); void confGlobMinimizeLock(int e); void confGlobUnlockOnOpen(bool e); @@ -120,6 +130,8 @@ public: int mPwTimeout; int mLockTimeout; int mCompression; + int mCryptAlgo; + int mHashAlgo; int mFilePermissions; int mMinimizeLock; bool mUnlockOnOpen; -- cgit v0.9.0.2