kleopatra
signencryptfilescontroller.cpp
Go to the documentation of this file.
162 SignEncryptFilesController::SignEncryptFilesController( QObject * p )
168 SignEncryptFilesController::SignEncryptFilesController( const shared_ptr<const ExecutionContext> & ctx, QObject * p )
299 createSignEncryptTaskForFileInfo( const QFileInfo & fi, bool pgp, bool sign, bool encrypt, bool ascii, bool removeUnencrypted, const std::vector<Key> & recipients, const std::vector<Key> & signers ) {
326 createArchiveSignEncryptTaskForFiles( const QStringList & files, const QString & outputFileBaseName, const shared_ptr<ArchiveDefinition> & ad, bool pgp, bool sign, bool encrypt, bool ascii, bool removeUnencrypted, const std::vector<Key> & recipients, const std::vector<Key> & signers ) {
356 createSignEncryptTasksForFileInfo( const QFileInfo & fi, bool sign, bool encrypt, bool ascii, bool removeUnencrypted, const std::vector<Key> & pgpRecipients, const std::vector<Key> & pgpSigners, const std::vector<Key> & cmsRecipients, const std::vector<Key> & cmsSigners ) {
361 const bool pgp = ( shallPgpEncrypt && ( !sign || shallPgpSign ) ) || ( !encrypt && shallPgpSign );
365 const bool cms = ( shallCmsEncrypt && ( !sign || shallCmsSign ) ) || ( !encrypt && shallCmsSign );
370 result.push_back( createSignEncryptTaskForFileInfo( fi, true, sign, encrypt, ascii, removeUnencrypted, pgpRecipients, pgpSigners ) );
372 result.push_back( createSignEncryptTaskForFileInfo( fi, false, sign, encrypt, ascii, removeUnencrypted, cmsRecipients, cmsSigners ) );
378 createArchiveSignEncryptTasksForFiles( const QStringList & files, const QString & pgpOutputFileBaseName, const QString & cmsOutputFileBaseName, const shared_ptr<ArchiveDefinition> & ad, bool sign, bool encrypt, bool ascii, bool removeUnencrypted, const std::vector<Key> & pgpRecipients, const std::vector<Key> & pgpSigners, const std::vector<Key> & cmsRecipients, const std::vector<Key> & cmsSigners ) {
383 const bool pgp = ( shallPgpEncrypt && ( !sign || shallPgpSign )) || ( !encrypt && shallPgpSign );
387 const bool cms = ( shallCmsEncrypt && ( !sign || shallCmsSign )) || ( !encrypt && shallCmsSign );
392 result.push_back( createArchiveSignEncryptTaskForFiles( files, pgpOutputFileBaseName, ad, true, sign, encrypt, ascii, removeUnencrypted, pgpRecipients, pgpSigners ) );
394 result.push_back( createArchiveSignEncryptTaskForFiles( files, cmsOutputFileBaseName, ad, false, sign, encrypt, ascii, removeUnencrypted, cmsRecipients, cmsSigners ) );
450 createSignEncryptTasksForFileInfo( QFileInfo( file ), sign, encrypt, ascii, removeUnencrypted, pgpRecipients, pgpSigners, cmsRecipients, cmsSigners );
477 i18n("Caught unexpected exception in SignEncryptFilesController::Private::slotWizardOperationPrepared: %1",
481 i18n("Caught unknown exception in SignEncryptFilesController::Private::slotWizardOperationPrepared") );
505 shared_ptr<SignEncryptFilesTask> SignEncryptFilesController::Private::takeRunnable( GpgME::Protocol proto ) {
517 void SignEncryptFilesController::doTaskDone( const Task * task, const shared_ptr<const Task::Result> & result )
569 connect( w.get(), SIGNAL(operationPrepared()), q, SLOT(slotWizardOperationPrepared()), Qt::QueuedConnection );
void setOperationMode(unsigned int mode)
Definition: signencryptfilescontroller.cpp:207
const char * outputFileExtension(unsigned int classification)
Definition: classify.cpp:292
static bool contains_dir(const QStringList &files)
Definition: signencryptfilescontroller.cpp:80
Definition: classify.h:62
Definition: task.h:55
Definition: classify.h:68
void setFiles(const QStringList &files)
Definition: signencryptfilescontroller.cpp:267
Definition: output.h:50
Definition: classify.h:56
void start()
Definition: signencryptfilescontroller.cpp:281
~SignEncryptFilesController()
Definition: signencryptfilescontroller.cpp:174
Definition: classify.h:49
GpgME::Protocol protocol() const
Definition: signencryptfilescontroller.cpp:189
Definition: classify.h:48
static boost::shared_ptr< Input > createFromFile(const QString &filename, bool dummy=false)
Definition: input.cpp:199
Definition: classify.h:63
static std::vector< shared_ptr< SignEncryptFilesTask > > createArchiveSignEncryptTasksForFiles(const QStringList &files, const QString &pgpOutputFileBaseName, const QString &cmsOutputFileBaseName, const shared_ptr< ArchiveDefinition > &ad, bool sign, bool encrypt, bool ascii, bool removeUnencrypted, const std::vector< Key > &pgpRecipients, const std::vector< Key > &pgpSigners, const std::vector< Key > &cmsRecipients, const std::vector< Key > &cmsSigners)
Definition: signencryptfilescontroller.cpp:378
static shared_ptr< SignEncryptFilesTask > createArchiveSignEncryptTaskForFiles(const QStringList &files, const QString &outputFileBaseName, const shared_ptr< ArchiveDefinition > &ad, bool pgp, bool sign, bool encrypt, bool ascii, bool removeUnencrypted, const std::vector< Key > &recipients, const std::vector< Key > &signers)
Definition: signencryptfilescontroller.cpp:326
Definition: classify.h:55
void setProtocol(GpgME::Protocol proto)
Definition: signencryptfilescontroller.cpp:181
SignEncryptFilesController(QObject *parent=0)
Definition: signencryptfilescontroller.cpp:162
unsigned int operationMode() const
Definition: signencryptfilescontroller.cpp:263
Definition: taskcollection.h:49
void cancel()
Definition: signencryptfilescontroller.cpp:538
static std::vector< shared_ptr< SignEncryptFilesTask > > createSignEncryptTasksForFileInfo(const QFileInfo &fi, bool sign, bool encrypt, bool ascii, bool removeUnencrypted, const std::vector< Key > &pgpRecipients, const std::vector< Key > &pgpSigners, const std::vector< Key > &cmsRecipients, const std::vector< Key > &cmsSigners)
Definition: signencryptfilescontroller.cpp:356
static const char * extension(bool pgp, bool sign, bool encrypt, bool ascii, bool detached)
Definition: signencryptfilescontroller.cpp:285
virtual GpgME::Protocol protocol() const =0
Definition: controller.h:50
static shared_ptr< SignEncryptFilesTask > createSignEncryptTaskForFileInfo(const QFileInfo &fi, bool pgp, bool sign, bool encrypt, bool ascii, bool removeUnencrypted, const std::vector< Key > &recipients, const std::vector< Key > &signers)
Definition: signencryptfilescontroller.cpp:299
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:56:42 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:42 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.