MimeTreeParser::Util

MimeTreeParser::Util Namespace Reference

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())

Enumerator
Normal 

A normal plaintext message, non-multipart.

Html 

A HTML message, non-multipart.

MultipartPlain 

A multipart/alternative message, the plain text part is currently displayed.

MultipartHtml 

A multipart/alternative message, the HTML part is currently displayed.

MultipartIcal 

A multipart/alternative message, the ICal part is currently displayed.

Definition at line 32 of file mimetreeparser/src/utils/util.h.

Function Documentation

◆ htmlModeToString()

QString MimeTreeParser::Util::htmlModeToString ( Util::HtmlMode mode)
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()

QString MimeTreeParser::Util::iconNameForContent ( KMime::Content * node)
nodiscard

Definition at line 119 of file mimetreeparser/src/utils/util.cpp.

◆ iconNameForMimetype()

QString MimeTreeParser::Util::iconNameForMimetype ( const QString & mimeType,
const QString & fallbackFileName1 = QString(),
const QString & fallbackFileName2 = QString() )
nodiscard

Definition at line 60 of file mimetreeparser/src/utils/util.cpp.

◆ isTypeBlacklisted()

bool MimeTreeParser::Util::isTypeBlacklisted ( KMime::Content * node)
nodiscard

Definition at line 20 of file mimetreeparser/src/utils/util.cpp.

◆ labelForContent()

QString MimeTreeParser::Util::labelForContent ( KMime::Content * node)
nodiscard

Definition at line 34 of file mimetreeparser/src/utils/util.cpp.

◆ mimetype()

QMimeType MimeTreeParser::Util::mimetype ( const QString & name)
nodiscard

Definition at line 44 of file mimetreeparser/src/utils/util.cpp.

This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:07:26 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.