37 #include "qgpgmeexportjob.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::QGpgMEExportJob::QGpgMEExportJob( GpgME::Context * context )
50 : ExportJob( QGpgME::EventLoopInteractor::instance(), "Kleo::QGpgMEExportJob" ),
51 QGpgMEJob( this, context )
56 Kleo::QGpgMEExportJob::~QGpgMEExportJob() {
59 GpgME::Error Kleo::QGpgMEExportJob::start( const TQStringList & pats ) {
60 assert( !patterns() );
65 hookupContextToEventLoopInteractor();
67 const GpgME::Error err = mCtx->startPublicKeyExport( patterns(), *mOutData );
74 void Kleo::QGpgMEExportJob::doOperationDoneEvent( const GpgME::Error & error ) {
75 const TQByteArray data = mOutDataDataProvider->data();
77 emit result( error, data );
80 #include "qgpgmeexportjob.moc"
|