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 <tdepimmacros.h>
00040 #include <tqguardedptr.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
00070 public:
00071 MultiDeleteJob( const CryptoBackend::Protocol * protocol );
00072 ~MultiDeleteJob();
00073
00079 GpgME::Error start( const std::vector<GpgME::Key> & keys, bool allowSecretKeyDeletion=false );
00080
00081 signals:
00082 void result( const GpgME::Error & result, const GpgME::Key & errorKey );
00083
00084 private slots:
00085 void slotResult( const GpgME::Error & );
00087 void slotCancel();
00088
00089 private:
00090 GpgME::Error startAJob();
00091
00092 private:
00093 const CryptoBackend::Protocol * mProtocol;
00094 TQGuardedPtr<DeleteJob> mJob;
00095 std::vector<GpgME::Key> mKeys;
00096 std::vector<GpgME::Key>::const_iterator mIt;
00097 bool mAllowSecretKeyDeletion;
00098 };
00099
00100 }
00101
00102 #endif // __KLEO_MULTIDELETEJOB_H__
|