Messagelib

objecttreeviewersource.h
1 /*
2  SPDX-FileCopyrightText: 2009 Klarälvdalens Datakonsult AB, a KDAB Group company, [email protected].net
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 "objecttreeemptysource.h"
11 class QString;
12 
13 namespace MessageViewer
14 {
15 class AttachmentStrategy;
16 class HtmlWriter;
17 class ViewerPrivate;
18 
19 /** An ObjectTreeParser source working on a MailViewer object */
21 {
22 public:
23  explicit MailViewerSource(ViewerPrivate *viewer);
24  ~MailViewerSource() override;
25  Q_REQUIRED_RESULT bool decryptMessage() const override;
26  Q_REQUIRED_RESULT bool htmlLoadExternal() const override;
27  void setHtmlMode(MimeTreeParser::Util::HtmlMode mode, const QList<MimeTreeParser::Util::HtmlMode> &availableModes) override;
28  Q_REQUIRED_RESULT MimeTreeParser::Util::HtmlMode preferredMode() const override;
29  Q_REQUIRED_RESULT int levelQuote() const override;
30  const QTextCodec *overrideCodec() override;
31  Q_REQUIRED_RESULT QString createMessageHeader(KMime::Message *message) override;
32  const AttachmentStrategy *attachmentStrategy() const override;
33  HtmlWriter *htmlWriter() const override;
34  CSSHelperBase *cssHelper() const override;
35 
36  Q_REQUIRED_RESULT bool autoImportKeys() const override;
37  Q_REQUIRED_RESULT bool showSignatureDetails() const override;
38  Q_REQUIRED_RESULT bool showEncryptionDetails() const override;
39  Q_REQUIRED_RESULT bool showEmoticons() const override;
40  Q_REQUIRED_RESULT bool showExpandQuotesMark() const override;
41  Q_REQUIRED_RESULT bool isPrinting() const override;
42 
43 private:
44  ViewerPrivate *const mViewer;
45 };
46 }
47 
HtmlMode
Describes the type of the displayed message.
The EmptySource class.
void setHtmlMode(MimeTreeParser::Util::HtmlMode mode, const QList< MimeTreeParser::Util::HtmlMode > &availableModes) override
Sets the type of mail that is currently displayed.
bool autoImportKeys() const override
should keys be imported automatically
The CSSHelperBase class.
Definition: csshelperbase.h:26
bool decryptMessage() const override
Return true if an encrypted mail should be decrypted.
bool htmlLoadExternal() const override
Return true if external sources should be loaded in a html mail.
const QTextCodec * overrideCodec() override
The override codec that should be used for the mail.
An ObjectTreeParser source working on a MailViewer object.
The AttachmentStrategy class.
MimeTreeParser::Util::HtmlMode preferredMode() const override
Return the mode that is the preferred to display.
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 Fri Nov 26 2021 23:16:43 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.