equal
deleted
inserted
replaced
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 #ifndef CP_PERSONALIZATION_CUSTOMVIEWITEM_H |
|
18 #define CP_PERSONALIZATION_CUSTOMVIEWITEM_H |
|
19 |
|
20 #include <hbdataformviewitem.h> |
|
21 #include <hbdataformmodelitem.h> |
|
22 #include <QMap> |
|
23 |
|
24 class HbWidget; |
|
25 |
|
26 enum CpVolumeCustomItemType { |
|
27 MasterVolumeSliderItem = HbDataFormModelItem::CustomItemBase+21, |
|
28 SilenceIndicatorItem = HbDataFormModelItem::CustomItemBase+22 |
|
29 }; |
|
30 |
|
31 class CpPersonalizationCustomViewItem: public HbDataFormViewItem |
|
32 { |
|
33 Q_OBJECT |
|
34 public: |
|
35 explicit CpPersonalizationCustomViewItem(QGraphicsItem *parent = 0); |
|
36 ~CpPersonalizationCustomViewItem(); |
|
37 virtual HbAbstractViewItem* createItem(); |
|
38 virtual bool canSetModelIndex(const QModelIndex &index) const; |
|
39 public slots: |
|
40 virtual void load(); |
|
41 virtual void store(); |
|
42 virtual void restore(); |
|
43 /*private slots: |
|
44 void onValueChanged(int value);*/ |
|
45 protected: |
|
46 virtual HbWidget* createCustomWidget(); |
|
47 private: |
|
48 //QMap<CpVolumeCustomItemType, HbWidget *> mWidgetMap; |
|
49 HbWidget *mWidget; |
|
50 }; |
|
51 #endif |
|