Messagelib

cryptobodypartmemento.cpp
1 /*
2  SPDX-FileCopyrightText: 2014-2021 Laurent Montel <[email protected]>
3 
4  SPDX-License-Identifier: GPL-2.0-or-later
5 */
6 
7 #include "cryptobodypartmemento.h"
8 
9 using namespace GpgME;
10 using namespace MimeTreeParser;
11 
12 CryptoBodyPartMemento::CryptoBodyPartMemento()
13  : QObject(nullptr)
14  , Interface::BodyPartMemento()
15 {
16 }
17 
18 CryptoBodyPartMemento::~CryptoBodyPartMemento() = default;
19 
20 bool CryptoBodyPartMemento::isRunning() const
21 {
22  return m_running;
23 }
24 
25 void CryptoBodyPartMemento::setAuditLog(const Error &err, const QString &log)
26 {
27  m_auditLogError = err;
28  m_auditLog = log;
29 }
30 
31 void CryptoBodyPartMemento::setRunning(bool running)
32 {
33  m_running = running;
34 }
35 
36 void CryptoBodyPartMemento::detach()
37 {
38  disconnect(this, SIGNAL(update(MimeTreeParser::UpdateMode)), nullptr, nullptr);
39 }
bool disconnect(const QObject *sender, const char *signal, const QObject *receiver, const char *method)
void update(Part *part, const QByteArray &data, qint64 dataSize)
This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Tue Nov 30 2021 23:05:46 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.