File indexing completed on 2024-06-23 05:13:39
0001 /* -*- mode: c++; c-basic-offset:4 -*- 0002 deletecertificatescommand.h 0003 0004 This file is part of Kleopatra, the KDE keymanager 0005 SPDX-FileCopyrightText: 2007 Klarälvdalens Datakonsult AB 0006 0007 SPDX-License-Identifier: GPL-2.0-or-later 0008 */ 0009 0010 #pragma once 0011 0012 #include "command.h" 0013 0014 namespace Kleo 0015 { 0016 class DeleteCertificatesCommand : public Command 0017 { 0018 Q_OBJECT 0019 public: 0020 explicit DeleteCertificatesCommand(QAbstractItemView *view, KeyListController *parent); 0021 explicit DeleteCertificatesCommand(KeyListController *parent); 0022 ~DeleteCertificatesCommand() override; 0023 0024 /* reimp */ static Restrictions restrictions() 0025 { 0026 return NeedSelection; 0027 } 0028 0029 private: 0030 void doStart() override; 0031 void doCancel() override; 0032 0033 private: 0034 class Private; 0035 inline Private *d_func(); 0036 inline const Private *d_func() const; 0037 }; 0038 }