|
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 #include "cppersonalizationgroupitemdata.h" |
|
18 #include <cplogger.h> |
|
19 #include <hbdataformmodelitem.h> |
|
20 #include <cpsettingformentryitemdataimpl.h> |
|
21 #include <cpbasesettingview.h> |
|
22 #include <cpitemdatahelper.h> |
|
23 #include <hbmessagebox.h> |
|
24 #include <cpprofilemodel.h> |
|
25 #include "cppersonalizationadvanceview.h" |
|
26 #include "cppersonalizationentryitemdata.h" |
|
27 |
|
28 |
|
29 CpPersonalizationGroupItemData::CpPersonalizationGroupItemData(HbDataFormModelItem::DataItemType type, |
|
30 const QString &label, |
|
31 const QString &configFile, |
|
32 const HbDataFormModelItem *parent): |
|
33 CpCategorySettingFormItemData(type, label, configFile, parent) |
|
34 |
|
35 { |
|
36 CPFW_LOG("CpPersonalizationGroupItemData::CpPersonalizationGroupItemData(), START"); |
|
37 CPFW_LOG("CpPersonalizationGroupItemData::CpPersonalizationGroupItemData(), END"); |
|
38 } |
|
39 |
|
40 CpPersonalizationGroupItemData::~CpPersonalizationGroupItemData() |
|
41 { |
|
42 } |
|
43 |
|
44 void CpPersonalizationGroupItemData::beforeLoadingConfigPlugins(CpItemDataHelper &itemDataHelper) |
|
45 { |
|
46 |
|
47 // keep this interface for development in the futrue |
|
48 CPFW_LOG("CpPersonalizationGroupItemData::beforeLoadingConfigPlugins(), START"); |
|
49 |
|
50 CPFW_LOG("CpPersonalizationGroupItemData::beforeLoadingConfigPlugins(), END"); |
|
51 } |
|
52 |
|
53 void CpPersonalizationGroupItemData::afterLoadingConfigPlugins(CpItemDataHelper &itemDataHelper) |
|
54 { |
|
55 CPFW_LOG("CpPersonalizationGroupItemData::afterLoadingConfigPlugins(), START"); |
|
56 CpSettingFormEntryItemData *advanceSettingItem = |
|
57 new CpSettingFormEntryItemDataImpl<CpPersonalizationAdvanceView>(CpSettingFormEntryItemData::ButtonEntryItem, |
|
58 itemDataHelper, hbTrId("txt_cp_button_advanced_settings")); |
|
59 |
|
60 advanceSettingItem->setContentWidgetData("textAlignment", QVariant( Qt::AlignHCenter | Qt::AlignVCenter) ); |
|
61 advanceSettingItem->setContentWidgetData("objectName", "advanceSettingButton" ); |
|
62 appendChild(advanceSettingItem); |
|
63 CPFW_LOG("CpPersonalizationGroupItemData::afterLoadingConfigPlugins(), END"); |
|
64 } |
|
65 |