Libkleo
keyresolver.cpp
96KeyResolver::Solution KeyResolver::Private::expandUnresolvedGroups(KeyResolver::Solution solution)
103 const auto keyMatchingAddress = mCache->findBestByMailBox(address.toUtf8().constData(), solution.protocol, KeyCache::KeyUsage::Encrypt);
107 const auto groupMatchingAddress = mCache->findGroup(address, solution.protocol, KeyCache::KeyUsage::Encrypt);
KeyResolver(bool encrypt, bool sign, GpgME::Protocol protocol=GpgME::UnknownProtocol, bool allowMixed=true)
Creates a new key resolver object.
Definition keyresolver.cpp:172
void setRecipients(const QStringList &addresses)
Set the list of recipient addresses.
Definition keyresolver.cpp:179
void start(bool showApproval, QWidget *parentWidget=nullptr)
Starts the key resolving procedure.
Definition keyresolver.cpp:152
void setPreferredProtocol(GpgME::Protocol proto)
Set the protocol that is preferred to be displayed first when it is not clear from the keys.
Definition keyresolver.cpp:209
void setSigningKeys(const QStringList &fingerprints)
Set explicit signing keys to use.
Definition keyresolver.cpp:194
void keysResolved(bool success, bool sendUnencrypted)
Emitted when key resolution finished.
void setDialogWindowFlags(Qt::WindowFlags flags)
Set window flags for a possible dialog.
Definition keyresolver.cpp:204
void setOverrideKeys(const QMap< GpgME::Protocol, QMap< QString, QStringList > > &overrides)
Set up possible override keys for recipients addresses.
Definition keyresolver.cpp:189
void setMinimumValidity(int validity)
Set the minimum user id validity for autoresolution.
Definition keyresolver.cpp:214
PostalAddress address(const QVariant &location)
void accepted()
void rejected()
iterator begin()
iterator end()
Q_EMITQ_EMIT
QMetaObject::Connection connect(const QObject *sender, PointerToMemberFunction signal, Functor functor)
QObject * parent() const const
QObject * sender() const const
UnknownProtocol
int localeAwareCompare(QStringView s1, QStringView s2)
typedef WindowFlags
Solution represents the solution found by the KeyResolver.
Definition keyresolver.h:65
GpgME::Protocol protocol
This property holds a hint at the protocol of the signing and encryption keys, i.e.
Definition keyresolver.h:72
QMap< QString, std::vector< GpgME::Key > > encryptionKeys
This property contains the encryption keys to use for the different recipients.
Definition keyresolver.h:91
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:09:14 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:09:14 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.