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.

Member Function Documentation

◆ dateShortStr()

QString HeaderStyleUtil::dateShortStr ( const QDateTime & dateTime)
staticnodiscard

Definition at line 209 of file headerstyle_util.cpp.

◆ dateStr()

QString HeaderStyleUtil::dateStr ( const QDateTime & dateTime)
staticnodiscard

Definition at line 202 of file headerstyle_util.cpp.

◆ dateString() [1/2]

QString HeaderStyleUtil::dateString ( const QDateTime & date,
HeaderStyleUtilDateFormat dateFormat )
staticnodiscard

Definition at line 51 of file headerstyle_util.cpp.

◆ dateString() [2/2]

QString HeaderStyleUtil::dateString ( KMime::Message * message,
HeaderStyleUtilDateFormat dateFormat )
staticnodiscard

Definition at line 46 of file headerstyle_util.cpp.

◆ directionOf()

QString HeaderStyleUtil::directionOf ( const QString & str) const
nodiscard

Definition at line 35 of file headerstyle_util.cpp.

◆ resentFromList()

QSharedPointer< KMime::Headers::Generics::MailboxList > HeaderStyleUtil::resentFromList ( KMime::Message * message)
staticnodiscard

Definition at line 223 of file headerstyle_util.cpp.

◆ resentToList()

QSharedPointer< KMime::Headers::Generics::MailboxList > HeaderStyleUtil::resentToList ( KMime::Message * message)
staticnodiscard

Definition at line 231 of file headerstyle_util.cpp.

◆ spamStatus()

QString HeaderStyleUtil::spamStatus ( KMime::Message * message) const
nodiscard

Definition at line 101 of file headerstyle_util.cpp.

◆ strToHtml()

QString HeaderStyleUtil::strToHtml ( const QString & str,
KTextToHTML::Options flags = KTextToHTML::PreserveSpaces )
staticnodiscard

Definition at line 40 of file headerstyle_util.cpp.

◆ subjectDirectionString()

QString HeaderStyleUtil::subjectDirectionString ( KMime::Message * message) const
nodiscard

Definition at line 90 of file headerstyle_util.cpp.

◆ subjectString()

QString HeaderStyleUtil::subjectString ( KMime::Message * message,
KTextToHTML::Options flags = KTextToHTML::PreserveSpaces ) const
nodiscard

Definition at line 73 of file headerstyle_util.cpp.

◆ xface()

HeaderStyleUtil::xfaceSettings HeaderStyleUtil::xface ( const HeaderStyle * style,
KMime::Message * message ) const
nodiscard

Definition at line 255 of file headerstyle_util.cpp.


The documentation for this class was generated from the following files:
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.