Forums | developer.brewmp.com Forums | developer.brewmp.com

Developer

Forums

Forums:

Hi

 

I am Not Able to Receive EVT_ALARM in HandleEvent Function of my application

Below is the Sample:-

if (ISHELL_CreateInstance(pMe->piShell, AEECLSID_ALARMMGR,

                (void **)&pMe->piAlarmMgr) != SUCCESS) {       pMe->piAlarmMgr = NULL;       return FALSE;    }int nErr;uint32 nSecs = 120;uint32 UserCode = 0;nErr = IALARMMGR_SetAlarm(pMe->piAlarmMgr, AEECLSID_CRTCWAKEUP_TIMER,&UserCode, nSecs);if (AEE_SUCCESS != nErr) {DBGPRINTF("Alarm Set");return FALSE;}return TRUE;

 

HandleEvent Function-

case EVT_ALARM:
            diplay_Message(pMe);
            return TRUE;

 

Am i missing any thing ?

 

Thanks & Regards

 Pradeep

did you try ISHELL_SetAlarm()
ex:
ISHELL_SetAlarm(pApplet->m_pIShell,AEECLSID_HELLOWORLD,ID,1);

did you try ISHELL_SetAlarm()
ex:
ISHELL_SetAlarm(pApplet->m_pIShell,AEECLSID_HELLOWORLD,ID,1);

Thanks Mahesh for your quick reply.. the above code is working now uint32 nSecs = 120 is just reduced this second from 120 to 20 sec... now i am able to get EVT_ALARM...

Thanks Mahesh for your quick reply.. the above code is working now uint32 nSecs = 120 is just reduced this second from 120 to 20 sec... now i am able to get EVT_ALARM...

Great, Alternate solution to use ISHELL_SetAlram() in case you need

Great, Alternate solution to use ISHELL_SetAlram() in case you need

Great, Alternate solution to use ISHELL_SetAlram() in case you need

Great, Alternate solution to use ISHELL_SetAlram() in case you need