Messagelib

messagepartrendererfactory.h
1 /*
2  This file is part of KMail, the KDE mail client.
3  SPDX-FileCopyrightText: 2017 Sandro KnauƟ <[email protected]>
4 
5  SPDX-License-Identifier: GPL-2.0-or-later
6 */
7 
8 #ifndef MESSAGEVIEWER_MESSAGEPARTRENDERERFACTORY_H
9 #define MESSAGEVIEWER_MESSAGEPARTRENDERERFACTORY_H
10 
11 #include "messageviewer_export.h"
12 
13 #include <MimeTreeParser/MessagePart>
14 
15 #include <QVector>
16 
17 #include <memory>
18 
19 namespace MessageViewer {
20 class MessagePartRendererBase;
21 class MessagePartRendererFactoryPrivate;
25 class MESSAGEVIEWER_EXPORT MessagePartRendererFactory
26 {
27 public:
30 
36  void setPluginPath(const QString &subdir);
37 
38  static MessagePartRendererFactory *instance();
39 
40  Q_REQUIRED_RESULT QVector<MessagePartRendererBase *> renderersForPart(const QMetaObject *mo, const MimeTreeParser::MessagePart::Ptr &mp) const;
41 
42 private:
43  Q_DISABLE_COPY(MessagePartRendererFactory)
44  std::unique_ptr<MessagePartRendererFactoryPrivate> d;
45 };
46 }
47 
48 #endif
The MessagePartRendererFactory class.
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Fri Sep 25 2020 23:14:22 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.