1 /* -*- mode: c++; c-basic-offset:4 -*- 2 commands/decryptverifyclipboardcommand.h 3 4 This file is part of Kleopatra, the KDE keymanager 5 SPDX-FileCopyrightText: 2008 Klarälvdalens Datakonsult AB 6 7 SPDX-License-Identifier: GPL-2.0-or-later 8 */ 9 10 #pragma once 11 12 #include <commands/command.h> 13 14 #ifndef QT_NO_CLIPBOARD 15 16 #include <utils/types.h> 17 18 namespace Kleo 19 { 20 namespace Commands 21 { 22 23 class DecryptVerifyClipboardCommand : public Command 24 { 25 Q_OBJECT 26 public: 27 explicit DecryptVerifyClipboardCommand(QAbstractItemView *view, KeyListController *parent); 28 explicit DecryptVerifyClipboardCommand(KeyListController *parent); 29 ~DecryptVerifyClipboardCommand() override; 30 31 static bool canDecryptVerifyCurrentClipboard(); 32 33 private: 34 void doStart() override; 35 void doCancel() override; 36 37 private: 38 class Private; 39 inline Private *d_func(); 40 inline const Private *d_func() const; 41 Q_PRIVATE_SLOT(d_func(), void slotControllerDone()) 42 Q_PRIVATE_SLOT(d_func(), void slotControllerError(int, QString)) 43 }; 44 45 } 46 } 47 48 #endif // QT_NO_CLIPBOARD 49 50