File indexing completed on 2024-06-02 05:24:46

0001 /* -*- mode: c++; c-basic-offset:4 -*-
0002     uiserver/importfilescommand.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 "assuancommand.h"
0013 #include <QObject>
0014 
0015 namespace Kleo
0016 {
0017 
0018 class ImportFilesCommand : public QObject, public AssuanCommandMixin<ImportFilesCommand>
0019 {
0020     Q_OBJECT
0021 public:
0022     ImportFilesCommand();
0023     ~ImportFilesCommand() override;
0024 
0025     static const char *staticName()
0026     {
0027         return "IMPORT_FILES";
0028     }
0029 
0030 private:
0031     int doStart() override;
0032     void doCanceled() override;
0033 
0034 private:
0035     class Private;
0036     kdtools::pimpl_ptr<Private> d;
0037     Q_PRIVATE_SLOT(d, void slotCommandFinished())
0038     Q_PRIVATE_SLOT(d, void slotCommandCanceled())
0039 };
0040 
0041 }