Messagelib
mimetreeparser/src/utils/util.cpp
29 const bool firstTextChildOfEncapsulatedMsg = mediaTypeLower == "text" && contentType->subType().toLower() == "plain" && node->parent()
60 QString MimeTreeParser::Util::iconNameForMimetype(const QString &mimeType, const QString &fallbackFileName1, const QString &fallbackFileName2)
135 return MimeTreeParser::Util::iconNameForMimetype(QLatin1String(mimeType), node->contentDisposition()->filename(), ct->name());
145 case MultipartPlain: ///< A multipart/alternative message, the plain text part is currently displayed
bool isNull() const const
QByteArray toLower() const const
QString filename() const
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: mimetreeparser/src/nodehelper.cpp:589
Content * parent() const
MIMETREEPARSER_EXPORT QString htmlModeToString(Util::HtmlMode mode)
Definition: mimetreeparser/src/utils/util.cpp:138
void clear()
QString asUnicodeString() const override
@ MultipartHtml
A multipart/alternative message, the HTML part is currently displayed.
Definition: mimetreeparser/src/utils/util.h:36
QByteArray toLatin1() const const
KCALUTILS_EXPORT QString mimeType()
Content * topLevel() const
QByteArray mediaType() const
QString name() const
QMimeType mimeTypeForName(const QString &nameOrAlias) const const
bool isEmpty() const const
The Util namespace contains a collection of helper functions use in various places.
Definition: mimetreeparser/src/utils/util.h:26
Headers::ContentDisposition * contentDisposition(bool create=true)
name
QString label(StandardShortcut id)
QString toLower() const const
@ MultipartIcal
A multipart/alternative message, the ICal part is currently displayed.
Definition: mimetreeparser/src/utils/util.h:37
const char * name(StandardAction id)
QMimeType mimeTypeForFile(const QString &fileName, QMimeDatabase::MatchMode mode) const const
QStringList mimeTypes(Mode mode=Writing)
Headers::ContentType * contentType(bool create=true)
iconName
@ MultipartPlain
A multipart/alternative message, the plain text part is currently displayed.
Definition: mimetreeparser/src/utils/util.h:35
QList< QMimeType > mimeTypesForFileName(const QString &fileName) const const
Headers::ContentDescription * contentDescription(bool create=true)
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Thu Nov 30 2023 03:56:27 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2023 The KDE developers.
Generated on Thu Nov 30 2023 03:56:27 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.