00001 /*************************************************************************** 00002 contactitem.h - description 00003 ------------------- 00004 begin : mar avr 11 2006 00005 copyright : (C) 2006 by Sylvain Archenault <sylvain.archenault@laposte.net>, 00006 Yves Houpert <yves.houpert@insa-rouen.fr> 00007 00008 ***************************************************************************/ 00009 00010 /*************************************************************************** 00011 * * 00012 * This program is free software; you can redistribute it and/or modify * 00013 * it under the terms of the GNU General Public License as published by * 00014 * the Free Software Foundation; either version 2 of the License, or * 00015 * (at your option) any later version. * 00016 * * 00017 ***************************************************************************/ 00018 #ifndef CONTACTITEM_H 00019 #define CONTACTITEM_H 00020 00021 #include <contactlistitem.h> 00022 class Contact; 00023 00031 class ContactItem : public ContactListItem 00032 { 00033 public: 00038 ContactItem(const Contact* pContact, ContactListItem* parent); 00039 00041 ~ContactItem(); 00042 00046 void setContact(const Contact* pContact) { m_pContact = pContact; } 00047 00050 const Contact* getContact() const { return m_pContact; } 00051 00054 bool isContactItem() const { return true; } 00055 00064 void paintCell ( QPainter * p, const QColorGroup & cg, int column, int width, int align ); 00065 00066 private: //private members 00068 const Contact* m_pContact; 00069 00070 }; 00071 00072 #endif
1.4.6