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

0001 /* -*- mode: c++; c-basic-offset:4 -*-
0002     uiserver/createchecksumscommand.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 "assuancommand.h"
0013 #include <QObject>
0014 
0015 #include <utils/pimpl_ptr.h>
0016 
0017 namespace Kleo
0018 {
0019 
0020 class CreateChecksumsCommand : public QObject, public AssuanCommandMixin<CreateChecksumsCommand>
0021 {
0022     Q_OBJECT
0023 public:
0024     CreateChecksumsCommand();
0025     ~CreateChecksumsCommand() override;
0026 
0027     static const char *staticName()
0028     {
0029         return "CHECKSUM_CREATE_FILES";
0030     }
0031 
0032 private:
0033     int doStart() override;
0034     void doCanceled() override;
0035 
0036 #ifdef Q_MOC_RUN
0037 private Q_SLOTS:
0038     void done();
0039     void done(int, QString);
0040 #endif
0041 
0042 private:
0043     class Private;
0044     kdtools::pimpl_ptr<Private> d;
0045 };
0046 
0047 }