kleopatra
newsignencryptemailcontroller.cpp
Go to the documentation of this file.
154 static bool has_perfect_match( bool sign, bool encrypt, Protocol proto, const std::vector<Sender> & senders, const std::vector<Recipient> & recipients ) {
165 static bool has_partial_match( bool sign, bool encrypt, Protocol proto, const std::vector<Sender> & senders, const std::vector<Recipient> & recipients ) {
176 static bool has_perfect_overall_match( bool sign, bool encrypt, const std::vector<Sender> & senders, const std::vector<Recipient> & recipients, Protocol presetProtocol ) {
177 return presetProtocol == OpenPGP && has_perfect_match( sign, encrypt, OpenPGP, senders, recipients )
179 || has_perfect_match( sign, encrypt, OpenPGP, senders, recipients ) && !has_partial_match( sign, encrypt, CMS, senders, recipients )
180 || has_perfect_match( sign, encrypt, CMS, senders, recipients ) && !has_partial_match( sign, encrypt, OpenPGP, senders, recipients ) ;
183 static bool has_conflict( bool sign, bool encrypt, const std::vector<Sender> & senders, const std::vector<Recipient> & recipients, Protocol presetProtocol ) {
263 NewSignEncryptEMailController::NewSignEncryptEMailController( const shared_ptr<ExecutionContext> & xc, QObject * p )
345 void NewSignEncryptEMailController::startResolveCertificates( const std::vector<Mailbox> & r, const std::vector<Mailbox> & s ) {
353 const bool conflict = quickMode && has_conflict( d->sign, d->encrypt, senders, recipients, d->presetProtocol );
385 void NewSignEncryptEMailController::startEncryption( const std::vector< shared_ptr<Input> > & inputs, const std::vector< shared_ptr<Output> > & outputs ) {
430 void NewSignEncryptEMailController::startSigning( const std::vector< shared_ptr<Input> > & inputs, const std::vector< shared_ptr<Output> > & outputs ) {
497 shared_ptr<Task> NewSignEncryptEMailController::Private::takeRunnable( GpgME::Protocol proto ) {
509 void NewSignEncryptEMailController::doTaskDone( const Task * task, const shared_ptr<const Task::Result> & result ) {
void setProtocol(GpgME::Protocol proto)
Definition: newsignencryptemailcontroller.cpp:281
GpgME::Protocol protocol() const
Definition: newsignencryptemailcontroller.cpp:286
void startResolveCertificates(const std::vector< KMime::Types::Mailbox > &recipients, const std::vector< KMime::Types::Mailbox > &senders)
Definition: newsignencryptemailcontroller.cpp:345
Definition: task.h:55
void startEncryption(const std::vector< boost::shared_ptr< Kleo::Input > > &inputs, const std::vector< boost::shared_ptr< Kleo::Output > > &outputs)
Definition: newsignencryptemailcontroller.cpp:385
void setSigning(bool sign)
Definition: newsignencryptemailcontroller.cpp:301
const KMime::Types::Mailbox & mailbox() const
Definition: sender.cpp:138
bool isEncrypting() const
Definition: newsignencryptemailcontroller.cpp:315
bool isResolvingInProgress() const
Definition: newsignencryptemailcontroller.cpp:323
const std::vector< GpgME::Key > & encryptionCertificateCandidates(GpgME::Protocol proto) const
Definition: recipient.cpp:129
const KMime::Types::Mailbox & mailbox() const
Definition: recipient.cpp:125
static std::vector< Sender > mailbox2sender(const std::vector< Mailbox > &mbs)
Definition: newsignencryptemailcontroller.cpp:191
const std::vector< GpgME::Key > & encryptToSelfCertificateCandidates(GpgME::Protocol proto) const
Definition: sender.cpp:157
Definition: classify.h:49
Definition: signemailtask.h:58
static bool has_perfect_match(bool sign, bool encrypt, Protocol proto, const std::vector< Sender > &senders, const std::vector< Recipient > &recipients)
Definition: newsignencryptemailcontroller.cpp:154
Definition: output.h:71
void setQuickEncryptEMail(bool v)
Set Quick Encrypt EMail.
Definition: emailoperationspreferences.h:39
Definition: classify.h:48
void setDetachedSignature(bool detached)
Definition: newsignencryptemailcontroller.cpp:319
void setEncrypting(bool encrypt)
Definition: newsignencryptemailcontroller.cpp:310
static std::vector< Recipient > mailbox2recipient(const std::vector< Mailbox > &mbs)
Definition: newsignencryptemailcontroller.cpp:199
~NewSignEncryptEMailController()
Definition: newsignencryptemailcontroller.cpp:275
bool isSigning() const
Definition: newsignencryptemailcontroller.cpp:306
void setSubject(const QString &subject)
Definition: newsignencryptemailcontroller.cpp:277
static void save_dialog_quick_mode(bool on)
Definition: newsignencryptemailcontroller.cpp:338
static bool has_perfect_overall_match(bool sign, bool encrypt, const std::vector< Sender > &senders, const std::vector< Recipient > &recipients, Protocol presetProtocol)
Definition: newsignencryptemailcontroller.cpp:176
void cancel()
Definition: newsignencryptemailcontroller.cpp:543
Definition: taskcollection.h:49
const std::vector< GpgME::Key > & signingCertificateCandidates(GpgME::Protocol proto) const
Definition: sender.cpp:142
const char * protocolAsString() const
Definition: newsignencryptemailcontroller.cpp:291
static bool has_partial_match(bool sign, bool encrypt, Protocol proto, const std::vector< Sender > &senders, const std::vector< Recipient > &recipients)
Definition: newsignencryptemailcontroller.cpp:165
virtual GpgME::Protocol protocol() const =0
Definition: controller.h:50
Definition: sender.h:56
bool areCertificatesResolved() const
Definition: newsignencryptemailcontroller.cpp:327
Definition: input.h:49
static bool is_dialog_quick_mode(bool sign, bool encrypt)
Definition: newsignencryptemailcontroller.cpp:331
NewSignEncryptEMailController(QObject *parent=0)
Definition: newsignencryptemailcontroller.cpp:269
Definition: recipient.h:56
static bool has_conflict(bool sign, bool encrypt, const std::vector< Sender > &senders, const std::vector< Recipient > &recipients, Protocol presetProtocol)
Definition: newsignencryptemailcontroller.cpp:183
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:56:41 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:56:41 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.