kmail
KMail::HeaderItem Class Reference
#include <headeritem.h>
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.
Public Types | |
typedef QValueList< QPixmap > | PixmapList |
Public Member Functions | |
HeaderItem (QListView *parent, int msgId, const QString &key=QString::null) | |
HeaderItem (QListViewItem *parent, int msgId, const QString &key=QString::null) | |
~HeaderItem () | |
void | setMsgId (int aMsgId) |
void | irefresh () |
int | msgId () const |
Q_UINT32 | msgSerNum () const |
void | setOpenRecursive (bool open) |
QString | text (int col) const |
void | setup () |
QPixmap | pixmapMerge (PixmapList pixmaps) const |
const QPixmap * | cryptoIcon (KMMsgBase *msgBase) const |
const QPixmap * | signatureIcon (KMMsgBase *msgBase) const |
const QPixmap * | statusIcon (KMMsgBase *msgBase) const |
const QPixmap * | pixmap (int col) const |
void | paintCell (QPainter *p, const QColorGroup &cg, int column, int width, int align) |
virtual QString | key (int column, bool) const |
void | setTempKey (QString key) |
int | compare (QListViewItem *i, int col, bool ascending) const |
QListViewItem * | firstChildNonConst () |
bool | aboutToBeDeleted () const |
void | setAboutToBeDeleted (bool val) |
void | setSortCacheItem (SortCacheItem *item) |
SortCacheItem * | sortCacheItem () const |
Static Public Member Functions | |
static QString | generate_key (KMHeaders *headers, KMMsgBase *msg, const KPaintInfo *paintInfo, int sortOrder) |
Member Function Documentation
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.
int HeaderItem::msgId | ( | ) | const |
Return the msgId of the message associated with this item.
Definition at line 113 of file headeritem.cpp.
void HeaderItem::setOpenRecursive | ( | bool | open | ) |
QString HeaderItem::text | ( | int | col | ) | const |
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.
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 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.
SortCacheItem* KMail::HeaderItem::sortCacheItem | ( | ) | const [inline] |
Returns the KMail::SortCacheItem associated with this display item.
Definition at line 228 of file headeritem.h.
The documentation for this class was generated from the following files: