MoreEvent.h File Reference
Functions for events. More...
#include "MorePrefix.h"
#include <Event.h>
#include <SysEvtMgr.h>
Include dependency graph for MoreEvent.h:
This graph shows which files directly or indirectly include this file:
Go to the source code of this file.
Functions | |
void | MEvtPowerOff (MOREPALMOS_NOPARAMS) |
Enqueue an event to trigger the handheld to go to sleep. | |
void | MEvtKeepOn (MOREPALMOS_NOPARAMS) |
Enqueue an event to trigger the handheld to not automatically power down. | |
void | MEvtStopApp (MOREPALMOS_NOPARAMS) |
Enqueue an event to trigger your event loop to stop. |
Detailed Description
Functions for events.MoreForm provides functions for working with Palm OS events and a few examples of sending events.
Definition in file MoreEvent.h.
Function Documentation
|
Enqueue an event to trigger the handheld to not automatically power down. Uses EvtEnqueueKey to enqueue an event that should trigger the handheld to stay awake. You can use this if you're doing a lot of processing or otherwise don't want the handheld going to sleep. Notes:
Definition at line 35 of file MoreEvent.c. 00036 { 00037 EvtEnqueueKey( vchrResetAutoOff, 0, commandKeyMask ); 00038 }
|
|
Enqueue an event to trigger the handheld to go to sleep. Uses EvtEnqueueKey to enqueue an event that should trigger the handheld to got to sleep. Use this instead of SysSleep( ); SysSleep( ) is system use only function that doesn't do what you want. Definition at line 28 of file MoreEvent.c. 00029 { 00030 EvtEnqueueKey( vchrHardPower, 0, commandKeyMask ); 00031 }
|
|
Enqueue an event to trigger your event loop to stop. Uses EvtAddEventToQueue to enqueue an event that will cause your event loop to stop processing. Notes:
Definition at line 42 of file MoreEvent.c. 00043 {
00044 EventType newEvent;
00045 MemSet( &newEvent, sizeof( newEvent ), 0 );
00046 newEvent.eType = appStopEvent;
00047 EvtAddEventToQueue( &newEvent );
00048 }
|