MAlfEventHandler Class Reference

class MAlfEventHandler

MAlfEventHandler is an interface that can be derived by any object that want's to handle Alfred UI Toolkit events scheduled by AlfCommandScheduler.

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. CAlfEnv::CancelCommands(this); to cancel still pending commands to prevent calling destroyed object.

Public Member Functions
TBool OfferEventL (const TAlfEvent &)

Member Functions Documentation

OfferEventL(const TAlfEvent &)

TBool OfferEventL ( const TAlfEvent & 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 TAlfEvent & aEvent Event to be handled.