CHWRMPowerImpl Class Reference
class CHWRMPowerImpl : public CBase
|
Class of the power client side session.
Constructor & Destructor Documentation
CHWRMPowerImpl()
CHWRMPowerImpl
|
(
|
)
|
[private]
|
Member Functions Documentation
ConstructL()
void
|
ConstructL
|
(
|
)
|
[private]
|
By default Symbian 2nd phase constructor is private.
DoGetBatteryInfo(TRequestStatus &, CHWRMPower::TBatteryConsumptionData &)
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 &)
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 *)
Synchronous Set callbacks for power information.
DoStartAveragePowerReporting(TRequestStatus &, const TUint &)
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.
OpenL()
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
TPtr8
iBatteryVoltageDataPckg
TPtr8
|
iBatteryVoltageDataPckg
|
[private]
|
TPtr8
iPowerIntervalMultiplePckg
TPtr8
|
iPowerIntervalMultiplePckg
|
[private]
|
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.