MessageViewer::HeaderStyleUtil

MessageViewer::HeaderStyleUtil Class Reference

#include <headerstyle_util.h>

Public Types

enum  HeaderStyleUtilDateFormat {
  ShortDate, LongDate, FancyShortDate, FancyLongDate,
  CustomDate
}
 

Public Member Functions

QString directionOf (const QString &str) const
 
QString spamStatus (KMime::Message *message) const
 
QString subjectDirectionString (KMime::Message *message) const
 
QString subjectString (KMime::Message *message, KTextToHTML::Options flags=KTextToHTML::PreserveSpaces) const
 
xfaceSettings xface (const HeaderStyle *style, KMime::Message *message) const
 

Static Public Member Functions

static QString dateShortStr (const QDateTime &dateTime)
 
static QString dateStr (const QDateTime &dateTime)
 
static QString dateString (KMime::Message *message, HeaderStyleUtilDateFormat dateFormat)
 
static QString dateString (const QDateTime &date, HeaderStyleUtilDateFormat dateFormat)
 
static MESSAGEVIEWER_DEPRECATED QSharedPointer< KMime::Headers::Generics::MailboxListresentFromList (KMime::Message *message)
 
static MESSAGEVIEWER_DEPRECATED QSharedPointer< KMime::Headers::Generics::MailboxListresentToList (KMime::Message *message)
 
static QString strToHtml (const QString &str, KTextToHTML::Options flags=KTextToHTML::PreserveSpaces)
 

Detailed Description

Member Enumeration Documentation

Enumerator
ShortDate 

Locale Short date format, e.g.

08-04-2007

LongDate 

Locale Long date format, e.g.

Sunday 08 April 2007

FancyShortDate 

Same as ShortDate for dates a week or more ago.

For more recent dates, it is represented as Today, Yesterday, or the weekday name.

FancyLongDate 

Same as LongDate for dates a week or more ago.

For more recent dates, it is represented as Today, Yesterday, or the weekday name.

Definition at line 41 of file headerstyle_util.h.


The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Sat Nov 21 2020 23:14:06 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.