Messagelib

messagepartrenderplugin.h
1 /*
2  SPDX-FileCopyrightText: 2017 Volker Krause <[email protected]>
3 
4  SPDX-License-Identifier: LGPL-2.0-or-later
5 */
6 
7 #pragma once
8 
9 #include "messageviewer_export.h"
10 
11 #include <QtPlugin>
12 
13 namespace MessageViewer
14 {
15 namespace Interface
16 {
17 class BodyPartURLHandler;
18 }
19 class MessagePartRendererBase;
20 
21 /**
22  * Plugin interface for MessagePartRendererBase instances.
23  */
24 class MESSAGEVIEWER_EXPORT MessagePartRenderPlugin
25 {
26 public:
27  virtual ~MessagePartRenderPlugin();
28  virtual MessagePartRendererBase *renderer(int index) = 0;
29  virtual const Interface::BodyPartURLHandler *urlHandler(int idx) const;
30 };
31 }
32 
33 Q_DECLARE_INTERFACE(MessageViewer::MessagePartRenderPlugin, "org.kde.messageviewer.messagepartrenderer/1.1")
34 
An interface to body part reader link handlers.
Plugin interface for MessagePartRendererBase instances.
The MessagePartRendererBase class.
This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Tue Nov 30 2021 23:05:47 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.