diff -r 4e54af54a4a1 -r 6c59112cfd31 emailuis/nmailuiwidgets/inc/nmautofilllistviewitem.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/emailuis/nmailuiwidgets/inc/nmautofilllistviewitem.h Thu Sep 30 11:43:07 2010 +0300 @@ -0,0 +1,48 @@ +/* +* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). +* All rights reserved. +* This component and the accompanying materials are made available +* under the terms of "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: Customized list view item to display autofill items on list. +* +*/ + +#ifndef NMAUTOFILLLISTVIEWITEM_H_ +#define NMAUTOFILLLISTVIEWITEM_H_ + +#include + +class HbLabel; +class QGraphicsLinearLayout; +class NmContactHistoryModelSubItem; +class HbRichTextItem; + +class NmAutoFillListViewItem : public HbListViewItem +{ + Q_OBJECT +public: + NmAutoFillListViewItem(QGraphicsItem * parent = NULL); + virtual ~NmAutoFillListViewItem(); + +public: // from HbListViewItem + HbListViewItem *createItem(); + void updateChildItems(); + bool canSetModelIndex(const QModelIndex &index); + +private: + QString setHtmlUnderLine(const NmContactHistoryModelSubItem &subItem); + +private: + HbRichTextItem *mDisplayName; //not owned + HbRichTextItem *mAddress; //not owned +}; + +#endif /* NMAUTOFILLLISTVIEWITEM_H_ */