Messagelib

defaultrenderer.h
1/*
2 SPDX-FileCopyrightText: 2016 Sandro Knauß <sknauss@kde.org>
3
4 SPDX-License-Identifier: LGPL-2.0-or-later
5*/
6
7#pragma once
8
9#include <QSharedPointer>
10
11#include <functional>
12
13namespace KMime
14{
15class Message;
16}
17
18namespace MimeTreeParser
19{
20class MessagePart;
21using MessagePartPtr = QSharedPointer<MessagePart>;
22}
23
24namespace MessageViewer
25{
26class DefaultRendererPrivate;
27class HtmlWriter;
28class AttachmentStrategy;
29class CSSHelperBase;
30
31class DefaultRenderer
32{
33public:
34 explicit DefaultRenderer(CSSHelperBase *cssHelder);
35 ~DefaultRenderer();
36
37 void setShowOnlyOneMimePart(bool onlyOneMimePart);
38 void setAttachmentStrategy(const AttachmentStrategy *strategy);
39 void setShowEmoticons(bool showEmoticons);
40 void setIsPrinting(bool isPrinting);
41 void setShowExpandQuotesMark(bool showExpandQuotesMark);
42 void setShowSignatureDetails(bool showSignatureDetails);
43 void setLevelQuote(int levelQuote);
44 void setHtmlLoadExternal(bool htmlLoadExternal);
45 void setCreateMessageHeader(const std::function<QString(KMime::Message *)> &);
46 void render(const MimeTreeParser::MessagePartPtr &msgPart, HtmlWriter *writer);
47 void setShowEncryptionDetails(bool showEncryptionDetails);
48
49private:
50 std::unique_ptr<DefaultRendererPrivate> const d;
51};
52}
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 16:59:13 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.