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 voidAddObserverL(MAknWsEventObserver *aEventObserver)

Adds an event observer if there is not one yet.

Parameters

MAknWsEventObserver * aEventObserverA pointer to the event observer.

ConstructL()

voidConstructL()

Two-phased constructor.

Enable(TBool)

IMPORT_C voidEnable(TBoolaEnable = 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 voidHandleWsEventL(const TWsEvent &aEvent,
CCoeControl *aDestination
)

Window server event handler.

Parameters

const TWsEvent & aEventThe event.
CCoeControl * aDestinationEvent destination.

IsEnabled()

TBool IsEnabled()

Internal to Avkon

Since
S60 3.2

NewL()

CAknWsEventMonitor *NewL()[static]

Two-phased constructor.

RemoveObserver(const MAknWsEventObserver *)

IMPORT_C voidRemoveObserver(const MAknWsEventObserver *aEventObserver)

Removes the event observer.

Parameters

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

Reserved_1()

IMPORT_C voidReserved_1()[private, virtual]

Member Data Documentation

TBool iEnabled

TBool iEnabled[private]

RPointerArray< MAknWsEventObserver > * iEventObservers

RPointerArray< MAknWsEventObserver > *iEventObservers[private]