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

0001 /*  commands/openpgpgeneratecardkeycommand.h
0002 
0003     This file is part of Kleopatra, the KDE keymanager
0004     SPDX-FileCopyrightText: 2022 g10 Code GmbH
0005     SPDX-FileContributor: Ingo Klöcker <dev@ingo-kloecker.de>
0006 
0007     SPDX-License-Identifier: GPL-2.0-or-later
0008 */
0009 #pragma once
0010 
0011 #include "cardcommand.h"
0012 
0013 namespace Kleo
0014 {
0015 namespace Commands
0016 {
0017 
0018 class OpenPGPGenerateCardKeyCommand : public CardCommand
0019 {
0020     Q_OBJECT
0021 public:
0022     explicit OpenPGPGenerateCardKeyCommand(const std::string &keyref, const std::string &serialNumber, QWidget *parent);
0023     ~OpenPGPGenerateCardKeyCommand() override;
0024 
0025 private:
0026     void doStart() override;
0027     void doCancel() override;
0028 
0029 private:
0030     class Private;
0031     inline Private *d_func();
0032     inline const Private *d_func() const;
0033 };
0034 
0035 } // namespace Commands
0036 } // namespace Kleo