summaryrefslogtreecommitdiffabout
Unidiff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--pwmanager/pwmanager/pwmprefs.cpp20
-rw-r--r--pwmanager/pwmanager/pwmprefs.h46
2 files changed, 49 insertions, 17 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
@@ -47,2 +47,4 @@ PWMPrefs::PWMPrefs()
47 addItemInt( "compression", &mCompression, CONF_DEFAULT_COMPRESSION ); 47 addItemInt( "compression", &mCompression, CONF_DEFAULT_COMPRESSION );
48 addItemInt("cryptAlgo", &mCryptAlgo, CONF_DEFAULT_CRYPTALGO);
49 addItemInt("hashAlgo", &mHashAlgo, CONF_DEFAULT_HASHALGO);
48 addItemInt( "filePermissions", &mFilePermissions, CONF_DEFAULT_FILEPERMISSIONS ); 50 addItemInt( "filePermissions", &mFilePermissions, CONF_DEFAULT_FILEPERMISSIONS );
@@ -196,2 +198,12 @@ bool PWMPrefs::confWndClose()
196 198
199int PWMPrefs::confGlobCryptAlgo()
200{
201 return mCryptAlgo + 1;
202}
203
204int PWMPrefs::confGlobHashAlgo()
205{
206 return mHashAlgo + 1;
207}
208
197/******************************************************************* 209/*******************************************************************
@@ -300,2 +312,10 @@ void PWMPrefs::confWndClose(bool e)
300 312
313void PWMPrefs::confGlobCryptAlgo(int e)
314{
315 mCryptAlgo = e - 1;
316}
301 317
318void PWMPrefs::confGlobHashAlgo(int e)
319{
320 mHashAlgo = e - 1;
321}
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
@@ -38,19 +38,24 @@ class KConfig;
38 38
39 #define CONF_DEFAULT_PWTIMEOUT 10/* 10 sec */ 39
40 #define CONF_DEFAULT_LOCKTIMEOUT 0/* 0 == disable */ 40
41 #define CONF_DEFAULT_TRAY true 41#define CONF_DEFAULT_PWTIMEOUT 10/* 10 sec */
42 #define CONF_DEFAULT_UNLOCKONOPENfalse 42#define CONF_DEFAULT_LOCKTIMEOUT 0/* 0 == disable */
43 #define CONF_DEFAULT_MAINVIEWSTYLE0 43#define CONF_DEFAULT_TRAY true
44 #define CONF_DEFAULT_COMPRESSION 0x01/* gzip */ 44#define CONF_DEFAULT_UNLOCKONOPEN true
45 #define CONF_DEFAULT_AUTOMINIMIZEfalse 45#define CONF_DEFAULT_MAINVIEWSTYLE 1/* Category List Left */
46 #define CONF_DEFAULT_BROWSERCOMMAND"" 46#define CONF_DEFAULT_COMPRESSION 0x01/* gzip */
47 #define CONF_DEFAULT_XTERMCOMMAND"konsole -e" 47#define CONF_DEFAULT_CRYPTALGO (0x01 - 1)/* blowfish */
48 #define CONF_DEFAULT_FILEPERMISSIONS0600 48#define CONF_DEFAULT_HASHALGO (0x01 - 1)/* sha1 */
49 #define CONF_DEFAULT_MAKEFILEBACKUPfalse 49#define CONF_DEFAULT_AUTOMINIMIZE false
50 #define CONF_DEFAULT_AUTOSTART_DEEPLtrue 50#define CONF_DEFAULT_BROWSERCOMMAND ""
51 #define CONF_DEFAULT_AUTODEEPLOCKtrue 51#define CONF_DEFAULT_XTERMCOMMAND "konsole -e"
52 #define CONF_DEFAULT_KWALLETEMU true 52#define CONF_DEFAULT_FILEPERMISSIONS 0600
53 #define CONF_DEFAULT_MINIMIZELOCK 2/* deep-lock */ 53#define CONF_DEFAULT_MAKEFILEBACKUP false
54 #define CONF_DEFAULT_NEWENTRLOCKSTAT true/* locked */ 54#define CONF_DEFAULT_AUTOSTART_DEEPL true
55 #define CONF_DEFAULT_WNDCLOSE true/* don't minimize to tray */ 55#define CONF_DEFAULT_AUTODEEPLOCK true
56#define CONF_DEFAULT_KWALLETEMU true
57#define CONF_DEFAULT_MINIMIZELOCK 2/* deep-lock */
58#define CONF_DEFAULT_NEWENTRLOCKSTAT false/* new entries unlocked */
59#define CONF_DEFAULT_WNDCLOSE true/* don't minimize to tray */
60
56 61
@@ -73,2 +78,4 @@ public:
73 int confGlobCompression(); 78 int confGlobCompression();
79 int confGlobCryptAlgo();
80 int confGlobHashAlgo();
74 int confGlobFilePermissions(); 81 int confGlobFilePermissions();
@@ -98,2 +105,5 @@ public:
98 void confGlobCompression(int e); 105 void confGlobCompression(int e);
106 void confGlobCryptAlgo(int e);
107 void confGlobHashAlgo(int e);
108
99 void confGlobFilePermissions(int e); 109 void confGlobFilePermissions(int e);
@@ -122,2 +132,4 @@ public:
122 int mCompression; 132 int mCompression;
133 int mCryptAlgo;
134 int mHashAlgo;
123 int mFilePermissions; 135 int mFilePermissions;