certmanager/lib
qgpgmekeygenerationjob.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_TQGPGMEKEYGENERATIONJOB_H__
00034 #define __KLEO_TQGPGMEKEYGENERATIONJOB_H__
00035
00036 #include <kleo/keygenerationjob.h>
00037
00038 #include "qgpgmejob.h"
00039 #include <tdepimmacros.h>
00040
00041 namespace GpgME {
00042 class Error;
00043 class Context;
00044 class Key;
00045 class Data;
00046 }
00047
00048 namespace QGpgME {
00049 class TQByteArrayDataProvider;
00050 }
00051
00052 namespace Kleo {
00053
00054 class KDE_EXPORT QGpgMEKeyGenerationJob : public KeyGenerationJob, private QGpgMEJob {
00055 Q_OBJECT
00056 TQGPGME_JOB
00057 public:
00058 QGpgMEKeyGenerationJob( GpgME::Context * context );
00059 ~QGpgMEKeyGenerationJob();
00060
00062 GpgME::Error start( const TQString & parameters );
00063
00064 private slots:
00065 void slotOperationDoneEvent( GpgME::Context * context, const GpgME::Error & error ) {
00066 QGpgMEJob::doSlotOperationDoneEvent( context, error );
00067 }
00068
00069 private:
00070 void doOperationDoneEvent( const GpgME::Error & e );
00071
00072 private:
00073 QGpgME::TQByteArrayDataProvider * mPubKeyDataProvider;
00074 GpgME::Data * mPubKey;
00075 };
00076
00077 }
00078
00079 #endif // __KLEO_TQGPGMEKEYGENERATIONJOB_H__
|