CHWRMPowerImpl Class Reference

class CHWRMPowerImpl : public CBase

Class of the power client side session.

Inherits from

Constructor & Destructor Documentation

CHWRMPowerImpl()

CHWRMPowerImpl()[private]

C++ default constructor.

~CHWRMPowerImpl()

~CHWRMPowerImpl()

Member Functions Documentation

Close()

voidClose()[private]

Closes the session.

ConstructL()

voidConstructL()[private]

By default Symbian 2nd phase constructor is private.

DoGetBatteryInfo(TRequestStatus &, CHWRMPower::TBatteryConsumptionData &)

voidDoGetBatteryInfo(TRequestStatus &aStatus,
CHWRMPower::TBatteryConsumptionData &aBatteryConsumptionData
)

Parameters

TRequestStatus & aStatusThis will be completed when the data are ready or an error occurs.
CHWRMPower::TBatteryConsumptionData & aBatteryConsumptionDataThe nominal battery info is returned in this parameter. Valid only when aStatus.Int() == KErrNone

DoGetBatteryVoltageInfo(TRequestStatus &, CHWRMPower::TBatteryVoltageData &)

voidDoGetBatteryVoltageInfo(TRequestStatus &aStatus,
CHWRMPower::TBatteryVoltageData &aBatteryVoltageData
)

Parameters

TRequestStatus & aStatusThis will be completed when the data are ready or an error occurs.
CHWRMPower::TBatteryVoltageData & aBatteryVoltageDataThe nominal battery info is returned in this parameter. Valid only when aStatus.Int() == KErrNone

DoSetPowerReportObserverL(MHWRMBatteryPowerObserver *)

voidDoSetPowerReportObserverL(MHWRMBatteryPowerObserver *aPowerReportCallback)

Synchronous Set callbacks for power information.

Parameters

MHWRMBatteryPowerObserver * aPowerReportCallback

DoStartAveragePowerReporting(TRequestStatus &, const TUint &)

TInt DoStartAveragePowerReporting(TRequestStatus &aStatus,
const TUint &aInterval
)

Post Start request to HWRM Server to start battery power measurements

The receipt of measurements is asynchronous, when hwrm server completes (internally issued)request to dispatch measurements to client, data member iBatteryPowerMeasurementsAO (MHWRMBatteryPowerObserver) will have it's PowerMeasurement method invoked on each received average measurement value

Parameters

TRequestStatus & aStatusThis will be completed when measurements start or an error occurs.
const TUint & aInterval

DoStopAveragePowerReportingL()

voidDoStopAveragePowerReportingL()

Synchronous

Post stop request to HWRM Server to stop battery power measurements

success/failure for stopping measurements.

NewL()

CHWRMPowerImpl *NewL()[static]

OpenL()

voidOpenL()[private]

Opens the power session. This method must be called before any other methods can be called.

Member Data Documentation

TPtr8 iBatteryConsumptionDataPckg

TPtr8 iBatteryConsumptionDataPckg[private]

CHWRMBatteryMeasurementsAO * iBatteryPowerMeasurementsAO

CHWRMBatteryMeasurementsAO *iBatteryPowerMeasurementsAO[private]

TPtr8 iBatteryVoltageDataPckg

TPtr8 iBatteryVoltageDataPckg[private]

RHWRMClient iClient

RHWRMClient iClient[private]

TPtr8 iPowerIntervalMultiplePckg

TPtr8 iPowerIntervalMultiplePckg[private]