Messagelib

objecttreeemptysource.h
1/*
2 SPDX-FileCopyrightText: 2009 Klarälvdalens Datakonsult AB, a KDAB Group company, info@kdab.net
3 SPDX-FileCopyrightText: 2009 Andras Mantia <andras@kdab.net>
4
5 SPDX-License-Identifier: GPL-2.0-or-later
6*/
7
8#pragma once
9
10#include "messageviewer_export.h"
11#include <MimeTreeParser/ObjectTreeSource>
12
13class QString;
14class QStringDecoder;
15namespace MessageViewer
16{
17class AttachmentStrategy;
18class CSSHelperBase;
19class HtmlWriter;
20
21/** An ObjectTreeSource that does not work on anything */
22class EmptySourcePrivate;
23/**
24 * @brief The EmptySource class
25 */
27{
28public:
30 ~EmptySource() override;
31 [[nodiscard]] bool decryptMessage() const override;
32 void setHtmlMode(MimeTreeParser::Util::HtmlMode mode, const QList<MimeTreeParser::Util::HtmlMode> &availableModes) override;
33 [[nodiscard]] MimeTreeParser::Util::HtmlMode preferredMode() const override;
34 void setAllowDecryption(bool allowDecryption);
35 QByteArray overrideCodecName() const override;
36 virtual QString createMessageHeader(KMime::Message *message);
37 [[nodiscard]] bool autoImportKeys() const override;
38
39 const MimeTreeParser::BodyPartFormatterFactory *bodyPartFormatterFactory() override;
40 void render(const MimeTreeParser::MessagePartPtr &msgPart, bool showOnlyOneMimePart);
41
42 virtual const AttachmentStrategy *attachmentStrategy() const;
43 virtual HtmlWriter *htmlWriter() const;
44 virtual CSSHelperBase *cssHelper() const;
45 /** Return true if external sources should be loaded in a html mail */
46 virtual bool htmlLoadExternal() const;
47 virtual bool showSignatureDetails() const;
48 virtual bool showEncryptionDetails() const;
49 virtual bool showEmoticons() const;
50 virtual bool showExpandQuotesMark() const;
51 virtual bool isPrinting() const;
52 virtual int levelQuote() const;
53
54private:
55 std::unique_ptr<EmptySourcePrivate> const d;
56};
57}
The AttachmentStrategy class.
The CSSHelperBase class.
An interface for HTML sinks.
Definition htmlwriter.h:29
The place to obtain BodyPartFormatter candidates for a given mime type.
Interface for object tree sources.
HtmlMode
Describes the type of the displayed message.
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Tue Mar 26 2024 11:12:43 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.