Messagelib
mimetreeparser/src/utils/util.cpp
29 const bool firstTextChildOfEncapsulatedMsg = mediaTypeLower == "text" && contentType->subType().toLower() == "plain" && node->parent()
60QString MimeTreeParser::Util::iconNameForMimetype(const QString &mimeType, const QString &fallbackFileName1, const QString &fallbackFileName2)
135 return MimeTreeParser::Util::iconNameForMimetype(QLatin1StringView(mimeType), node->contentDisposition()->filename(), ct->name());
145 case MultipartPlain: ///< A multipart/alternative message, the plain text part is currently displayed
const Headers::ContentType * contentType() const
Content * parent()
const Headers::ContentDisposition * contentDisposition() const
Content * topLevel()
const Headers::ContentDescription * contentDescription() const
QString filename() const
QByteArray mediaType() const
QString name() const
QString asUnicodeString() const override
static QString fileName(const KMime::Content *node)
Returns a usable filename for a node, that can be the filename from the content disposition header,...
Definition nodehelper.cpp:587
KCALUTILS_EXPORT QString mimeType()
QString name(StandardAction id)
QString label(StandardShortcut id)
The Util namespace contains a collection of helper functions use in various places.
Definition mimetreeparser/src/utils/util.h:27
MIMETREEPARSER_EXPORT QString htmlModeToString(Util::HtmlMode mode)
Definition mimetreeparser/src/utils/util.cpp:138
@ MultipartPlain
A multipart/alternative message, the plain text part is currently displayed.
Definition mimetreeparser/src/utils/util.h:35
@ MultipartIcal
A multipart/alternative message, the ICal part is currently displayed.
Definition mimetreeparser/src/utils/util.h:37
@ MultipartHtml
A multipart/alternative message, the HTML part is currently displayed.
Definition mimetreeparser/src/utils/util.h:36
QByteArray toLower() const const
QMimeType mimeTypeForFile(const QFileInfo &fileInfo, MatchMode mode) const const
QMimeType mimeTypeForName(const QString &nameOrAlias) const const
QList< QMimeType > mimeTypesForFileName(const QString &fileName) const const
iconName
name
void clear()
bool isEmpty() const const
bool isNull() const const
QByteArray toLatin1() const const
QString toLower() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:07:25 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:07:25 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.