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 |
|
20 #include <HbTranslator> |
|
21 #include <QScopedPointer> |
|
22 #include <cpitemdatahelper.h> |
|
23 #include <cpsettingformitemdata.h> |
|
24 |
|
25 // User includes |
|
26 |
|
27 #include "cpwlansettingsplugin.h" |
|
28 #include "cpwlansettingsgroupitemdata.h" |
|
29 |
|
30 #include "OstTraceDefinitions.h" |
|
31 #ifdef OST_TRACE_COMPILER_IN_USE |
|
32 #include "cpwlansettingspluginTraces.h" |
|
33 #endif |
|
34 |
|
35 /*! |
|
36 \class CpWlanSettingsPlugin |
|
37 \brief CpWlanSettingsPlugin implements the WLAN Settings Control Panel Plugin |
|
38 which will allow viewing/editing of Manage WLAN Settings. |
|
39 */ |
|
40 |
|
41 // External function prototypes |
|
42 |
|
43 // Local constants |
|
44 |
|
45 // ======== MEMBER FUNCTIONS ======== |
|
46 |
|
47 /*! |
|
48 Constructor. |
|
49 */ |
|
50 |
|
51 CpWlanSettingsPlugin::CpWlanSettingsPlugin() : |
|
52 QObject(), |
|
53 mTranslator(new HbTranslator("cpwlansettingsplugin")) |
|
54 { |
|
55 OstTraceFunctionEntry0( CPWLANSETTINGSPLUGIN_CPWLANSETTINGSPLUGIN_ENTRY ); |
|
56 OstTraceFunctionExit0( CPWLANSETTINGSPLUGIN_CPWLANSETTINGSPLUGIN_EXIT ); |
|
57 } |
|
58 |
|
59 /*! |
|
60 Destructor. |
|
61 */ |
|
62 |
|
63 CpWlanSettingsPlugin::~CpWlanSettingsPlugin() |
|
64 { |
|
65 OstTraceFunctionEntry0( DUP1_CPWLANSETTINGSPLUGIN_CPWLANSETTINGSPLUGIN_ENTRY ); |
|
66 OstTraceFunctionExit0( DUP1_CPWLANSETTINGSPLUGIN_CPWLANSETTINGSPLUGIN_EXIT ); |
|
67 } |
|
68 |
|
69 /*! |
|
70 Plugin function for creating the WLAN Settings form item data. |
|
71 */ |
|
72 |
|
73 QList<CpSettingFormItemData*> CpWlanSettingsPlugin::createSettingFormItemData( |
|
74 CpItemDataHelper &itemDataHelper) const |
|
75 { |
|
76 OstTraceFunctionEntry0( CPWLANSETTINGSPLUGIN_CREATESETTINGFORMITEMDATA_ENTRY ); |
|
77 |
|
78 QList<CpSettingFormItemData*> settingFormData; |
|
79 settingFormData.append(new CpWlanSettingsGroupItemData(itemDataHelper)); |
|
80 |
|
81 OstTraceFunctionExit0( CPWLANSETTINGSPLUGIN_CREATESETTINGFORMITEMDATA_EXIT ); |
|
82 return settingFormData; |
|
83 |
|
84 } |
|
85 |
|
86 Q_EXPORT_PLUGIN2(cpwlansettingsplugin, CpWlanSettingsPlugin); |
|