|
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 * Control Panel "Network Settings" plugin implementation. |
|
16 * |
|
17 */ |
|
18 |
|
19 // System includes |
|
20 #include <HbTranslator> |
|
21 #include <cpsettingformentryitemdataimpl.h> |
|
22 |
|
23 // User includes |
|
24 #include "cpipsettingsplugin.h" |
|
25 #include "cpipsettingsview.h" |
|
26 |
|
27 /*! |
|
28 \class CpIpSettingsPlugin |
|
29 \brief Class implements the "Network Settings" entry item for |
|
30 Control Panel. |
|
31 */ |
|
32 |
|
33 // External function prototypes |
|
34 |
|
35 // Local constants |
|
36 |
|
37 // ======== LOCAL FUNCTIONS ======== |
|
38 |
|
39 // ======== MEMBER FUNCTIONS ======== |
|
40 |
|
41 /*! |
|
42 Constructor. |
|
43 */ |
|
44 CpIpSettingsPlugin::CpIpSettingsPlugin() : |
|
45 mTranslator(new HbTranslator("cpipsettingsplugin")) |
|
46 { |
|
47 } |
|
48 |
|
49 /*! |
|
50 Destructor. |
|
51 */ |
|
52 CpIpSettingsPlugin::~CpIpSettingsPlugin() |
|
53 { |
|
54 } |
|
55 |
|
56 /*! |
|
57 Creates and returns the entry item. |
|
58 */ |
|
59 QList<CpSettingFormItemData*> CpIpSettingsPlugin::createSettingFormItemData(CpItemDataHelper &itemDataHelper) const |
|
60 { |
|
61 QList<CpSettingFormItemData*> settingFormData; |
|
62 settingFormData.append(new CpSettingFormEntryItemDataImpl<CpIpSettingsView>( |
|
63 itemDataHelper, |
|
64 hbTrId("txt_occ_dblist_network_settings"), |
|
65 "", |
|
66 HbIcon("qtg_large_network_settings"))); |
|
67 return settingFormData; |
|
68 } |
|
69 |
|
70 Q_EXPORT_PLUGIN2(cpipsettingsplugin, CpIpSettingsPlugin); |