author | clem <clem> | 2004-10-08 22:50:28 (UTC) |
---|---|---|
committer | clem <clem> | 2004-10-08 22:50:28 (UTC) |
commit | 2f29d0ec4bb2355f193d744c890add203bd6f2b2 (patch) (unidiff) | |
tree | a703b00b673b9be036415393b53d9c95a5bb87cd /libopie2/opiesecurity/multiauthpassword.h | |
parent | dec031cc21181d70e0c806bcf6c228044f7df90b (diff) | |
download | opie-2f29d0ec4bb2355f193d744c890add203bd6f2b2.zip opie-2f29d0ec4bb2355f193d744c890add203bd6f2b2.tar.gz opie-2f29d0ec4bb2355f193d744c890add203bd6f2b2.tar.bz2 |
Big commit thanks to a little feature request :-) We now have an O-menu applet
to lock the PDA immediately, and the internal way to ask for an authentication
(on resume, on start up, on demand or for a simple test) is much cleaner:
it's through MultiauthPassword(int lockMode) (instead of the old bool at_poweron)
Diffstat (limited to 'libopie2/opiesecurity/multiauthpassword.h') (more/less context) (show whitespace changes)
-rw-r--r-- | libopie2/opiesecurity/multiauthpassword.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/libopie2/opiesecurity/multiauthpassword.h b/libopie2/opiesecurity/multiauthpassword.h index fe276da..effdaa1 100644 --- a/libopie2/opiesecurity/multiauthpassword.h +++ b/libopie2/opiesecurity/multiauthpassword.h | |||
@@ -40,2 +40,7 @@ namespace Security { | |||
40 | 40 | ||
41 | enum lockMode { | ||
42 | IfPowerOn, | ||
43 | IfResume, | ||
44 | TestNow, | ||
45 | LockNow }; | ||
41 | /** | 46 | /** |
@@ -50,5 +55,6 @@ namespace Security { | |||
50 | class MultiauthPassword { | 55 | class MultiauthPassword { |
56 | |||
51 | public: | 57 | public: |
58 | static void authenticate(int authMode = LockNow); | ||
52 | static bool needToAuthenticate( bool atpoweron = false ); | 59 | static bool needToAuthenticate( bool atpoweron = false ); |
53 | static void authenticate(bool atpoweron = false); | ||
54 | }; | 60 | }; |