• Skip to content
  • Skip to link menu
KDE 4.1 API Reference
  • KDE API Reference
  • kdepim
  • Sitemap
  • Contact Us
 

kmail

KMail::HeaderItem

KMail::HeaderItem Class Reference

#include <headeritem.h>

Inheritance diagram for KMail::HeaderItem:

Inheritance graph
[legend]

List of all members.


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


Public Types

typedef QList< QPixmap > PixmapList

Public Member Functions

bool aboutToBeDeleted () const
int compare (Q3ListViewItem *i, int col, bool ascending) const
const QPixmap * cryptoIcon (KMMsgBase *msgBase) const
Q3ListViewItem * firstChildNonConst ()
 HeaderItem (Q3ListViewItem *parent, int msgId, const QString &key=QString())
 HeaderItem (Q3ListView *parent, int msgId, const QString &key=QString())
void irefresh ()
virtual QString key (int column, bool) const
int msgId () const
quint32 msgSerNum () const
void paintCell (QPainter *p, const QColorGroup &cg, int column, int width, int align)
const QPixmap * pixmap (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 (const QString &key)
void setup ()
const QPixmap * signatureIcon (KMMsgBase *msgBase) const
SortCacheItem * sortCacheItem () const
const QPixmap * statusIcon (KMMsgBase *msgBase) const
QString text (int col) const
 ~HeaderItem ()

Static Public Member Functions

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

Member Typedef Documentation

typedef QList<QPixmap> KMail::HeaderItem::PixmapList

Definition at line 198 of file headeritem.h.


Constructor & Destructor Documentation

HeaderItem::HeaderItem ( Q3ListView *  parent,
int  msgId,
const QString &  key = QString() 
)

Definition at line 49 of file headeritem.cpp.

HeaderItem::HeaderItem ( Q3ListViewItem *  parent,
int  msgId,
const QString &  key = QString() 
)

Definition at line 60 of file headeritem.cpp.

HeaderItem::~HeaderItem (  ) 

Definition at line 70 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 230 of file headeritem.h.

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

Definition at line 586 of file headeritem.cpp.

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

Definition at line 232 of file headeritem.cpp.

Q3ListViewItem * HeaderItem::firstChildNonConst (  ) 

Definition at line 612 of file headeritem.cpp.

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

void HeaderItem::irefresh (  ) 

Definition at line 84 of file headeritem.cpp.

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

Definition at line 563 of file headeritem.cpp.

int HeaderItem::msgId (  )  const

Return the msgId of the message associated with this item.

Definition at line 118 of file headeritem.cpp.

quint32 HeaderItem::msgSerNum (  )  const

Definition at line 124 of file headeritem.cpp.

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

Definition at line 364 of file headeritem.cpp.

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

Definition at line 276 of file headeritem.cpp.

QPixmap HeaderItem::pixmapMerge ( PixmapList  pixmaps  )  const

Paints all pixmaps in the list side by side to one bigger pixmap, from left to right.

The resulting pixmap will be returned and has the total width of all pixmap in the list and the height of the heighest one.

Definition at line 205 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 233 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 76 of file headeritem.cpp.

void HeaderItem::setOpenRecursive ( bool  open  ) 

Expands all children of the list view item.

Definition at line 132 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 237 of file headeritem.h.

void HeaderItem::setTempKey ( const QString &  key  ) 

Definition at line 582 of file headeritem.cpp.

void HeaderItem::setup (  ) 

Definition at line 193 of file headeritem.cpp.

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

Definition at line 243 of file headeritem.cpp.

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

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

Definition at line 239 of file headeritem.h.

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

Definition at line 254 of file headeritem.cpp.

QString HeaderItem::text ( int  col  )  const

Returns the text of the list view item.

Definition at line 147 of file headeritem.cpp.


The documentation for this class was generated from the following files:
  • headeritem.h
  • headeritem.cpp

kmail

Skip menu "kmail"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

kdepim

Skip menu "kdepim"
  • akonadi
  •   clients
  •   kabc
  •   kcal
  •   kcm
  • akregator
  • console
  •   kabcclient
  •   konsolekalendar
  • kaddressbook
  • kalarm
  •   lib
  • kdgantt
  • kdgantt1
  • kjots
  • kleopatra
  • kmail
  • kmobiletools
  • knode
  • knotes
  • kontact
  • kontactinterfaces
  • korganizer
  •   korgac
  • kpilot
  • ktimetracker
  •   doc
  • libkdepim
  • libkholidays
  • libkleo
  • libkpgp
  • maildir
Generated for kdepim by doxygen 1.5.4
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal