|
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: |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef CNTGROUPEDITORDATAVIEWITEM_H |
|
19 #define CNTGROUPEDITORDATAVIEWITEM_H |
|
20 |
|
21 #include <hbdataformviewitem.h> |
|
22 #include <qtcontacts.h> |
|
23 #include "cntgroupeditorview.h" |
|
24 |
|
25 |
|
26 class CntEditorDataModelItem; |
|
27 class QStandardItemModel; |
|
28 class HbLabel; |
|
29 class HbLineEdit; |
|
30 class CntGroupEditorView; |
|
31 |
|
32 |
|
33 class CntGroupEditorDataViewItem : public HbDataFormViewItem |
|
34 { |
|
35 Q_OBJECT |
|
36 |
|
37 public: |
|
38 CntGroupEditorDataViewItem(CntGroupEditorView *view,QGraphicsItem *parent = 0); |
|
39 ~CntGroupEditorDataViewItem(); |
|
40 |
|
41 virtual HbAbstractViewItem* createItem(); |
|
42 void setTextFilter(QObject *aEditor, CntEditorDataModelItem *item); |
|
43 |
|
44 public slots: |
|
45 void textChanged(QString text); |
|
46 void buttonPushed(); |
|
47 |
|
48 protected: |
|
49 virtual HbWidget* createCustomWidget(); |
|
50 |
|
51 #ifdef PBK_UNIT_TEST |
|
52 public: |
|
53 #else |
|
54 private: |
|
55 #endif |
|
56 int modelPosition(QStandardItemModel *model, QContactDetail &detail); |
|
57 CntGroupEditorView *mView; |
|
58 HbLabel *mIconLabel; |
|
59 HbLineEdit *mLineEdit; |
|
60 }; |
|
61 |
|
62 |
|
63 #endif // CNTEDITORDATAVIEWITEM_H |