File indexing completed on 2024-06-23 05:13:36
0001 /* commands/cardcommand.h 0002 0003 This file is part of Kleopatra, the KDE keymanager 0004 SPDX-FileCopyrightText: 2007 Klarälvdalens Datakonsult AB 0005 SPDX-FileCopyrightText: 2020 g10 Code GmbH 0006 SPDX-FileContributor: Ingo Klöcker <dev@ingo-kloecker.de> 0007 0008 SPDX-License-Identifier: GPL-2.0-or-later 0009 */ 0010 0011 #pragma once 0012 0013 #include "command.h" 0014 0015 namespace Kleo 0016 { 0017 0018 class CardCommand : public Command 0019 { 0020 Q_OBJECT 0021 public: 0022 explicit CardCommand(const std::string &serialNumber, QWidget *parent); 0023 ~CardCommand() override; 0024 0025 void setAutoResetCardToOpenPGP(bool autoReset); 0026 bool autoResetCardToOpenPGP() const; 0027 0028 protected: 0029 class Private; 0030 inline Private *d_func(); 0031 inline const Private *d_func() const; 0032 0033 protected: 0034 explicit CardCommand(Private *pp); 0035 }; 0036 0037 } // namespace Kleo