|
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 #include <cpsettingformentryitemdataimpl.h> |
|
19 |
|
20 #include "cpcertpluginloader.h" |
|
21 #include "cpsecurityview.h" |
|
22 #include <hbapplication.h> |
|
23 |
|
24 CpCertPluginLoader::CpCertPluginLoader() |
|
25 { |
|
26 mTranslator =q_check_ptr( new QTranslator()); |
|
27 // to be uncommented after translation sumission. |
|
28 // QString lang = QLocale::system().name(); |
|
29 QString path = "z:/resource/qt/translations/"; |
|
30 mTranslator->load(path + "certificate_management_en" ); |
|
31 qApp->installTranslator(mTranslator); |
|
32 } |
|
33 |
|
34 CpCertPluginLoader::~CpCertPluginLoader() |
|
35 { |
|
36 if (mTranslator) |
|
37 { |
|
38 if (mTranslator->isEmpty() == false) |
|
39 qApp->removeTranslator(mTranslator); |
|
40 delete mTranslator; |
|
41 } |
|
42 } |
|
43 |
|
44 CpSettingFormItemData *CpCertPluginLoader::createSettingFormItemData(CpItemDataHelper &itemDataHelper) const |
|
45 { |
|
46 return new CpSettingFormEntryItemDataImpl<CpSecurityView>( |
|
47 itemDataHelper,tr("Advanced Security"), QString()); |
|
48 } |
|
49 |
|
50 Q_EXPORT_PLUGIN2(cpcertpluginloader, CpCertPluginLoader); |