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: CWEPSecuritySettingsImpl inline functions
|
|
15 |
*
|
|
16 |
*/
|
|
17 |
|
|
18 |
/*
|
|
19 |
* %version: tr1cfwln#12 %
|
|
20 |
*/
|
|
21 |
|
|
22 |
#ifndef WEPSECURITYSETTINGSIMPL_INL
|
|
23 |
#define WEPSECURITYSETTINGSIMPL_INL
|
|
24 |
|
|
25 |
|
|
26 |
// ---------------------------------------------------------
|
|
27 |
// CWEPSecuritySettingsImpl::KeyInUse
|
|
28 |
// ---------------------------------------------------------
|
|
29 |
//
|
|
30 |
inline CWEPSecuritySettings::TWEPKeyInUse
|
|
31 |
CWEPSecuritySettingsImpl::KeyInUse() const
|
|
32 |
{
|
|
33 |
return iKeyInUse;
|
|
34 |
}
|
|
35 |
|
|
36 |
|
|
37 |
// ---------------------------------------------------------
|
|
38 |
// CWEPSecuritySettingsImpl::Authentication
|
|
39 |
// ---------------------------------------------------------
|
|
40 |
//
|
|
41 |
inline CWEPSecuritySettings::TWEPAuthentication
|
|
42 |
CWEPSecuritySettingsImpl::Authentication() const
|
|
43 |
{
|
|
44 |
return iAuthentication;
|
|
45 |
}
|
|
46 |
|
|
47 |
|
|
48 |
// ---------------------------------------------------------
|
|
49 |
// CWEPSecuritySettingsImpl::KeyLength
|
|
50 |
// ---------------------------------------------------------
|
|
51 |
//
|
|
52 |
inline CWEPSecuritySettings::TWEPKeyLength
|
|
53 |
CWEPSecuritySettingsImpl::KeyLength( const TInt aElement ) const
|
|
54 |
{
|
|
55 |
return iKeyLength[aElement];
|
|
56 |
}
|
|
57 |
|
|
58 |
|
|
59 |
// ---------------------------------------------------------
|
|
60 |
// CWEPSecuritySettingsImpl::KeyFormat
|
|
61 |
// ---------------------------------------------------------
|
|
62 |
//
|
|
63 |
inline CWEPSecuritySettings::TWEPKeyFormat
|
|
64 |
CWEPSecuritySettingsImpl::KeyFormat( const TInt aElement ) const
|
|
65 |
{
|
|
66 |
return iKeyFormat[aElement];
|
|
67 |
}
|
|
68 |
|
|
69 |
|
|
70 |
// ---------------------------------------------------------
|
|
71 |
// CWEPSecuritySettingsImpl::KeyData
|
|
72 |
// ---------------------------------------------------------
|
|
73 |
//
|
|
74 |
inline TDes8* CWEPSecuritySettingsImpl::KeyData( const TInt aElement )
|
|
75 |
{
|
|
76 |
return &iKeyData[aElement];
|
|
77 |
}
|
|
78 |
|
|
79 |
|
|
80 |
// ---------------------------------------------------------
|
|
81 |
// CWEPSecuritySettingsImpl::SetKeyInUse
|
|
82 |
// ---------------------------------------------------------
|
|
83 |
//
|
|
84 |
inline void CWEPSecuritySettingsImpl::SetKeyInUse(
|
|
85 |
const CWEPSecuritySettings::TWEPKeyInUse aKeyInUse )
|
|
86 |
{
|
|
87 |
iKeyInUse = aKeyInUse;
|
|
88 |
}
|
|
89 |
|
|
90 |
|
|
91 |
// ---------------------------------------------------------
|
|
92 |
// CWEPSecuritySettingsImpl::SetAuthentication
|
|
93 |
// ---------------------------------------------------------
|
|
94 |
//
|
|
95 |
inline void CWEPSecuritySettingsImpl::SetAuthentication(
|
|
96 |
const CWEPSecuritySettings::TWEPAuthentication aAuthentication )
|
|
97 |
{
|
|
98 |
iAuthentication = aAuthentication;
|
|
99 |
}
|
|
100 |
|
|
101 |
|
|
102 |
// ---------------------------------------------------------
|
|
103 |
// CWEPSecuritySettingsImpl::SetKeyLength
|
|
104 |
// ---------------------------------------------------------
|
|
105 |
//
|
|
106 |
inline void CWEPSecuritySettingsImpl::SetKeyLength( const TInt aElement,
|
|
107 |
const CWEPSecuritySettings::TWEPKeyLength aKeyLength )
|
|
108 |
{
|
|
109 |
iKeyLength[aElement] = aKeyLength;
|
|
110 |
}
|
|
111 |
|
|
112 |
|
|
113 |
// ---------------------------------------------------------
|
|
114 |
// CWEPSecuritySettingsImpl::SetKeyFormat
|
|
115 |
// ---------------------------------------------------------
|
|
116 |
//
|
|
117 |
inline void CWEPSecuritySettingsImpl::SetKeyFormat( const TInt aElement,
|
|
118 |
const CWEPSecuritySettings::TWEPKeyFormat aKeyFormat )
|
|
119 |
{
|
|
120 |
iKeyFormat[aElement] = aKeyFormat;
|
|
121 |
}
|
|
122 |
|
|
123 |
|
|
124 |
// ---------------------------------------------------------
|
|
125 |
// CWEPSecuritySettingsImpl::SetKeyData
|
|
126 |
// ---------------------------------------------------------
|
|
127 |
//
|
|
128 |
inline void CWEPSecuritySettingsImpl::SetKeyData( const TInt aElement,
|
|
129 |
const TDesC8& aKeyData )
|
|
130 |
{
|
|
131 |
iKeyData[aElement] = aKeyData;
|
|
132 |
}
|
|
133 |
|
|
134 |
|
|
135 |
// ---------------------------------------------------------
|
|
136 |
// CWEPSecuritySettingsImpl::WEP256Enabled
|
|
137 |
// ---------------------------------------------------------
|
|
138 |
//
|
|
139 |
inline TBool CWEPSecuritySettingsImpl::WEP256Enabled() const
|
|
140 |
{
|
|
141 |
// WEP256 is deprecated.
|
|
142 |
return EFalse;
|
|
143 |
}
|
|
144 |
|
|
145 |
|
|
146 |
#endif
|
|
147 |
|
|
148 |
// End of File
|