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

0001 /*  commands/pivgeneratecardkeycommand.h
0002 
0003     This file is part of Kleopatra, the KDE keymanager
0004     SPDX-FileCopyrightText: 2020 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 PIVGenerateCardKeyCommand : public CardCommand
0019 {
0020     Q_OBJECT
0021 public:
0022     explicit PIVGenerateCardKeyCommand(const std::string &serialNumber, QWidget *parent);
0023     ~PIVGenerateCardKeyCommand() override;
0024 
0025     void setKeyRef(const std::string &keyref);
0026 
0027 private:
0028     void doStart() override;
0029     void doCancel() override;
0030 
0031 private:
0032     class Private;
0033     inline Private *d_func();
0034     inline const Private *d_func() const;
0035 };
0036 
0037 } // namespace Commands
0038 } // namespace Kleo