File indexing completed on 2025-01-19 04:46:50
0001 /* 0002 SPDX-FileCopyrightText: 2016 Klarälvdalens Datakonsult AB, a KDAB Group company <info@kdab.net> 0003 0004 SPDX-License-Identifier: LGPL-2.0-or-later 0005 */ 0006 0007 #pragma once 0008 0009 #include <MessageViewer/MessagePartRenderPlugin> 0010 #include <MimeTreeParser/BodyPartFormatter> 0011 0012 class ApplicationGnuPGWKSPlugin : public QObject, public MimeTreeParser::Interface::BodyPartFormatterPlugin, public MessageViewer::MessagePartRenderPlugin 0013 { 0014 Q_OBJECT 0015 Q_INTERFACES(MimeTreeParser::Interface::BodyPartFormatterPlugin) 0016 Q_INTERFACES(MessageViewer::MessagePartRenderPlugin) 0017 Q_PLUGIN_METADATA(IID "com.kde.messageviewer.bodypartformatter" FILE "gnupgwks.json") 0018 public: 0019 ApplicationGnuPGWKSPlugin() = default; 0020 0021 const MimeTreeParser::Interface::BodyPartFormatter *bodyPartFormatter(int idx) const override; 0022 MessageViewer::MessagePartRendererBase *renderer(int index) override; 0023 const MessageViewer::Interface::BodyPartURLHandler *urlHandler(int idx) const override; 0024 };