Create a CHWRMPower object using NewL() or NewLC() with the required parameters. The parameters are pointers to an object that is derived from MHWRMBatteryPowerObserver .
The following code snippet demonstrates how to create an instance with notify handling for creating the power client session.
Void CPowerApp::ConstructL() { //Create Power client. iPower = CHWRMPower::NewL( this, this ); }
The CHWRMPower::NewL() API creates a power session for client and interacts with the battery.
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.