• 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.cpp
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 #include "cryptobodypartmemento.h"
19 
20 #include <kdebug.h>
21 #include <kleo/decryptverifyjob.h>
22 #include <kleo/verifydetachedjob.h>
23 #include <kleo/verifyopaquejob.h>
24 #include <kleo/keylistjob.h>
25 
26 #include <gpgme++/keylistresult.h>
27 
28 using namespace Kleo;
29 using namespace GpgME;
30 using namespace MessageViewer;
31 
32 CryptoBodyPartMemento::CryptoBodyPartMemento()
33  : QObject( 0 ),
34  Interface::BodyPartMemento(),
35  m_running( false )
36 {
37 
38 }
39 
40 CryptoBodyPartMemento::~CryptoBodyPartMemento()
41 {
42 
43 }
44 
45 bool CryptoBodyPartMemento::isRunning() const
46 {
47  return m_running;
48 }
49 
50 void CryptoBodyPartMemento::setAuditLog( const Error & err, const QString & log )
51 {
52  m_auditLogError = err;
53  m_auditLog = log;
54 }
55 
56 void CryptoBodyPartMemento::setRunning( bool running )
57 {
58  m_running = running;
59 }
60 
61 void CryptoBodyPartMemento::detach()
62 {
63  disconnect( this, SIGNAL(update(MessageViewer::Viewer::UpdateMode)), 0, 0 );
64 }
65 
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
QObject::disconnect
bool disconnect(const QObject *sender, const char *signal, const QObject *receiver, const char *method)
QObject
MessageViewer::CryptoBodyPartMemento::setRunning
void setRunning(bool running)
Definition: cryptobodypartmemento.cpp:56
QString
MessageViewer::CryptoBodyPartMemento::~CryptoBodyPartMemento
~CryptoBodyPartMemento()
Definition: cryptobodypartmemento.cpp:40
cryptobodypartmemento.h
MessageViewer::CryptoBodyPartMemento::update
void update(MessageViewer::Viewer::UpdateMode)
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