Messagelib

simpleobjecttreesource.h
1 /*
2  SPDX-FileCopyrightText: 2017 Sandro Kanuß <[email protected]>
3 
4  SPDX-License-Identifier: LGPL-2.0-or-later
5 */
6 
7 #pragma once
8 
9 #include "mimetreeparser/objecttreesource.h"
10 #include <memory>
11 
12 namespace MimeTreeParser
13 {
14 class SimpleObjectTreeSourcePrivate;
15 
16 /**
17  * A very simple ObjectTreeSource.
18  * mostly used in tests and outside the read redering
19  */
20 class MIMETREEPARSER_EXPORT SimpleObjectTreeSource : public Interface::ObjectTreeSource
21 {
22 public:
24  ~SimpleObjectTreeSource() override;
25 
26  Q_REQUIRED_RESULT bool autoImportKeys() const override;
27 
28  const BodyPartFormatterFactory *bodyPartFormatterFactory() override;
29  Q_REQUIRED_RESULT bool decryptMessage() const override;
30  void setDecryptMessage(bool decryptMessage);
31 
32  void setHtmlMode(MimeTreeParser::Util::HtmlMode mode, const QList<MimeTreeParser::Util::HtmlMode> &availableModes) override;
33 
34  void setPreferredMode(MimeTreeParser::Util::HtmlMode mode);
35  Q_REQUIRED_RESULT MimeTreeParser::Util::HtmlMode preferredMode() const override;
36 
37  const QTextCodec *overrideCodec() override;
38 
39 private:
40  std::unique_ptr<SimpleObjectTreeSourcePrivate> d;
41 };
42 }
HtmlMode
Describes the type of the displayed message.
The place to obtain BodyPartFormatter candidates for a given mime type.
Interface for object tree sources.
A very simple ObjectTreeSource.
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.