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

kleopatra

  • sources
  • kde-4.12
  • kdepim
  • kleopatra
  • models
keylistmodelinterface.h
Go to the documentation of this file.
1 /* -*- mode: c++; c-basic-offset:4 -*-
2  models/keylistmodelinterface.h
3 
4  This file is part of Kleopatra, the KDE keymanager
5  Copyright (c) 2008 Klarälvdalens Datakonsult AB
6 
7  Kleopatra is free software; you can redistribute it and/or modify
8  it under the terms of the GNU General Public License as published by
9  the Free Software Foundation; either version 2 of the License, or
10  (at your option) any later version.
11 
12  Kleopatra is distributed in the hope that it will be useful,
13  but WITHOUT ANY WARRANTY; without even the implied warranty of
14  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15  General Public License for more details.
16 
17  You should have received a copy of the GNU General Public License
18  along with this program; if not, write to the Free Software
19  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
20 
21  In addition, as a special exception, the copyright holders give
22  permission to link the code of this program with any edition of
23  the Qt library by Trolltech AS, Norway (or with modified versions
24  of Qt that use the same license as Qt), and distribute linked
25  combinations including the two. You must obey the GNU General
26  Public License in all respects for all of the code used other than
27  Qt. If you modify this file, you may extend this exception to
28  your version of the file, but you are not obligated to do so. If
29  you do not wish to do so, delete this exception statement from
30  your version.
31 */
32 
33 #ifndef __KLEOPATRA_MODELS_KEYLISTMODELINTERFACE_H__
34 #define __KLEOPATRA_MODELS_KEYLISTMODELINTERFACE_H__
35 
36 #include <vector>
37 
38 namespace GpgME {
39  class Key;
40 }
41 
42 class QModelIndex;
43 template <typename T> class QList;
44 
45 namespace Kleo {
46 
47  class KeyListModelInterface {
48  public:
49  virtual ~KeyListModelInterface() {}
50 
51  static const int FingerprintRole = 0xF1;
52 
53  enum Columns {
54  PrettyName,
55 #ifndef KDEPIM_MOBILE_UI
56  PrettyEMail,
57  ValidFrom,
58  ValidUntil,
59  TechnicalDetails,
60  /* OpenPGP only, really */
61  ShortKeyID,
62 #if 0
63  Fingerprint,
64  LongKeyID,
65  /* X509 only, really */
66  Issuer,
67  Subject,
68  SerialNumber,
69 #endif
70 #endif
71 
72  NumColumns,
73  Icon = PrettyName // which column shall the icon be displayed in?
74  };
75 
76  virtual GpgME::Key key( const QModelIndex & idx ) const = 0;
77  virtual std::vector<GpgME::Key> keys( const QList<QModelIndex> & idxs ) const = 0;
78 
79  virtual QModelIndex index( const GpgME::Key & key ) const = 0;
80  virtual QList<QModelIndex> indexes( const std::vector<GpgME::Key> & keys ) const = 0;
81  };
82 
83 }
84 
85 #endif /* __KLEOPATRA_MODELS_KEYLISTMODELINTERFACE_H__ */
Kleo::KeyListModelInterface::PrettyName
Definition: keylistmodelinterface.h:54
Kleo::KeyListModelInterface::ValidUntil
Definition: keylistmodelinterface.h:58
Kleo::KeyListModelInterface::index
virtual QModelIndex index(const GpgME::Key &key) const =0
Kleo::KeyListModelInterface::ShortKeyID
Definition: keylistmodelinterface.h:61
Kleo::KeyListModelInterface::Columns
Columns
Definition: keylistmodelinterface.h:53
Kleo::KeyListModelInterface::PrettyEMail
Definition: keylistmodelinterface.h:56
Kleo::KeyListModelInterface::ValidFrom
Definition: keylistmodelinterface.h:57
Kleo::KeyListModelInterface::key
virtual GpgME::Key key(const QModelIndex &idx) const =0
Kleo::KeyListModelInterface::indexes
virtual QList< QModelIndex > indexes(const std::vector< GpgME::Key > &keys) const =0
Kleo::Formatting::Issuer
Definition: formatting.h:72
Kleo::KeyListModelInterface::TechnicalDetails
Definition: keylistmodelinterface.h:59
Kleo::KeyListModelInterface::NumColumns
Definition: keylistmodelinterface.h:72
Kleo::KeyListModelInterface
Definition: keylistmodelinterface.h:47
Kleo::KeyListModelInterface::~KeyListModelInterface
virtual ~KeyListModelInterface()
Definition: keylistmodelinterface.h:49
Kleo::KeyListModelInterface::FingerprintRole
static const int FingerprintRole
Definition: keylistmodelinterface.h:51
Kleo::KeyListModelInterface::Icon
Definition: keylistmodelinterface.h:73
Kleo::KeyListModelInterface::keys
virtual std::vector< GpgME::Key > keys(const QList< QModelIndex > &idxs) const =0
Kleo::Formatting::Subject
Definition: formatting.h:73
Kleo::Formatting::SerialNumber
Definition: formatting.h:71
QList
Definition: commands/command.h:46
Kleo::Formatting::Fingerprint
Definition: formatting.h:77
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:56:41 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

kleopatra

Skip menu "kleopatra"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members

kdepim API Reference

Skip menu "kdepim API Reference"
  • akonadi_next
  • akregator
  • blogilo
  • calendarsupport
  • console
  •   kabcclient
  •   konsolekalendar
  • kaddressbook
  • kalarm
  •   lib
  • kdgantt2
  • kjots
  • kleopatra
  • kmail
  • knode
  • knotes
  • kontact
  • korgac
  • korganizer
  • ktimetracker
  • libkdepim
  • libkleo
  • libkpgp
  • mailcommon
  • messagelist
  • messageviewer

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal