File indexing completed on 2024-06-23 05:14:01
0001 /* -*- mode: c++; c-basic-offset:4 -*- 0002 crypto/verifychecksumscontroller.h 0003 0004 This file is part of Kleopatra, the KDE keymanager 0005 SPDX-FileCopyrightText: 2010 Klarälvdalens Datakonsult AB 0006 0007 SPDX-License-Identifier: GPL-2.0-or-later 0008 */ 0009 0010 #pragma once 0011 0012 #include <crypto/controller.h> 0013 0014 #ifndef QT_NO_DIRMODEL 0015 0016 #include <utils/pimpl_ptr.h> 0017 0018 #include <gpgme++/global.h> 0019 0020 #include <memory> 0021 #include <vector> 0022 0023 namespace Kleo 0024 { 0025 namespace Crypto 0026 { 0027 0028 class VerifyChecksumsController : public Controller 0029 { 0030 Q_OBJECT 0031 public: 0032 explicit VerifyChecksumsController(QObject *parent = nullptr); 0033 explicit VerifyChecksumsController(const std::shared_ptr<const ExecutionContext> &ctx, QObject *parent = nullptr); 0034 ~VerifyChecksumsController() override; 0035 0036 void setFiles(const QStringList &files); 0037 0038 void start(); 0039 0040 public Q_SLOTS: 0041 void cancel(); 0042 0043 private: 0044 class Private; 0045 kdtools::pimpl_ptr<Private> d; 0046 Q_PRIVATE_SLOT(d, void slotOperationFinished()) 0047 }; 0048 0049 } 0050 } 0051 0052 #endif // QT_NO_DIRMODEL