File indexing completed on 2024-09-22 04:50:01
0001 /* 0002 * SPDX-FileCopyrightText: 2017 Daniel Vrátil <dvratil@kde.org> 0003 * 0004 * SPDX-License-Identifier: GPL-2.0-or-later 0005 * 0006 */ 0007 0008 #pragma once 0009 0010 #include "filteraction.h" 0011 0012 #include <gpgme++/global.h> 0013 0014 namespace MailCommon 0015 { 0016 class FilterActionWithCrypto : public FilterAction 0017 { 0018 Q_OBJECT 0019 0020 protected: 0021 using FilterAction::FilterAction; 0022 0023 [[nodiscard]] QStringList getEncryptionKeysFromContent(const KMime::Message::Ptr &msg, GpgME::Protocol proto) const; 0024 0025 private: 0026 // cached values 0027 mutable QString mGpgSmPath; 0028 mutable QString mGpgPath; 0029 }; 0030 } // namespace MailCommon