signencryptjob.h
00001
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 <qcstring.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
protected:
00070
SignEncryptJob(
QObject * parent,
const char * name );
00071
public:
00072 ~
SignEncryptJob();
00073
00084
virtual GpgME::Error
start(
const std::vector<GpgME::Key> & signers,
00085
const std::vector<GpgME::Key> & recipients,
00086
const QByteArray & plainText,
00087
bool alwaysTrust=
false ) = 0;
00088
00089
virtual std::pair<GpgME::SigningResult,GpgME::EncryptionResult>
00090 exec(
const std::vector<GpgME::Key> & signers,
00091
const std::vector<GpgME::Key> & recipients,
00092
const QByteArray & plainText,
00093
bool alwaysTrust,
QByteArray & cipherText ) = 0;
00094
00095 signals:
00096
void result(
const GpgME::SigningResult & signingresult,
00097
const GpgME::EncryptionResult & encryptionresult,
00098
const QByteArray & cipherText );
00099 };
00100
00101 }
00102
00103
#endif // __KLEO_SIGNENCRYPTJOB_H__
This file is part of the documentation for certmanager/lib Library Version 3.3.0.