Messagelib

partmetadata.h
1/* -*- c++ -*-
2 partmetadata.h
3
4 KMail, the KDE mail client.
5 SPDX-FileCopyrightText: 2002-2003 Karl -Heinz Zimmer <khz@kde.org>
6 SPDX-FileCopyrightText: 2003 Marc Mutz <mutz@kde.org>
7
8 SPDX-License-Identifier: GPL-2.0-or-later
9*/
10
11#pragma once
12
13#include <gpgme++/context.h>
14#include <gpgme++/verificationresult.h>
15
16#include <QDateTime>
17#include <QStringList>
18
19namespace MimeTreeParser
20{
21class PartMetaData
22{
23public:
24 PartMetaData()
25 : isSigned(false)
26 , isGoodSignature(false)
27 , isEncrypted(false)
28 , isDecryptable(false)
29 , inProgress(false)
30 , technicalProblem(false)
31 , isEncapsulatedRfc822Message(false)
32 , isCompliant(false)
33 {
34 }
35
36 GpgME::Signature::Summary sigSummary = GpgME::Signature::None;
37 QString signClass;
38 QString signer;
39 QStringList signerMailAddresses;
40 QByteArray keyId;
41 GpgME::Signature::Validity keyTrust = GpgME::Signature::Validity::Unknown;
42 QString status; // to be used for unknown plug-ins
43 int status_code = 0; // = GPGME_SIG_STAT_NONE; to be used for i18n of OpenPGP and S/MIME CryptPlugs
44 QString errorText;
45 QDateTime creationTime;
46 QString decryptionError;
47 QString auditLog;
48 QString compliance; // textual representation of compliance status; empty if compliance isn't enforced
49 GpgME::Error auditLogError;
50 bool isSigned : 1;
51 bool isGoodSignature : 1;
52 bool isEncrypted : 1;
53 bool isDecryptable : 1;
54 bool inProgress : 1;
55 bool technicalProblem : 1;
56 bool isEncapsulatedRfc822Message : 1;
57 bool isCompliant : 1; // corresponds to the isDeVS flag of signature or decryption result
58};
59}
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Tue Mar 26 2024 11:12:43 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.