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

libkleo

  • sources
  • kde-4.12
  • kdepim
  • libkleo
  • ui
keyapprovaldialog.h
Go to the documentation of this file.
1 /* -*- c++ -*-
2  keyapprovaldialog.h
3 
4  This file is part of libkleopatra, the KDE keymanagement library
5  Copyright (c) 2004 Klarälvdalens Datakonsult AB
6 
7  Based on kpgpui.h
8  Copyright (C) 2001,2002 the KPGP authors
9  See file libkdenetwork/AUTHORS.kpgp for details
10 
11  Libkleopatra is free software; you can redistribute it and/or
12  modify it under the terms of the GNU General Public License as
13  published by the Free Software Foundation; either version 2 of the
14  License, or (at your option) any later version.
15 
16  Libkleopatra is distributed in the hope that it will be useful,
17  but WITHOUT ANY WARRANTY; without even the implied warranty of
18  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
19  General Public License for more details.
20 
21  You should have received a copy of the GNU General Public License
22  along with this program; if not, write to the Free Software
23  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
24 
25  In addition, as a special exception, the copyright holders give
26  permission to link the code of this program with any edition of
27  the Qt library by Trolltech AS, Norway (or with modified versions
28  of Qt that use the same license as Qt), and distribute linked
29  combinations including the two. You must obey the GNU General
30  Public License in all respects for all of the code used other than
31  Qt. If you modify this file, you may extend this exception to
32  your version of the file, but you are not obligated to do so. If
33  you do not wish to do so, delete this exception statement from
34  your version.
35 */
36 
37 #ifndef __KLEO_KEYAPPROVALDIALOG_H__
38 #define __KLEO_KEYAPPROVALDIALOG_H__
39 
40 #include "kleo/kleo_export.h"
41 #include "kleo/enum.h"
42 
43 #include <kdialog.h>
44 
45 #include <gpgme++/key.h>
46 
47 #include <vector>
48 
49 namespace GpgME {
50  class Key;
51 }
52 
53 
54 namespace Kleo {
55 
56  class KLEO_EXPORT KeyApprovalDialog : public KDialog {
57  Q_OBJECT
58  public:
59  struct Item {
60  Item() : pref( UnknownPreference ) {}
61  Item( const QString & a, const std::vector<GpgME::Key> & k,
62  EncryptionPreference p=UnknownPreference )
63  : address( a ), keys( k ), pref( p ) {}
64  QString address;
65  std::vector<GpgME::Key> keys;
66  EncryptionPreference pref;
67  };
68 
69  KeyApprovalDialog( const std::vector<Item> & recipients,
70  const std::vector<GpgME::Key> & sender,
71  QWidget * parent=0 );
72  ~KeyApprovalDialog();
73 
74  std::vector<Item> items() const;
75  std::vector<GpgME::Key> senderKeys() const;
76 
77  bool preferencesChanged() const;
78 
79  private Q_SLOTS:
80  void slotPrefsChanged();
81 
82  private:
83  class Private;
84  Private *const d;
85  };
86 
87 } // namespace Kleo
88 
89 #endif // __KLEO_KEYAPPROVALDIALOG_H__
Kleo::KeyApprovalDialog
Definition: keyapprovaldialog.h:56
Kleo::KeyApprovalDialog::Item::keys
std::vector< GpgME::Key > keys
Definition: keyapprovaldialog.h:65
QWidget
Kleo::EncryptionPreference
EncryptionPreference
Definition: enum.h:64
Kleo::KeyApprovalDialog::Item
Definition: keyapprovaldialog.h:59
KDialog
QString
Kleo::KeyApprovalDialog::Item::pref
EncryptionPreference pref
Definition: keyapprovaldialog.h:66
enum.h
Kleo::KeyApprovalDialog::Item::Item
Item()
Definition: keyapprovaldialog.h:60
Kleo::UnknownPreference
Definition: enum.h:65
KLEO_EXPORT
#define KLEO_EXPORT
Definition: kleo_export.h:41
Kleo::KeyApprovalDialog::Item::Item
Item(const QString &a, const std::vector< GpgME::Key > &k, EncryptionPreference p=UnknownPreference)
Definition: keyapprovaldialog.h:61
Kleo::KeyApprovalDialog::Item::address
QString address
Definition: keyapprovaldialog.h:64
kleo_export.h
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:57:48 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

libkleo

Skip menu "libkleo"
  • 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