Hi All,
I'm new to Symbian programming, so be gentle :)
I've got Nokia N82 and was wandering if it is possible to make phone keyboard blink if I have unread sms or missed calls. I know how get the numbr of unread sms and missed calls, I even know hao to make lights blink(at least I think I know). What I do not know how to emulate blinking lights on the emulator (I'm using 3d edition). Or maybe I'm doing something wrone.
Some code (whith executes but does nothing):
CHWRMLight* light; //defined in headeer file
void CUnreadMsgCalc :: HandleSessionEventL( TMsvSessionEvent aEvent, TAny* aArg1, TAny* aArg2, TAny* aArg3 )
{
switch( aEvent )
{
case EMsvServerReady:
case EMsvEntriesCreated:
case EMsvEntriesChanged:
case EMsvEntriesDeleted:
case EMsvEntriesMoved:
{
iCalcCompleted = EFalse;
CalcUnreadEntriesL( KMsvGlobalInBoxIndexEntryId, iNewMsgCount ); // reading global indox
if (iNewMsgCount>0)
{
int status = light->LightStatus(CHWRMLight::EPrimaryDisplay);
int off = CHWRMLight::ELightOff;
int on = CHWRMLight::ELightOn;
if (status == off || status == on)
light->LightBlinkL(CHWRMLight::EPrimaryKeyboard);
}
else light->LightOffL(CHWRMLight::EPrimaryKeyboard);
iCalcCompleted = ETrue;
} break;
default:
break;
}
}






