File indexing completed on 2024-06-16 05:00:16
0001 /* -*- c++ -*- 0002 partmetadata.h 0003 0004 KMail, the KDE mail client. 0005 SPDX-FileCopyrightText: 2002-2003 Karl -Heinz Zimmer <khz@kde.org> 0006 SPDX-FileCopyrightText: 2003 Marc Mutz <mutz@kde.org> 0007 0008 SPDX-License-Identifier: GPL-2.0-or-later 0009 */ 0010 0011 #pragma once 0012 0013 #include <gpgme++/context.h> 0014 #include <gpgme++/verificationresult.h> 0015 0016 #include <QDateTime> 0017 #include <QStringList> 0018 0019 namespace MimeTreeParser 0020 { 0021 class PartMetaData 0022 { 0023 public: 0024 PartMetaData() 0025 : isSigned(false) 0026 , isGoodSignature(false) 0027 , isEncrypted(false) 0028 , isDecryptable(false) 0029 , inProgress(false) 0030 , technicalProblem(false) 0031 , isEncapsulatedRfc822Message(false) 0032 , isCompliant(false) 0033 { 0034 } 0035 0036 GpgME::Signature::Summary sigSummary = GpgME::Signature::None; 0037 QString signClass; 0038 QString signer; 0039 QStringList signerMailAddresses; 0040 QByteArray keyId; 0041 GpgME::Signature::Validity keyTrust = GpgME::Signature::Validity::Unknown; 0042 QString status; // to be used for unknown plug-ins 0043 int status_code = 0; // = GPGME_SIG_STAT_NONE; to be used for i18n of OpenPGP and S/MIME CryptPlugs 0044 QString errorText; 0045 QDateTime creationTime; 0046 QString decryptionError; 0047 QString auditLog; 0048 QString compliance; // textual representation of compliance status; empty if compliance isn't enforced 0049 GpgME::Error auditLogError; 0050 bool isSigned : 1; 0051 bool isGoodSignature : 1; 0052 bool isEncrypted : 1; 0053 bool isDecryptable : 1; 0054 bool inProgress : 1; 0055 bool technicalProblem : 1; 0056 bool isEncapsulatedRfc822Message : 1; 0057 bool isCompliant : 1; // corresponds to the isDeVS flag of signature or decryption result 0058 }; 0059 }