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

kleopatra

  • sources
  • kde-4.14
  • 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 #ifndef Q_MOC_RUN
45 #include <boost/shared_ptr.hpp>
46 #endif
47 
48 #include <vector>
49 
50 class QFile;
51 
52 namespace KMime {
53 namespace Types {
54  class Mailbox;
55 }
56 }
57 namespace GpgME {
58  class VerificationResult;
59 }
60 
61 namespace Kleo {
62 
63 class AssuanCommand;
64 class Input;
65 class Output;
66 
67 namespace Crypto {
68 
69 class DecryptVerifyResult;
70 
71 class DecryptVerifyEMailController : public Controller {
72  Q_OBJECT
73 public:
74  explicit DecryptVerifyEMailController( QObject * parent=0 );
75  explicit DecryptVerifyEMailController( const boost::shared_ptr<const ExecutionContext> & cmd, QObject * parent=0 );
76 
77  ~DecryptVerifyEMailController();
78 
79  void setInput( const boost::shared_ptr<Input> & input );
80  void setInputs( const std::vector<boost::shared_ptr<Input> > & inputs );
81 
82  void setSignedData( const boost::shared_ptr<Input> & data );
83  void setSignedData( const std::vector<boost::shared_ptr<Input> > & data );
84 
85  void setOutput( const boost::shared_ptr<Output> & output );
86  void setOutputs( const std::vector<boost::shared_ptr<Output> > & outputs );
87 
88  void setInformativeSenders( const std::vector<KMime::Types::Mailbox> & senders );
89 
90  void setWizardShown( bool shown );
91 
92  void setOperation( DecryptVerifyOperation operation );
93  void setVerificationMode( VerificationMode vm );
94  void setProtocol( GpgME::Protocol protocol );
95 
96  void setSessionId( unsigned int id );
97 
98  void start();
99 
100 public Q_SLOTS:
101  void cancel();
102 
103 Q_SIGNALS:
104  void verificationResult( const GpgME::VerificationResult & );
105 
106 private:
107  /* reimp */ void doTaskDone( const Task* task, const boost::shared_ptr<const Task::Result> & result );
108 
109  class Private;
110  kdtools::pimpl_ptr<Private> d;
111  Q_PRIVATE_SLOT( d, void slotWizardCanceled() )
112  Q_PRIVATE_SLOT( d, void schedule() )
113 };
114 
115 } //namespace Crypto
116 } //namespace Kleo
117 
118 Q_DECLARE_METATYPE( GpgME::VerificationResult )
119 
120 #endif // __KLEOPATRA_CTYPTO_DECRYPTVERIFYEMAILCONTROLLER_H__
types.h
kdtools::pimpl_ptr< Private >
Kleo::Crypto::DecryptVerifyEMailController::~DecryptVerifyEMailController
~DecryptVerifyEMailController()
Definition: decryptverifyemailcontroller.cpp:382
Kleo::Crypto::Task
Definition: task.h:57
QFile
Kleo::Crypto::DecryptVerifyEMailController::setSignedData
void setSignedData(const boost::shared_ptr< Input > &data)
Definition: decryptverifyemailcontroller.cpp:412
Kleo::Crypto::DecryptVerifyEMailController::setOutput
void setOutput(const boost::shared_ptr< Output > &output)
Definition: decryptverifyemailcontroller.cpp:422
Kleo::Crypto::DecryptVerifyEMailController::setOperation
void setOperation(DecryptVerifyOperation operation)
Definition: decryptverifyemailcontroller.cpp:444
Kleo::Crypto::DecryptVerifyEMailController::setInputs
void setInputs(const std::vector< boost::shared_ptr< Input > > &inputs)
Definition: decryptverifyemailcontroller.cpp:407
boost::shared_ptr
Definition: encryptemailcontroller.h:51
d
#define d
Definition: adduseridcommand.cpp:89
Kleo::Crypto::DecryptVerifyEMailController::setVerificationMode
void setVerificationMode(VerificationMode vm)
Definition: decryptverifyemailcontroller.cpp:449
QObject
Kleo::Crypto::DecryptVerifyEMailController
Definition: decryptverifyemailcontroller.h:71
Kleo::Crypto::DecryptVerifyEMailController::setOutputs
void setOutputs(const std::vector< boost::shared_ptr< Output > > &outputs)
Definition: decryptverifyemailcontroller.cpp:427
Kleo::Crypto::DecryptVerifyEMailController::DecryptVerifyEMailController
DecryptVerifyEMailController(QObject *parent=0)
Definition: decryptverifyemailcontroller.cpp:374
Kleo::DecryptVerifyOperation
DecryptVerifyOperation
Definition: types.h:45
Kleo::Crypto::DecryptVerifyEMailController::setWizardShown
void setWizardShown(bool shown)
Definition: decryptverifyemailcontroller.cpp:437
Kleo::Crypto::DecryptVerifyEMailController::start
void start()
Definition: decryptverifyemailcontroller.cpp:384
controller.h
Kleo::Crypto::DecryptVerifyEMailController::setProtocol
void setProtocol(GpgME::Protocol protocol)
Definition: decryptverifyemailcontroller.cpp:454
Kleo::VerificationMode
VerificationMode
Definition: types.h:53
Kleo::Crypto::DecryptVerifyEMailController::cancel
void cancel()
Definition: decryptverifyemailcontroller.cpp:465
QObject::parent
QObject * parent() const
Kleo::Crypto::Controller
Definition: controller.h:52
Kleo::Crypto::DecryptVerifyEMailController::setInformativeSenders
void setInformativeSenders(const std::vector< KMime::Types::Mailbox > &senders)
Definition: decryptverifyemailcontroller.cpp:432
Kleo::Crypto::DecryptVerifyEMailController::setInput
void setInput(const boost::shared_ptr< Input > &input)
Definition: decryptverifyemailcontroller.cpp:402
Kleo::Crypto::DecryptVerifyEMailController::setSessionId
void setSessionId(unsigned int id)
Definition: decryptverifyemailcontroller.cpp:459
Kleo::Crypto::DecryptVerifyEMailController::verificationResult
void verificationResult(const GpgME::VerificationResult &)
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:33:10 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
  • pimprint

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