kmail
keyresolver.cpp File Reference
#include "keyresolver.h"
#include "kcursorsaver.h"
#include "kleo_util.h"
#include <libemailfunctions/email.h>
#include <ui/keyselectiondialog.h>
#include <kleo/cryptobackendfactory.h>
#include <kleo/keylistjob.h>
#include <kleo/dn.h>
#include <gpgmepp/key.h>
#include <gpgmepp/keylistresult.h>
#include <kabc/stdaddressbook.h>
#include <klocale.h>
#include <kdebug.h>
#include <kinputdialog.h>
#include <kmessagebox.h>
#include <qstringlist.h>
#include <qtl.h>
#include <time.h>
#include <algorithm>
#include <memory>
#include <iterator>
#include <functional>
#include <map>
#include <set>
#include <iostream>
#include <cassert>
Go to the source code of this file.
Defines | |
#define | CASE(x) if ( item.format & Kleo::x##Format ) ++m##x; |
#define | CASE(x) case Kleo::x##Format: return m##x |
#define | CASE(x) case Kleo::x: ++m##x; break |
#define | CASE(x) case x: ++m##x; break |
#define | make_int_accessor(x) unsigned int num##x() const { return m##x; } |
#define | make_int_accessor(x) unsigned int num##x() const { return m##x; } |
#define | make_int_accessor(x) unsigned int num##x() const { return m##x; } |
Functions | |
static Kleo::Action | action (bool doit, bool ask, bool dont, bool requested) |
static bool | ApprovalNeeded (const Kleo::KeyResolver::Item &item) |
static bool | ByKeyID (const GpgME::Key &left, const GpgME::Key &right) |
static QString | canonicalAddress (const QString &_address) |
static Kleo::KeyResolver::Item | CopyKeysAndEncryptionPreferences (const Kleo::KeyResolver::Item &oldItem, const Kleo::KeyApprovalDialog::Item &newItem) |
static bool | EmptyKeyList (const Kleo::KeyApprovalDialog::Item &item) |
static QString | ItemDotAddress (const Kleo::KeyResolver::Item &item) |
static QStringList | keysAsStrings (const std::vector< GpgME::Key > &keys) |
static bool | NotValidOpenPGPSigningKey (const GpgME::Key &key) |
static bool | NotValidSigningKey (const GpgME::Key &key) |
static bool | NotValidSMIMESigningKey (const GpgME::Key &key) |
static bool | NotValidTrustedEncryptionKey (const GpgME::Key &key) |
static bool | NotValidTrustedOpenPGPEncryptionKey (const GpgME::Key &key) |
static bool | NotValidTrustedSMIMEEncryptionKey (const GpgME::Key &key) |
static std::vector< GpgME::Key > | TrustedOrConfirmed (const std::vector< GpgME::Key > &keys) |
static bool | ValidOpenPGPSigningKey (const GpgME::Key &key) |
static bool | ValidSigningKey (const GpgME::Key &key) |
static bool | ValidSMIMESigningKey (const GpgME::Key &key) |
static bool | ValidTrustedEncryptionKey (const GpgME::Key &key) |
static bool | ValidTrustedOpenPGPEncryptionKey (const GpgME::Key &key) |
static bool | ValidTrustedSMIMEEncryptionKey (const GpgME::Key &key) |
static bool | WithRespectToKeyID (const GpgME::Key &left, const GpgME::Key &right) |
Define Documentation
#define CASE | ( | x | ) | if ( item.format & Kleo::x##Format ) ++m##x; |
Definition at line 426 of file keyresolver.cpp.
#define CASE | ( | x | ) | case Kleo::x##Format: return m##x |
Definition at line 426 of file keyresolver.cpp.
#define CASE | ( | x | ) | case Kleo::x: ++m##x; break |
Definition at line 426 of file keyresolver.cpp.
#define CASE | ( | x | ) | case x: ++m##x; break |
Definition at line 426 of file keyresolver.cpp.
#define make_int_accessor | ( | x | ) | unsigned int num##x() const { return m##x; } |
Definition at line 389 of file keyresolver.cpp.
#define make_int_accessor | ( | x | ) | unsigned int num##x() const { return m##x; } |
Definition at line 389 of file keyresolver.cpp.
#define make_int_accessor | ( | x | ) | unsigned int num##x() const { return m##x; } |
Definition at line 389 of file keyresolver.cpp.
Function Documentation
static Kleo::Action action | ( | bool | doit, | |
bool | ask, | |||
bool | dont, | |||
bool | requested | |||
) | [static] |
Definition at line 768 of file keyresolver.cpp.
static bool ApprovalNeeded | ( | const Kleo::KeyResolver::Item & | item | ) | [inline, static] |
Definition at line 88 of file keyresolver.cpp.
static bool ByKeyID | ( | const GpgME::Key & | left, | |
const GpgME::Key & | right | |||
) | [inline, static] |
Definition at line 98 of file keyresolver.cpp.
Definition at line 454 of file keyresolver.cpp.
static Kleo::KeyResolver::Item CopyKeysAndEncryptionPreferences | ( | const Kleo::KeyResolver::Item & | oldItem, | |
const Kleo::KeyApprovalDialog::Item & | newItem | |||
) | [inline, static] |
Definition at line 93 of file keyresolver.cpp.
static bool EmptyKeyList | ( | const Kleo::KeyApprovalDialog::Item & | item | ) | [inline, static] |
Definition at line 80 of file keyresolver.cpp.
static QString ItemDotAddress | ( | const Kleo::KeyResolver::Item & | item | ) | [inline, static] |
Definition at line 84 of file keyresolver.cpp.
static QStringList keysAsStrings | ( | const std::vector< GpgME::Key > & | keys | ) | [static] |
Definition at line 194 of file keyresolver.cpp.
static bool NotValidOpenPGPSigningKey | ( | const GpgME::Key & | key | ) | [inline, static] |
Definition at line 186 of file keyresolver.cpp.
static bool NotValidSigningKey | ( | const GpgME::Key & | key | ) | [inline, static] |
Definition at line 182 of file keyresolver.cpp.
static bool NotValidSMIMESigningKey | ( | const GpgME::Key & | key | ) | [inline, static] |
Definition at line 190 of file keyresolver.cpp.
static bool NotValidTrustedEncryptionKey | ( | const GpgME::Key & | key | ) | [inline, static] |
Definition at line 178 of file keyresolver.cpp.
static bool NotValidTrustedOpenPGPEncryptionKey | ( | const GpgME::Key & | key | ) | [inline, static] |
Definition at line 170 of file keyresolver.cpp.
static bool NotValidTrustedSMIMEEncryptionKey | ( | const GpgME::Key & | key | ) | [inline, static] |
Definition at line 174 of file keyresolver.cpp.
static std::vector<GpgME::Key> TrustedOrConfirmed | ( | const std::vector< GpgME::Key > & | keys | ) | [inline, static] |
Definition at line 208 of file keyresolver.cpp.
static bool ValidOpenPGPSigningKey | ( | const GpgME::Key & | key | ) | [inline, static] |
Definition at line 162 of file keyresolver.cpp.
static bool ValidSigningKey | ( | const GpgME::Key & | key | ) | [inline, static] |
Definition at line 156 of file keyresolver.cpp.
static bool ValidSMIMESigningKey | ( | const GpgME::Key & | key | ) | [inline, static] |
Definition at line 166 of file keyresolver.cpp.
static bool ValidTrustedEncryptionKey | ( | const GpgME::Key & | key | ) | [inline, static] |
Definition at line 145 of file keyresolver.cpp.
static bool ValidTrustedOpenPGPEncryptionKey | ( | const GpgME::Key & | key | ) | [static] |
Definition at line 106 of file keyresolver.cpp.
static bool ValidTrustedSMIMEEncryptionKey | ( | const GpgME::Key & | key | ) | [static] |
Definition at line 137 of file keyresolver.cpp.
static bool WithRespectToKeyID | ( | const GpgME::Key & | left, | |
const GpgME::Key & | right | |||
) | [inline, static] |
Definition at line 102 of file keyresolver.cpp.