|
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 "cpdevicelockplugin.h" |
|
18 #include "cpdevicelockpluginview.h" |
|
19 #include <cpsettingformentryitemdataimpl.h> |
|
20 #include <../../inc/cpsecplugins.h> |
|
21 |
|
22 |
|
23 /* |
|
24 ***************************************************************** |
|
25 * Name : CpDeviceLockPlugin |
|
26 * Parameters : None |
|
27 * Return value: None |
|
28 * Description : constructor |
|
29 ***************************************************************** |
|
30 */ |
|
31 CpDeviceLockPlugin::CpDeviceLockPlugin() |
|
32 { |
|
33 RDEBUG("0", 0); |
|
34 } |
|
35 |
|
36 |
|
37 /* |
|
38 ***************************************************************** |
|
39 * Name : ~CpDeviceLockPlugin |
|
40 * Parameters : None |
|
41 * Return value: None |
|
42 * Description : destructor |
|
43 ***************************************************************** |
|
44 */ |
|
45 CpDeviceLockPlugin::~CpDeviceLockPlugin() |
|
46 { |
|
47 } |
|
48 |
|
49 |
|
50 /* |
|
51 ***************************************************************** |
|
52 * Name : createSettingFormItemData |
|
53 * Parameters : CpItemDataHelper |
|
54 * Return value: QLsit<CpSettingFormItemData>* |
|
55 * Description : creates a data form for device lock settings |
|
56 ***************************************************************** |
|
57 */ |
|
58 QList<CpSettingFormItemData*> CpDeviceLockPlugin::createSettingFormItemData(CpItemDataHelper &itemDataHelper) const |
|
59 { |
|
60 RDEBUG("0", 0); |
|
61 RDEBUG("using icon", 1); |
|
62 return QList<CpSettingFormItemData*>() |
|
63 << new CpSettingFormEntryItemDataImpl<CpDeviceLockPluginView>( |
|
64 itemDataHelper, |
|
65 tr("Device lock"), // text |
|
66 QString(), // description |
|
67 HbIcon(QString("qtg_large_device_lock")) // icon |
|
68 ); |
|
69 } |
|
70 |
|
71 Q_EXPORT_PLUGIN2(cpdevicelockplugin, CpDeviceLockPlugin); |