certmanager/lib
multideletejob.h00001
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 <kdepimmacros.h>
00040 #include <qguardedptr.h>
00041
00042 #include <vector>
00043
00044 namespace GpgME {
00045 class Error;
00046 class Key;
00047 }
00048
00049 namespace Kleo {
00050 class DeleteJob;
00051 }
00052
00053 namespace Kleo {
00054
00067 class KDE_EXPORT MultiDeleteJob : public Job {
00068 Q_OBJECT
00069 public:
00070 MultiDeleteJob( const CryptoBackend::Protocol * protocol );
00071 ~MultiDeleteJob();
00072
00078 GpgME::Error start( const std::vector<GpgME::Key> & keys, bool allowSecretKeyDeletion=false );
00079
00080 signals:
00081 void result( const GpgME::Error & result, const GpgME::Key & errorKey );
00082
00083 private slots:
00084 void slotResult( const GpgME::Error & );
00086 void slotCancel();
00087
00088 private:
00089 GpgME::Error startAJob();
00090
00091 private:
00092 const CryptoBackend::Protocol * mProtocol;
00093 QGuardedPtr<DeleteJob> mJob;
00094 std::vector<GpgME::Key> mKeys;
00095 std::vector<GpgME::Key>::const_iterator mIt;
00096 bool mAllowSecretKeyDeletion;
00097 };
00098
00099 }
00100
00101 #endif // __KLEO_MULTIDELETEJOB_H__
|