author | zecke <zecke> | 2004-07-17 16:43:53 (UTC) |
---|---|---|
committer | zecke <zecke> | 2004-07-17 16:43:53 (UTC) |
commit | d6a4bf47ef7dfaabd08fb8d514cde1832a055816 (patch) (unidiff) | |
tree | 6b56864c43d18885924f39bd76bd5ed3852a74b4 /libopie2/opiesecurity/multiauthpassword.h | |
parent | 889c782a33abc8f5f15a0669c6d97688d22c304f (diff) | |
download | opie-d6a4bf47ef7dfaabd08fb8d514cde1832a055816.zip opie-d6a4bf47ef7dfaabd08fb8d514cde1832a055816.tar.gz opie-d6a4bf47ef7dfaabd08fb8d514cde1832a055816.tar.bz2 |
Add dropin for the Password implementation of libqpe
Diffstat (limited to 'libopie2/opiesecurity/multiauthpassword.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | libopie2/opiesecurity/multiauthpassword.h | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/libopie2/opiesecurity/multiauthpassword.h b/libopie2/opiesecurity/multiauthpassword.h new file mode 100644 index 0000000..1d061b4 --- a/dev/null +++ b/libopie2/opiesecurity/multiauthpassword.h | |||
@@ -0,0 +1,59 @@ | |||
1 | /** | ||
2 | * \file multiauthpassord.h | ||
3 | * \brief Password Dialog dropin. | ||
4 | * \author Clément Séveillac (clement . seveillac (at) via . ecp . fr) | ||
5 | */ | ||
6 | /* | ||
7 | =. This file is part of the Opie Project | ||
8 | .=l. Copyright (C) 2004 Opie Developer Team <opie-devel@handhelds.org> | ||
9 | .>+-= | ||
10 | _;:, .> :=|. This library is free software; you can | ||
11 | .> <`_, > . <= redistribute it and/or modify it under | ||
12 | :`=1 )Y*s>-.-- : the terms of the GNU Library General Public | ||
13 | .="- .-=="i, .._ License as published by the Free Software | ||
14 | - . .-<_> .<> Foundation; either version 2 of the License, | ||
15 | ._= =} : or (at your option) any later version. | ||
16 | .%`+i> _;_. | ||
17 | .i_,=:_. -<s. This library is distributed in the hope that | ||
18 | + . -:. = it will be useful, but WITHOUT ANY WARRANTY; | ||
19 | : .. .:, . . . without even the implied warranty of | ||
20 | =_ + =;=|` MERCHANTABILITY or FITNESS FOR A | ||
21 | _.=:. : :=>`: PARTICULAR PURPOSE. See the GNU | ||
22 | ..}^=.= = ; Library General Public License for more | ||
23 | ++= -. .` .: details. | ||
24 | : = ...= . :.=- | ||
25 | -. .:....=;==+<; You should have received a copy of the GNU | ||
26 | -_. . . )=. = Library General Public License along with | ||
27 | -- :-=` this library; see the file COPYING.LIB. | ||
28 | If not, write to the Free Software Foundation, | ||
29 | Inc., 59 Temple Place - Suite 330, | ||
30 | Boston, MA 02111-1307, USA. | ||
31 | |||
32 | */ | ||
33 | |||
34 | |||
35 | #ifndef OPIE_SEC_MULTIAUTHPASSWORD_H | ||
36 | #define OPIE_SEC_MULTIAUTHPASSWORD_H | ||
37 | |||
38 | namespace Opie { | ||
39 | namespace Security { | ||
40 | |||
41 | /** | ||
42 | * This is the dropin replacement for libqpes Password class. | ||
43 | * If you call authenticate() a widget will cover the whole screen | ||
44 | * and only return if the user is able to authenticate with any of the | ||
45 | * configured Authentication Plugins. | ||
46 | * This uses the \sa Opie::Security::MultiauthMainWindow internally. | ||
47 | * | ||
48 | * @author Clement Séveillac, Holger Freyther | ||
49 | */ | ||
50 | class MultiauthPassword { | ||
51 | public: | ||
52 | static bool needToAuthenticate( bool atpoweron=FALSE ); | ||
53 | static void authenticate(bool atpoweron = FALSE ); | ||
54 | }; | ||
55 | |||
56 | |||
57 | } | ||
58 | } | ||
59 | #endif | ||