CAknWsEventMonitor Class Reference

class CAknWsEventMonitor : public CBase

This class distributes events to the window server event observers; It is itself a window server event observer.

Since
Series 60 0.9

Inherits from

Constructor & Destructor Documentation

~CAknWsEventMonitor()

~CAknWsEventMonitor ( ) [virtual]

Destructor.

Member Functions Documentation

AddObserverL(MAknWsEventObserver *)

IMPORT_C void AddObserverL ( MAknWsEventObserver * aEventObserver )

Adds an event observer if there is not one yet.

Parameters

MAknWsEventObserver * aEventObserver A pointer to the event observer.

ConstructL()

void ConstructL ( )

Two-phased constructor.

Enable(TBool)

IMPORT_C void Enable ( TBool aEnable = ETrue )

Enables / disables event observer. AknAppUi provides all window server events to enabled monitor automatically

Since
S60 3.2

Parameters

TBool aEnable = ETrue

HandleWsEventL(const TWsEvent &, CCoeControl *)

IMPORT_C void HandleWsEventL ( const TWsEvent & aEvent,
CCoeControl * aDestination
)

Window server event handler.

Parameters

const TWsEvent & aEvent The event.
CCoeControl * aDestination Event destination.

IsEnabled()

TBool IsEnabled ( )

Internal to Avkon

Since
S60 3.2

NewL()

CAknWsEventMonitor * NewL ( ) [static]

Two-phased constructor.

RemoveObserver(const MAknWsEventObserver *)

IMPORT_C void RemoveObserver ( const MAknWsEventObserver * aEventObserver )

Removes the event observer.

Parameters

const MAknWsEventObserver * aEventObserver A pointer to the event observer. (not used in default implementation)

Reserved_1()

IMPORT_C void Reserved_1 ( ) [private, virtual]

Member Data Documentation

TBool iEnabled

TBool iEnabled [private]

RPointerArray< MAknWsEventObserver > * iEventObservers

RPointerArray < MAknWsEventObserver > * iEventObservers [private]