00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
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 <tqstring.h>
00025 #include <tqcstring.h>
00026 #include <tqdatetime.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 inProgress( false ),
00039 technicalProblem( false ),
00040 isEncapsulatedRfc822Message( false )
00041 {
00042 }
00043 GpgME::Signature::Summary sigSummary;
00044 TQString signClass;
00045 TQString signer;
00046 TQStringList signerMailAddresses;
00047 TQCString keyId;
00048 Kpgp::Validity keyTrust;
00049 TQString status;
00050 int status_code;
00051 TQString errorText;
00052 TQDateTime creationTime;
00053 TQString decryptionError;
00054 TQString auditLog;
00055 GpgME::Error auditLogError;
00056 bool isSigned : 1;
00057 bool isGoodSignature : 1;
00058 bool isEncrypted : 1;
00059 bool isDecryptable : 1;
00060 bool inProgress : 1;
00061 bool technicalProblem : 1;
00062 bool isEncapsulatedRfc822Message : 1;
00063 };
00064
00065 }
00066
00067 #endif // _KMAIL_PARTMETADATA_H_
00068