• 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
  • crypto
  • gui
signencryptemailconflictdialog.h
Go to the documentation of this file.
1 /* -*- mode: c++; c-basic-offset:4 -*-
2  crypto/gui/signencryptemailconflictdialog.h
3 
4  This file is part of Kleopatra, the KDE keymanager
5  Copyright (c) 2009 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_CRYPTO_GUI_SIGNENCRYPTEMAILCONFLICTDIALOG_H__
34 #define __KLEOPATRA_CRYPTO_GUI_SIGNENCRYPTEMAILCONFLICTDIALOG_H__
35 
36 #include <QDialog>
37 
38 #include <utils/pimpl_ptr.h>
39 
40 #include <gpgme++/global.h>
41 
42 #include <vector>
43 
44 namespace boost {
45  template <typename T> class shared_ptr;
46 }
47 
48 namespace GpgME {
49  class Key;
50 }
51 
52 namespace Kleo {
53 namespace Crypto {
54  class Sender;
55  class Recipient;
56 }
57 }
58 
59 namespace Kleo {
60 namespace Crypto {
61 namespace Gui {
62 
63  class SignEncryptEMailConflictDialog : public QDialog {
64  Q_OBJECT
65  public:
66  explicit SignEncryptEMailConflictDialog( QWidget * parent=0, Qt::WindowFlags f=0 );
67  ~SignEncryptEMailConflictDialog();
68 
69  // Inputs
70 
71  void setPresetProtocol( GpgME::Protocol proto );
72  void setSubject( const QString & subject );
73 
74  void setSenders( const std::vector<Sender> & senders );
75  void setRecipients( const std::vector<Recipient> & recipients );
76 
77  void setSign( bool on );
78  void setEncrypt( bool on );
79 
80  void setQuickMode( bool on );
81 
82  // To wrap up inputs:
83  void pickProtocol();
84  void setConflict( bool conflict );
85 
86  // Intermediate
87 
88  bool isComplete() const;
89 
90  // Outputs
91 
92  GpgME::Protocol selectedProtocol() const;
93  std::vector<GpgME::Key> resolvedSigningKeys() const;
94  std::vector<GpgME::Key> resolvedEncryptionKeys() const;
95 
96  bool isQuickMode() const;
97 
98  private:
99  Q_PRIVATE_SLOT( d, void slotCompleteChanged() )
100  Q_PRIVATE_SLOT( d, void slotShowAllRecipientsToggled(bool) )
101  Q_PRIVATE_SLOT( d, void slotProtocolChanged() )
102  Q_PRIVATE_SLOT( d, void slotCertificateSelectionDialogRequested() )
103  class Private;
104  kdtools::pimpl_ptr<Private> d;
105  };
106 
107 }
108 }
109 }
110 
111 #endif /* __KLEOPATRA_CRYPTO_GUI_SIGNENCRYPTEMAILCONFLICTDIALOG_H__ */
Kleo::Crypto::Gui::SignEncryptEMailConflictDialog::setConflict
void setConflict(bool conflict)
Definition: signencryptemailconflictdialog.cpp:808
Kleo::Crypto::Gui::SignEncryptEMailConflictDialog::setSenders
void setSenders(const std::vector< Sender > &senders)
Definition: signencryptemailconflictdialog.cpp:736
Kleo::Crypto::Gui::SignEncryptEMailConflictDialog::setSign
void setSign(bool on)
Definition: signencryptemailconflictdialog.cpp:718
Kleo::Crypto::Gui::SignEncryptEMailConflictDialog::setSubject
void setSubject(const QString &subject)
Definition: signencryptemailconflictdialog.cpp:714
kdtools::pimpl_ptr< Private >
pimpl_ptr.h
QDialog
QWidget
Kleo::Crypto::Gui::SignEncryptEMailConflictDialog
Definition: signencryptemailconflictdialog.h:63
Kleo::Crypto::Gui::SignEncryptEMailConflictDialog::setPresetProtocol
void setPresetProtocol(GpgME::Protocol proto)
Definition: signencryptemailconflictdialog.cpp:692
Kleo::Crypto::Gui::SignEncryptEMailConflictDialog::isComplete
bool isComplete() const
Definition: signencryptemailconflictdialog.cpp:768
Kleo::Crypto::Gui::SignEncryptEMailConflictDialog::resolvedEncryptionKeys
std::vector< GpgME::Key > resolvedEncryptionKeys() const
Definition: signencryptemailconflictdialog.cpp:796
Kleo::Crypto::Gui::SignEncryptEMailConflictDialog::setRecipients
void setRecipients(const std::vector< Recipient > &recipients)
Definition: signencryptemailconflictdialog.cpp:745
Kleo::Crypto::Gui::SignEncryptEMailConflictDialog::pickProtocol
void pickProtocol()
Definition: signencryptemailconflictdialog.cpp:754
d
#define d
Definition: adduseridcommand.cpp:90
Kleo::Crypto::Gui::SignEncryptEMailConflictDialog::setEncrypt
void setEncrypt(bool on)
Definition: signencryptemailconflictdialog.cpp:727
Kleo::Crypto::Gui::SignEncryptEMailConflictDialog::setQuickMode
void setQuickMode(bool on)
Definition: signencryptemailconflictdialog.cpp:800
Kleo::Crypto::Gui::SignEncryptEMailConflictDialog::isQuickMode
bool isQuickMode() const
Definition: signencryptemailconflictdialog.cpp:804
Kleo::Crypto::Gui::SignEncryptEMailConflictDialog::selectedProtocol
GpgME::Protocol selectedProtocol() const
Definition: signencryptemailconflictdialog.cpp:704
Kleo::Crypto::Gui::SignEncryptEMailConflictDialog::SignEncryptEMailConflictDialog
SignEncryptEMailConflictDialog(QWidget *parent=0, Qt::WindowFlags f=0)
Definition: signencryptemailconflictdialog.cpp:684
Kleo::Crypto::Gui::SignEncryptEMailConflictDialog::~SignEncryptEMailConflictDialog
~SignEncryptEMailConflictDialog()
Definition: signencryptemailconflictdialog.cpp:690
Kleo::Crypto::Gui::SignEncryptEMailConflictDialog::resolvedSigningKeys
std::vector< GpgME::Key > resolvedSigningKeys() const
Definition: signencryptemailconflictdialog.cpp:792
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:56:42 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