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 <cpsettingformentryitemdataimpl.h> |
|
18 #include "cpnetworkplugin.h" |
|
19 #include "cpnetworkpluginview.h" |
|
20 #include "cppluginlogging.h" |
|
21 |
|
22 |
|
23 /*! |
|
24 CpNetworkPlugin::CpNetworkPlugin |
|
25 */ |
|
26 CpNetworkPlugin::CpNetworkPlugin() : |
|
27 QObject(0), |
|
28 m_localisation(0) |
|
29 { |
|
30 INSTALL_TRACE_MSG_HANDLER; |
|
31 DPRINT << ": IN"; |
|
32 |
|
33 // Set scoped pointer |
|
34 m_localisation.reset(new CpPhoneLocalisation); |
|
35 |
|
36 // Install required translations |
|
37 m_localisation->installTranslator( |
|
38 CpPhoneLocalisation:: |
|
39 TranslationFileCommon); |
|
40 |
|
41 DPRINT << ": OUT"; |
|
42 } |
|
43 |
|
44 |
|
45 /*! |
|
46 CpNetworkPlugin::~CpNetworkPlugin |
|
47 */ |
|
48 CpNetworkPlugin::~CpNetworkPlugin() |
|
49 { |
|
50 DPRINT; |
|
51 UNINSTALL_TRACE_MSG_HANDLER; |
|
52 } |
|
53 |
|
54 |
|
55 /*! |
|
56 CpNetworkPlugin::createSettingFormItemData |
|
57 */ |
|
58 QList<CpSettingFormItemData*> CpNetworkPlugin::createSettingFormItemData( |
|
59 CpItemDataHelper &itemDataHelper) const |
|
60 { |
|
61 DPRINT; |
|
62 |
|
63 QList<CpSettingFormItemData*> ret; |
|
64 ret.append(new CpSettingFormEntryItemDataImpl<CpNetworkPluginView>( |
|
65 itemDataHelper, |
|
66 hbTrId("txt_cp_dblist_mobile_network"), |
|
67 hbTrId(""))); |
|
68 return ret; |
|
69 } |
|
70 |
|
71 |
|
72 Q_EXPORT_PLUGIN2(CpNetworkPlugin, CpNetworkPlugin); |
|