• 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
cryptobodypartmemento.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 CRYPTOBODYPARTMEMENTO_H
19 #define CRYPTOBODYPARTMEMENTO_H
20 
21 #include <gpgme++/verificationresult.h>
22 #include <gpgme++/decryptionresult.h>
23 #include <gpgme++/key.h>
24 
25 #include <QObject>
26 #include <QString>
27 
28 #include "interfaces/bodypart.h"
29 #include "viewer/viewer.h"
30 
31 namespace MessageViewer {
32 
33 class CryptoBodyPartMemento
34  : public QObject,
35  public Interface::BodyPartMemento
36 {
37  Q_OBJECT
38 public:
39  CryptoBodyPartMemento();
40  ~CryptoBodyPartMemento();
41 
42  bool isRunning() const;
43 
44  const QString & auditLogAsHtml() const { return m_auditLog; }
45  GpgME::Error auditLogError() const { return m_auditLogError; }
46 
47  void detach();
48 
49 signals:
50  void update(MessageViewer::Viewer::UpdateMode);
51 
52 protected slots:
53  void notify() {
54  emit update(Viewer::Force);
55  }
56 
57 protected:
58  void setAuditLog( const GpgME::Error & err, const QString & log );
59  void setRunning( bool running );
60 
61 private:
62  bool m_running;
63  QString m_auditLog;
64  GpgME::Error m_auditLogError;
65 };
66 }
67 #endif // CRYPTOBODYPARTMEMENTO_H
viewer.h
MessageViewer::CryptoBodyPartMemento::setAuditLog
void setAuditLog(const GpgME::Error &err, const QString &log)
Definition: cryptobodypartmemento.cpp:50
MessageViewer::CryptoBodyPartMemento::detach
void detach()
Definition: cryptobodypartmemento.cpp:61
MessageViewer::Viewer::UpdateMode
UpdateMode
The display update mode: Force updates the display immediately, Delayed updates after some time (150m...
Definition: viewer.h:132
MessageViewer::CryptoBodyPartMemento::isRunning
bool isRunning() const
Definition: cryptobodypartmemento.cpp:45
MessageViewer::CryptoBodyPartMemento::notify
void notify()
Definition: cryptobodypartmemento.h:53
MessageViewer::CryptoBodyPartMemento::CryptoBodyPartMemento
CryptoBodyPartMemento()
Definition: cryptobodypartmemento.cpp:32
QObject
MessageViewer::CryptoBodyPartMemento::setRunning
void setRunning(bool running)
Definition: cryptobodypartmemento.cpp:56
bodypart.h
QString
MessageViewer::CryptoBodyPartMemento::~CryptoBodyPartMemento
~CryptoBodyPartMemento()
Definition: cryptobodypartmemento.cpp:40
MessageViewer::Interface::BodyPartMemento
interface of classes that implement status for BodyPartFormatters.
Definition: bodypart.h:55
MessageViewer::CryptoBodyPartMemento
Definition: cryptobodypartmemento.h:33
MessageViewer::Viewer::Force
Definition: viewer.h:133
MessageViewer::CryptoBodyPartMemento::auditLogAsHtml
const QString & auditLogAsHtml() const
Definition: cryptobodypartmemento.h:44
MessageViewer::CryptoBodyPartMemento::update
void update(MessageViewer::Viewer::UpdateMode)
MessageViewer::CryptoBodyPartMemento::auditLogError
GpgME::Error auditLogError() const
Definition: cryptobodypartmemento.h:45
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