Messagelib
objecttreeparser.cpp
6 SPDX-FileCopyrightText: 2002-2004 Klarälvdalens Datakonsult AB, a KDAB Group company, info@kdab.net
43ObjectTreeParser::ObjectTreeParser(Interface::ObjectTreeSource *source, MimeTreeParser::NodeHelper *nodeHelper)
135MessagePartPtr ObjectTreeParser::processType(KMime::Content *node, ProcessResult &processResult, const QByteArray &mimeType)
137 const auto formatters = mSource->bodyPartFormatterFactory()->formattersForType(QString::fromUtf8(mimeType));
156MessagePart::Ptr ObjectTreeParser::parseObjectTreeInternal(KMime::Content *node, bool onlyOneMimePart)
258 if ((inlineSignatureState() != KMMsgNotSigned) || (inlineEncryptionState() != KMMsgNotEncrypted)) {
Headers::ContentType * contentType(bool create=true)
QString decodedText(bool trimText=false, bool removeTrailingNewlines=false)
Content * parent() const
bool isTopLevel() const
QList< KMime::Content * > List
QList< Content * > contents() const
QByteArray mimeType() const
The AlternativeMessagePart class.
Definition mimetreeparser/src/messagepart.h:260
QList< const Interface::BodyPartFormatter * > formattersForType(const QString &mimeType) const
Returns all suitable formatters for the given mimetype.
Definition bodypartformatterfactory.cpp:97
Interface for object tree sources.
Definition objecttreesource.h:33
virtual QByteArray overrideCodecName() const =0
The override codec that should be used for the mail.
The MessagePartList class.
Definition mimetreeparser/src/messagepart.h:169
static QByteArray charset(KMime::Content *node)
Returns the charset for the given node.
Definition mimetreeparser/src/nodehelper.cpp:328
static void magicSetType(KMime::Content *node, bool autoDecode=true)
Set the 'Content-Type' by mime-magic from the contents of the body.
Definition mimetreeparser/src/nodehelper.cpp:459
QByteArray codecName(KMime::Content *node) const
Get a codec suitable for this message part.
Definition mimetreeparser/src/nodehelper.cpp:561
Parses messages and generates HTML display code out of them.
Definition objecttreeparser.h:246
void parseObjectTree(KMime::Content *node, bool parseOnlySingleNode=false)
Parse beginning at a given node and recursively parsing the children of that node and it's next sibli...
Definition objecttreeparser.cpp:110
QString htmlContent() const
Similar to plainTextContent(), but returns the HTML source of the first text/html MIME part.
Definition objecttreeparser.cpp:103
QByteArray plainTextContentCharset() const
The original charset of MIME part the plain text was extracted from.
Definition objecttreeparser.cpp:286
an implementation of the BodyPart interface using KMime::Content's
Definition partnodebodypart.h:32
The TextMessagePart class.
Definition mimetreeparser/src/messagepart.h:187
KCALUTILS_EXPORT QString mimeType()
@ MultipartPlain
A multipart/alternative message, the plain text part is currently displayed.
Definition mimetreeparser/src/utils/util.h:35
QCA_EXPORT void init()
bool isEmpty() const const
QString fromUtf8(QByteArrayView str)
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Tue Mar 26 2024 11:12:43 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Tue Mar 26 2024 11:12:43 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.