coreapplicationuis/SysAp/Src/sysapbatteryinfocontroller.cpp
branchRCL_3
changeset 13 096dad6e50a9
parent 0 2e3d3ce01487
child 62 924385140d98
equal deleted inserted replaced
12:7645e9ce10dc 13:096dad6e50a9
   216     statusPane->SwitchLayoutL( currLayout );
   216     statusPane->SwitchLayoutL( currLayout );
   217     
   217     
   218     User::LeaveIfError( err );
   218     User::LeaveIfError( err );
   219     }
   219     }
   220 
   220 
       
   221 
       
   222 // ---------------------------------------------------------------------------
       
   223 // CSysApBatteryInfoController::IsBatteryInfoAboveThreshold
       
   224 // ---------------------------------------------------------------------------
       
   225 //
       
   226 TBool CSysApBatteryInfoController::IsBatteryInfoAboveThreshold() const
       
   227         {
       
   228         TInt capacity = iBsUtil->GetBatteryCapacity();
       
   229         return ((capacity <= iThresholdCapacity ? EBatteryInfoBelowThreshold : EBatteryInfoAboveThreshold) == EBatteryInfoAboveThreshold);
       
   230         }