37 #include "qgpgmedownloadjob.h"
39 #include <qgpgme/eventloopinteractor.h>
40 #include <qgpgme/dataprovider.h>
42 #include <gpgmepp/context.h>
43 #include <gpgmepp/data.h>
45 #include <tqstringlist.h>
49 Kleo::QGpgMEDownloadJob::QGpgMEDownloadJob( GpgME::Context * context )
50 : DownloadJob( QGpgME::EventLoopInteractor::instance(), "Kleo::QGpgMEDownloadJob" ),
51 QGpgMEJob( this, context )
56 Kleo::QGpgMEDownloadJob::~QGpgMEDownloadJob() {
59 GpgME::Error Kleo::QGpgMEDownloadJob::start( const TQStringList & pats ) {
60 assert( !patterns() );
65 hookupContextToEventLoopInteractor();
67 const GpgME::Error err = mCtx->startPublicKeyExport( patterns(), *mOutData );
74 void Kleo::QGpgMEDownloadJob::doOperationDoneEvent( const GpgME::Error & error ) {
75 const TQByteArray data = mOutDataDataProvider->data();
77 emit result( error, data );
80 #include "qgpgmedownloadjob.moc"
|