Custom targets for controlling notification lights in S60 Eseries devices
The HWRM (Hardware Resource Manager) Light API provides the ability to control the device display light as well as the keyboard illumination. Along with these, other types of custom targets such as notification light, breathing light, etc. can also be controlled.
The custom targets vary for different devices and it is not necessary to reserve the target before calling the function LightOnL().
The following piece of code is sufficient for controlling the notification light.
CHRRMLight* light = CHWRMLight::NewL();
// Turn on the notification light for ten seconds
light->LightOnL( CHWRMLight::ECustomTarget1, 10000 );
// Turn off the notification light
light->LightOffL( CHWRMLight::ECustomTarget1 );
The mapping of custom targets to specific lights is device-dependent.
- ECustomTarget1 corresponds to the notification light
- ECustomTarget2 corresponds to the breathing light
- ECustomTarget4 corresponds to the notification light
- ECustomTarget3 corresponds to the breathing light