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 isRightToLeft()
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
void push_back(const T &value)
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
QString join(const QString &separator) const
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
void addWidget(QWidget *widget, int stretch, QFlags< Qt::AlignmentFlag > alignment)
QString fromLocal8Bit(const char *str, int size)
QString fromUtf8(const char *str, int size)
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 setMargin(int margin)
QString right(int n) const
iterator end()
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
iterator begin()
void setSpacing(int spacing)
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-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:33:38 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:38 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.