MessageViewer::HeaderStyleUtil

Search for usage in LXR

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 (const QDateTime &date, HeaderStyleUtilDateFormat dateFormat)
 
static QString dateString (KMime::Message *message, 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

The HeaderStyleUtil class.

Author
Laurent Montel monte.nosp@m.l@kd.nosp@m.e.org

Definition at line 26 of file headerstyle_util.h.

Member Enumeration Documentation

◆ HeaderStyleUtilDateFormat

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-2023 The KDE developers.
Generated on Sat Sep 30 2023 03:53:41 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.