equal
deleted
inserted
replaced
25 #include "locationmanagerdebug.h" |
25 #include "locationmanagerdebug.h" |
26 #include "locationtraildefs.h" |
26 #include "locationtraildefs.h" |
27 #include "locationtrailpskeys.h" |
27 #include "locationtrailpskeys.h" |
28 #include "mdeconstants.h" |
28 #include "mdeconstants.h" |
29 #include <centralrepository.h> |
29 #include <centralrepository.h> |
|
30 #include <hwrmpowerstatesdkpskeys.h> |
30 |
31 |
31 |
32 |
32 using namespace MdeConstants; |
33 using namespace MdeConstants; |
33 |
34 |
34 // -------------------------------------------------------------------------- |
35 // -------------------------------------------------------------------------- |
1116 EXPORT_C TBool CLocationRecord::RemappingNeeded() |
1117 EXPORT_C TBool CLocationRecord::RemappingNeeded() |
1117 { |
1118 { |
1118 return iRemapper->ItemsInQueue(); |
1119 return iRemapper->ItemsInQueue(); |
1119 } |
1120 } |
1120 |
1121 |
|
1122 EXPORT_C TBool CLocationRecord::IsLowBattery() |
|
1123 { |
|
1124 LOG("CLocationRecord::IsLowBattery()"); |
|
1125 RProperty batteryProperty; |
|
1126 TInt batteryStatus; |
|
1127 |
|
1128 TInt error = batteryProperty.Get(KPSUidHWRMPowerState, KHWRMBatteryStatus, batteryStatus); |
|
1129 LOG1("CLocationRecord::IsLowBattery() - battery status %d", batteryStatus ); |
|
1130 if( error != KErrNone || batteryStatus == EBatteryStatusOk ) |
|
1131 { |
|
1132 return EFalse; |
|
1133 } |
|
1134 else |
|
1135 { |
|
1136 return ETrue; |
|
1137 } |
|
1138 |
|
1139 } |
|
1140 |
1121 // End of file |
1141 // End of file |