kleopatra
newsignencryptemailcontroller.cpp
Go to the documentation of this file.
156 static bool has_perfect_match( bool sign, bool encrypt, Protocol proto, const std::vector<Sender> & senders, const std::vector<Recipient> & recipients ) {
167 static bool has_partial_match( bool sign, bool encrypt, Protocol proto, const std::vector<Sender> & senders, const std::vector<Recipient> & recipients ) {
178 static bool has_perfect_overall_match( bool sign, bool encrypt, const std::vector<Sender> & senders, const std::vector<Recipient> & recipients, Protocol presetProtocol ) {
179 return presetProtocol == OpenPGP && has_perfect_match( sign, encrypt, OpenPGP, senders, recipients )
181 || has_perfect_match( sign, encrypt, OpenPGP, senders, recipients ) && !has_partial_match( sign, encrypt, CMS, senders, recipients )
182 || has_perfect_match( sign, encrypt, CMS, senders, recipients ) && !has_partial_match( sign, encrypt, OpenPGP, senders, recipients ) ;
185 static bool has_conflict( bool sign, bool encrypt, const std::vector<Sender> & senders, const std::vector<Recipient> & recipients, Protocol presetProtocol ) {
265 NewSignEncryptEMailController::NewSignEncryptEMailController( const shared_ptr<ExecutionContext> & xc, QObject * p )
347 void NewSignEncryptEMailController::startResolveCertificates( const std::vector<Mailbox> & r, const std::vector<Mailbox> & s ) {
355 const bool conflict = quickMode && has_conflict( d->sign, d->encrypt, senders, recipients, d->presetProtocol );
387 void NewSignEncryptEMailController::startEncryption( const std::vector< shared_ptr<Input> > & inputs, const std::vector< shared_ptr<Output> > & outputs ) {
432 void NewSignEncryptEMailController::startSigning( const std::vector< shared_ptr<Input> > & inputs, const std::vector< shared_ptr<Output> > & outputs ) {
499 shared_ptr<Task> NewSignEncryptEMailController::Private::takeRunnable( GpgME::Protocol proto ) {
511 void NewSignEncryptEMailController::doTaskDone( const Task * task, const shared_ptr<const Task::Result> & result ) {
void setProtocol(GpgME::Protocol proto)
Definition: newsignencryptemailcontroller.cpp:283
GpgME::Protocol protocol() const
Definition: newsignencryptemailcontroller.cpp:288
void startResolveCertificates(const std::vector< KMime::Types::Mailbox > &recipients, const std::vector< KMime::Types::Mailbox > &senders)
Definition: newsignencryptemailcontroller.cpp:347
Definition: task.h:57
void startEncryption(const std::vector< boost::shared_ptr< Kleo::Input > > &inputs, const std::vector< boost::shared_ptr< Kleo::Output > > &outputs)
Definition: newsignencryptemailcontroller.cpp:387
void setSigning(bool sign)
Definition: newsignencryptemailcontroller.cpp:303
const KMime::Types::Mailbox & mailbox() const
Definition: sender.cpp:138
bool isEncrypting() const
Definition: newsignencryptemailcontroller.cpp:317
bool isResolvingInProgress() const
Definition: newsignencryptemailcontroller.cpp:325
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:193
const std::vector< GpgME::Key > & encryptToSelfCertificateCandidates(GpgME::Protocol proto) const
Definition: sender.cpp:157
Definition: classify.h:49
Definition: signemailtask.h:60
static bool has_perfect_match(bool sign, bool encrypt, Protocol proto, const std::vector< Sender > &senders, const std::vector< Recipient > &recipients)
Definition: newsignencryptemailcontroller.cpp:156
Definition: output.h:73
Definition: classify.h:48
void setDetachedSignature(bool detached)
Definition: newsignencryptemailcontroller.cpp:321
void setEncrypting(bool encrypt)
Definition: newsignencryptemailcontroller.cpp:312
static std::vector< Recipient > mailbox2recipient(const std::vector< Mailbox > &mbs)
Definition: newsignencryptemailcontroller.cpp:201
~NewSignEncryptEMailController()
Definition: newsignencryptemailcontroller.cpp:277
bool isSigning() const
Definition: newsignencryptemailcontroller.cpp:308
void setSubject(const QString &subject)
Definition: newsignencryptemailcontroller.cpp:279
bool invokeMethod(QObject *obj, const char *member, Qt::ConnectionType type, QGenericReturnArgument ret, QGenericArgument val0, QGenericArgument val1, QGenericArgument val2, QGenericArgument val3, QGenericArgument val4, QGenericArgument val5, QGenericArgument val6, QGenericArgument val7, QGenericArgument val8, QGenericArgument val9)
static void save_dialog_quick_mode(bool on)
Definition: newsignencryptemailcontroller.cpp:340
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:178
void cancel()
Definition: newsignencryptemailcontroller.cpp:545
Definition: taskcollection.h:51
const std::vector< GpgME::Key > & signingCertificateCandidates(GpgME::Protocol proto) const
Definition: sender.cpp:142
const char * protocolAsString() const
Definition: newsignencryptemailcontroller.cpp:293
static bool has_partial_match(bool sign, bool encrypt, Protocol proto, const std::vector< Sender > &senders, const std::vector< Recipient > &recipients)
Definition: newsignencryptemailcontroller.cpp:167
virtual GpgME::Protocol protocol() const =0
Definition: controller.h:52
Definition: sender.h:58
bool areCertificatesResolved() const
Definition: newsignencryptemailcontroller.cpp:329
Definition: input.h:51
static bool is_dialog_quick_mode(bool sign, bool encrypt)
Definition: newsignencryptemailcontroller.cpp:333
NewSignEncryptEMailController(QObject *parent=0)
Definition: newsignencryptemailcontroller.cpp:271
Definition: recipient.h:58
static bool has_conflict(bool sign, bool encrypt, const std::vector< Sender > &senders, const std::vector< Recipient > &recipients, Protocol presetProtocol)
Definition: newsignencryptemailcontroller.cpp:185
singleShot
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:33:11 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:11 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.