|
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 CPPERSONALIZATIONGROUPITEMDATA_H |
|
18 #define CPPERSONALIZATIONGROUPITEMDATA_H |
|
19 |
|
20 #include <QObject> |
|
21 #include <cpcategorysettingformitemdata.h> |
|
22 |
|
23 class CpProfileModel; |
|
24 class CpItemDataHelper; |
|
25 class CpSettingFormEntryItemData; |
|
26 class CpMasterVolumeValueController; |
|
27 |
|
28 class CpPersonalizationGroupItemData: public CpCategorySettingFormItemData |
|
29 { |
|
30 Q_OBJECT |
|
31 public: |
|
32 CpPersonalizationGroupItemData(HbDataFormModelItem::DataItemType type, |
|
33 const QString &label, |
|
34 const QString &configFile = QString(), |
|
35 const HbDataFormModelItem *parent = 0); |
|
36 |
|
37 ~CpPersonalizationGroupItemData(); |
|
38 private slots: |
|
39 void masterVolumeValueChanged(int value); |
|
40 void onVibraValueChange(int isVibra); |
|
41 private: |
|
42 virtual void beforeLoadingConfigPlugins(CpItemDataHelper &itemDataHelper); |
|
43 private: |
|
44 HbDataFormModelItem *mMasterVolume; |
|
45 HbDataFormModelItem *mMasterVibra; |
|
46 CpSettingFormEntryItemData *mRingTone; |
|
47 CpSettingFormEntryItemData *mMessageTone; |
|
48 CpSettingFormEntryItemData *mEmailTone; |
|
49 CpSettingFormEntryItemData *mReminderTone; |
|
50 CpSettingFormEntryItemData *mClockTone; |
|
51 CpProfileModel *mProfileModel; |
|
52 CpMasterVolumeValueController *mMasterVolumeValueController; |
|
53 }; |
|
54 |
|
55 #endif /* CPPERSONALIZATIONGROUPITEMDATA_H */ |