libkleo
qgpgmeencryptjob.cpp
Go to the documentation of this file.
113 static QGpgMEEncryptJob::result_type encrypt_qba( Context * ctx, const std::vector<Key> & recipients, const QByteArray & plainText, bool alwaysTrust, bool outputIsBsse64Encoded ) {
118 return encrypt( ctx, 0, recipients, buffer, shared_ptr<QIODevice>(), alwaysTrust, outputIsBsse64Encoded );
121 Error QGpgMEEncryptJob::start( const std::vector<Key> & recipients, const QByteArray & plainText, bool alwaysTrust ) {
122 run( boost::bind( &encrypt_qba, _1, recipients, plainText, alwaysTrust, mOutputIsBase64Encoded ) );
126 void QGpgMEEncryptJob::start( const std::vector<Key> & recipients, const shared_ptr<QIODevice> & plainText, const shared_ptr<QIODevice> & cipherText, bool alwaysTrust ) {
136 EncryptionResult QGpgMEEncryptJob::exec( const std::vector<Key> & recipients, const QByteArray & plainText, bool alwaysTrust, QByteArray & cipherText ) {
137 const result_type r = encrypt_qba( context(), recipients, plainText, alwaysTrust, mOutputIsBase64Encoded );
void showErrorDialog(QWidget *parent, const QString &caption) const
Definition: qgpgmeencryptjob.cpp:147
GpgME::Context * context() const
Definition: threadedjobmixin.h:178
static void error(QWidget *parent, const GpgME::SigningResult &result, const Kleo::Job *job, const QString &caption, KMessageBox::Options options=KMessageBox::Notify)
void setOutputIsBase64Encoded(bool on)
Definition: qgpgmeencryptjob.cpp:64
QGpgMEEncryptJob(GpgME::Context *context)
Definition: qgpgmeencryptjob.cpp:55
void lateInitialization()
Definition: threadedjobmixin.h:146
QString audit_log_as_html(GpgME::Context *ctx, GpgME::Error &err)
static QGpgMEEncryptJob::result_type encrypt_qba(Context *ctx, const std::vector< Key > &recipients, const QByteArray &plainText, bool alwaysTrust, bool outputIsBsse64Encoded)
Definition: qgpgmeencryptjob.cpp:113
boost::tuple< GpgME::EncryptionResult, QByteArray, QString, GpgME::Error > result_type
Definition: threadedjobmixin.h:117
void run(const T_binder &func)
Definition: threadedjobmixin.h:153
static QGpgMEEncryptJob::result_type encrypt(Context *ctx, QThread *thread, const std::vector< Key > &recipients, const weak_ptr< QIODevice > &plainText_, const weak_ptr< QIODevice > &cipherText_, bool alwaysTrust, bool outputIsBsse64Encoded)
Definition: qgpgmeencryptjob.cpp:68
GpgME::EncryptionResult exec(const std::vector< GpgME::Key > &recipients, const QByteArray &plainText, bool alwaysTrust, QByteArray &cipherText)
Definition: qgpgmeencryptjob.cpp:136
void resultHook(const result_type &r)
Definition: qgpgmeencryptjob.cpp:143
GpgME::Error start(const std::vector< GpgME::Key > &recipients, const QByteArray &plainText, bool alwaysTrust)
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:33:38 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:33:38 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.