33 #ifndef __KLEO_TQGPGMESIGNJOB_H__ 34 #define __KLEO_TQGPGMESIGNJOB_H__ 36 #include <kleo/signjob.h> 38 #include "qgpgmejob.h" 40 #include <gpgmepp/signingresult.h> 42 #include <tqcstring.h> 52 class QGpgMESignJob : public SignJob, private QGpgMEJob { 56 QGpgMESignJob( GpgME::Context * context ); 60 GpgME::Error start( const std::vector<GpgME::Key> & signers, 61 const TQByteArray & plainText, 62 GpgME::Context::SignatureMode mode ); 65 GpgME::SigningResult exec( const std::vector<GpgME::Key> & signers, 66 const TQByteArray & plainText, 67 GpgME::Context::SignatureMode mode, 68 TQByteArray & signature ); 71 void showErrorDialog( TQWidget * parent, const TQString & caption ) const; 74 void slotOperationDoneEvent( GpgME::Context * context, const GpgME::Error & e ) { 75 QGpgMEJob::doSlotOperationDoneEvent( context, e ); 79 void doOperationDoneEvent( const GpgME::Error & e ); 80 GpgME::Error setup( const std::vector<GpgME::Key> &, const TQByteArray & ); 83 GpgME::SigningResult mResult; 88 #endif // __KLEO_TQGPGMESIGNJOB_H__
|