Messagelib

cryptobodypartmemento.cpp
1/*
2 SPDX-FileCopyrightText: 2014-2024 Laurent Montel <montel@kde.org>
3
4 SPDX-License-Identifier: GPL-2.0-or-later
5*/
6
7#include "cryptobodypartmemento.h"
8
9using namespace GpgME;
10using namespace MimeTreeParser;
11
12CryptoBodyPartMemento::CryptoBodyPartMemento()
13 : QObject(nullptr)
14 , Interface::BodyPartMemento()
15{
16}
17
18CryptoBodyPartMemento::~CryptoBodyPartMemento() = default;
19
20bool CryptoBodyPartMemento::isRunning() const
21{
22 return m_running;
23}
24
25void CryptoBodyPartMemento::setAuditLog(const Error &err, const QString &log)
26{
27 m_auditLogError = err;
28 m_auditLog = log;
29}
30
31void CryptoBodyPartMemento::setRunning(bool running)
32{
33 m_running = running;
34}
35
36void CryptoBodyPartMemento::detach()
37{
38 disconnect(this, SIGNAL(update(MimeTreeParser::UpdateMode)), nullptr, nullptr);
39}
40
41#include "moc_cryptobodypartmemento.cpp"
bool disconnect(const QMetaObject::Connection &connection)
T qobject_cast(QObject *object)
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Tue Mar 26 2024 11:12:43 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.