ContactItem Class Reference

Item in the contact list view. More...

#include <contactitem.h>

Inheritance diagram for ContactItem:

ContactListItem List of all members.

Public Member Functions

 ContactItem (const Contact *pContact, ContactListItem *parent)
 Constructor.
 ~ContactItem ()
 Destructor.
void setContact (const Contact *pContact)
 Set this item's contact.
const ContactgetContact () const
 Returns the contact this item represents.
bool isContactItem () const
 Returns if this item contains a Contact.
void paintCell (QPainter *p, const QColorGroup &cg, int column, int width, int align)
 Override method to paint the cell.

Detailed Description

Item in the contact list view.

The difference with the ContactListItem is that he really represent a Contact.

Author:
Sylvain Archenault <sylvain.archenault@laposte.net>

Yves Houpert <yves.houpert@insa-rouen.fr>


Constructor & Destructor Documentation

ContactItem::ContactItem const Contact pContact,
ContactListItem parent
 

Constructor.

Parameters:
pContact Contact this item represent.
parent Parnet ContactListItem.


Member Function Documentation

const Contact* ContactItem::getContact  )  const [inline, virtual]
 

Returns the contact this item represents.

Returns:
Contact represented.

Reimplemented from ContactListItem.

bool ContactItem::isContactItem  )  const [inline, virtual]
 

Returns if this item contains a Contact.

Returns:
Always true.

Reimplemented from ContactListItem.

void ContactItem::paintCell QPainter *  p,
const QColorGroup &  cg,
int  column,
int  width,
int  align
 

Override method to paint the cell.

It changes the text color according to the contact state.

Parameters:
p Painter.
cg ColorGroup use to draw item.
column Item column.
width Column width.
align Alignment properties.

void ContactItem::setContact const Contact pContact  )  [inline]
 

Set this item's contact.

Parameters:
pContact The contact to set.


The documentation for this class was generated from the following files:
Generated on Fri May 19 12:15:55 2006 for Bamboo Ch@t by  doxygen 1.4.6