Create a [[[ERROR: [NOKX000E] Unable to find definition for key reference 'CHWRMPower']]]CHWRMPower object using [[[ERROR: [NOKX000E] Unable to find definition for key reference 'CHWRMPower']]]NewL() or [[[ERROR: [NOKX000E] Unable to find definition for key reference 'CHWRMPower']]]NewLC() with the required parameters. The parameters are pointers to an object that is derived from [[[ERROR: [NOKX000E] Unable to find definition for key reference 'CHWRMPower']]]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 [[[ERROR: [NOKX000E] Unable to find definition for key reference 'CHWRMPower']]]CHWRMPower::NewL() API creates a power session for client and interacts with the battery.