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 CWEPSecuritySettings.
|
|
15 |
*
|
|
16 |
*/
|
|
17 |
|
|
18 |
/*
|
|
19 |
* %version: tr1cfwln#15 %
|
|
20 |
*/
|
|
21 |
|
|
22 |
// INCLUDE FILES
|
|
23 |
|
|
24 |
#include <WEPSecuritySettingsUI.h>
|
|
25 |
|
|
26 |
#include "WEPSecuritySettingsImpl.h"
|
|
27 |
#include "WEPSecuritySettingsUiImpl.h"
|
|
28 |
|
|
29 |
|
|
30 |
// ================= MEMBER FUNCTIONS =======================
|
|
31 |
|
|
32 |
// ---------------------------------------------------------
|
|
33 |
// CWEPSecuritySettings::NewL
|
|
34 |
// ---------------------------------------------------------
|
|
35 |
//
|
|
36 |
EXPORT_C CWEPSecuritySettings* CWEPSecuritySettings::NewL()
|
|
37 |
{
|
|
38 |
CWEPSecuritySettings* settings = new ( ELeave ) CWEPSecuritySettings();
|
|
39 |
CleanupStack::PushL( settings );
|
|
40 |
settings->iImpl = CWEPSecuritySettingsImpl::NewL();
|
|
41 |
CleanupStack::Pop( settings );
|
|
42 |
return settings;
|
|
43 |
}
|
|
44 |
|
|
45 |
|
|
46 |
// ---------------------------------------------------------
|
|
47 |
// CWEPSecuritySettings::~CWEPSecuritySettings
|
|
48 |
// ---------------------------------------------------------
|
|
49 |
//
|
|
50 |
EXPORT_C CWEPSecuritySettings::~CWEPSecuritySettings()
|
|
51 |
{
|
|
52 |
delete iImpl;
|
|
53 |
}
|
|
54 |
|
|
55 |
|
|
56 |
// ---------------------------------------------------------
|
|
57 |
// CWEPSecuritySettings::LoadL
|
|
58 |
// ---------------------------------------------------------
|
|
59 |
//
|
|
60 |
EXPORT_C void CWEPSecuritySettings::LoadL( TUint32 aIapId,
|
|
61 |
CCommsDatabase& aCommsDb )
|
|
62 |
{
|
|
63 |
iImpl->LoadL( aIapId, aCommsDb );
|
|
64 |
}
|
|
65 |
|
|
66 |
|
|
67 |
// ---------------------------------------------------------
|
|
68 |
// CWEPSecuritySettings::SaveL
|
|
69 |
// ---------------------------------------------------------
|
|
70 |
//
|
|
71 |
EXPORT_C void CWEPSecuritySettings::SaveL( TUint32 aIapId,
|
|
72 |
CCommsDatabase& aCommsDb ) const
|
|
73 |
{
|
|
74 |
iImpl->SaveL( aIapId, aCommsDb );
|
|
75 |
}
|
|
76 |
|
|
77 |
|
|
78 |
// ---------------------------------------------------------
|
|
79 |
// CWEPSecuritySettings::EditL
|
|
80 |
// ---------------------------------------------------------
|
|
81 |
//
|
|
82 |
EXPORT_C TInt CWEPSecuritySettings::EditL( CWEPSecuritySettingsUi& aUi,
|
|
83 |
const TDesC& aTitle )
|
|
84 |
{
|
|
85 |
return aUi.iImpl->EditL( *iImpl, aTitle );
|
|
86 |
}
|
|
87 |
|
|
88 |
|
|
89 |
// ---------------------------------------------------------
|
|
90 |
// CWEPSecuritySettings::IsValid
|
|
91 |
// ---------------------------------------------------------
|
|
92 |
//
|
|
93 |
EXPORT_C TBool CWEPSecuritySettings::IsValid() const
|
|
94 |
{
|
|
95 |
return iImpl->IsValid();
|
|
96 |
}
|
|
97 |
|
|
98 |
|
|
99 |
// ---------------------------------------------------------
|
|
100 |
// CWEPSecuritySettings::SetKeyDataL
|
|
101 |
// ---------------------------------------------------------
|
|
102 |
//
|
|
103 |
EXPORT_C TInt CWEPSecuritySettings::SetKeyDataL( const TInt aElement,
|
|
104 |
const TDesC& aKeyData,
|
|
105 |
const TBool aHex )
|
|
106 |
{
|
|
107 |
return iImpl->SetKeyDataL( aElement, aKeyData, aHex );
|
|
108 |
}
|
|
109 |
|
|
110 |
|
|
111 |
// ---------------------------------------------------------
|
|
112 |
// CWEPSecuritySettings::LoadL
|
|
113 |
// ---------------------------------------------------------
|
|
114 |
//
|
|
115 |
EXPORT_C void CWEPSecuritySettings::LoadL( TUint32 aIapId,
|
|
116 |
CMDBSession& aSession )
|
|
117 |
{
|
|
118 |
iImpl->LoadL( aIapId, aSession );
|
|
119 |
}
|
|
120 |
|
|
121 |
|
|
122 |
// ---------------------------------------------------------
|
|
123 |
// CWEPSecuritySettings::SaveL
|
|
124 |
// ---------------------------------------------------------
|
|
125 |
//
|
|
126 |
EXPORT_C void CWEPSecuritySettings::SaveL( TUint32 aIapId,
|
|
127 |
CMDBSession& aSession ) const
|
|
128 |
{
|
|
129 |
iImpl->SaveL( aIapId, aSession );
|
|
130 |
}
|
|
131 |
|
|
132 |
|
|
133 |
// ---------------------------------------------------------
|
|
134 |
// CWEPSecuritySettings::SetKeyInUse
|
|
135 |
// ---------------------------------------------------------
|
|
136 |
//
|
|
137 |
EXPORT_C void CWEPSecuritySettings::SetKeyInUse(
|
|
138 |
CWEPSecuritySettings::TWEPKeyInUse aKey )
|
|
139 |
{
|
|
140 |
iImpl->SetKeyInUse( aKey );
|
|
141 |
}
|
|
142 |
|
|
143 |
|
|
144 |
// ---------------------------------------------------------
|
|
145 |
// CWEPSecuritySettings::SetAuthentication
|
|
146 |
// ---------------------------------------------------------
|
|
147 |
//
|
|
148 |
EXPORT_C void CWEPSecuritySettings::SetAuthentication(
|
|
149 |
CWEPSecuritySettings::TWEPAuthentication aAuthentication )
|
|
150 |
{
|
|
151 |
iImpl->SetAuthentication( aAuthentication );
|
|
152 |
}
|
|
153 |
|
|
154 |
// End of File
|