File indexing completed on 2024-06-23 05:14:23
0001 /* view/smartcardwidget.h 0002 0003 This file is part of Kleopatra, the KDE keymanager 0004 SPDX-FileCopyrightText: 2017 Bundesamt für Sicherheit in der Informationstechnik 0005 SPDX-FileContributor: Intevation GmbH 0006 0007 SPDX-License-Identifier: GPL-2.0-or-later 0008 */ 0009 #pragma once 0010 0011 #include <interfaces/focusfirstchild.h> 0012 0013 #include <QWidget> 0014 0015 #include <memory> 0016 0017 namespace Kleo 0018 { 0019 0020 /* SmartCardWidget a generic widget to interact with smartcards */ 0021 class SmartCardWidget : public QWidget, public FocusFirstChild 0022 { 0023 Q_OBJECT 0024 public: 0025 explicit SmartCardWidget(QWidget *parent = nullptr); 0026 ~SmartCardWidget() override; 0027 0028 void focusFirstChild(Qt::FocusReason reason = Qt::OtherFocusReason) override; 0029 0030 public Q_SLOTS: 0031 void reload(); 0032 0033 private: 0034 class Private; 0035 std::unique_ptr<Private> d; 0036 }; 0037 0038 } // namespace Kleo