libkleo
encryptjob.h
Go to the documentation of this file.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_ENCRYPTJOB_H__
00034 #define __KLEO_ENCRYPTJOB_H__
00035
00036 #include "job.h"
00037
00038 #include <boost/shared_ptr.hpp>
00039
00040 #include <vector>
00041
00042 class QByteArray;
00043 class QIODevice;
00044
00045 namespace GpgME {
00046 class Error;
00047 class Key;
00048 class EncryptionResult;
00049 }
00050
00051
00052 namespace Kleo {
00053
00067 class KLEO_EXPORT EncryptJob : public Job {
00068 Q_OBJECT
00069 protected:
00070 explicit EncryptJob( QObject * parent );
00071 public:
00072 ~EncryptJob();
00073
00084 virtual KDE_DEPRECATED GpgME::Error start( const std::vector<GpgME::Key> & recipients,
00085 const QByteArray & plainText, bool alwaysTrust=false ) = 0;
00086
00096 virtual void start( const std::vector<GpgME::Key> & recipients,
00097 const boost::shared_ptr<QIODevice> & plainText,
00098 const boost::shared_ptr<QIODevice> & cipherText=boost::shared_ptr<QIODevice>(),
00099 bool alwaysTrust=false ) = 0;
00100
00101 virtual KDE_DEPRECATED GpgME::EncryptionResult exec( const std::vector<GpgME::Key> & recipients,
00102 const QByteArray & plainText,
00103 bool alwaysTrust, QByteArray & cipherText ) = 0;
00104
00109 virtual void setOutputIsBase64Encoded( bool ) = 0;
00110
00111 Q_SIGNALS:
00112 void result( const GpgME::EncryptionResult & result, const QByteArray & cipherText, const QString & auditLogAsHtml=QString() );
00113 };
00114
00115 }
00116
00117 #endif // __KLEO_ENCRYPTJOB_H__