certmanager/lib
qgpgmedecryptverifyjob.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_TQGPGMEDECRYPTVERIFYJOB_H__
00034 #define __KLEO_TQGPGMEDECRYPTVERIFYJOB_H__
00035
00036 #include <kleo/decryptverifyjob.h>
00037
00038 #include "qgpgmejob.h"
00039
00040 #include <tqcstring.h>
00041 #include <kdepimmacros.h>
00042
00043 namespace GpgME {
00044 class Error;
00045 class Context;
00046 }
00047
00048 namespace Kleo {
00049
00050 class KDE_EXPORT QGpgMEDecryptVerifyJob : public DecryptVerifyJob, private QGpgMEJob {
00051 Q_OBJECT
00052 TQ_OBJECT TQGPGME_JOB
00053 public:
00054 QGpgMEDecryptVerifyJob( GpgME::Context * context );
00055 ~QGpgMEDecryptVerifyJob();
00056
00058 GpgME::Error start( const TQByteArray & cipherText );
00059
00061 std::pair<GpgME::DecryptionResult,GpgME::VerificationResult>
00062 exec( const TQByteArray & cipherText, TQByteArray & plainText );
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 & );
00072 };
00073
00074 }
00075
00076 #endif // __KLEO_TQGPGMEDECRYPTVERIFYJOB_H__
|