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>
27 #include <qdatetime.h>
29 namespace MessageViewer
{
31 class MESSAGEVIEWER_EXPORT PartMetaData
{
34 : sigSummary( GpgME::Signature::None
),
36 isGoodSignature( false ),
38 isDecryptable( false ),
40 technicalProblem( false ),
41 isEncapsulatedRfc822Message( false )
44 GpgME::Signature::Summary sigSummary
;
47 QStringList signerMailAddresses
;
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
53 QDateTime creationTime
;
54 QString decryptionError
;
56 GpgME::Error auditLogError
;
58 bool isGoodSignature
: 1;
60 bool isDecryptable
: 1;
62 bool technicalProblem
: 1;
63 bool isEncapsulatedRfc822Message
: 1;
68 #endif // _KMAIL_PARTMETADATA_H_