From b968ea8ed364238c57c3e74cf2c122cb897cfbea Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Tue, 23 May 2017 19:13:13 +0200 Subject: Builds but doesn't link, no formatters yet --- .../mimetreeparser/otp/cryptobodypartmemento.cpp | 56 ++++++++++++++++++++++ 1 file changed, 56 insertions(+) create mode 100644 framework/src/domain/mimetreeparser/otp/cryptobodypartmemento.cpp (limited to 'framework/src/domain/mimetreeparser/otp/cryptobodypartmemento.cpp') diff --git a/framework/src/domain/mimetreeparser/otp/cryptobodypartmemento.cpp b/framework/src/domain/mimetreeparser/otp/cryptobodypartmemento.cpp new file mode 100644 index 00000000..a884ec36 --- /dev/null +++ b/framework/src/domain/mimetreeparser/otp/cryptobodypartmemento.cpp @@ -0,0 +1,56 @@ +/* + Copyright (c) 2014-2017 Montel Laurent + + This program is free software; you can redistribute it and/or modify it + under the terms of the GNU General Public License, version 2, as + published by the Free Software Foundation. + + This program is distributed in the hope that it will be useful, but + WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + General Public License for more details. + + You should have received a copy of the GNU General Public License along + with this program; if not, write to the Free Software Foundation, Inc., + 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA +*/ + +#include "cryptobodypartmemento.h" + +using namespace GpgME; +using namespace MimeTreeParser; + +CryptoBodyPartMemento::CryptoBodyPartMemento() + : QObject(nullptr), + Interface::BodyPartMemento(), + m_running(false) +{ + +} + +CryptoBodyPartMemento::~CryptoBodyPartMemento() +{ + +} + +bool CryptoBodyPartMemento::isRunning() const +{ + return m_running; +} + +void CryptoBodyPartMemento::setAuditLog(const Error &err, const QString &log) +{ + m_auditLogError = err; + m_auditLog = log; +} + +void CryptoBodyPartMemento::setRunning(bool running) +{ + m_running = running; +} + +void CryptoBodyPartMemento::detach() +{ + disconnect(this, SIGNAL(update(MimeTreeParser::UpdateMode)), nullptr, nullptr); +} + -- cgit v1.2.3