multideletejob.h
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 #ifndef __KLEO_MULTIDELETEJOB_H__
00034 #define __KLEO_MULTIDELETEJOB_H__
00035
00036 #include <kleo/job.h>
00037 #include <kleo/cryptobackend.h>
00038
00039 #include <qguardedptr.h>
00040
00041 #include <vector>
00042
00043 namespace GpgME {
00044 class Error;
00045 class Key;
00046 }
00047
00048 namespace Kleo {
00049 class DeleteJob;
00050 }
00051
00052 namespace Kleo {
00053
00066 class MultiDeleteJob : public Job {
00067 Q_OBJECT
00068 public:
00069 MultiDeleteJob( const CryptoBackend::Protocol * protocol );
00070 ~MultiDeleteJob();
00071
00077 GpgME::Error start( const std::vector<GpgME::Key> & keys, bool allowSecretKeyDeletion=false );
00078
00079 signals:
00080 void result( const GpgME::Error & result, const GpgME::Key & errorKey );
00081
00082 private slots:
00083 void slotResult( const GpgME::Error & );
00085 void slotCancel();
00086
00087 private:
00088 GpgME::Error startAJob();
00089
00090 private:
00091 const CryptoBackend::Protocol * mProtocol;
00092 QGuardedPtr<DeleteJob> mJob;
00093 std::vector<GpgME::Key> mKeys;
00094 std::vector<GpgME::Key>::const_iterator mIt;
00095 bool mAllowSecretKeyDeletion;
00096 };
00097
00098 }
00099
00100 #endif // __KLEO_MULTIDELETEJOB_H__
This file is part of the documentation for certmanager Library Version 3.3.2.