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

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 30 of file mimetreeparser/src/utils/util.h.

Function Documentation

QString MimeTreeParser::Util::htmlModeToString ( Util::HtmlMode  mode)

< 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 131 of file mimetreeparser/src/utils/util.cpp.

This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Nov 30 2020 23:14:55 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.