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::VerificationResult verificationResult;
37 QByteArray keyId;
38 QString status; // to be used for unknown plug-ins
39 int status_code = 0; // = GPGME_SIG_STAT_NONE; to be used for i18n of OpenPGP and S/MIME CryptPlugs
40 QString errorText;
41 QDateTime creationTime;
42 QString decryptionError;
43 QString auditLog;
44 QString compliance; // textual representation of compliance status; empty if compliance isn't enforced
45 GpgME::Error auditLogError;
46 bool isSigned : 1;
47 bool isGoodSignature : 1;
48 bool isEncrypted : 1;
49 bool isDecryptable : 1;
50 bool inProgress : 1;
51 bool technicalProblem : 1;
52 bool isEncapsulatedRfc822Message : 1;
53 bool isCompliant : 1; // corresponds to the isDeVS flag of signature or decryption result
54};
55}
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:07:25 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.