File indexing completed on 2024-06-02 05:24:35
0001 /* -*- mode: c++; c-basic-offset:4 -*- 0002 dialogs/deletecertificatesdialog.h 0003 0004 This file is part of Kleopatra, the KDE keymanager 0005 SPDX-FileCopyrightText: 2009 Klarälvdalens Datakonsult AB 0006 0007 SPDX-License-Identifier: GPL-2.0-or-later 0008 */ 0009 0010 #pragma once 0011 0012 #include <QDialog> 0013 0014 #include <utils/pimpl_ptr.h> 0015 0016 #include <vector> 0017 0018 namespace GpgME 0019 { 0020 class Key; 0021 } 0022 0023 namespace Kleo 0024 { 0025 namespace Dialogs 0026 { 0027 0028 class DeleteCertificatesDialog : public QDialog 0029 { 0030 Q_OBJECT 0031 public: 0032 explicit DeleteCertificatesDialog(QWidget *parent = nullptr); 0033 ~DeleteCertificatesDialog() override; 0034 0035 void setSelectedKeys(const std::vector<GpgME::Key> &keys); 0036 void setUnselectedKeys(const std::vector<GpgME::Key> &keys); 0037 0038 std::vector<GpgME::Key> keys() const; 0039 0040 void accept() override; 0041 0042 private: 0043 class Private; 0044 kdtools::pimpl_ptr<Private> d; 0045 Q_PRIVATE_SLOT(d, void slotWhatsThisRequested()) 0046 }; 0047 0048 } 0049 }