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

messageviewer

  • sources
  • kde-4.14
  • kdepim
  • messageviewer
  • viewer
  • memento
decryptverifybodypartmemento.h
Go to the documentation of this file.
1 /*
2  Copyright (c) 2014-2015 Montel Laurent <montel@kde.org>
3 
4  This program is free software; you can redistribute it and/or modify it
5  under the terms of the GNU General Public License, version 2, as
6  published by the Free Software Foundation.
7 
8  This program is distributed in the hope that it will be useful, but
9  WITHOUT ANY WARRANTY; without even the implied warranty of
10  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11  General Public License for more details.
12 
13  You should have received a copy of the GNU General Public License along
14  with this program; if not, write to the Free Software Foundation, Inc.,
15  51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
16 */
17 
18 #ifndef DECRYPTVERIFYBODYPARTMEMENTO_H
19 #define DECRYPTVERIFYBODYPARTMEMENTO_H
20 
21 #include "cryptobodypartmemento.h"
22 #include <gpgme++/verificationresult.h>
23 #include <gpgme++/decryptionresult.h>
24 #include <gpgme++/key.h>
25 
26 #include <QObject>
27 #include <QString>
28 #include <QPointer>
29 
30 #include "interfaces/bodypart.h"
31 #include "viewer/viewer.h"
32 
33 namespace Kleo {
34 class DecryptVerifyJob;
35 }
36 
37 namespace MessageViewer {
38 
39 class DecryptVerifyBodyPartMemento
40  : public CryptoBodyPartMemento
41 {
42  Q_OBJECT
43 public:
44  DecryptVerifyBodyPartMemento( Kleo::DecryptVerifyJob * job, const QByteArray & cipherText );
45  ~DecryptVerifyBodyPartMemento();
46 
47  bool start();
48  void exec();
49 
50  const QByteArray & plainText() const { return m_plainText; }
51  const GpgME::DecryptionResult & decryptResult() const { return m_dr; }
52  const GpgME::VerificationResult & verifyResult() const { return m_vr; }
53 
54 private slots:
55  void slotResult( const GpgME::DecryptionResult & dr,
56  const GpgME::VerificationResult & vr,
57  const QByteArray & plainText );
58 
59 private:
60  void saveResult( const GpgME::DecryptionResult &,
61  const GpgME::VerificationResult &,
62  const QByteArray & );
63 private:
64  // input:
65  const QByteArray m_cipherText;
66  QPointer<Kleo::DecryptVerifyJob> m_job;
67  // output:
68  GpgME::DecryptionResult m_dr;
69  GpgME::VerificationResult m_vr;
70  QByteArray m_plainText;
71 };
72 }
73 #endif // DECRYPTVERIFYBODYPARTMEMENTO_H
viewer.h
MessageViewer::DecryptVerifyBodyPartMemento::~DecryptVerifyBodyPartMemento
~DecryptVerifyBodyPartMemento()
Definition: decryptverifybodypartmemento.cpp:39
QByteArray
QPointer< Kleo::DecryptVerifyJob >
MessageViewer::DecryptVerifyBodyPartMemento::verifyResult
const GpgME::VerificationResult & verifyResult() const
Definition: decryptverifybodypartmemento.h:52
MessageViewer::DecryptVerifyBodyPartMemento::exec
void exec()
Definition: decryptverifybodypartmemento.cpp:56
MessageViewer::DecryptVerifyBodyPartMemento
Definition: decryptverifybodypartmemento.h:39
bodypart.h
MessageViewer::DecryptVerifyBodyPartMemento::DecryptVerifyBodyPartMemento
DecryptVerifyBodyPartMemento(Kleo::DecryptVerifyJob *job, const QByteArray &cipherText)
Definition: decryptverifybodypartmemento.cpp:31
MessageViewer::DecryptVerifyBodyPartMemento::plainText
const QByteArray & plainText() const
Definition: decryptverifybodypartmemento.h:50
cryptobodypartmemento.h
MessageViewer::CryptoBodyPartMemento
Definition: cryptobodypartmemento.h:33
MessageViewer::DecryptVerifyBodyPartMemento::start
bool start()
Definition: decryptverifybodypartmemento.cpp:44
MessageViewer::DecryptVerifyBodyPartMemento::decryptResult
const GpgME::DecryptionResult & decryptResult() const
Definition: decryptverifybodypartmemento.h:51
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:32:45 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

messageviewer

Skip menu "messageviewer"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

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