libkleo
keyrequester.cpp
Go to the documentation of this file.
122 mEraseButton->setIcon( KIcon( QApplication::isRightToLeft() ? QLatin1String("edit-clear-locationbar-ltr") : QLatin1String("edit-clear-locationbar-rtl") ) );
335 ? new KeySelectionDialog( mDialogCaption, mDialogMessage, mInitialQuery, mKeyUsage, mMulti, false, this )
336 : new KeySelectionDialog( mDialogCaption, mDialogCaption, mKeys, mKeyUsage, mMulti, false, this ) ;
339 ? new KeySelectionDialog( mDialogCaption, mDialogMessage, mInitialQuery, mKeyUsage, mMulti, false, 0 )
340 : new KeySelectionDialog( mDialogCaption, mDialogCaption, mKeys, mKeyUsage, mMulti, false, 0 ) ;
430 static inline unsigned int encryptionKeyUsage( bool openpgp, bool smime, bool trusted, bool valid ) {
431 return foo( openpgp, smime, trusted, valid ) | Kleo::KeySelectionDialog::EncryptionKeys | Kleo::KeySelectionDialog::PublicKeys;
434 static inline unsigned int signingKeyUsage( bool openpgp, bool smime, bool trusted, bool valid ) {
435 return foo( openpgp, smime, trusted, valid ) | Kleo::KeySelectionDialog::SigningKeys | Kleo::KeySelectionDialog::SecretKeys;
441 : KeyRequester( encryptionKeyUsage( proto & OpenPGP, proto & SMIME, onlyTrusted, onlyValid ), multi,
454 void Kleo::EncryptionKeyRequester::setAllowedKeys( unsigned int proto, bool onlyTrusted, bool onlyValid )
456 KeyRequester::setAllowedKeys( encryptionKeyUsage( proto & OpenPGP, proto & SMIME, onlyTrusted, onlyValid ) );
462 : KeyRequester( signingKeyUsage( proto & OpenPGP, proto & SMIME, onlyTrusted, onlyValid ), multi,
474 void Kleo::SigningKeyRequester::setAllowedKeys( unsigned int proto, bool onlyTrusted, bool onlyValid )
476 KeyRequester::setAllowedKeys( signingKeyUsage( proto & OpenPGP, proto & SMIME, onlyTrusted, onlyValid ) );
bool isMultipleKeysEnabled() const
Definition: keyrequester.cpp:369
static unsigned int encryptionKeyUsage(bool openpgp, bool smime, bool trusted, bool valid)
Definition: keyrequester.cpp:430
void setMultipleKeysEnabled(bool enable)
Definition: keyrequester.cpp:373
EncryptionKeyRequester(bool multipleKeys=false, unsigned int proto=AllProtocols, QWidget *parent=0, bool onlyTrusted=true, bool onlyValid=true)
Preferred constructor.
Definition: keyrequester.cpp:438
KeyRequester(unsigned int allowedKeys, bool multipleKeys=false, QWidget *parent=0)
Definition: keyrequester.cpp:82
void setFingerprints(const QStringList &fingerprints)
Set the keys by fingerprint.
Definition: keyrequester.cpp:193
const CryptoBackend::Protocol * smime() const
Definition: cryptobackendfactory.cpp:117
void setAllowedKeys(unsigned int proto, bool onlyTrusted=true, bool onlyValid=true)
Definition: keyrequester.cpp:454
void setAllowedKeys(unsigned int allowed)
Definition: keyrequester.cpp:387
void setKey(const GpgME::Key &key)
Preferred method to set a key for non-multi-KeyRequesters.
Definition: keyrequester.cpp:166
static CryptoBackendFactory * instance()
Definition: cryptobackendfactory.cpp:102
void setKeys(const std::vector< GpgME::Key > &keys)
Preferred method to set a key for multi-KeyRequesters.
Definition: keyrequester.cpp:158
virtual void virtual_hook(int, void *)
Definition: keyrequester.cpp:479
static void showKeyListError(QWidget *parent, const GpgME::Error &err)
Definition: keyrequester.cpp:229
~SigningKeyRequester()
Definition: keyrequester.cpp:472
const std::vector< GpgME::Key > & keys() const
Definition: keyrequester.cpp:146
virtual void virtual_hook(int, void *)
Definition: keyrequester.cpp:480
void setDialogCaption(const QString &caption)
Definition: keyrequester.cpp:361
~EncryptionKeyRequester()
Definition: keyrequester.cpp:451
static unsigned int signingKeyUsage(bool openpgp, bool smime, bool trusted, bool valid)
Definition: keyrequester.cpp:434
void setDialogMessage(const QString &message)
Definition: keyrequester.cpp:365
void setAllowedKeys(unsigned int proto, bool onlyTrusted=true, bool onlyValid=true)
Definition: keyrequester.cpp:474
Base class for SigningKeyRequester and EncryptionKeyRequester.
Definition: keyrequester.h:74
static unsigned int foo(bool openpgp, bool smime, bool trusted, bool valid)
Definition: keyrequester.cpp:417
virtual void virtual_hook(int, void *)
Definition: keyrequester.cpp:483
void setFingerprint(const QString &fingerprint)
Set the key by fingerprint.
Definition: keyrequester.cpp:189
SigningKeyRequester(bool multipleKeys=false, unsigned int proto=AllProtocols, QWidget *parent=0, bool onlyTrusted=true, bool onlyValid=true)
Preferred constructor.
Definition: keyrequester.cpp:459
const CryptoBackend::Protocol * openpgp() const
Definition: cryptobackendfactory.cpp:126
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:57:48 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:48 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.