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 & aPowerreference to CHWRMPower instance
MBatteryInfoNotifier & aBatteryInfoNotifierreference to interface class MBatteryInfoNotifier

~CBatteryInfoObserver()

~CBatteryInfoObserver()

Destructor

Member Functions Documentation

ConstructL()

voidConstructL()[private]

By default Symbian 2nd phase constructor is private

DoCancel()

voidDoCancel()[virtual]

Cancellation of an outstanding request

GetBatteryInfo()

voidGetBatteryInfo()

Get battery info

NewL(CHWRMPower &, MBatteryInfoNotifier &)

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

Two-phased constructor

Parameters

CHWRMPower & aPowerreference to CHWRMPower instance
MBatteryInfoNotifier & aBatteryInfoNotifierreference to interface class MBatteryInfoNotifier

NewLC(CHWRMPower &, MBatteryInfoNotifier &)

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

Two-phased constructor

Parameters

CHWRMPower & aPowerreference to CHWRMPower instance
MBatteryInfoNotifier & aBatteryInfoNotifierreference to interface class MBatteryInfoNotifier

RunL()

voidRunL()[virtual]

Handles GetBatteryInfo request completion event

RunTimer(TAny *)

TInt RunTimer(TAny *aObject)[static]

Run timer

Parameters

TAny * aObjectpointer 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