#include <headeritem.h>

Inherits TDEListViewItem.

Public Types

typedef TQValueList< TQPixmap > PixmapList
 

Public Member Functions

 HeaderItem (TQListView *parent, int msgId, const TQString &key=TQString())
 
 HeaderItem (TQListViewItem *parent, int msgId, const TQString &key=TQString())
 
void setMsgId (int aMsgId)
 
void irefresh ()
 
int msgId () const
 
TQString to () const
 
TQString from () const
 
TQ_UINT32 msgSerNum () const
 
void setOpenRecursive (bool open)
 
TQString text (int col) const
 
void setup ()
 
TQPixmap pixmapMerge (PixmapList pixmaps) const
 
const TQPixmap * cryptoIcon (KMMsgBase *msgBase) const
 
const TQPixmap * signatureIcon (KMMsgBase *msgBase) const
 
const TQPixmap * statusIcon (KMMsgBase *msgBase) const
 
const TQPixmap * pixmap (int col) const
 
void paintCell (TQPainter *p, const TQColorGroup &cg, int column, int width, int align)
 
virtual TQString key (int column, bool) const
 
void setTempKey (TQString key)
 
int compare (TQListViewItem *i, int col, bool ascending) const
 
TQListViewItem * firstChildNonConst ()
 
bool aboutToBeDeleted () const
 
void setAboutToBeDeleted (bool val)
 
void setSortCacheItem (SortCacheItem *item)
 
SortCacheItemsortCacheItem () const
 

Static Public Member Functions

static TQString 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 Function Documentation

◆ aboutToBeDeleted()

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 222 of file headeritem.h.

◆ msgId()

int HeaderItem::msgId ( ) const

Return the msgId of the message associated with this item.

Definition at line 113 of file headeritem.cpp.

◆ setAboutToBeDeleted()

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 225 of file headeritem.h.

◆ setMsgId()

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.

◆ setOpenRecursive()

void HeaderItem::setOpenRecursive ( bool  open)

Expands all children of the list view item.

Definition at line 149 of file headeritem.cpp.

◆ setSortCacheItem()

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 229 of file headeritem.h.

◆ sortCacheItem()

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

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

Definition at line 231 of file headeritem.h.

◆ text()

TQString HeaderItem::text ( int  col) const

Returns the text of the list view item.

Definition at line 164 of file headeritem.cpp.


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