File indexing completed on 2024-06-23 05:19:20
0001 /* 0002 SPDX-FileCopyrightText: 2014-2024 Laurent Montel <montel@kde.org> 0003 0004 SPDX-License-Identifier: GPL-2.0-or-later 0005 */ 0006 0007 #include "cryptobodypartmemento.h" 0008 0009 using namespace GpgME; 0010 using namespace MimeTreeParser; 0011 0012 CryptoBodyPartMemento::CryptoBodyPartMemento() 0013 : QObject(nullptr) 0014 , Interface::BodyPartMemento() 0015 { 0016 } 0017 0018 CryptoBodyPartMemento::~CryptoBodyPartMemento() = default; 0019 0020 bool CryptoBodyPartMemento::isRunning() const 0021 { 0022 return m_running; 0023 } 0024 0025 void CryptoBodyPartMemento::setAuditLog(const Error &err, const QString &log) 0026 { 0027 m_auditLogError = err; 0028 m_auditLog = log; 0029 } 0030 0031 void CryptoBodyPartMemento::setRunning(bool running) 0032 { 0033 m_running = running; 0034 } 0035 0036 void CryptoBodyPartMemento::detach() 0037 { 0038 disconnect(this, SIGNAL(update(MimeTreeParser::UpdateMode)), nullptr, nullptr); 0039 } 0040 0041 #include "moc_cryptobodypartmemento.cpp"