CBatteryInfoObserver Class Reference

class CBatteryInfoObserver : public CActive

CBatteryInfoObserver is used to provide battery information from HWRM to CTSY

Inherits from

Constructor & Destructor Documentation

CBatteryInfoObserver(CHWRMPower &, MBatteryInfoNotifier &)

CBatteryInfoObserver ( CHWRMPower & aPower,
MBatteryInfoNotifier & aBatteryInfoNotifier
) [private]

Constructor

Parameters

CHWRMPower & aPower reference to CHWRMPower instance
MBatteryInfoNotifier & aBatteryInfoNotifier reference to interface class MBatteryInfoNotifier

~CBatteryInfoObserver()

~CBatteryInfoObserver ( )

Destructor

Member Functions Documentation

ConstructL()

void ConstructL ( ) [private]

By default Symbian 2nd phase constructor is private

DoCancel()

void DoCancel ( ) [virtual]

Cancellation of an outstanding request

GetBatteryInfo()

void GetBatteryInfo ( )

Get battery info

NewL(CHWRMPower &, MBatteryInfoNotifier &)

CBatteryInfoObserver * NewL ( CHWRMPower & aPower,
MBatteryInfoNotifier & aBatteryInfoNotifier
) [static]

Two-phased constructor

Parameters

CHWRMPower & aPower reference to CHWRMPower instance
MBatteryInfoNotifier & aBatteryInfoNotifier reference to interface class MBatteryInfoNotifier

NewLC(CHWRMPower &, MBatteryInfoNotifier &)

CBatteryInfoObserver * NewLC ( CHWRMPower & aPower,
MBatteryInfoNotifier & aBatteryInfoNotifier
) [static]

Two-phased constructor

Parameters

CHWRMPower & aPower reference to CHWRMPower instance
MBatteryInfoNotifier & aBatteryInfoNotifier reference to interface class MBatteryInfoNotifier

RunL()

void RunL ( ) [virtual]

Handles GetBatteryInfo request completion event

RunTimer(TAny *)

TInt RunTimer ( TAny * aObject ) [static]

Run timer

Parameters

TAny * aObject pointer to object which start timer

Member Data Documentation

CHWRMPower::TBatteryConsumptionData iBatteryData

CHWRMPower::TBatteryConsumptionData iBatteryData [private]

Data structure used to retrieve data from a call to GetBatteryInfo

MBatteryInfoNotifier & iBatteryInfoNotifier

MBatteryInfoNotifier & iBatteryInfoNotifier [private]

Reference to BatteryInfoNotifier object

CPeriodic * iPeriodic

CPeriodic * iPeriodic [private]

Periodic timer

CHWRMPower & iPower

CHWRMPower & iPower [private]

Reference to CHWRMPower instance