kmail

partmetadata.h

00001 /*  -*- c++ -*-
00002     partmetadata.h
00003 
00004     KMail, the KDE mail client.
00005     Copyright (c) 2002-2003 Karl-Heinz Zimmer <khz@kde.org>
00006     Copyright (c) 2003      Marc Mutz <mutz@kde.org>
00007 
00008     This program is free software; you can redistribute it and/or
00009     modify it under the terms of the GNU General Public License,
00010     version 2.0, as published by the Free Software Foundation.
00011     You should have received a copy of the GNU General Public License
00012     along with this program; if not, write to the Free Software Foundation,
00013     Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, US
00014 */
00015 
00016 
00017 #ifndef _KMAIL_PARTMETADATA_H_
00018 #define _KMAIL_PARTMETADATA_H_
00019 
00020 #include <gpgmepp/verificationresult.h>
00021 #include <gpgmepp/context.h>
00022 
00023 #include <kpgp.h>
00024 #include <qstring.h>
00025 #include <qcstring.h>
00026 #include <qdatetime.h>
00027 
00028 namespace KMail {
00029 
00030   class PartMetaData {
00031   public:
00032     PartMetaData()
00033       : sigSummary( GpgME::Signature::None ),
00034         isSigned( false ),
00035         isGoodSignature( false ),
00036         isEncrypted( false ),
00037         isDecryptable( false ),
00038         technicalProblem( false ),
00039         isEncapsulatedRfc822Message( false )
00040     {
00041     }
00042     GpgME::Signature::Summary sigSummary;
00043     QString signClass;
00044     QString signer;
00045     QStringList signerMailAddresses;
00046     QCString keyId;
00047     Kpgp::Validity keyTrust;
00048     QString status;  // to be used for unknown plug-ins
00049     int status_code; // to be used for i18n of OpenPGP and S/MIME CryptPlugs
00050     QString errorText;
00051     QDateTime creationTime;
00052     QString decryptionError;
00053     QString auditLog;
00054     GpgME::Error auditLogError;
00055     bool isSigned : 1;
00056     bool isGoodSignature : 1;
00057     bool isEncrypted : 1;
00058     bool isDecryptable : 1;
00059     bool technicalProblem : 1;
00060     bool isEncapsulatedRfc822Message : 1;
00061   };
00062 
00063 } // namespace KMail
00064 
00065 #endif // _KMAIL_PARTMETADATA_H_
00066 
KDE Home | KDE Accessibility Home | Description of Access Keys