File indexing completed on 2024-06-02 05:24:08
0001 /* commands/certificatetopivcardcommand.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 0010 #pragma once 0011 0012 #include <commands/cardcommand.h> 0013 0014 namespace GpgME 0015 { 0016 class Error; 0017 } 0018 0019 namespace Kleo 0020 { 0021 namespace Commands 0022 { 0023 0024 class CertificateToPIVCardCommand : public CardCommand 0025 { 0026 Q_OBJECT 0027 public: 0028 CertificateToPIVCardCommand(const std::string &cardSlot, const std::string &serialno); 0029 ~CertificateToPIVCardCommand() override; 0030 0031 public Q_SLOTS: 0032 void certificateToPIVCardDone(const GpgME::Error &err); 0033 0034 private: 0035 void doStart() override; 0036 void doCancel() override; 0037 0038 private: 0039 class Private; 0040 inline Private *d_func(); 0041 inline const Private *d_func() const; 0042 }; 0043 0044 } 0045 }