File indexing completed on 2024-06-23 05:14:05
0001 /* -*- mode: c++; c-basic-offset:4 -*- 0002 dialogs/revokekeydialog.h 0003 0004 This file is part of Kleopatra, the KDE keymanager 0005 SPDX-FileCopyrightText: 2022 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 <config-kleopatra.h> 0014 0015 #include <QDialog> 0016 0017 #include <memory> 0018 0019 namespace GpgME 0020 { 0021 class Key; 0022 enum class RevocationReason; 0023 } 0024 0025 namespace Kleo 0026 { 0027 0028 class RevokeKeyDialog : public QDialog 0029 { 0030 Q_OBJECT 0031 public: 0032 explicit RevokeKeyDialog(QWidget *parent = nullptr, Qt::WindowFlags f = {}); 0033 ~RevokeKeyDialog() override; 0034 0035 void setKey(const GpgME::Key &key); 0036 0037 GpgME::RevocationReason reason() const; 0038 QString description() const; 0039 0040 private: 0041 class Private; 0042 const std::unique_ptr<Private> d; 0043 }; 0044 0045 } // namespace Kleo