|
|
|
@@ -15,47 +15,47 @@ |
15 | You should have received a copy of the GNU Library General Public License |
15 | You should have received a copy of the GNU Library General Public License |
16 | along with this library; see the file COPYING.LIB. If not, write to |
16 | along with this library; see the file COPYING.LIB. If not, write to |
17 | the Free Software Foundation, Inc., 59 Temple Place - Suite 330, |
17 | the Free Software Foundation, Inc., 59 Temple Place - Suite 330, |
18 | Boston, MA 02111-1307, USA. |
18 | Boston, MA 02111-1307, USA. |
19 | */ |
19 | */ |
20 | |
20 | |
21 | /* |
21 | /* |
22 | Enhanced Version of the file for platform independent KDE tools. |
22 | Enhanced Version of the file for platform independent KDE tools. |
23 | Copyright (c) 2004 Ulf Schenk |
23 | Copyright (c) 2004 Ulf Schenk |
24 | |
24 | |
25 | $Id$ |
25 | $Id$ |
26 | */ |
26 | */ |
27 | |
27 | |
28 | #ifndef KABC_KEY_H |
28 | #ifndef KABC_KEY_H |
29 | #define KABC_KEY_H |
29 | #define KABC_KEY_H |
30 | |
30 | |
31 | #include <qvaluelist.h> |
31 | #include <q3valuelist.h> |
32 | |
32 | |
33 | namespace KABC { |
33 | namespace KABC { |
34 | |
34 | |
35 | /** |
35 | /** |
36 | * @short A class to store an encryption key. |
36 | * @short A class to store an encryption key. |
37 | */ |
37 | */ |
38 | class Key |
38 | class Key |
39 | { |
39 | { |
40 | friend QDataStream &operator<<( QDataStream &, const Key & ); |
40 | friend QDataStream &operator<<( QDataStream &, const Key & ); |
41 | friend QDataStream &operator>>( QDataStream &, Key & ); |
41 | friend QDataStream &operator>>( QDataStream &, Key & ); |
42 | |
42 | |
43 | public: |
43 | public: |
44 | typedef QValueList<Key> List; |
44 | typedef Q3ValueList<Key> List; |
45 | typedef QValueList<int> TypeList; |
45 | typedef Q3ValueList<int> TypeList; |
46 | |
46 | |
47 | /** |
47 | /** |
48 | * Key types |
48 | * Key types |
49 | * |
49 | * |
50 | * @li X509 - X509 key |
50 | * @li X509 - X509 key |
51 | * @li PGP - Pretty Good Privacy key |
51 | * @li PGP - Pretty Good Privacy key |
52 | * @li Custom - Custom or IANA conform key |
52 | * @li Custom - Custom or IANA conform key |
53 | */ |
53 | */ |
54 | enum Types { |
54 | enum Types { |
55 | X509, |
55 | X509, |
56 | PGP, |
56 | PGP, |
57 | Custom |
57 | Custom |
58 | }; |
58 | }; |
59 | |
59 | |
60 | /** |
60 | /** |
61 | * Constructor. |
61 | * Constructor. |
|