Messagelib

objecttreesource.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 #ifndef MIMETREEPARSER_OBJECTTREESOURCE_IF_H
9 #define MIMETREEPARSER_OBJECTTREESOURCE_IF_H
10 
11 #include "mimetreeparser_export.h"
12 #include <MimeTreeParser/Util>
13 
14 #include <KMime/Message>
15 #include <QSharedPointer>
16 class QTextCodec;
17 
18 namespace MimeTreeParser {
19 class BodyPartFormatterFactory;
20 class MessagePart;
21 typedef QSharedPointer<MessagePart> MessagePartPtr;
22 }
23 
24 namespace MimeTreeParser {
25 namespace Interface {
30 class MIMETREEPARSER_EXPORT ObjectTreeSource
31 {
32 public:
34  virtual ~ObjectTreeSource();
35 
41  virtual void setHtmlMode(MimeTreeParser::Util::HtmlMode mode, const QList<MimeTreeParser::Util::HtmlMode> &availableModes) = 0;
42 
44  virtual MimeTreeParser::Util::HtmlMode preferredMode() const = 0;
45 
47  virtual bool decryptMessage() const = 0;
48 
50  virtual const QTextCodec *overrideCodec() = 0;
51 
53  virtual bool autoImportKeys() const = 0;
54 
55  virtual const BodyPartFormatterFactory *bodyPartFormatterFactory() = 0;
56 private:
57  Q_DISABLE_COPY(ObjectTreeSource)
58 };
59 }
60 }
61 #endif
HtmlMode
Describes the type of the displayed message.
The place to obtain BodyPartFormatter candidates for a given mime type.
Interface for object tree sources.
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Nov 30 2020 23:14:51 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.