CAknWsEventMonitor Class Reference

API published in: S60 1st Ed

Link against: avkon.lib

Capability Information

Required Capabilities

None


#include <
aknwseventobserver.h>

Inherits MAknWsEventObserver.


Detailed Description

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

Public Member Functions

virtual ~CAknWsEventMonitor ()
 Destructor.
void ConstructL ()
 Two-phased constructor.
IMPORT_C void AddObserverL (MAknWsEventObserver *aEventObserver)
 Adds an event observer if there is not one yet.
IMPORT_C void RemoveObserver (const MAknWsEventObserver *aEventObserver)
 Removes the event observer.
IMPORT_C void HandleWsEventL (const TWsEvent &aEvent, CCoeControl *aDestination)
 Window server event handler.
IMPORT_C void Enable (TBool aEnable=ETrue)
 Enables / disables event observer.
TBool IsEnabled ()
 Internal to Avkon.

Static Public Member Functions

static CAknWsEventMonitorNewL ()
 Two-phased constructor.

Constructor & Destructor Documentation

virtual CAknWsEventMonitor::~CAknWsEventMonitor  )  [virtual]
 

Destructor.


Member Function Documentation

IMPORT_C void CAknWsEventMonitor::AddObserverL MAknWsEventObserver aEventObserver  ) 
 

Adds an event observer if there is not one yet.

Parameters:
aEventObserver A pointer to the event observer.
void CAknWsEventMonitor::ConstructL  ) 
 

Two-phased constructor.

IMPORT_C void CAknWsEventMonitor::Enable TBool  aEnable = ETrue  ) 
 

Enables / disables event observer.

AknAppUi provides all window server events to enabled monitor automatically

IMPORT_C void CAknWsEventMonitor::HandleWsEventL const TWsEvent &  aEvent,
CCoeControl *  aDestination
[virtual]
 

Window server event handler.

Parameters:
aEvent The event.
aDestination Event destination.

Implements MAknWsEventObserver.

TBool CAknWsEventMonitor::IsEnabled  ) 
 

Internal to Avkon.

static CAknWsEventMonitor* CAknWsEventMonitor::NewL  )  [static]
 

Two-phased constructor.

IMPORT_C void CAknWsEventMonitor::RemoveObserver const MAknWsEventObserver aEventObserver  ) 
 

Removes the event observer.

Parameters:
aEventObserver A pointer to the event observer. (not used in default implementation)

The documentation for this class was generated from the following file:

Copyright © Nokia Corporation 2001-2008
Back to top