diff options
Diffstat (limited to 'framework/src/domain/mime/mimetreeparser/partmetadata.h')
-rw-r--r-- | framework/src/domain/mime/mimetreeparser/partmetadata.h | 67 |
1 files changed, 67 insertions, 0 deletions
diff --git a/framework/src/domain/mime/mimetreeparser/partmetadata.h b/framework/src/domain/mime/mimetreeparser/partmetadata.h new file mode 100644 index 00000000..41399837 --- /dev/null +++ b/framework/src/domain/mime/mimetreeparser/partmetadata.h | |||
@@ -0,0 +1,67 @@ | |||
1 | /* -*- c++ -*- | ||
2 | partmetadata.h | ||
3 | |||
4 | KMail, the KDE mail client. | ||
5 | Copyright (c) 2002-2003 Karl-Heinz Zimmer <khz@kde.org> | ||
6 | Copyright (c) 2003 Marc Mutz <mutz@kde.org> | ||
7 | |||
8 | This program is free software; you can redistribute it and/or | ||
9 | modify it under the terms of the GNU General Public License, | ||
10 | version 2.0, as published by the Free Software Foundation. | ||
11 | You should have received a copy of the GNU General Public License | ||
12 | along with this program; if not, write to the Free Software Foundation, | ||
13 | Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, US | ||
14 | */ | ||
15 | |||
16 | #ifndef __MIMETREEPARSER_PARTMETADATA_H__ | ||
17 | #define __MIMETREEPARSER_PARTMETADATA_H__ | ||
18 | |||
19 | #include <gpgme++/verificationresult.h> | ||
20 | #include <gpgme++/context.h> | ||
21 | |||
22 | #include <QStringList> | ||
23 | #include <QDateTime> | ||
24 | |||
25 | namespace MimeTreeParser | ||
26 | { | ||
27 | |||
28 | class PartMetaData | ||
29 | { | ||
30 | public: | ||
31 | PartMetaData() | ||
32 | : sigSummary(GpgME::Signature::None), | ||
33 | isSigned(false), | ||
34 | isGoodSignature(false), | ||
35 | isEncrypted(false), | ||
36 | isDecryptable(false), | ||
37 | inProgress(false), | ||
38 | technicalProblem(false), | ||
39 | isEncapsulatedRfc822Message(false) | ||
40 | { | ||
41 | } | ||
42 | GpgME::Signature::Summary sigSummary; | ||
43 | QString signClass; | ||
44 | QString signer; | ||
45 | QStringList signerMailAddresses; | ||
46 | QByteArray keyId; | ||
47 | GpgME::Signature::Validity keyTrust; | ||
48 | QString status; // to be used for unknown plug-ins | ||
49 | int status_code; // to be used for i18n of OpenPGP and S/MIME CryptPlugs | ||
50 | QString errorText; | ||
51 | QDateTime creationTime; | ||
52 | QString decryptionError; | ||
53 | QString auditLog; | ||
54 | GpgME::Error auditLogError; | ||
55 | bool isSigned : 1; | ||
56 | bool isGoodSignature : 1; | ||
57 | bool isEncrypted : 1; | ||
58 | bool isDecryptable : 1; | ||
59 | bool inProgress : 1; | ||
60 | bool technicalProblem : 1; | ||
61 | bool isEncapsulatedRfc822Message : 1; | ||
62 | }; | ||
63 | |||
64 | } | ||
65 | |||
66 | #endif // __MIMETREEPARSER_PARTMETADATA_H__ | ||
67 | |||