|
1 // Copyright (c) 2004-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
2 // All rights reserved. |
|
3 // This component and the accompanying materials are made available |
|
4 // under the terms of "Eclipse Public License v1.0" |
|
5 // which accompanies this distribution, and is available |
|
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
7 // |
|
8 // Initial Contributors: |
|
9 // Nokia Corporation - initial contribution. |
|
10 // |
|
11 // Contributors: |
|
12 // |
|
13 // Description: |
|
14 // |
|
15 |
|
16 |
|
17 |
|
18 // INCLUDE FILES |
|
19 #include "epos_tpospsyinfo.h" |
|
20 |
|
21 // ================= MEMBER FUNCTIONS ======================= |
|
22 |
|
23 // C++ default constructor can NOT contain any code, that |
|
24 // might leave. |
|
25 // |
|
26 TPosPSYInfo::TPosPSYInfo() : |
|
27 iValuesSet(EFalse), |
|
28 iInterfaceVersion(0), |
|
29 iPriority(0), |
|
30 iStatus(0), |
|
31 iFirstTimeToFix(0), |
|
32 iTimeToFix(0), |
|
33 iHorizontalAccuracy(0), |
|
34 iVerticalAccuracy(0), |
|
35 iCostIndicator(TPositionQuality::ECostUnknown), |
|
36 iPowerConsumption(TPositionQuality::EPowerUnknown), |
|
37 iTechnologyType(TPositionModuleInfo::ETechnologyUnknown), |
|
38 iDeviceLocation(TPositionModuleInfo::EDeviceUnknown), |
|
39 iCapability(TPositionModuleInfo::ECapabilityNone), |
|
40 iClassesSupported(0), |
|
41 iVisibility(EFalse), |
|
42 iPSYBaseInfo() |
|
43 { |
|
44 } |
|
45 |
|
46 // --------------------------------------------------------- |
|
47 // TPosPSYInfo::SetInterfaceVersion() |
|
48 // |
|
49 // (other items were commented in a header). |
|
50 // --------------------------------------------------------- |
|
51 // |
|
52 void TPosPSYInfo::SetInterfaceVersion( |
|
53 const TInt aIntfVersion) |
|
54 { |
|
55 iInterfaceVersion = aIntfVersion; |
|
56 } |
|
57 |
|
58 // --------------------------------------------------------- |
|
59 // TPosPSYInfo::SetInterfaceVersion() |
|
60 // |
|
61 // (other items were commented in a header). |
|
62 // --------------------------------------------------------- |
|
63 // |
|
64 void TPosPSYInfo::SetPriority( |
|
65 const TInt aPriority) |
|
66 { |
|
67 iPriority = aPriority; |
|
68 } |
|
69 |
|
70 // --------------------------------------------------------- |
|
71 // TPosPSYInfo::SetInterfaceVersion() |
|
72 // |
|
73 // (other items were commented in a header). |
|
74 // --------------------------------------------------------- |
|
75 // |
|
76 void TPosPSYInfo::SetStatus( |
|
77 const TInt aStatus) |
|
78 { |
|
79 iStatus = aStatus; |
|
80 } |
|
81 |
|
82 // --------------------------------------------------------- |
|
83 // TPosPSYInfo::SetTimeToFirstFix() |
|
84 // |
|
85 // (other items were commented in a header). |
|
86 // --------------------------------------------------------- |
|
87 // |
|
88 void TPosPSYInfo::SetTimeToFirstFix( |
|
89 const TTimeIntervalMicroSeconds aTime) |
|
90 { |
|
91 iFirstTimeToFix = aTime; |
|
92 } |
|
93 |
|
94 // --------------------------------------------------------- |
|
95 // TPosPSYInfo::SetTimeToFix() |
|
96 // |
|
97 // (other items were commented in a header). |
|
98 // --------------------------------------------------------- |
|
99 // |
|
100 void TPosPSYInfo::SetTimeToFix( |
|
101 const TTimeIntervalMicroSeconds aTime) |
|
102 { |
|
103 iTimeToFix = aTime; |
|
104 } |
|
105 |
|
106 // --------------------------------------------------------- |
|
107 // TPosPSYInfo::SetHorizontalAccuracy() |
|
108 // |
|
109 // (other items were commented in a header). |
|
110 // --------------------------------------------------------- |
|
111 // |
|
112 void TPosPSYInfo::SetHorizontalAccuracy( |
|
113 const TReal32 aAccuracy) |
|
114 { |
|
115 iHorizontalAccuracy = aAccuracy; |
|
116 } |
|
117 |
|
118 // --------------------------------------------------------- |
|
119 // TPosPSYInfo::SetVerticallAccuracy() |
|
120 // |
|
121 // (other items were commented in a header). |
|
122 // --------------------------------------------------------- |
|
123 // |
|
124 void TPosPSYInfo::SetVerticalAccuracy( |
|
125 const TReal32 aAccuracy) |
|
126 { |
|
127 iVerticalAccuracy = aAccuracy; |
|
128 } |
|
129 |
|
130 // --------------------------------------------------------- |
|
131 // TPosPSYInfo::SetCostIndicator() |
|
132 // |
|
133 // (other items were commented in a header). |
|
134 // --------------------------------------------------------- |
|
135 // |
|
136 void TPosPSYInfo::SetCostIndicator( |
|
137 const TPositionQuality::TCostIndicator aCostIndicator) |
|
138 { |
|
139 iCostIndicator = aCostIndicator; |
|
140 } |
|
141 |
|
142 // --------------------------------------------------------- |
|
143 // TPosPSYInfo::SetPowerConsumption() |
|
144 // |
|
145 // (other items were commented in a header). |
|
146 // --------------------------------------------------------- |
|
147 // |
|
148 void TPosPSYInfo::SetPowerConsumption( |
|
149 const TPositionQuality::TPowerConsumption aPowerConsumption) |
|
150 { |
|
151 iPowerConsumption = aPowerConsumption; |
|
152 } |
|
153 |
|
154 // --------------------------------------------------------- |
|
155 // TPosPSYInfo::SetTechnologyType() |
|
156 // |
|
157 // (other items were commented in a header). |
|
158 // --------------------------------------------------------- |
|
159 // |
|
160 void TPosPSYInfo::SetTechnologyType( |
|
161 const TPositionModuleInfo::TTechnologyType aTechnologyType) |
|
162 { |
|
163 iTechnologyType = aTechnologyType; |
|
164 } |
|
165 |
|
166 // --------------------------------------------------------- |
|
167 // TPosPSYInfo::SetDeviceLocation() |
|
168 // |
|
169 // (other items were commented in a header). |
|
170 // --------------------------------------------------------- |
|
171 // |
|
172 void TPosPSYInfo::SetDeviceLocation( |
|
173 const TPositionModuleInfo::TDeviceLocation aDeviceLocation) |
|
174 { |
|
175 iDeviceLocation = aDeviceLocation; |
|
176 } |
|
177 |
|
178 // --------------------------------------------------------- |
|
179 // TPosPSYInfo::SetCapabilities() |
|
180 // |
|
181 // (other items were commented in a header). |
|
182 // --------------------------------------------------------- |
|
183 // |
|
184 void TPosPSYInfo::SetCapabilities( |
|
185 const TPositionModuleInfo::TCapabilities aCapability) |
|
186 { |
|
187 iCapability = aCapability; |
|
188 } |
|
189 |
|
190 // --------------------------------------------------------- |
|
191 // TPosPSYInfo::SetClassesSupported() |
|
192 // |
|
193 // (other items were commented in a header). |
|
194 // --------------------------------------------------------- |
|
195 // |
|
196 void TPosPSYInfo::SetClassesSupported( |
|
197 const TUint32 aClassesSupported) |
|
198 { |
|
199 iClassesSupported = aClassesSupported; |
|
200 } |
|
201 |
|
202 // --------------------------------------------------------- |
|
203 // TPosPSYInfo::SetVisibility() |
|
204 // |
|
205 // (other items were commented in a header). |
|
206 // --------------------------------------------------------- |
|
207 // |
|
208 void TPosPSYInfo::SetVisibility( |
|
209 const TInt aVisibility) |
|
210 { |
|
211 iVisibility = aVisibility; |
|
212 } |
|
213 |
|
214 // --------------------------------------------------------- |
|
215 // TPosPSYInfo::SetPSYBaseInfo() |
|
216 // |
|
217 // (other items were commented in a header). |
|
218 // --------------------------------------------------------- |
|
219 // |
|
220 void TPosPSYInfo::SetPSYBaseInfo( |
|
221 const TPosPSYBaseInfo aPSYBaseInfo) |
|
222 { |
|
223 iPSYBaseInfo = aPSYBaseInfo; |
|
224 } |
|
225 |
|
226 // --------------------------------------------------------- |
|
227 // TPosPSYInfo::SetValuesSet() |
|
228 // |
|
229 // (other items were commented in a header). |
|
230 // --------------------------------------------------------- |
|
231 // |
|
232 void TPosPSYInfo::SetValuesSet( |
|
233 const TBool aSet) |
|
234 { |
|
235 iValuesSet = aSet; |
|
236 } |
|
237 |
|
238 // --------------------------------------------------------- |
|
239 // TPosPSYInfo::InterfaceVersion() |
|
240 // |
|
241 // (other items were commented in a header). |
|
242 // --------------------------------------------------------- |
|
243 // |
|
244 TInt TPosPSYInfo::InterfaceVersion() const |
|
245 { |
|
246 return iInterfaceVersion; |
|
247 } |
|
248 // --------------------------------------------------------- |
|
249 // TPosPSYInfo::InterfaceVersion() |
|
250 // |
|
251 // (other items were commented in a header). |
|
252 // --------------------------------------------------------- |
|
253 // |
|
254 TInt TPosPSYInfo::Priority() const |
|
255 { |
|
256 return iPriority; |
|
257 } |
|
258 |
|
259 // --------------------------------------------------------- |
|
260 // TPosPSYInfo::Status() |
|
261 // |
|
262 // (other items were commented in a header). |
|
263 // --------------------------------------------------------- |
|
264 // |
|
265 TInt TPosPSYInfo::Status() const |
|
266 { |
|
267 return iStatus; |
|
268 } |
|
269 |
|
270 |
|
271 // --------------------------------------------------------- |
|
272 // TPosPSYInfo::TimeToFirstFix() |
|
273 // |
|
274 // (other items were commented in a header). |
|
275 // --------------------------------------------------------- |
|
276 // |
|
277 TTimeIntervalMicroSeconds TPosPSYInfo::TimeToFirstFix() const |
|
278 { |
|
279 return iFirstTimeToFix; |
|
280 } |
|
281 |
|
282 // --------------------------------------------------------- |
|
283 // TPosPSYInfo::TimeToFix() |
|
284 // |
|
285 // (other items were commented in a header). |
|
286 // --------------------------------------------------------- |
|
287 // |
|
288 TTimeIntervalMicroSeconds TPosPSYInfo::TimeToFix() const |
|
289 { |
|
290 return iTimeToFix; |
|
291 } |
|
292 |
|
293 // --------------------------------------------------------- |
|
294 // TPosPSYInfo::HorizontalAccuracy() |
|
295 // |
|
296 // (other items were commented in a header). |
|
297 // --------------------------------------------------------- |
|
298 // |
|
299 TReal32 TPosPSYInfo::HorizontalAccuracy() const |
|
300 { |
|
301 return iHorizontalAccuracy; |
|
302 } |
|
303 |
|
304 // --------------------------------------------------------- |
|
305 // TPosPSYInfo::VerticallAccuracy() |
|
306 // |
|
307 // (other items were commented in a header). |
|
308 // --------------------------------------------------------- |
|
309 // |
|
310 TReal32 TPosPSYInfo::VerticalAccuracy() const |
|
311 { |
|
312 return iVerticalAccuracy; |
|
313 } |
|
314 |
|
315 // --------------------------------------------------------- |
|
316 // TPosPSYInfo::CostIndicator() |
|
317 // |
|
318 // (other items were commented in a header). |
|
319 // --------------------------------------------------------- |
|
320 // |
|
321 TPositionQuality::TCostIndicator TPosPSYInfo::CostIndicator() const |
|
322 { |
|
323 return iCostIndicator; |
|
324 } |
|
325 |
|
326 // --------------------------------------------------------- |
|
327 // TPosPSYInfo::PowerConsumption() |
|
328 // |
|
329 // (other items were commented in a header). |
|
330 // --------------------------------------------------------- |
|
331 // |
|
332 TPositionQuality::TPowerConsumption TPosPSYInfo::PowerConsumption() const |
|
333 { |
|
334 return iPowerConsumption; |
|
335 } |
|
336 |
|
337 // --------------------------------------------------------- |
|
338 // TPosPSYInfo::SetTechnologyType() |
|
339 // |
|
340 // (other items were commented in a header). |
|
341 // --------------------------------------------------------- |
|
342 // |
|
343 TPositionModuleInfo::TTechnologyType TPosPSYInfo::TechnologyType() const |
|
344 { |
|
345 return iTechnologyType; |
|
346 } |
|
347 |
|
348 // --------------------------------------------------------- |
|
349 // TPosPSYInfo::DeviceLocation() |
|
350 // |
|
351 // (other items were commented in a header). |
|
352 // --------------------------------------------------------- |
|
353 // |
|
354 TPositionModuleInfo::TDeviceLocation TPosPSYInfo::DeviceLocation() const |
|
355 { |
|
356 return iDeviceLocation; |
|
357 } |
|
358 |
|
359 // --------------------------------------------------------- |
|
360 // TPosPSYInfo::Capabilities() |
|
361 // |
|
362 // (other items were commented in a header). |
|
363 // --------------------------------------------------------- |
|
364 // |
|
365 TPositionModuleInfo::TCapabilities TPosPSYInfo::Capabilities() const |
|
366 { |
|
367 return iCapability; |
|
368 } |
|
369 |
|
370 // --------------------------------------------------------- |
|
371 // TPosPSYInfo::ClassesSupported() |
|
372 // |
|
373 // (other items were commented in a header). |
|
374 // --------------------------------------------------------- |
|
375 // |
|
376 TUint32 TPosPSYInfo::ClassesSupported() const |
|
377 { |
|
378 return iClassesSupported; |
|
379 } |
|
380 |
|
381 // --------------------------------------------------------- |
|
382 // TPosPSYInfo::Visibility() |
|
383 // |
|
384 // (other items were commented in a header). |
|
385 // --------------------------------------------------------- |
|
386 // |
|
387 TInt TPosPSYInfo::Visibility() const |
|
388 { |
|
389 return iVisibility; |
|
390 } |
|
391 |
|
392 // --------------------------------------------------------- |
|
393 // TPosPSYInfo::PSYBaseInfo() |
|
394 // |
|
395 // (other items were commented in a header). |
|
396 // --------------------------------------------------------- |
|
397 // |
|
398 TPosPSYBaseInfo TPosPSYInfo::PSYBaseInfo() const |
|
399 { |
|
400 return iPSYBaseInfo; |
|
401 } |
|
402 |
|
403 // --------------------------------------------------------- |
|
404 // TPosPSYInfo::ValuesSet() |
|
405 // |
|
406 // (other items were commented in a header). |
|
407 // --------------------------------------------------------- |
|
408 // |
|
409 TBool TPosPSYInfo::ValuesSet() const |
|
410 { |
|
411 return iValuesSet; |
|
412 } |
|
413 |
|
414 |
|
415 // End of File |