Symbian Developer Library

SYMBIAN OS V6.1 EDITION FOR C++

[Index] [Glossary] [Previous] [Next]



General events

All events generated by the window server, except redraw events and priority key events, are delivered to the client in a TWsEvent which is requested asynchronously by the RWsSession::EventReady() function. When this request completes, it is handled by an active object CActive::RunL() function which must use RWsSession::GetEvent() to get the TWsEvent representing the event. The TWsEvent::Type() function is used to identify the event type which can then retrieve the appropriate type of data. Event types may be grouped as follows:

Certain event types are not automatically delivered to the window server session: if they are required they must be explicitly requested by a window. The window server session will then receive the events, with a handle to the window that requested them, and the handle can be used to invoke a member function of the window that requested the events. Events that must be requested in this way are of the following types:

If several windows associated with a window server session request notification of the same event, then the event is notified separately to all windows which requested it.

Events of type EEventScreenDeviceChanged are issued if the screen size mode changes. Such events are sent, for example, when the flip on an Ericsson R380 phone is opened or closed. Use EnableScreenChangeEvents() to instruct the window server to report screen change events to a window group.