libkleo
qgpgmeencryptjob.cpp
Go to the documentation of this file.
111 static QGpgMEEncryptJob::result_type encrypt_qba( Context * ctx, const std::vector<Key> & recipients, const QByteArray & plainText, bool alwaysTrust, bool outputIsBsse64Encoded ) {
116 return encrypt( ctx, 0, recipients, buffer, shared_ptr<QIODevice>(), alwaysTrust, outputIsBsse64Encoded );
119 Error QGpgMEEncryptJob::start( const std::vector<Key> & recipients, const QByteArray & plainText, bool alwaysTrust ) {
120 run( boost::bind( &encrypt_qba, _1, recipients, plainText, alwaysTrust, mOutputIsBase64Encoded ) );
124 void QGpgMEEncryptJob::start( const std::vector<Key> & recipients, const shared_ptr<QIODevice> & plainText, const shared_ptr<QIODevice> & cipherText, bool alwaysTrust ) {
134 EncryptionResult QGpgMEEncryptJob::exec( const std::vector<Key> & recipients, const QByteArray & plainText, bool alwaysTrust, QByteArray & cipherText ) {
135 const result_type r = encrypt_qba( context(), recipients, plainText, alwaysTrust, mOutputIsBase64Encoded );
void showErrorDialog(QWidget *parent, const QString &caption) const
Definition: qgpgmeencryptjob.cpp:145
GpgME::Context * context() const
Definition: threadedjobmixin.h:176
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:62
QGpgMEEncryptJob(GpgME::Context *context)
Definition: qgpgmeencryptjob.cpp:53
void lateInitialization()
Definition: threadedjobmixin.h:144
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:111
boost::tuple< GpgME::EncryptionResult, QByteArray, QString, GpgME::Error > result_type
Definition: threadedjobmixin.h:115
void run(const T_binder &func)
Definition: threadedjobmixin.h:151
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:66
GpgME::EncryptionResult exec(const std::vector< GpgME::Key > &recipients, const QByteArray &plainText, bool alwaysTrust, QByteArray &cipherText)
Definition: qgpgmeencryptjob.cpp:134
void resultHook(const result_type &r)
Definition: qgpgmeencryptjob.cpp:141
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-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:57:49 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:57:49 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.