certmanager/lib
qgpgmeverifydetachedjob.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_TQGPGMEVERIFYDETACHEDJOB_H__
00034 #define __KLEO_TQGPGMEVERIFYDETACHEDJOB_H__
00035
00036 #include <kleo/verifydetachedjob.h>
00037
00038 #include "qgpgmejob.h"
00039
00040 #include <tqcstring.h>
00041
00042 namespace GpgME {
00043 class Error;
00044 class Context;
00045 }
00046
00047 namespace Kleo {
00048
00049 class QGpgMEVerifyDetachedJob : public VerifyDetachedJob, private QGpgMEJob {
00050 Q_OBJECT
00051 TQ_OBJECT TQGPGME_JOB
00052 public:
00053 QGpgMEVerifyDetachedJob( GpgME::Context * context );
00054 ~QGpgMEVerifyDetachedJob();
00055
00057 GpgME::Error start( const TQByteArray & signature,
00058 const TQByteArray & signedData );
00059
00061 GpgME::VerificationResult exec( const TQByteArray & signature,
00062 const TQByteArray & signedData );
00063
00064 private slots:
00065 void slotOperationDoneEvent( GpgME::Context * context, const GpgME::Error & e ) {
00066 QGpgMEJob::doSlotOperationDoneEvent( context, e );
00067 }
00068
00069 private:
00070 void doOperationDoneEvent( const GpgME::Error & e );
00071 void setup( const TQByteArray &, const TQByteArray & );
00072 };
00073
00074 }
00075
00076 #endif // __KLEO_TQGPGMEVERIFYDETACHEDJOB_H__
|