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
Content * parent()
bool isTopLevel() const
QList< KMime::Content * > List
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
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
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
KCALUTILS_EXPORT QString mimeType()
void init(KXmlGuiWindow *window, KGameDifficulty *difficulty=nullptr)
@ MultipartPlain
A multipart/alternative message, the plain text part is currently displayed.
Definition mimetreeparser/src/utils/util.h:35
QString fromUtf8(QByteArrayView str)
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Feb 21 2025 11:47:09 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Feb 21 2025 11:47:09 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.