Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

EmailListItem Class Reference

#include </home/clem/local/src/opie/noncore/unsupported/mailit/emaillistitem.h>

Collaboration diagram for EmailListItem:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 EmailListItem (QListView *parent, Email mailIn, bool inbox)
EmailgetMail ()
void setMail (Email newMail)
void setItemSelected (bool enable)
bool isItemSelected ()
bool itemSelected ()

Protected Member Functions

void paintCell (QPainter *p, const QColorGroup &cg, int column, int width, int alignment)

Private Member Functions

QString dateFromULCString (QString ulc)

Private Attributes

Email mail
bool selected

Constructor & Destructor Documentation

EmailListItem::EmailListItem QListView *  parent,
Email  mailIn,
bool  inbox
 

Definition at line 24 of file emaillistitem.cpp.

References QValueList< T >::begin(), QValueList< T >::count(), Email::date, dateFromULCString(), FALSE, Email::files, Email::from, Resource::loadPixmap(), mail, Email::recipients, selected, and Email::subject.


Member Function Documentation

QString EmailListItem::dateFromULCString QString  ulc  )  [private]
 

Definition at line 108 of file emaillistitem.cpp.

References QValueList< T >::begin(), QDate::day(), FALSE, QDate::month(), QString::number(), QString::rightJustify(), QStringList::split(), QTime::toString(), and QDate::year().

Referenced by EmailListItem().

Email * EmailListItem::getMail  ) 
 

Definition at line 52 of file emaillistitem.cpp.

References mail.

Referenced by EmailClient::getCurrentMail(), EmailClient::inboxItemSelected(), EmailClient::mailArrived(), ReadMail::next(), EmailClient::outboxItemSelected(), ReadMail::previous(), EmailClient::saveMail(), and EmailClient::sendQuedMail().

bool EmailListItem::isItemSelected  ) 
 

Definition at line 70 of file emaillistitem.cpp.

References selected.

bool EmailListItem::itemSelected  ) 
 

void EmailListItem::paintCell QPainter *  p,
const QColorGroup &  cg,
int  column,
int  width,
int  alignment
[protected]
 

Definition at line 75 of file emaillistitem.cpp.

References Qt::blue, Email::downloaded, mail, Email::read, Email::received, and Qt::red.

void EmailListItem::setItemSelected bool  enable  ) 
 

Definition at line 63 of file emaillistitem.cpp.

References selected.

void EmailListItem::setMail Email  newMail  ) 
 

Definition at line 57 of file emaillistitem.cpp.

References mail.

Referenced by EmailClient::mailArrived().


Member Data Documentation

Email EmailListItem::mail [private]
 

Definition at line 40 of file emaillistitem.h.

Referenced by EmailListItem(), getMail(), paintCell(), and setMail().

bool EmailListItem::selected [private]
 

Definition at line 41 of file emaillistitem.h.

Referenced by EmailListItem(), isItemSelected(), and setItemSelected().


The documentation for this class was generated from the following files:
Generated on Sat Nov 5 17:31:57 2005 for OPIE by  doxygen 1.4.2