• 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
newsignencryptemailcontroller.h
Go to the documentation of this file.
1 /* -*- mode: c++; c-basic-offset:4 -*-
2  crypto/newsignencryptemailcontroller.h
3 
4  This file is part of Kleopatra, the KDE keymanager
5  Copyright (c) 2007 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_NEWSIGNENCRYPTEMAILCONTROLLER_H__
34 #define __KLEOPATRA_CRYPTO_NEWSIGNENCRYPTEMAILCONTROLLER_H__
35 
36 #include <crypto/controller.h>
37 
38 #include <utils/pimpl_ptr.h>
39 
40 #include <gpgme++/global.h>
41 
42 #include <vector>
43 #include <utility>
44 
45 namespace KMime {
46 namespace Types {
47  class Mailbox;
48 }
49 }
50 
51 namespace GpgME {
52  class Key;
53 }
54 
55 namespace boost {
56  template <typename T> class shared_ptr;
57 }
58 
59 namespace Kleo {
60 
61  class Input;
62  class Output;
63 
64 namespace Crypto {
65 
66  class AssuanCommand;
67 
68  class NewSignEncryptEMailController : public Controller {
69  Q_OBJECT
70  public:
71  explicit NewSignEncryptEMailController( QObject * parent=0 );
72  explicit NewSignEncryptEMailController( const boost::shared_ptr<ExecutionContext> & xc, QObject * parent=0 );
73  ~NewSignEncryptEMailController();
74 
75  static const char * mementoName() { return "NewSignEncryptEMailController"; }
76 
77  // 1st stage inputs
78 
79  void setSubject( const QString & subject );
80  void setProtocol( GpgME::Protocol proto );
81  const char * protocolAsString() const;
82  GpgME::Protocol protocol() const;
83 
84  void setSigning( bool sign );
85  bool isSigning() const;
86 
87  void setEncrypting( bool encrypt );
88  bool isEncrypting() const;
89 
90  void startResolveCertificates( const std::vector<KMime::Types::Mailbox> & recipients, const std::vector<KMime::Types::Mailbox> & senders );
91 
92  bool isResolvingInProgress() const;
93  bool areCertificatesResolved() const;
94 
95  // 2nd stage inputs
96 
97  void setDetachedSignature( bool detached );
98 
99  void startSigning( const std::vector< boost::shared_ptr<Kleo::Input> > & inputs,
100  const std::vector< boost::shared_ptr<Kleo::Output> > & outputs );
101 
102  void startEncryption( const std::vector< boost::shared_ptr<Kleo::Input> > & inputs,
103  const std::vector< boost::shared_ptr<Kleo::Output> > & outputs );
104 
105  public Q_SLOTS:
106  void cancel();
107 
108  Q_SIGNALS:
109  void certificatesResolved();
110  void reportMicAlg( const QString & micAlg );
111 
112  private:
113 
114  /* reimp */ void doTaskDone( const Task * task, const boost::shared_ptr<const Kleo::Crypto::Task::Result> & );
115 
116  class Private;
117  kdtools::pimpl_ptr<Private> d;
118  Q_PRIVATE_SLOT( d, void slotDialogAccepted() )
119  Q_PRIVATE_SLOT( d, void slotDialogRejected() )
120  Q_PRIVATE_SLOT( d, void schedule() )
121  };
122 
123 } // Crypto
124 } // Kleo
125 
126 #endif /* __KLEOPATRA_CRYPTO_NEWSIGNENCRYPTEMAILCONTROLLER_H__ */
127 
Kleo::Crypto::NewSignEncryptEMailController::setProtocol
void setProtocol(GpgME::Protocol proto)
Definition: newsignencryptemailcontroller.cpp:281
kdtools::pimpl_ptr< Private >
pimpl_ptr.h
Kleo::Crypto::NewSignEncryptEMailController::protocol
GpgME::Protocol protocol() const
Definition: newsignencryptemailcontroller.cpp:286
Kleo::Crypto::NewSignEncryptEMailController::startResolveCertificates
void startResolveCertificates(const std::vector< KMime::Types::Mailbox > &recipients, const std::vector< KMime::Types::Mailbox > &senders)
Definition: newsignencryptemailcontroller.cpp:345
Kleo::Crypto::Task
Definition: task.h:55
Kleo::Crypto::NewSignEncryptEMailController::startEncryption
void startEncryption(const std::vector< boost::shared_ptr< Kleo::Input > > &inputs, const std::vector< boost::shared_ptr< Kleo::Output > > &outputs)
Definition: newsignencryptemailcontroller.cpp:385
Kleo::Crypto::NewSignEncryptEMailController::setSigning
void setSigning(bool sign)
Definition: newsignencryptemailcontroller.cpp:301
Kleo::Crypto::NewSignEncryptEMailController::isEncrypting
bool isEncrypting() const
Definition: newsignencryptemailcontroller.cpp:315
Kleo::Crypto::NewSignEncryptEMailController::isResolvingInProgress
bool isResolvingInProgress() const
Definition: newsignencryptemailcontroller.cpp:323
boost::shared_ptr
Definition: encryptemailcontroller.h:51
d
#define d
Definition: adduseridcommand.cpp:90
Kleo::Crypto::NewSignEncryptEMailController::setDetachedSignature
void setDetachedSignature(bool detached)
Definition: newsignencryptemailcontroller.cpp:319
Kleo::Crypto::NewSignEncryptEMailController::setEncrypting
void setEncrypting(bool encrypt)
Definition: newsignencryptemailcontroller.cpp:310
Kleo::Crypto::NewSignEncryptEMailController::~NewSignEncryptEMailController
~NewSignEncryptEMailController()
Definition: newsignencryptemailcontroller.cpp:275
Kleo::Crypto::NewSignEncryptEMailController::isSigning
bool isSigning() const
Definition: newsignencryptemailcontroller.cpp:306
controller.h
Kleo::Crypto::NewSignEncryptEMailController::setSubject
void setSubject(const QString &subject)
Definition: newsignencryptemailcontroller.cpp:277
Kleo::Crypto::NewSignEncryptEMailController::mementoName
static const char * mementoName()
Definition: newsignencryptemailcontroller.h:75
Kleo::Crypto::NewSignEncryptEMailController::cancel
void cancel()
Definition: newsignencryptemailcontroller.cpp:543
Kleo::Crypto::NewSignEncryptEMailController::reportMicAlg
void reportMicAlg(const QString &micAlg)
Kleo::Crypto::NewSignEncryptEMailController::startSigning
void startSigning(const std::vector< boost::shared_ptr< Kleo::Input > > &inputs, const std::vector< boost::shared_ptr< Kleo::Output > > &outputs)
Definition: newsignencryptemailcontroller.cpp:430
Kleo::Crypto::NewSignEncryptEMailController::certificatesResolved
void certificatesResolved()
Kleo::Crypto::NewSignEncryptEMailController::protocolAsString
const char * protocolAsString() const
Definition: newsignencryptemailcontroller.cpp:291
Kleo::Crypto::Controller
Definition: controller.h:50
Kleo::Crypto::NewSignEncryptEMailController::areCertificatesResolved
bool areCertificatesResolved() const
Definition: newsignencryptemailcontroller.cpp:327
Kleo::Crypto::NewSignEncryptEMailController
Definition: newsignencryptemailcontroller.h:68
Kleo::Crypto::NewSignEncryptEMailController::NewSignEncryptEMailController
NewSignEncryptEMailController(QObject *parent=0)
Definition: newsignencryptemailcontroller.cpp:269
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