File indexing completed on 2024-06-23 05:14:13
0001 /* -*- mode: c++; c-basic-offset:4 -*- 0002 uiserver/decryptcommand.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 <uiserver/decryptverifycommandemailbase.h> 0013 0014 namespace Kleo 0015 { 0016 0017 class DecryptCommand : public AssuanCommandMixin<DecryptCommand, DecryptVerifyCommandEMailBase> 0018 { 0019 public: 0020 // DecryptCommand(); 0021 //~DecryptCommand(); 0022 0023 private: 0024 DecryptVerifyOperation operation() const override 0025 { 0026 if (hasOption("no-verify")) { 0027 return Decrypt; 0028 } else { 0029 return DecryptVerify; 0030 } 0031 } 0032 0033 public: 0034 static const char *staticName() 0035 { 0036 return "DECRYPT"; 0037 } 0038 }; 0039 0040 }