|
1 /* |
|
2 * Copyright (c) 2001-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 the License "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: Header file of EAP Plugin Configuration |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef __EAPPLUGINCONFIGURATION_H__ |
|
20 #define __EAPPLUGINCONFIGURATION_H__ |
|
21 |
|
22 |
|
23 // INCLUDES |
|
24 #include <e32base.h> |
|
25 |
|
26 #include "EAPPluginConfigurationIf.h" |
|
27 #include "EAPPluginConfigUid.h" |
|
28 #include "EAPPluginList.h" |
|
29 #include "EapSettings.h" |
|
30 |
|
31 |
|
32 // CLASS DECLARATION |
|
33 /** |
|
34 * CEAPPluginConfiguration class |
|
35 */ |
|
36 class CEAPPluginConfiguration : public CEAPPluginConfigurationIf |
|
37 { |
|
38 public: |
|
39 static CEAPPluginConfiguration* NewL(); |
|
40 static CEAPPluginConfiguration* NewLC(); |
|
41 |
|
42 ~CEAPPluginConfiguration(); |
|
43 |
|
44 /** |
|
45 * Load the EAP Plugin configuration |
|
46 * @param aWPAEAPPlugin The list of EAPs in use as it was read from |
|
47 * WlanEapList column of WLANServiceTable. In |
|
48 * output it contains the new list as it has |
|
49 * to be written in the same column of |
|
50 * database. |
|
51 * @param aConnectionName The name of the connection. |
|
52 * @return The ID of the button pressed to close configuration: |
|
53 * typically EAknSoftkeyBack for back, EAknCmdExit for a |
|
54 * request of exit or EEikCmdExit for a request of shutdown |
|
55 */ |
|
56 TInt EAPPluginConfigurationL( TDes& aWPAEAPPlugin, |
|
57 const TUint32 aIapID, |
|
58 const TDes& aConnectionName ); |
|
59 |
|
60 /** |
|
61 * Load the EAP Plugin configuration (with expanded EAP types) |
|
62 * @param aWPAEnabledEAPPlugin The list of enabled EAPs in use as |
|
63 * it was read from WlanEnabledEapList column |
|
64 * of WLANServiceTable. In output it contains |
|
65 * the new list as it has to be written in the |
|
66 * same column of database. |
|
67 * @param aWPADisabledEAPPlugin The list of disabled EAPs in use as |
|
68 * it was read from WlanDisabledEapList column |
|
69 * of WLANServiceTable. In output it contains |
|
70 * the new list as it has to be written in the |
|
71 * same column of database. |
|
72 * @param aConnectionName The name of the connection. |
|
73 * @return The ID of the button pressed to close configuration: |
|
74 * typically EAknSoftkeyBack for back, EAknCmdExit for a |
|
75 * request of exit or EEikCmdExit for a request of shutdown |
|
76 */ |
|
77 TInt EAPPluginConfigurationL( TDes8& aWPAEnabledEAPPlugin, |
|
78 TDes8& aWPADisabledEAPPlugin, |
|
79 const TUint32 aIapID, |
|
80 const TDes& aConnectionName ); |
|
81 |
|
82 /** |
|
83 * Shows the EAP type info. |
|
84 */ |
|
85 void ShowEAPTypeInfo(); |
|
86 |
|
87 /** |
|
88 * Deletes all EAP types' settings for |
|
89 * the given IAP. |
|
90 */ |
|
91 void DeleteSettingsL( const TUint32 aIapID ); |
|
92 |
|
93 /** |
|
94 * Changes the index of the EAP settings for all EAP types |
|
95 */ |
|
96 void ChangeIapIDL( const TUint32 aOldIapID, const TUint32 aNewIapID ); |
|
97 |
|
98 /** |
|
99 * Copies the EAP type settings to another ID |
|
100 */ |
|
101 void CopySettingsL( const TUint32 aSourceIapID, |
|
102 const TUint32 aDestinationIapID ); |
|
103 |
|
104 private: |
|
105 void ConstructL(); |
|
106 CEAPPluginConfiguration(); |
|
107 void LoadPluginInfoL( TDes& aWPAEAPPlugin, REAPPluginList& aPlugins ); |
|
108 void LoadPluginInfoL( TDes8& aWPAEnabledEAPPlugin, |
|
109 TDes8& aWPADisabledEAPPlugin, |
|
110 REAPPluginList& aPlugins ); |
|
111 |
|
112 void SavePluginInfoL( TDes& aWPAEAPPlugin, REAPPluginList& aPlugins ); |
|
113 void SavePluginInfoL( TDes8& aWPAEnabledEAPPlugin, |
|
114 TDes8& aWPADisabledEAPPlugin, |
|
115 REAPPluginList& aPlugins ); |
|
116 |
|
117 |
|
118 TInt MoveEAPType( EAPSettings::TEapType aEapType, TInt aPos ); |
|
119 |
|
120 TInt MoveEAPType( const TDesC8& aEapType, TInt aPos ); |
|
121 |
|
122 private: // Data |
|
123 // Resource file offset. |
|
124 TInt iResOffset; |
|
125 TUint32 iIapId; |
|
126 RImplInfoPtrArray iEapArray; |
|
127 }; |
|
128 |
|
129 |
|
130 #endif // __EAPPLUGINCONFIGURATION_H__ |
|
131 |
|
132 // End of File |