|
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: |
|
15 * |
|
16 */ |
|
17 |
|
18 // System includes |
|
19 #include <cpsettingformentryitemdataimpl.h> |
|
20 #include <../../inc/cpsecplugins.h> |
|
21 |
|
22 // User includes |
|
23 #include "cppincodeplugin.h" |
|
24 #include "cppincodepluginview.h" |
|
25 |
|
26 /*! |
|
27 \class CpPinCodePlugin |
|
28 \brief Pin Code Setting plugin class |
|
29 |
|
30 This class is used to create PIN code setting |
|
31 */ |
|
32 |
|
33 // ======== LOCAL FUNCTIONS ======== |
|
34 |
|
35 /*! |
|
36 Constructor |
|
37 */ |
|
38 CpPinCodePlugin::CpPinCodePlugin() |
|
39 { |
|
40 RDEBUG("0", 0); |
|
41 } |
|
42 |
|
43 /*! |
|
44 Destructor |
|
45 */ |
|
46 CpPinCodePlugin::~CpPinCodePlugin() |
|
47 { |
|
48 } |
|
49 |
|
50 /*! |
|
51 Create PinCode setting |
|
52 */ |
|
53 QList<CpSettingFormItemData *> CpPinCodePlugin::createSettingFormItemData( |
|
54 CpItemDataHelper &itemDataHelper) const |
|
55 { |
|
56 RDEBUG("0", 0); |
|
57 RDEBUG("using icon", 1); |
|
58 return QList<CpSettingFormItemData *>() |
|
59 << new CpSettingFormEntryItemDataImpl<CpPinCodePluginView> |
|
60 (itemDataHelper, tr("PIN code"), QString(), HbIcon(QString("qtg_large_pin_code")) ); |
|
61 } |
|
62 |
|
63 /*! |
|
64 Export plugin |
|
65 */ |
|
66 Q_EXPORT_PLUGIN2(cppincodeplugin, CpPinCodePlugin); |