33 #ifndef __KLEO_TQGPGMEENCRYPTJOB_H__
34 #define __KLEO_TQGPGMEENCRYPTJOB_H__
36 #include <kleo/encryptjob.h>
38 #include "qgpgmejob.h"
40 #include <gpgmepp/encryptionresult.h>
42 #include <tqcstring.h>
52 class QGpgMEEncryptJob : public EncryptJob, private QGpgMEJob {
56 QGpgMEEncryptJob( GpgME::Context * context );
60 GpgME::Error start( const std::vector<GpgME::Key> & recipients,
61 const TQByteArray & plainText, bool alwaysTrust );
64 GpgME::EncryptionResult exec( const std::vector<GpgME::Key> & recipients,
65 const TQByteArray & plainText, bool alwaysTrust,
66 TQByteArray & cipherText );
69 void showErrorDialog( TQWidget * parent, const TQString & caption ) const;
72 void slotOperationDoneEvent( GpgME::Context * context, const GpgME::Error & e ) {
78 void doOperationDoneEvent( const GpgME::Error & e );
79 void setup( const TQByteArray & );
82 GpgME::EncryptionResult mResult;
void doSlotOperationDoneEvent(GpgME::Context *context, const GpgME::Error &e)
|