|
1 /* |
|
2 * Copyright (c) 2006 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: This file implements the Location triggering Management Settings |
|
15 * interface |
|
16 * |
|
17 */ |
|
18 |
|
19 |
|
20 #include <lbttriggeringsystemsettings.h> |
|
21 #include "lbttriggeringsystemmanagementsettings.h" |
|
22 |
|
23 // --------------------------------------------------------- |
|
24 // TLbtTriggeringSystemManagementSettings::TLbtTriggeringSystemManagementSettings |
|
25 // |
|
26 // (other items were commented in a header). |
|
27 // --------------------------------------------------------- |
|
28 // |
|
29 EXPORT_C TLbtTriggeringSystemManagementSettings::TLbtTriggeringSystemManagementSettings() |
|
30 { |
|
31 iMinimumLocationUpdateInterval = 0; |
|
32 iMinimumLocationUpdateIntervalWhenGpsFails = 0; |
|
33 iUsedPositioningmodule = KLbtAutomaticModuleSelection; |
|
34 iMaximumUserSpeed = 0; |
|
35 } |
|
36 |
|
37 // --------------------------------------------------------- |
|
38 // TLbtTriggeringSystemManagementSettings::Type |
|
39 // |
|
40 // (other items were commented in a header). |
|
41 // --------------------------------------------------------- |
|
42 // |
|
43 EXPORT_C TLbtTriggeringSystemSettings::TType TLbtTriggeringSystemManagementSettings::Type() |
|
44 { |
|
45 return TLbtTriggeringSystemSettings::ETypeManagementSystemSettings; |
|
46 } |
|
47 |
|
48 // --------------------------------------------------------- |
|
49 // TLbtTriggeringSystemManagementSettings::MinimumLocationUpdateInterval |
|
50 // |
|
51 // (other items were commented in a header). |
|
52 // --------------------------------------------------------- |
|
53 // |
|
54 EXPORT_C TInt TLbtTriggeringSystemManagementSettings::MinimumLocationUpdateInterval() const |
|
55 { |
|
56 return iMinimumLocationUpdateInterval; |
|
57 } |
|
58 |
|
59 // --------------------------------------------------------- |
|
60 // TLbtTriggeringSystemManagementSettings::SetMinimumLocationUpdateInterval |
|
61 // |
|
62 // (other items were commented in a header). |
|
63 // --------------------------------------------------------- |
|
64 // |
|
65 EXPORT_C void TLbtTriggeringSystemManagementSettings::SetMinimumLocationUpdateInterval( |
|
66 TInt aInterval ) |
|
67 { |
|
68 iMinimumLocationUpdateInterval = aInterval; |
|
69 } |
|
70 |
|
71 // --------------------------------------------------------- |
|
72 // TLbtTriggeringSystemManagementSettings::MinimumLocationUpdateIntervalWhenGpsFails |
|
73 // |
|
74 // (other items were commented in a header). |
|
75 // --------------------------------------------------------- |
|
76 // |
|
77 EXPORT_C TInt TLbtTriggeringSystemManagementSettings::MinimumLocationUpdateIntervalWhenGpsFails() const |
|
78 { |
|
79 return iMinimumLocationUpdateIntervalWhenGpsFails; |
|
80 } |
|
81 |
|
82 // --------------------------------------------------------- |
|
83 // TLbtTriggeringSystemManagementSettings::SetMinimumLocationUpdateIntervalWhenGpsFails |
|
84 // |
|
85 // (other items were commented in a header). |
|
86 // --------------------------------------------------------- |
|
87 // |
|
88 EXPORT_C void TLbtTriggeringSystemManagementSettings::SetMinimumLocationUpdateIntervalWhenGpsFails( |
|
89 TInt aInterval ) |
|
90 { |
|
91 iMinimumLocationUpdateIntervalWhenGpsFails = aInterval; |
|
92 } |
|
93 // --------------------------------------------------------- |
|
94 // TLbtTriggeringSystemManagementSettings::UsedPositioningModule |
|
95 // |
|
96 // (other items were commented in a header). |
|
97 // --------------------------------------------------------- |
|
98 // |
|
99 EXPORT_C TPositionModuleId TLbtTriggeringSystemManagementSettings::UsedPositioningModule() const |
|
100 { |
|
101 return iUsedPositioningmodule; |
|
102 } |
|
103 // --------------------------------------------------------- |
|
104 // TLbtTriggeringSystemManagementSettings::SetUsedPositioningModule |
|
105 // |
|
106 // (other items were commented in a header). |
|
107 // --------------------------------------------------------- |
|
108 // |
|
109 EXPORT_C void TLbtTriggeringSystemManagementSettings::SetUsedPositioningModule( |
|
110 TPositionModuleId aUid ) |
|
111 { |
|
112 iUsedPositioningmodule = aUid; |
|
113 } |
|
114 // --------------------------------------------------------- |
|
115 // TLbtTriggeringSystemManagementSettings::MaximumUserSpeed |
|
116 // |
|
117 // (other items were commented in a header). |
|
118 // --------------------------------------------------------- |
|
119 // |
|
120 EXPORT_C TReal TLbtTriggeringSystemManagementSettings::MaximumUserSpeed() const |
|
121 { |
|
122 return iMaximumUserSpeed; |
|
123 } |
|
124 // --------------------------------------------------------- |
|
125 // TLbtTriggeringSystemManagementSettings::SetMaximumUserSpeed |
|
126 // |
|
127 // (other items were commented in a header). |
|
128 // --------------------------------------------------------- |
|
129 // |
|
130 EXPORT_C void TLbtTriggeringSystemManagementSettings::SetMaximumUserSpeed( |
|
131 TReal aSpeed ) |
|
132 { |
|
133 iMaximumUserSpeed = aSpeed; |
|
134 } |