doc update to 4.11
[kdepim.git] / messageviewer / partmetadata.h
blob2097576e3df4191bf54c0dbd305a7737c0df7f2a
1 /* -*- c++ -*-
2 partmetadata.h
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>
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
17 #ifndef _MESSAGEVIEWER_PARTMETADATA_H_
18 #define _MESSAGEVIEWER_PARTMETADATA_H_
20 #include "messageviewer_export.h"
22 #include <gpgme++/verificationresult.h>
23 #include <gpgme++/context.h>
25 #include <libkpgp/kpgp.h>
26 #include <QString>
27 #include <qdatetime.h>
29 namespace MessageViewer {
31 class MESSAGEVIEWER_EXPORT PartMetaData {
32 public:
33 PartMetaData()
34 : sigSummary( GpgME::Signature::None ),
35 isSigned( false ),
36 isGoodSignature( false ),
37 isEncrypted( false ),
38 isDecryptable( false ),
39 inProgress( false ),
40 technicalProblem( false ),
41 isEncapsulatedRfc822Message( false )
44 GpgME::Signature::Summary sigSummary;
45 QString signClass;
46 QString signer;
47 QStringList signerMailAddresses;
48 QByteArray keyId;
49 Kpgp::Validity keyTrust;
50 QString status; // to be used for unknown plug-ins
51 int status_code; // to be used for i18n of OpenPGP and S/MIME CryptPlugs
52 QString errorText;
53 QDateTime creationTime;
54 QString decryptionError;
55 QString auditLog;
56 GpgME::Error auditLogError;
57 bool isSigned : 1;
58 bool isGoodSignature : 1;
59 bool isEncrypted : 1;
60 bool isDecryptable : 1;
61 bool inProgress : 1;
62 bool technicalProblem : 1;
63 bool isEncapsulatedRfc822Message : 1;
68 #endif // _KMAIL_PARTMETADATA_H_