Messagelib

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

KDE's Doxygen guidelines are available online.