kmail

KMail::HeaderItem Class Reference

Visual representation of a member of the set of displayables (mails in the current folder). More...

#include <headeritem.h>

Inherits KListViewItem.

List of all members.


Public Types

typedef QValueList< QPixmapPixmapList

Public Member Functions

bool aboutToBeDeleted () const
int compare (QListViewItem *i, int col, bool ascending) const
const QPixmapcryptoIcon (KMMsgBase *msgBase) const
QListViewItemfirstChildNonConst ()
 HeaderItem (QListViewItem *parent, int msgId, const QString &key=QString::null)
 HeaderItem (QListView *parent, int msgId, const QString &key=QString::null)
void irefresh ()
virtual QString key (int column, bool) const
int msgId () const
Q_UINT32 msgSerNum () const
void paintCell (QPainter *p, const QColorGroup &cg, int column, int width, int align)
const QPixmappixmap (int col) const
QPixmap pixmapMerge (PixmapList pixmaps) const
void setAboutToBeDeleted (bool val)
void setMsgId (int aMsgId)
void setOpenRecursive (bool open)
void setSortCacheItem (SortCacheItem *item)
void setTempKey (QString key)
void setup ()
const QPixmapsignatureIcon (KMMsgBase *msgBase) const
SortCacheItemsortCacheItem () const
const QPixmapstatusIcon (KMMsgBase *msgBase) const
QString text (int col) const
 ~HeaderItem ()

Static Public Member Functions

static QString generate_key (KMHeaders *headers, KMMsgBase *msg, const KPaintInfo *paintInfo, int sortOrder)

Detailed Description

Visual representation of a member of the set of displayables (mails in the current folder).

Each item is paired with a KMail::SortCacheItem. See there as to how they are meant to cooperate. This should be about the visual aspects of displaying an entry only.

Definition at line 163 of file headeritem.h.


Member Typedef Documentation

Definition at line 193 of file headeritem.h.


Constructor & Destructor Documentation

HeaderItem::HeaderItem ( QListView parent,
int  msgId,
const QString key = QString::null 
)

Definition at line 45 of file headeritem.cpp.

HeaderItem::HeaderItem ( QListViewItem parent,
int  msgId,
const QString key = QString::null 
)

Definition at line 56 of file headeritem.cpp.

HeaderItem::~HeaderItem (  ) 

Definition at line 66 of file headeritem.cpp.


Member Function Documentation

bool KMail::HeaderItem::aboutToBeDeleted (  )  const [inline]

Returns whether the item is about to be removed from the list view as a result of some user action.

Such items are not selectable and painted with a strike-through decoration.

Definition at line 219 of file headeritem.h.

int HeaderItem::compare ( QListViewItem i,
int  col,
bool  ascending 
) const

Definition at line 554 of file headeritem.cpp.

const QPixmap * HeaderItem::cryptoIcon ( KMMsgBase msgBase  )  const

Definition at line 227 of file headeritem.cpp.

QListViewItem * HeaderItem::firstChildNonConst (  ) 

Definition at line 580 of file headeritem.cpp.

QString HeaderItem::generate_key ( KMHeaders headers,
KMMsgBase msg,
const KPaintInfo *  paintInfo,
int  sortOrder 
) [static]

Definition at line 418 of file headeritem.cpp.

void HeaderItem::irefresh (  ) 

Definition at line 80 of file headeritem.cpp.

QString HeaderItem::key ( int  column,
bool   
) const [virtual]

Definition at line 531 of file headeritem.cpp.

int HeaderItem::msgId (  )  const

Return the msgId of the message associated with this item.

Definition at line 113 of file headeritem.cpp.

Q_UINT32 HeaderItem::msgSerNum (  )  const

Definition at line 119 of file headeritem.cpp.

void HeaderItem::paintCell ( QPainter p,
const QColorGroup cg,
int  column,
int  width,
int  align 
)

Definition at line 354 of file headeritem.cpp.

const QPixmap * HeaderItem::pixmap ( int  col  )  const

Definition at line 270 of file headeritem.cpp.

QPixmap HeaderItem::pixmapMerge ( PixmapList  pixmaps  )  const

Definition at line 202 of file headeritem.cpp.

void KMail::HeaderItem::setAboutToBeDeleted ( bool  val  )  [inline]

Set the item to be in about-to-be-deleted state, which means it cannot be selected and will be painted with a strike-through decoration.

Definition at line 222 of file headeritem.h.

void HeaderItem::setMsgId ( int  aMsgId  ) 

Set the message id of this item, which is the offset/index in the folder currently displayed by the KMHeaders list view.

Definition at line 72 of file headeritem.cpp.

void HeaderItem::setOpenRecursive ( bool  open  ) 

Expands all children of the list view item.

Definition at line 127 of file headeritem.cpp.

void KMail::HeaderItem::setSortCacheItem ( SortCacheItem item  )  [inline]

Associate a KMail::SortCacheItem with this item.

This is the structure used to represent the mail during sorting and threading calculation.

Definition at line 226 of file headeritem.h.

void HeaderItem::setTempKey ( QString  key  ) 

Definition at line 550 of file headeritem.cpp.

void HeaderItem::setup (  ) 

Definition at line 188 of file headeritem.cpp.

const QPixmap * HeaderItem::signatureIcon ( KMMsgBase msgBase  )  const

Definition at line 239 of file headeritem.cpp.

SortCacheItem* KMail::HeaderItem::sortCacheItem (  )  const [inline]

Returns the KMail::SortCacheItem associated with this display item.

Definition at line 228 of file headeritem.h.

const QPixmap * HeaderItem::statusIcon ( KMMsgBase msgBase  )  const

Definition at line 251 of file headeritem.cpp.

QString HeaderItem::text ( int  col  )  const

Returns the text of the list view item.

Definition at line 142 of file headeritem.cpp.


The documentation for this class was generated from the following files: