Messagelib

objecttreeemptysource.h
1 /*
2  SPDX-FileCopyrightText: 2009 Klarälvdalens Datakonsult AB, a KDAB Group company, [email protected]
3  SPDX-FileCopyrightText: 2009 Andras Mantia <[email protected]>
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 class QString;
13 
14 namespace MessageViewer
15 {
16 class AttachmentStrategy;
17 class CSSHelperBase;
18 class HtmlWriter;
19 
20 /** An ObjectTreeSource that does not work on anything */
21 class EmptySourcePrivate;
22 /**
23  * @brief The EmptySource class
24  */
25 class MESSAGEVIEWER_EXPORT EmptySource : public MimeTreeParser::Interface::ObjectTreeSource
26 {
27 public:
28  EmptySource();
29  ~EmptySource() override;
30  Q_REQUIRED_RESULT bool decryptMessage() const override;
31  void setHtmlMode(MimeTreeParser::Util::HtmlMode mode, const QList<MimeTreeParser::Util::HtmlMode> &availableModes) override;
32  Q_REQUIRED_RESULT MimeTreeParser::Util::HtmlMode preferredMode() const override;
33  void setAllowDecryption(bool allowDecryption);
34  const QTextCodec *overrideCodec() override;
35  virtual QString createMessageHeader(KMime::Message *message);
36  Q_REQUIRED_RESULT bool autoImportKeys() const override;
37 
38  const MimeTreeParser::BodyPartFormatterFactory *bodyPartFormatterFactory() override;
39  void render(const MimeTreeParser::MessagePartPtr &msgPart, bool showOnlyOneMimePart);
40 
41  virtual const AttachmentStrategy *attachmentStrategy() const;
42  virtual HtmlWriter *htmlWriter() const;
43  virtual CSSHelperBase *cssHelper() const;
44  /** Return true if external sources should be loaded in a html mail */
45  virtual bool htmlLoadExternal() const;
46  virtual bool showSignatureDetails() const;
47  virtual bool showEncryptionDetails() const;
48  virtual bool showEmoticons() const;
49  virtual bool showExpandQuotesMark() const;
50  virtual bool isPrinting() const;
51  virtual int levelQuote() const;
52 
53 private:
54  std::unique_ptr<EmptySourcePrivate> const d;
55 };
56 }
57 
HtmlMode
Describes the type of the displayed message.
The place to obtain BodyPartFormatter candidates for a given mime type.
The EmptySource class.
The CSSHelperBase class.
Definition: csshelperbase.h:26
The AttachmentStrategy class.
Interface for object tree sources.
An interface for HTML sinks.
Definition: htmlwriter.h:28
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.