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()

void Close ( ) [private]

Closes the session.

ConstructL()

void ConstructL ( ) [private]

By default Symbian 2nd phase constructor is private.

DoGetBatteryInfo(TRequestStatus &, CHWRMPower::TBatteryConsumptionData &)

void DoGetBatteryInfo ( TRequestStatus & aStatus,
CHWRMPower::TBatteryConsumptionData & aBatteryConsumptionData
)

Parameters

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

DoGetBatteryVoltageInfo(TRequestStatus &, CHWRMPower::TBatteryVoltageData &)

void DoGetBatteryVoltageInfo ( TRequestStatus & aStatus,
CHWRMPower::TBatteryVoltageData & aBatteryVoltageData
)

Parameters

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

DoSetPowerReportObserverL(MHWRMBatteryPowerObserver *)

void DoSetPowerReportObserverL ( 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 & aStatus This will be completed when measurements start or an error occurs.
const TUint & aInterval

DoStopAveragePowerReportingL()

void DoStopAveragePowerReportingL ( )

Synchronous

Post stop request to HWRM Server to stop battery power measurements

success/failure for stopping measurements.

NewL()

CHWRMPowerImpl * NewL ( ) [static]

OpenL()

void OpenL ( ) [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]