File indexing completed on 2024-06-23 05:13:45
0001 /* -*- mode: c++; c-basic-offset:4 -*- 0002 commands/selftestcommand.h 0003 0004 This file is part of Kleopatra, the KDE keymanager 0005 SPDX-FileCopyrightText: 2008 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 Kleo 0015 { 0016 namespace Commands 0017 { 0018 0019 class SelfTestCommand : public Command 0020 { 0021 Q_OBJECT 0022 public: 0023 explicit SelfTestCommand(QAbstractItemView *view, KeyListController *parent); 0024 explicit SelfTestCommand(KeyListController *parent); 0025 ~SelfTestCommand() override; 0026 0027 void setAutomaticMode(bool automatic); 0028 0029 bool isCanceled() const; 0030 0031 private: 0032 void doStart() override; 0033 void doCancel() override; 0034 0035 private: 0036 class Private; 0037 inline Private *d_func(); 0038 inline const Private *d_func() const; 0039 }; 0040 0041 } 0042 }