File indexing completed on 2024-06-23 05:14:05
0001 /* -*- mode: c++; c-basic-offset:4 -*- 0002 dialogs/newopenpgpcertificatedetailsdialog.h 0003 0004 This file is part of Kleopatra, the KDE keymanager 0005 SPDX-FileCopyrightText: 2008 Klarälvdalens Datakonsult AB 0006 SPDX-FileCopyrightText: 2022 g10 Code GmbH 0007 SPDX-FileContributor: Ingo Klöcker <dev@ingo-kloecker.de> 0008 0009 SPDX-License-Identifier: GPL-2.0-or-later 0010 */ 0011 0012 #pragma once 0013 0014 #include <QDialog> 0015 0016 #include <memory> 0017 0018 namespace Kleo 0019 { 0020 class KeyParameters; 0021 0022 class NewOpenPGPCertificateDetailsDialog : public QDialog 0023 { 0024 Q_OBJECT 0025 public: 0026 explicit NewOpenPGPCertificateDetailsDialog(QWidget *parent = nullptr, Qt::WindowFlags f = {}); 0027 ~NewOpenPGPCertificateDetailsDialog() override; 0028 0029 void setName(const QString &name); 0030 QString name() const; 0031 0032 void setEmail(const QString &email); 0033 QString email() const; 0034 0035 void setKeyParameters(const KeyParameters ¶meters); 0036 KeyParameters keyParameters() const; 0037 0038 void setProtectKeyWithPassword(bool protectKey); 0039 bool protectKeyWithPassword() const; 0040 0041 private: 0042 class Private; 0043 const std::unique_ptr<Private> d; 0044 }; 0045 0046 } // namespace Kleo