certmanager/lib
signencryptjob.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_SIGNENCRYPTJOB_H__
00034 #define __KLEO_SIGNENCRYPTJOB_H__
00035
00036 #include <gpgmepp/context.h>
00037
00038 #include "job.h"
00039 #include <tqcstring.h>
00040
00041 #include <vector>
00042 #include <utility>
00043
00044 namespace GpgME {
00045 class Error;
00046 class Key;
00047 class SigningResult;
00048 class EncryptionResult;
00049 }
00050
00051
00052 namespace Kleo {
00053
00067 class SignEncryptJob : public Job {
00068 Q_OBJECT
00069 TQ_OBJECT
00070 protected:
00071 SignEncryptJob( TQObject * parent, const char * name );
00072 public:
00073 ~SignEncryptJob();
00074
00085 virtual GpgME::Error start( const std::vector<GpgME::Key> & signers,
00086 const std::vector<GpgME::Key> & recipients,
00087 const TQByteArray & plainText,
00088 bool alwaysTrust=false ) = 0;
00089
00090 virtual std::pair<GpgME::SigningResult,GpgME::EncryptionResult>
00091 exec( const std::vector<GpgME::Key> & signers,
00092 const std::vector<GpgME::Key> & recipients,
00093 const TQByteArray & plainText,
00094 bool alwaysTrust, TQByteArray & cipherText ) = 0;
00095
00096 signals:
00097 void result( const GpgME::SigningResult & signingresult,
00098 const GpgME::EncryptionResult & encryptionresult,
00099 const TQByteArray & cipherText );
00100 };
00101
00102 }
00103
00104 #endif // __KLEO_SIGNENCRYPTJOB_H__
|