46
|
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: Implementation of class CWPASecuritySettings.
|
|
15 |
*
|
|
16 |
*/
|
|
17 |
|
|
18 |
/*
|
|
19 |
* %version: tr1cfwln#18 %
|
|
20 |
*/
|
|
21 |
|
|
22 |
// INCLUDE FILES
|
|
23 |
|
|
24 |
#include "WPASecuritySettingsImpl.h"
|
|
25 |
#include "WPASecuritySettingsUiImpl.h"
|
|
26 |
|
|
27 |
#include <WPASecuritySettingsUI.h>
|
|
28 |
|
|
29 |
|
|
30 |
|
|
31 |
// ================= MEMBER FUNCTIONS =======================
|
|
32 |
|
|
33 |
// ---------------------------------------------------------
|
|
34 |
// CWPASecuritySettings::NewL
|
|
35 |
// ---------------------------------------------------------
|
|
36 |
//
|
|
37 |
EXPORT_C CWPASecuritySettings* CWPASecuritySettings::NewL(
|
|
38 |
TSecurityMode aSecurityMode )
|
|
39 |
{
|
|
40 |
CWPASecuritySettings* settings = new ( ELeave ) CWPASecuritySettings();
|
|
41 |
CleanupStack::PushL( settings );
|
|
42 |
settings->iImpl = CWPASecuritySettingsImpl::NewL( aSecurityMode );
|
|
43 |
CleanupStack::Pop( settings );
|
|
44 |
return settings;
|
|
45 |
}
|
|
46 |
|
|
47 |
|
|
48 |
// ---------------------------------------------------------
|
|
49 |
// CWPASecuritySettings::~CWPASecuritySettings
|
|
50 |
// ---------------------------------------------------------
|
|
51 |
//
|
|
52 |
EXPORT_C CWPASecuritySettings::~CWPASecuritySettings()
|
|
53 |
{
|
|
54 |
delete iImpl;
|
|
55 |
}
|
|
56 |
|
|
57 |
|
|
58 |
// ---------------------------------------------------------
|
|
59 |
// CWPASecuritySettings::LoadL
|
|
60 |
// ---------------------------------------------------------
|
|
61 |
//
|
|
62 |
EXPORT_C void CWPASecuritySettings::LoadL( TUint32 aIapId,
|
|
63 |
CCommsDatabase& aCommsDb )
|
|
64 |
{
|
|
65 |
iImpl->LoadL( aIapId, aCommsDb );
|
|
66 |
iImpl->SetIapId( aIapId );
|
|
67 |
}
|
|
68 |
|
|
69 |
|
|
70 |
// ---------------------------------------------------------
|
|
71 |
// CWPASecuritySettings::SaveL
|
|
72 |
// ---------------------------------------------------------
|
|
73 |
//
|
|
74 |
EXPORT_C void CWPASecuritySettings::SaveL( TUint32 aIapId,
|
|
75 |
CCommsDatabase& aCommsDb,
|
|
76 |
TTypeOfSaving aTypeOfSaving,
|
|
77 |
TUint32 aOldIapId ) const
|
|
78 |
{
|
|
79 |
iImpl->SaveL( aIapId, aCommsDb, aTypeOfSaving, aOldIapId );
|
|
80 |
}
|
|
81 |
|
|
82 |
|
|
83 |
// ---------------------------------------------------------
|
|
84 |
// CWPASecuritySettings::EditL
|
|
85 |
// ---------------------------------------------------------
|
|
86 |
//
|
|
87 |
EXPORT_C TInt CWPASecuritySettings::EditL( CWPASecuritySettingsUi& aUi,
|
|
88 |
const TDesC& aTitle )
|
|
89 |
{
|
|
90 |
return aUi.iImpl->EditL( *iImpl, aTitle );
|
|
91 |
}
|
|
92 |
|
|
93 |
|
|
94 |
// ---------------------------------------------------------
|
|
95 |
// CWPASecuritySettings::DeleteL
|
|
96 |
// ---------------------------------------------------------
|
|
97 |
//
|
|
98 |
EXPORT_C void CWPASecuritySettings::DeleteL( TUint32 aIapId ) const
|
|
99 |
{
|
|
100 |
iImpl->DeleteL( aIapId );
|
|
101 |
}
|
|
102 |
|
|
103 |
|
|
104 |
// ---------------------------------------------------------
|
|
105 |
// CWPASecuritySettings::IsValid
|
|
106 |
// ---------------------------------------------------------
|
|
107 |
//
|
|
108 |
EXPORT_C TBool CWPASecuritySettings::IsValid() const
|
|
109 |
{
|
|
110 |
return iImpl->IsValid();
|
|
111 |
}
|
|
112 |
|
|
113 |
|
|
114 |
// ---------------------------------------------------------
|
|
115 |
// CWPASecuritySettings::SetWPAPreSharedKey
|
|
116 |
// ---------------------------------------------------------
|
|
117 |
//
|
|
118 |
EXPORT_C TInt CWPASecuritySettings::SetWPAPreSharedKey(
|
|
119 |
const TDesC& aPreSharedKey )
|
|
120 |
{
|
|
121 |
return iImpl->SetWPAPreSharedKey( aPreSharedKey );
|
|
122 |
}
|
|
123 |
|
|
124 |
|
|
125 |
// ---------------------------------------------------------
|
|
126 |
// CWPASecuritySettings::LoadL
|
|
127 |
// ---------------------------------------------------------
|
|
128 |
//
|
|
129 |
EXPORT_C void CWPASecuritySettings::LoadL( TUint32 aIapId,
|
|
130 |
CMDBSession& aSession )
|
|
131 |
{
|
|
132 |
iImpl->LoadL( aIapId, aSession );
|
|
133 |
iImpl->SetIapId( aIapId );
|
|
134 |
}
|
|
135 |
|
|
136 |
|
|
137 |
// ---------------------------------------------------------
|
|
138 |
// CWPASecuritySettings::SaveL
|
|
139 |
// ---------------------------------------------------------
|
|
140 |
//
|
|
141 |
EXPORT_C void CWPASecuritySettings::SaveL( TUint32 aIapId,
|
|
142 |
CMDBSession& aSession,
|
|
143 |
TTypeOfSaving aTypeOfSaving,
|
|
144 |
TUint32 aOldIapId ) const
|
|
145 |
{
|
|
146 |
iImpl->SaveL( aIapId, aSession, aTypeOfSaving, aOldIapId );
|
|
147 |
}
|
|
148 |
|
|
149 |
|
|
150 |
// ---------------------------------------------------------
|
|
151 |
// CWPASecuritySettings::SaveL
|
|
152 |
// ---------------------------------------------------------
|
|
153 |
//
|
|
154 |
EXPORT_C TInt CWPASecuritySettings::SetWPAEnabledEAPPlugin(
|
|
155 |
const TDesC8& aEnabledPluginList )
|
|
156 |
{
|
|
157 |
return iImpl->SetWPAEnabledEAPPlugin( aEnabledPluginList );
|
|
158 |
}
|
|
159 |
|
|
160 |
// ---------------------------------------------------------
|
|
161 |
// CWPASecuritySettings::SaveL
|
|
162 |
// ---------------------------------------------------------
|
|
163 |
//
|
|
164 |
EXPORT_C TInt CWPASecuritySettings::SetWPADisabledEAPPlugin(
|
|
165 |
const TDesC8& aDisabledPluginList )
|
|
166 |
{
|
|
167 |
return iImpl->SetWPADisabledEAPPlugin( aDisabledPluginList );
|
|
168 |
}
|
|
169 |
|
|
170 |
|
|
171 |
// End of File
|