33 #ifndef __KLEO_SIGNENCRYPTJOB_H__
34 #define __KLEO_SIGNENCRYPTJOB_H__
36 #include <gpgmepp/context.h>
39 #include <tqcstring.h>
48 class EncryptionResult;
85 virtual GpgME::Error start( const std::vector<GpgME::Key> & signers,
86 const std::vector<GpgME::Key> & recipients,
87 const TQByteArray & plainText,
88 bool alwaysTrust= false ) = 0;
90 virtual std::pair<GpgME::SigningResult,GpgME::EncryptionResult>
91 exec( const std::vector<GpgME::Key> & signers,
92 const std::vector<GpgME::Key> & recipients,
93 const TQByteArray & plainText,
94 bool alwaysTrust, TQByteArray & cipherText ) = 0;
97 void result( const GpgME::SigningResult & signingresult,
98 const GpgME::EncryptionResult & encryptionresult,
99 const TQByteArray & cipherText );
An abstract base class for asynchronous crypto operations.
An abstract base class for asynchronous combined signing and encrypting.
virtual GpgME::Error start(const std::vector< GpgME::Key > &signers, const std::vector< GpgME::Key > &recipients, const TQByteArray &plainText, bool alwaysTrust=false)=0 Starts the combined signing and encrypting operation.
|