MHuiEventHandler Class Reference

class MHuiEventHandler

MHuiEventHandler is an interface that can be derived by any object that want's to handle Hitchcock UI Toolkit events scheduled by HuiScheduler.

If an object wishes to process events from the toolkit, it should implement this interface.

Note:

The destructor will NOT cancel any pending commands enqueued to this object, so you must call eg. CHuiEnv::CancelCommands(this); to cancel still pending commands to prevent calling destroyed object.

Public Member Functions
~MHuiEventHandler ()
TBool OfferEventL (const THuiEvent &)

Constructor & Destructor Documentation

~MHuiEventHandler()

IMPORT_C ~MHuiEventHandler ( ) [virtual]

Destructor.

Note:

Will NOT cancel any pending commands scheduled to this object, so you must call eg. CHuiEnv::CancelCommands(this); to cancel still pending commands to prevent calling destroyed object.

Member Functions Documentation

OfferEventL(const THuiEvent &)

TBool OfferEventL ( const THuiEvent & aEvent ) [pure virtual]

Called when an input event is being offered to this object.

The implementation must ensure that the function returns EFalse if it does not do anything in response to the event, otherwise, other objects may be prevented from receiving the event. If it is able to process the event it should return ETrue.

Parameters

const THuiEvent & aEvent Event to be handled.