74
|
1 |
/*
|
|
2 |
* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
|
|
3 |
* All rights reserved.
|
|
4 |
* This component and the accompanying materials are made available
|
|
5 |
* under the terms of "Eclipse Public License v1.0"
|
|
6 |
* which accompanies this distribution, and is available
|
|
7 |
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
|
|
8 |
*
|
|
9 |
* Initial Contributors:
|
|
10 |
* Nokia Corporation - initial contribution.
|
|
11 |
*
|
|
12 |
* Contributors:
|
|
13 |
*
|
|
14 |
* Description: Customized list view item to display autofill items on list.
|
|
15 |
*
|
|
16 |
*/
|
|
17 |
|
|
18 |
#ifndef NMAUTOFILLLISTVIEWITEM_H_
|
|
19 |
#define NMAUTOFILLLISTVIEWITEM_H_
|
|
20 |
|
|
21 |
#include <hblistviewitem.h>
|
|
22 |
|
|
23 |
class HbLabel;
|
|
24 |
class QGraphicsLinearLayout;
|
|
25 |
class NmContactHistoryModelSubItem;
|
|
26 |
class HbRichTextItem;
|
|
27 |
|
|
28 |
class NmAutoFillListViewItem : public HbListViewItem
|
|
29 |
{
|
|
30 |
Q_OBJECT
|
|
31 |
public:
|
|
32 |
NmAutoFillListViewItem(QGraphicsItem * parent = NULL);
|
|
33 |
virtual ~NmAutoFillListViewItem();
|
|
34 |
|
|
35 |
public: // from HbListViewItem
|
|
36 |
HbListViewItem *createItem();
|
|
37 |
void updateChildItems();
|
76
|
38 |
bool canSetModelIndex(const QModelIndex &index) const;
|
74
|
39 |
|
|
40 |
private:
|
|
41 |
QString setHtmlUnderLine(const NmContactHistoryModelSubItem &subItem);
|
|
42 |
|
|
43 |
private:
|
|
44 |
HbRichTextItem *mDisplayName; //not owned
|
|
45 |
HbRichTextItem *mAddress; //not owned
|
|
46 |
};
|
|
47 |
|
|
48 |
#endif /* NMAUTOFILLLISTVIEWITEM_H_ */
|