Messagelib

objecttreeviewersource.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 "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 }
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.
MimeTreeParser::Util::HtmlMode preferredMode() const override
Return the mode that is the preferred to display.
The CSSHelperBase class.
Definition: csshelperbase.h:26
HtmlMode
Describes the type of the displayed message.
const QTextCodec * overrideCodec() override
The override codec that should be used for the mail.
An interface for HTML sinks.
Definition: htmlwriter.h:28
The AttachmentStrategy class.
An ObjectTreeParser source working on a MailViewer object.
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
QString message
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Wed Mar 22 2023 04:07:15 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.