• 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
decryptverifyemailcontroller.h
Go to the documentation of this file.
1 /* -*- mode: c++; c-basic-offset:4 -*-
2  decryptverifyemailcontroller.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_CRYPTO_DECRYPTVERIFYEMAILCONTROLLER_H__
34 #define __KLEOPATRA_CRYPTO_DECRYPTVERIFYEMAILCONTROLLER_H__
35 
36 #include <crypto/controller.h>
37 
38 #include <utils/types.h>
39 
40 #include <gpgme++/global.h>
41 
42 #include <QMetaType>
43 
44 #include <boost/shared_ptr.hpp>
45 
46 #include <vector>
47 
48 class QFile;
49 
50 namespace KMime {
51 namespace Types {
52  class Mailbox;
53 }
54 }
55 namespace GpgME {
56  class VerificationResult;
57 }
58 
59 namespace Kleo {
60 
61 class AssuanCommand;
62 class Input;
63 class Output;
64 
65 namespace Crypto {
66 
67 class DecryptVerifyResult;
68 
69 class DecryptVerifyEMailController : public Controller {
70  Q_OBJECT
71 public:
72  explicit DecryptVerifyEMailController( QObject * parent=0 );
73  explicit DecryptVerifyEMailController( const boost::shared_ptr<const ExecutionContext> & cmd, QObject * parent=0 );
74 
75  ~DecryptVerifyEMailController();
76 
77  void setInput( const boost::shared_ptr<Input> & input );
78  void setInputs( const std::vector<boost::shared_ptr<Input> > & inputs );
79 
80  void setSignedData( const boost::shared_ptr<Input> & data );
81  void setSignedData( const std::vector<boost::shared_ptr<Input> > & data );
82 
83  void setOutput( const boost::shared_ptr<Output> & output );
84  void setOutputs( const std::vector<boost::shared_ptr<Output> > & outputs );
85 
86  void setInformativeSenders( const std::vector<KMime::Types::Mailbox> & senders );
87 
88  void setWizardShown( bool shown );
89 
90  void setOperation( DecryptVerifyOperation operation );
91  void setVerificationMode( VerificationMode vm );
92  void setProtocol( GpgME::Protocol protocol );
93 
94  void setSessionId( unsigned int id );
95 
96  void start();
97 
98 public Q_SLOTS:
99  void cancel();
100 
101 Q_SIGNALS:
102  void verificationResult( const GpgME::VerificationResult & );
103 
104 private:
105  /* reimp */ void doTaskDone( const Task* task, const boost::shared_ptr<const Task::Result> & result );
106 
107  class Private;
108  kdtools::pimpl_ptr<Private> d;
109  Q_PRIVATE_SLOT( d, void slotWizardCanceled() )
110  Q_PRIVATE_SLOT( d, void schedule() )
111 };
112 
113 } //namespace Crypto
114 } //namespace Kleo
115 
116 Q_DECLARE_METATYPE( GpgME::VerificationResult )
117 
118 #endif // __KLEOPATRA_CTYPTO_DECRYPTVERIFYEMAILCONTROLLER_H__
types.h
kdtools::pimpl_ptr< Private >
Kleo::Crypto::DecryptVerifyEMailController::~DecryptVerifyEMailController
~DecryptVerifyEMailController()
Definition: decryptverifyemailcontroller.cpp:380
Kleo::Crypto::Task
Definition: task.h:55
Kleo::Crypto::DecryptVerifyEMailController::setSignedData
void setSignedData(const boost::shared_ptr< Input > &data)
Definition: decryptverifyemailcontroller.cpp:410
Kleo::Crypto::DecryptVerifyEMailController::setOutput
void setOutput(const boost::shared_ptr< Output > &output)
Definition: decryptverifyemailcontroller.cpp:420
Kleo::Crypto::DecryptVerifyEMailController::setOperation
void setOperation(DecryptVerifyOperation operation)
Definition: decryptverifyemailcontroller.cpp:442
Kleo::Crypto::DecryptVerifyEMailController::setInputs
void setInputs(const std::vector< boost::shared_ptr< Input > > &inputs)
Definition: decryptverifyemailcontroller.cpp:405
boost::shared_ptr
Definition: encryptemailcontroller.h:51
d
#define d
Definition: adduseridcommand.cpp:90
Kleo::Crypto::DecryptVerifyEMailController::setVerificationMode
void setVerificationMode(VerificationMode vm)
Definition: decryptverifyemailcontroller.cpp:447
Kleo::Crypto::DecryptVerifyEMailController
Definition: decryptverifyemailcontroller.h:69
Kleo::Crypto::DecryptVerifyEMailController::setOutputs
void setOutputs(const std::vector< boost::shared_ptr< Output > > &outputs)
Definition: decryptverifyemailcontroller.cpp:425
Kleo::Crypto::DecryptVerifyEMailController::DecryptVerifyEMailController
DecryptVerifyEMailController(QObject *parent=0)
Definition: decryptverifyemailcontroller.cpp:372
Kleo::DecryptVerifyOperation
DecryptVerifyOperation
Definition: types.h:45
Kleo::Crypto::DecryptVerifyEMailController::setWizardShown
void setWizardShown(bool shown)
Definition: decryptverifyemailcontroller.cpp:435
Kleo::Crypto::DecryptVerifyEMailController::start
void start()
Definition: decryptverifyemailcontroller.cpp:382
controller.h
Kleo::Crypto::DecryptVerifyEMailController::setProtocol
void setProtocol(GpgME::Protocol protocol)
Definition: decryptverifyemailcontroller.cpp:452
Kleo::VerificationMode
VerificationMode
Definition: types.h:53
Kleo::Crypto::DecryptVerifyEMailController::cancel
void cancel()
Definition: decryptverifyemailcontroller.cpp:463
Kleo::Crypto::Controller
Definition: controller.h:50
Kleo::Crypto::DecryptVerifyEMailController::setInformativeSenders
void setInformativeSenders(const std::vector< KMime::Types::Mailbox > &senders)
Definition: decryptverifyemailcontroller.cpp:430
Kleo::Crypto::DecryptVerifyEMailController::setInput
void setInput(const boost::shared_ptr< Input > &input)
Definition: decryptverifyemailcontroller.cpp:400
Kleo::Crypto::DecryptVerifyEMailController::setSessionId
void setSessionId(unsigned int id)
Definition: decryptverifyemailcontroller.cpp:457
Kleo::Crypto::DecryptVerifyEMailController::verificationResult
void verificationResult(const GpgME::VerificationResult &)
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:56:40 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