• Skip to content
  • Skip to link menu
KDE 4.1 API Reference
  • KDE API Reference
  • kdepim
  • Sitemap
  • Contact Us
 

kmail

keyresolver.cpp File Reference

#include "keyresolver.h"
#include "kcursorsaver.h"
#include "kleo_util.h"
#include <kpimutils/email.h>
#include "libkleo/ui/keyselectiondialog.h"
#include "kleo/cryptobackendfactory.h"
#include "kleo/keylistjob.h"
#include "kleo/dn.h"
#include <gpgme++/key.h>
#include <gpgme++/keylistresult.h>
#include <kabc/stdaddressbook.h>
#include <klocale.h>
#include <kdebug.h>
#include <kinputdialog.h>
#include <kmessagebox.h>
#include <QStringList>
#include <time.h>
#include <algorithm>
#include <memory>
#include <iterator>
#include <functional>
#include <map>
#include <set>
#include <iostream>
#include <cassert>

Include dependency graph for keyresolver.cpp:

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 donot, 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 420 of file keyresolver.cpp.

#define CASE ( x   )     case Kleo::x##Format: return m##x

Definition at line 420 of file keyresolver.cpp.

#define CASE ( x   )     case Kleo::x: ++m##x; break

Definition at line 420 of file keyresolver.cpp.

#define CASE ( x   )     case x: ++m##x; break

Definition at line 420 of file keyresolver.cpp.

#define make_int_accessor ( x   )     unsigned int num##x() const { return m##x; }

Definition at line 383 of file keyresolver.cpp.

#define make_int_accessor ( x   )     unsigned int num##x() const { return m##x; }

Definition at line 383 of file keyresolver.cpp.

#define make_int_accessor ( x   )     unsigned int num##x() const { return m##x; }

Definition at line 383 of file keyresolver.cpp.


Function Documentation

static Kleo::Action action ( bool  doit,
bool  ask,
bool  donot,
bool  requested 
) [static]

Definition at line 759 of file keyresolver.cpp.

static bool ApprovalNeeded ( const Kleo::KeyResolver::Item &  item  )  [inline, static]

Definition at line 82 of file keyresolver.cpp.

static bool ByKeyID ( const GpgME::Key &  left,
const GpgME::Key &  right 
) [inline, static]

Definition at line 92 of file keyresolver.cpp.

static QString canonicalAddress ( const QString &  _address  )  [static]

Definition at line 448 of file keyresolver.cpp.

static Kleo::KeyResolver::Item CopyKeysAndEncryptionPreferences ( const Kleo::KeyResolver::Item &  oldItem,
const Kleo::KeyApprovalDialog::Item &  newItem 
) [inline, static]

Definition at line 87 of file keyresolver.cpp.

static bool EmptyKeyList ( const Kleo::KeyApprovalDialog::Item &  item  )  [inline, static]

Definition at line 74 of file keyresolver.cpp.

static QString ItemDotAddress ( const Kleo::KeyResolver::Item &  item  )  [inline, static]

Definition at line 78 of file keyresolver.cpp.

static QStringList keysAsStrings ( const std::vector< GpgME::Key > &  keys  )  [static]

Definition at line 188 of file keyresolver.cpp.

static bool NotValidOpenPGPSigningKey ( const GpgME::Key &  key  )  [inline, static]

Definition at line 180 of file keyresolver.cpp.

static bool NotValidSigningKey ( const GpgME::Key &  key  )  [inline, static]

Definition at line 176 of file keyresolver.cpp.

static bool NotValidSMIMESigningKey ( const GpgME::Key &  key  )  [inline, static]

Definition at line 184 of file keyresolver.cpp.

static bool NotValidTrustedEncryptionKey ( const GpgME::Key &  key  )  [inline, static]

Definition at line 172 of file keyresolver.cpp.

static bool NotValidTrustedOpenPGPEncryptionKey ( const GpgME::Key &  key  )  [inline, static]

Definition at line 164 of file keyresolver.cpp.

static bool NotValidTrustedSMIMEEncryptionKey ( const GpgME::Key &  key  )  [inline, static]

Definition at line 168 of file keyresolver.cpp.

static std::vector<GpgME::Key> TrustedOrConfirmed ( const std::vector< GpgME::Key > &  keys  )  [inline, static]

Definition at line 202 of file keyresolver.cpp.

static bool ValidOpenPGPSigningKey ( const GpgME::Key &  key  )  [inline, static]

Definition at line 156 of file keyresolver.cpp.

static bool ValidSigningKey ( const GpgME::Key &  key  )  [inline, static]

Definition at line 150 of file keyresolver.cpp.

static bool ValidSMIMESigningKey ( const GpgME::Key &  key  )  [inline, static]

Definition at line 160 of file keyresolver.cpp.

static bool ValidTrustedEncryptionKey ( const GpgME::Key &  key  )  [inline, static]

Definition at line 139 of file keyresolver.cpp.

static bool ValidTrustedOpenPGPEncryptionKey ( const GpgME::Key &  key  )  [static]

Definition at line 100 of file keyresolver.cpp.

static bool ValidTrustedSMIMEEncryptionKey ( const GpgME::Key &  key  )  [static]

Definition at line 131 of file keyresolver.cpp.

static bool WithRespectToKeyID ( const GpgME::Key &  left,
const GpgME::Key &  right 
) [inline, static]

Definition at line 96 of file keyresolver.cpp.


Variable Documentation

const Kleo::CryptoMessageFormat format

Definition at line 261 of file keyresolver.cpp.

unsigned int mInlineOpenPGP

Definition at line 405 of file keyresolver.cpp.

unsigned int mOpenPGPMIME

Definition at line 405 of file keyresolver.cpp.

unsigned int mSMIME

Definition at line 405 of file keyresolver.cpp.

unsigned int mSMIMEOpaque

Definition at line 405 of file keyresolver.cpp.

unsigned int mTotal

Definition at line 404 of file keyresolver.cpp.

kmail

Skip menu "kmail"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

kdepim

Skip menu "kdepim"
  • akonadi
  •   clients
  •   kabc
  •   kcal
  •   kcm
  • akregator
  • console
  •   kabcclient
  •   konsolekalendar
  • kaddressbook
  • kalarm
  •   lib
  • kdgantt
  • kdgantt1
  • kjots
  • kleopatra
  • kmail
  • kmobiletools
  • knode
  • knotes
  • kontact
  • kontactinterfaces
  • korganizer
  •   korgac
  • kpilot
  • ktimetracker
  •   doc
  • libkdepim
  • libkholidays
  • libkleo
  • libkpgp
  • maildir
Generated for kdepim by doxygen 1.5.4
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal