File indexing completed on 2024-06-23 05:13:39
0001 /* -*- mode: c++; c-basic-offset:4 -*- 0002 commands/detailscommand.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 <commands/command.h> 0013 0014 namespace GpgME 0015 { 0016 class Key; 0017 } 0018 0019 namespace Kleo 0020 { 0021 namespace Commands 0022 { 0023 0024 class DetailsCommand : public Command 0025 { 0026 Q_OBJECT 0027 public: 0028 DetailsCommand(QAbstractItemView *view, KeyListController *parent); 0029 explicit DetailsCommand(const GpgME::Key &key); 0030 ~DetailsCommand() override; 0031 0032 /* reimp */ static Restrictions restrictions() 0033 { 0034 return OnlyOneKey; 0035 } 0036 0037 private: 0038 void doStart() override; 0039 void doCancel() override; 0040 0041 private: 0042 class Private; 0043 inline Private *d_func(); 0044 inline const Private *d_func() const; 0045 Q_PRIVATE_SLOT(d_func(), void slotDialogClosed()) 0046 }; 0047 0048 } 0049 }