|
1 /* |
|
2 * Copyright (c) 2010 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: This class provides custom list item |
|
15 * for the push button on the DataForm |
|
16 */ |
|
17 |
|
18 #ifndef POSSETTINGS_PUSHBUTTONITEM_H |
|
19 #define POSSETTINGS_PUSHBUTTONITEM_H |
|
20 |
|
21 #include <QObject> |
|
22 |
|
23 #include <hbdataformviewitem.h> |
|
24 #include <hbdataformmodelitem.h> |
|
25 |
|
26 const int PushButtonItem = HbDataFormModelItem::CustomItemBase+11; |
|
27 |
|
28 class PosSettingsPushButtonItem : public HbDataFormViewItem |
|
29 { |
|
30 Q_OBJECT |
|
31 |
|
32 public: //constructor and destructor |
|
33 PosSettingsPushButtonItem(QGraphicsItem *parent); |
|
34 ~PosSettingsPushButtonItem(); |
|
35 public: //from HbDataFormViewItem |
|
36 /* |
|
37 * It will return custom control item |
|
38 */ |
|
39 virtual HbAbstractViewItem* createItem(); |
|
40 virtual bool canSetModelIndex(const QModelIndex &index) const; |
|
41 virtual void restore(); |
|
42 protected: |
|
43 /* |
|
44 * It will define the custom control item |
|
45 */ |
|
46 virtual HbWidget* createCustomWidget(); |
|
47 |
|
48 private: |
|
49 /* |
|
50 * Does not own |
|
51 */ |
|
52 HbWidget* mWidget; |
|
53 }; |
|
54 |
|
55 #endif // POSSETTINGS_PUSHBUTTONITEM_H |