diff -r 4816d766a08a -r f345bda72bc4 Symbian3/PDK/Source/GUID-B830A1F7-9220-5879-80BE-C494A4CD155B.dita --- a/Symbian3/PDK/Source/GUID-B830A1F7-9220-5879-80BE-C494A4CD155B.dita Tue Mar 30 11:42:04 2010 +0100 +++ b/Symbian3/PDK/Source/GUID-B830A1F7-9220-5879-80BE-C494A4CD155B.dita Tue Mar 30 11:56:28 2010 +0100 @@ -1,28 +1,28 @@ - - - - - -Handling General Events

When a Window Server event is received, the active scheduler calls the RunL() function to handle the event. Use RWsSession::GetEvent() to get the event, a TWsEvent. An event object always has an event type, a TEventCode, accessed through TWsEvent::Type(), and other data that is useful in handling specific types of event.

Variant: ScreenPlay and non-ScreenPlay. Target audience: Application developers.

The following example uses a switch statement to execute some function when the associated event type is received.

/* Called by active scheduler when an event occurs -Processes events according to their type */ -void CExampleWsClient::RunL() - { - // Get the event from the Window Server session iWs - iWs.GetEvent(iWsEvent); - // Get the event type: types are defined in TEventCode - TInt eventType=iWsEvent.Type();/ Process event - switch (eventType) - { - /* Window-group related event types */ - - ... - - }
General Events Declaring a - Window Server Event-Handling Class Processing Window-Group + + + + + +Handling General Events

When a Window Server event is received, the active scheduler calls the RunL() function to handle the event. Use RWsSession::GetEvent() to get the event, a TWsEvent. An event object always has an event type, a TEventCode, accessed through TWsEvent::Type(), and other data that is useful in handling specific types of event.

Variant: ScreenPlay and non-ScreenPlay. Target audience: Application developers.

The following example uses a switch statement to execute some function when the associated event type is received.

/* Called by active scheduler when an event occurs +Processes events according to their type */ +void CExampleWsClient::RunL() + { + // Get the event from the Window Server session iWs + iWs.GetEvent(iWsEvent); + // Get the event type: types are defined in TEventCode + TInt eventType=iWsEvent.Type();/ Process event + switch (eventType) + { + /* Window-group related event types */ + + ... + + }
General Events Declaring a + Window Server Event-Handling Class Processing Window-Group Events Processing Window Events Processing System Events
\ No newline at end of file