kleopatra
certificateresolver.cpp
Go to the documentation of this file.
62 std::vector< std::vector<Key> > CertificateResolver::resolveRecipients( const std::vector<Mailbox> & recipients, Protocol proto ) {
69 std::vector<Key> CertificateResolver::resolveRecipient( const Mailbox & recipient, Protocol proto ) {
82 std::vector< std::vector<Key> > CertificateResolver::resolveSigners( const std::vector<Mailbox> & signers, Protocol proto ) {
123 KConfigBasedRecipientPreferences::Private::Private( KSharedConfigPtr config , KConfigBasedRecipientPreferences* qq ) : q( qq ), m_config( config ), m_parsed( false ), m_dirty( false )
158 const QStringList groups = m_config->groupList().filter( QRegExp( QLatin1String("^EncryptionPreference_\\d+$") ) );
172 KConfigBasedRecipientPreferences::KConfigBasedRecipientPreferences( KSharedConfigPtr config ) : d( new Private( config, this ) )
182 Key KConfigBasedRecipientPreferences::preferredCertificate( const Mailbox& recipient, Protocol protocol )
186 const QByteArray keyId = ( protocol == CMS ? d->cmsPrefs : d->pgpPrefs ).value( recipient.address() );
190 void KConfigBasedRecipientPreferences::setPreferredCertificate( const Mailbox& recipient, Protocol protocol, const Key& certificate )
195 ( protocol == CMS ? d->cmsPrefs : d->pgpPrefs ).insert( recipient.address(), certificate.keyID() );
219 KConfigBasedSigningPreferences::Private::Private( KSharedConfigPtr config , KConfigBasedSigningPreferences* qq ) : q( qq ), m_config( config ), m_parsed( false ), m_dirty( false )
250 KConfigBasedSigningPreferences::KConfigBasedSigningPreferences( KSharedConfigPtr config ) : d( new Private( config, this ) )
264 const QByteArray keyId = ( protocol == CMS ? d->cmsSigningCertificate : d->pgpSigningCertificate );
269 void KConfigBasedSigningPreferences::setPreferredCertificate( Protocol protocol, const Key& certificate )
272 ( protocol == CMS ? d->cmsSigningCertificate : d->pgpSigningCertificate ) = certificate.keyID();
void setPreferredCertificate(GpgME::Protocol protocol, const GpgME::Key &certificate)
Definition: certificateresolver.cpp:269
~KConfigBasedSigningPreferences()
Definition: certificateresolver.cpp:255
static std::vector< std::vector< GpgME::Key > > resolveRecipients(const std::vector< KMime::Types::Mailbox > &recipients, GpgME::Protocol proto)
Definition: certificateresolver.cpp:62
bool isEmpty() const
QByteArray & insert(int i, char ch)
~KConfigBasedRecipientPreferences()
Definition: certificateresolver.cpp:177
void setPreferredCertificate(const KMime::Types::Mailbox &recipient, GpgME::Protocol protocol, const GpgME::Key &certificate)
Definition: certificateresolver.cpp:190
static std::vector< std::vector< GpgME::Key > > resolveSigners(const std::vector< KMime::Types::Mailbox > &signers, GpgME::Protocol proto)
Definition: certificateresolver.cpp:82
static std::vector< GpgME::Key > resolveRecipient(const KMime::Types::Mailbox &recipient, GpgME::Protocol proto)
Definition: certificateresolver.cpp:69
KConfigBasedSigningPreferences(KSharedConfigPtr config)
Definition: certificateresolver.cpp:250
Definition: classify.h:48
GpgME::Key preferredCertificate(const KMime::Types::Mailbox &recipient, GpgME::Protocol protocol)
Definition: certificateresolver.cpp:182
static boost::shared_ptr< const KeyCache > instance()
Definition: keycache.cpp:190
static std::vector< GpgME::Key > resolveSigner(const KMime::Types::Mailbox &signer, GpgME::Protocol proto)
Definition: certificateresolver.cpp:89
QString fromLatin1(const char *str, int size)
QStringList filter(const QString &str, Qt::CaseSensitivity cs) const
KConfigBasedRecipientPreferences(KSharedConfigPtr config)
Definition: certificateresolver.cpp:172
GpgME::Key preferredCertificate(GpgME::Protocol protocol)
Definition: certificateresolver.cpp:260
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:33:10 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:10 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.