MimeTreeParser::Util
Enumerations | |
enum | HtmlMode { Normal , Html , MultipartPlain , MultipartHtml , MultipartIcal } |
Functions | |
MIMETREEPARSER_EXPORT QString | htmlModeToString (Util::HtmlMode mode) |
MIMETREEPARSER_EXPORT QString | iconNameForContent (KMime::Content *node) |
MIMETREEPARSER_EXPORT QString | iconNameForMimetype (const QString &mimeType, const QString &fallbackFileName1=QString(), const QString &fallbackFileName2=QString()) |
MIMETREEPARSER_EXPORT bool | isTypeBlacklisted (KMime::Content *node) |
MIMETREEPARSER_EXPORT QString | labelForContent (KMime::Content *node) |
MIMETREEPARSER_EXPORT QMimeType | mimetype (const QString &name) |
Detailed Description
The Util namespace contains a collection of helper functions use in various places.
Enumeration Type Documentation
◆ HtmlMode
Describes the type of the displayed message.
This depends on the MIME structure of the mail and on whether HTML mode is enabled (which is decided by htmlMail())
Definition at line 32 of file mimetreeparser/src/utils/util.h.
Function Documentation
◆ htmlModeToString()
|
nodiscard |
< A normal plaintext message, non-multipart
< A HTML message, non-multipart
< A multipart/alternative message, the plain text part is currently displayed
< A multipart/alternative message, the HTML part is currently displayed
< A multipart/alternative message, the ICal part is currently displayed
Definition at line 138 of file mimetreeparser/src/utils/util.cpp.
◆ iconNameForContent()
|
nodiscard |
Definition at line 119 of file mimetreeparser/src/utils/util.cpp.
◆ iconNameForMimetype()
|
nodiscard |
Definition at line 60 of file mimetreeparser/src/utils/util.cpp.
◆ isTypeBlacklisted()
|
nodiscard |
Definition at line 20 of file mimetreeparser/src/utils/util.cpp.
◆ labelForContent()
|
nodiscard |
Definition at line 34 of file mimetreeparser/src/utils/util.cpp.
◆ mimetype()
Definition at line 44 of file mimetreeparser/src/utils/util.cpp.
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.