encryptionresult.h
00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021 #ifndef __GPGMEPP_ENCRYPTIONRESULT_H__
00022 #define __GPGMEPP_ENCRYPTIONRESULT_H__
00023
00024 #include <gpgmepp/gpgmefw.h>
00025 #include <gpgmepp/result.h>
00026
00027 #include <vector>
00028
00029 namespace GpgME {
00030
00031 class Error;
00032 class InvalidRecipient;
00033
00034 class EncryptionResult : public Result {
00035 public:
00036 EncryptionResult( gpgme_ctx_t ctx=0, int error=0 );
00037 explicit EncryptionResult( const Error & err );
00038 EncryptionResult( const EncryptionResult & other );
00039 ~EncryptionResult();
00040
00041 const EncryptionResult & operator=( const EncryptionResult & other );
00042
00043 bool isNull() const;
00044
00045 unsigned int numInvalidRecipients() const;
00046
00047 InvalidRecipient invalidEncryptionKey( unsigned int index ) const;
00048 std::vector<InvalidRecipient> invalidEncryptionKeys() const;
00049
00050 class Private;
00051 private:
00052 Private * d;
00053 };
00054
00055 class InvalidRecipient {
00056 friend class EncryptionResult;
00057 InvalidRecipient( EncryptionResult::Private * parent, unsigned int index );
00058 public:
00059 InvalidRecipient();
00060 InvalidRecipient( const InvalidRecipient & other );
00061 ~InvalidRecipient();
00062
00063 const InvalidRecipient & operator=( const InvalidRecipient & other );
00064
00065 bool isNull() const;
00066
00067 const char * fingerprint() const;
00068 Error reason() const;
00069
00070 private:
00071 EncryptionResult::Private * d;
00072 unsigned int idx;
00073 };
00074
00075 }
00076
00077 #endif
This file is part of the documentation for libkdenetwork Library Version 3.3.0.