diff -r ebc84c812384 -r 46218c8b8afa Symbian3/PDK/Source/GUID-FC7F8CFE-F9AD-4442-9289-CCEFEC62DF68.dita --- a/Symbian3/PDK/Source/GUID-FC7F8CFE-F9AD-4442-9289-CCEFEC62DF68.dita Thu Mar 11 15:24:26 2010 +0000 +++ b/Symbian3/PDK/Source/GUID-FC7F8CFE-F9AD-4442-9289-CCEFEC62DF68.dita Thu Mar 11 18:02:22 2010 +0000 @@ -1,53 +1,53 @@ - - - - - -Start -receiving notification -

You must have implemented and set the appropriate observers -to receive notification.

Use CHWRMPower::StartAveragePowerReporting() to -start battery voltage and battery consumption measurements.

The following -code snippet demonstrates how to start battery voltage measurements:

-TRequestStatus newstatus; -TIntervalMultiple intmul; - -iPower->StartAveragePowerReporting( newstatus, intmul ); -... -

Use CHWRMPower::NotifyAverageChargingCurrent() to -start receiving charging current information and CHWRMPower::NotifyBatteryFullChargingTime() to -receive battery charging time information.

The following code snippet -demonstrates how to receive battery charging status notification:

// Start receiving charging notification -TRequestStaus status; -iPower->NotifyAverageChargingCurrent( status, EFourTimesBaseTimeInterval ); -User::WaitForRequest( status ); -

Notes: Charging status notification is started automatically -when SetBatteryChargingObserver is -called with a MHWRMBatteryChargingStatusObserver specified.

When -the charging status changes to EChargingStatusChargingComplete charging -status notification is automatically disabled.

The following code -snippet demonstrates how to get average charging current and remaining charging -time notification:

// Register only for charging current -iPower->SetBatteryChargingObserver( NULL, notifier, NULL ); - -// Start receiving notification now-on -TRequestStaus status; -iPower->NotifyAverageChargingCurrent( status, 4 ); -User::WaitForRequest( status ); -... - -// Register only for remaining charging time notification -iPower->SetBatteryChargingObserver( NULL, NULL, notifier ); - -// Start receiving notification now-on -TRequestStaus status; -iPower->NotifyBatteryFullChargingTime( status, 4 ); -User::WaitForRequest( status ); -...
+ + + + + +Start +receiving notification +

You must have implemented and set the appropriate observers +to receive notification.

Use CHWRMPower::StartAveragePowerReporting() to +start battery voltage and battery consumption measurements.

The following +code snippet demonstrates how to start battery voltage measurements:

+TRequestStatus newstatus; +TIntervalMultiple intmul; + +iPower->StartAveragePowerReporting( newstatus, intmul ); +... +

Use CHWRMPower::NotifyAverageChargingCurrent() to +start receiving charging current information and CHWRMPower::NotifyBatteryFullChargingTime() to +receive battery charging time information.

The following code snippet +demonstrates how to receive battery charging status notification:

// Start receiving charging notification +TRequestStaus status; +iPower->NotifyAverageChargingCurrent( status, EFourTimesBaseTimeInterval ); +User::WaitForRequest( status ); +

Notes: Charging status notification is started automatically +when SetBatteryChargingObserver is +called with a MHWRMBatteryChargingStatusObserver specified.

When +the charging status changes to EChargingStatusChargingComplete charging +status notification is automatically disabled.

The following code +snippet demonstrates how to get average charging current and remaining charging +time notification:

// Register only for charging current +iPower->SetBatteryChargingObserver( NULL, notifier, NULL ); + +// Start receiving notification now-on +TRequestStaus status; +iPower->NotifyAverageChargingCurrent( status, 4 ); +User::WaitForRequest( status ); +... + +// Register only for remaining charging time notification +iPower->SetBatteryChargingObserver( NULL, NULL, notifier ); + +// Start receiving notification now-on +TRequestStaus status; +iPower->NotifyBatteryFullChargingTime( status, 4 ); +User::WaitForRequest( status ); +...
\ No newline at end of file