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