File indexing completed on 2025-01-05 04:55:46

0001 /*
0002     ui/cryptoconfigentryreaderport_p.h
0003 
0004     This file is part of libkleopatra
0005     SPDX-FileCopyrightText: 2021 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 "cryptoconfigmodule_p.h"
0014 
0015 namespace Kleo
0016 {
0017 class CryptoConfigModule;
0018 class ReaderPortSelection;
0019 
0020 /**
0021  * A widget manager for the reader-port entry of scdaemon in the crypto config
0022  */
0023 class CryptoConfigEntryReaderPort : public CryptoConfigEntryGUI
0024 {
0025     Q_OBJECT
0026 public:
0027     CryptoConfigEntryReaderPort(CryptoConfigModule *module,
0028                                 QGpgME::CryptoConfigEntry *entry,
0029                                 const QString &entryName,
0030                                 QGridLayout *layout,
0031                                 QWidget *parent = nullptr);
0032 
0033 private:
0034     void doSave() override;
0035     void doLoad() override;
0036 
0037 private:
0038     ReaderPortSelection *const mReaderPort = nullptr;
0039 };
0040 
0041 }