File indexing completed on 2024-06-02 05:24:10
0001 /* -*- mode: c++; c-basic-offset:4 -*- 0002 commands/decryptverifyclipboardcommand.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 #ifndef QT_NO_CLIPBOARD 0015 0016 #include <utils/types.h> 0017 0018 namespace Kleo 0019 { 0020 namespace Commands 0021 { 0022 0023 class DecryptVerifyClipboardCommand : public Command 0024 { 0025 Q_OBJECT 0026 public: 0027 explicit DecryptVerifyClipboardCommand(QAbstractItemView *view, KeyListController *parent); 0028 explicit DecryptVerifyClipboardCommand(KeyListController *parent); 0029 ~DecryptVerifyClipboardCommand() override; 0030 0031 static bool canDecryptVerifyCurrentClipboard(); 0032 0033 private: 0034 void doStart() override; 0035 void doCancel() override; 0036 0037 private: 0038 class Private; 0039 inline Private *d_func(); 0040 inline const Private *d_func() const; 0041 }; 0042 0043 } 0044 } 0045 0046 #endif // QT_NO_CLIPBOARD