qgpgmedeletejob.cpp
00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033 #ifdef HAVE_CONFIG_H
00034 #include <config.h>
00035 #endif
00036
00037 #include "qgpgmedeletejob.h"
00038
00039 #include <qgpgme/eventloopinteractor.h>
00040
00041 #include <gpgmepp/context.h>
00042
00043 #include <assert.h>
00044
00045 Kleo::QGpgMEDeleteJob::QGpgMEDeleteJob( GpgME::Context * context )
00046 : DeleteJob( QGpgME::EventLoopInteractor::instance(), "Kleo::QGpgMEDeleteJob" ),
00047 QGpgMEJob( this, context )
00048 {
00049 assert( context );
00050 }
00051
00052 Kleo::QGpgMEDeleteJob::~QGpgMEDeleteJob() {
00053 }
00054
00055 GpgME::Error Kleo::QGpgMEDeleteJob::start( const GpgME::Key & key, bool allowSecretKeyDeletion ) {
00056
00057 hookupContextToEventLoopInteractor();
00058
00059 const GpgME::Error err = mCtx->startKeyDeletion( key, allowSecretKeyDeletion );
00060
00061 if ( err )
00062 deleteLater();
00063 return err;
00064 }
00065
00066 void Kleo::QGpgMEDeleteJob::doOperationDoneEvent( const GpgME::Error & error ) {
00067 emit result( error );
00068 }
00069
00070 #include "qgpgmedeletejob.moc"
This file is part of the documentation for certmanager/lib Library Version 3.3.0.