|
1 /* |
|
2 * Copyright (c) 2005 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 "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: Inline method definitions of the class CNetworkInfoBase |
|
15 * |
|
16 * |
|
17 */ |
|
18 |
|
19 |
|
20 #ifndef NETWORKINFOBASE_INL |
|
21 #define NETWORKINFOBASE_INL |
|
22 #include <utf.h> |
|
23 |
|
24 // ================= MEMBER FUNCTIONS ======================= |
|
25 // |
|
26 // --------------------------------------------------------- |
|
27 // CNetworkInfoBase::NetworkName |
|
28 // --------------------------------------------------------- |
|
29 // |
|
30 TPtrC CNetworkInfoBase::NetworkName() const |
|
31 { |
|
32 return iNetworkName; |
|
33 } |
|
34 |
|
35 // --------------------------------------------------------- |
|
36 // CNetworkInfoBase::SignalStrength |
|
37 // --------------------------------------------------------- |
|
38 // |
|
39 TSignalStrength CNetworkInfoBase::SignalStrength() const |
|
40 { |
|
41 return iSignalStrength; |
|
42 } |
|
43 |
|
44 // --------------------------------------------------------- |
|
45 // CNetworkInfoBase::NetworkMode |
|
46 // --------------------------------------------------------- |
|
47 // |
|
48 TNetworkMode CNetworkInfoBase::NetworkMode() const |
|
49 { |
|
50 return iNetworkMode; |
|
51 } |
|
52 |
|
53 // --------------------------------------------------------- |
|
54 // CNetworkInfoBase::SecurityMode |
|
55 // --------------------------------------------------------- |
|
56 // |
|
57 TWlanConnectionSecurityMode CNetworkInfoBase::SecurityMode() const |
|
58 { |
|
59 return iSecurityMode; |
|
60 } |
|
61 |
|
62 // --------------------------------------------------------- |
|
63 // CNetworkInfoBase::ProtectedSetupSupported |
|
64 // --------------------------------------------------------- |
|
65 // |
|
66 TBool CNetworkInfoBase::ProtectedSetupSupported() const |
|
67 { |
|
68 return iProtectedSetupSupported; |
|
69 } |
|
70 |
|
71 // --------------------------------------------------------- |
|
72 // CNetworkInfoBase::ExtendedSecurityMode |
|
73 // --------------------------------------------------------- |
|
74 // |
|
75 TWlanConnectionExtentedSecurityMode CNetworkInfoBase::ExtendedSecurityMode() const |
|
76 { |
|
77 return iExtendedSecurityMode; |
|
78 } |
|
79 |
|
80 // --------------------------------------------------------- |
|
81 // CNetworkInfoBase::GetNetworkListBoxItemText |
|
82 // --------------------------------------------------------- |
|
83 // |
|
84 TPtrC CNetworkInfoBase::GetNetworkListBoxItemText() const |
|
85 { |
|
86 return iListBoxItemText; |
|
87 } |
|
88 |
|
89 |
|
90 // --------------------------------------------------------- |
|
91 // CNetworkInfoBase::OthersEntry |
|
92 // --------------------------------------------------------- |
|
93 // |
|
94 TBool CNetworkInfoBase::OthersEntry() const |
|
95 { |
|
96 return iOthersEntry; |
|
97 } |
|
98 |
|
99 |
|
100 // --------------------------------------------------------- |
|
101 // CNetworkInfoBase::SetNetworkName |
|
102 // --------------------------------------------------------- |
|
103 // |
|
104 void CNetworkInfoBase::SetNetworkName( TDes8& aNetworkName ) |
|
105 { |
|
106 CnvUtfConverter::ConvertToUnicodeFromUtf8( iNetworkName, aNetworkName); |
|
107 } |
|
108 |
|
109 |
|
110 // --------------------------------------------------------- |
|
111 // CNetworkInfoBase::SetSignalStrength |
|
112 // --------------------------------------------------------- |
|
113 // |
|
114 void CNetworkInfoBase::SetSignalStrength( TSignalStrength aStrength ) |
|
115 { |
|
116 iSignalStrength = aStrength; |
|
117 } |
|
118 |
|
119 |
|
120 // --------------------------------------------------------- |
|
121 // CNetworkInfoBase::SetNetworkMode |
|
122 // --------------------------------------------------------- |
|
123 // |
|
124 void CNetworkInfoBase::SetNetworkMode( TNetworkMode aNetworkMode ) |
|
125 { |
|
126 iNetworkMode = aNetworkMode; |
|
127 } |
|
128 |
|
129 |
|
130 // --------------------------------------------------------- |
|
131 // CNetworkInfoBase::SetSecurityMode |
|
132 // --------------------------------------------------------- |
|
133 // |
|
134 void CNetworkInfoBase::SetSecurityMode( |
|
135 TWlanConnectionSecurityMode aSecurityMode ) |
|
136 { |
|
137 iSecurityMode = aSecurityMode; |
|
138 } |
|
139 |
|
140 |
|
141 // --------------------------------------------------------- |
|
142 // CNetworkInfoBase::SetOthersEntry |
|
143 // --------------------------------------------------------- |
|
144 // |
|
145 void CNetworkInfoBase::SetOthersEntry( TBool aOthersEntry ) |
|
146 { |
|
147 iOthersEntry = aOthersEntry; |
|
148 } |
|
149 |
|
150 |
|
151 // --------------------------------------------------------- |
|
152 // CNetworkInfoBase::SetProtectedSetupSupported |
|
153 // --------------------------------------------------------- |
|
154 // |
|
155 void CNetworkInfoBase::SetProtectedSetupSupported( |
|
156 TBool aProtectedSetupSupported ) |
|
157 { |
|
158 iProtectedSetupSupported = aProtectedSetupSupported; |
|
159 } |
|
160 |
|
161 // --------------------------------------------------------- |
|
162 // CNetworkInfoBase::SetExtendedSecurityMode |
|
163 // --------------------------------------------------------- |
|
164 // |
|
165 void CNetworkInfoBase::SetExtendedSecurityMode( |
|
166 TWlanConnectionExtentedSecurityMode aExtendedSecurityMode ) |
|
167 { |
|
168 iExtendedSecurityMode = aExtendedSecurityMode; |
|
169 } |
|
170 |
|
171 #endif // NETWORKINFOBASE_INL |
|
172 |
|
173 // End of File |