File indexing completed on 2024-06-23 05:13:39

0001 /* -*- mode: c++; c-basic-offset:4 -*-
0002     commands/decryptverifyfilescommand.h
0003 
0004     This file is part of Kleopatra, the KDE keymanager
0005     SPDX-FileCopyrightText: 2008 Klarälvdalens Datakonsult AB
0006 
0007     SPDX-License-Identifier: GPL-2.0-or-later
0008 */
0009 
0010 #pragma once
0011 
0012 #include "commands/command.h"
0013 
0014 #include "utils/types.h"
0015 
0016 #include <QStringList>
0017 
0018 namespace Kleo
0019 {
0020 namespace Commands
0021 {
0022 
0023 class DecryptVerifyFilesCommand : public Command
0024 {
0025     Q_OBJECT
0026 public:
0027     explicit DecryptVerifyFilesCommand(QAbstractItemView *view, KeyListController *parent);
0028     explicit DecryptVerifyFilesCommand(KeyListController *parent);
0029     explicit DecryptVerifyFilesCommand(const QStringList &files, QAbstractItemView *view, KeyListController *parent);
0030     explicit DecryptVerifyFilesCommand(const QStringList &files, KeyListController *parent, bool forceManualMode = false);
0031     ~DecryptVerifyFilesCommand() override;
0032 
0033     void setFiles(const QStringList &files);
0034 
0035     void setOperation(DecryptVerifyOperation operation);
0036     DecryptVerifyOperation operation() const;
0037 
0038 private:
0039     void doStart() override;
0040     void doCancel() override;
0041 
0042 private:
0043     class Private;
0044     inline Private *d_func();
0045     inline const Private *d_func() const;
0046 };
0047 
0048 }
0049 }