33 #ifndef __KLEO_TQGPGMESIGNENCRYPTJOB_H__ 34 #define __KLEO_TQGPGMESIGNENCRYPTJOB_H__ 36 #include <kleo/signencryptjob.h> 38 #include "qgpgmejob.h" 40 #include <gpgmepp/signingresult.h> 41 #include <gpgmepp/encryptionresult.h> 43 #include <tqcstring.h> 47 #include <kdemacros.h> 56 class KDE_EXPORT QGpgMESignEncryptJob : public SignEncryptJob, private QGpgMEJob { 60 QGpgMESignEncryptJob( GpgME::Context * context ); 61 ~QGpgMESignEncryptJob(); 64 GpgME::Error start( const std::vector<GpgME::Key> & signers, 65 const std::vector<GpgME::Key> & recipients, 66 const TQByteArray & plainText, bool alwaysTrust ); 68 std::pair<GpgME::SigningResult,GpgME::EncryptionResult> 69 exec( const std::vector<GpgME::Key> & signers, 70 const std::vector<GpgME::Key> & recipients, 71 const TQByteArray & plainText, bool alwaysTrust, 72 TQByteArray & cipherText ); 75 void showErrorDialog( TQWidget * parent, const TQString & caption ) const; 78 void slotOperationDoneEvent( GpgME::Context * context, const GpgME::Error & e ) { 79 QGpgMEJob::doSlotOperationDoneEvent( context, e ); 83 void doOperationDoneEvent( const GpgME::Error & e ); 84 GpgME::Error setup( const std::vector<GpgME::Key> &, 85 const TQByteArray & ); 87 std::pair<GpgME::SigningResult,GpgME::EncryptionResult> mResult; 92 #endif // __KLEO_TQGPGMESIGNENCRYPTJOB_H__
|