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)) {
QString decodedText(bool trimText, bool removeTrailingNewlines=false) const
const Headers::ContentType * contentType() const
QList< KMime::Content * > List
Content * parent()
bool isTopLevel() const
QList< Content * > contents()
QByteArray mimeType() const
The AlternativeMessagePart class.
Definition mimetreeparser/src/messagepart.h:263
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:168
Definition nodehelper.h:42
static void magicSetType(KMime::Content *node, bool autoDecode=true)
Set the 'Content-Type' by mime-magic from the contents of the body.
Definition nodehelper.cpp:457
QByteArray codecName(KMime::Content *node) const
Get a codec suitable for this message part.
Definition nodehelper.cpp:559
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
an implementation of the BodyPart interface using KMime::Content's
Definition partnodebodypart.h:32
The TextMessagePart class.
Definition mimetreeparser/src/messagepart.h:190
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 Sat Dec 21 2024 16:59:13 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 16:59:13 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.