CHnEventHandler Class Reference

class CHnEventHandler : public CBase

Event handler class.

Event Handler is designed to handle events. It reveives an event id from the UI, mapps this event into an appropriate action, and runs this action.

hnpresentationmodel
Since
S60 5.0

Inherits from

Constructor & Destructor Documentation

CHnEventHandler(MHnMdModelEventObserver &, MHnControllerInterface &)

CHnEventHandler(MHnMdModelEventObserver &aModelObserver,
MHnControllerInterface &aController
)[private]

Constructor for performing 1st stage construction

Since
S60 5.0

Parameters

MHnMdModelEventObserver & aModelObserverA model event observer reference.
MHnControllerInterface & aControllerA HH controller reference.

~CHnEventHandler()

~CHnEventHandler()

Destructor.

Since
S60 5.0

Member Functions Documentation

ConstructL()

voidConstructL()[private]

EPOC default constructor for performing 2nd stage construction

Since
S60 5.0

ExecuteActionL(CHnActionModel *)

IMPORT_C TIntExecuteActionL(CHnActionModel *aActionModel)

Executes the action that was found in the Model.

Since
S60 v3.2
CHnActionModel

Parameters

CHnActionModel * aActionModelA pointer to the object of the CHnActionModel class.

ExecuteExtensionManagerActionL(CHnActionModel *)

TInt ExecuteExtensionManagerActionL(CHnActionModel *aActionModel)[private]

Executes action from Extension Manager.

Since
S60 v5.0

Parameters

CHnActionModel * aActionModelModel of the action.

ExecuteInternalActionL(CHnActionModel *)

TInt ExecuteInternalActionL(CHnActionModel *aActionModel)[private]

Notifies UI about actions that can be passed back to the UI, i.e. openning nested suites, widget change.

Since
S60 5.0

Parameters

CHnActionModel * aActionModelModel of the action.

ExecuteStandardActionL(CHnActionModel *)

TInt ExecuteStandardActionL(CHnActionModel *aActionModel)[private]

Uses default mechanism to execute an action.

Since
S60 v5.0

Parameters

CHnActionModel * aActionModelModel of the action.

ExtractUidFromActionL(const TDesC8 &, TUid &)

TInt ExtractUidFromActionL(const TDesC8 &aInterface,
TUid &aUid
)[private]

Extracts extension uid from the action.

Since
S60 v5.0

Parameters

const TDesC8 & aInterfaceInterface to invoke action on.
TUid & aUidThe resulting UID.

HandleNotifyL(TInt, TInt, CLiwGenericParamList &, const CLiwGenericParamList &)

TInt HandleNotifyL(TIntaCmdId,
TIntaEventId,
CLiwGenericParamList &aEventParamList,
const CLiwGenericParamList &aInParamList
)

Handles notification.

Parameters

TInt aCmdIdThe Id of the command triggered.
TInt aEventIdThe Id of the event.
CLiwGenericParamList & aEventParamListParameters to event.
const CLiwGenericParamList & aInParamListInput parameter list.

NewL(MHnMdModelEventObserver &, MHnControllerInterface &)

CHnEventHandler *NewL(MHnMdModelEventObserver &aModelObserver,
MHnControllerInterface &aController
)[static]

Two-phased constructor.

Since
S60 5.0

Parameters

MHnMdModelEventObserver & aModelObserverModel event observer.
MHnControllerInterface & aControllerInterface enabling to issues request to Hn engine.

NewLC(MHnMdModelEventObserver &, MHnControllerInterface &)

CHnEventHandler *NewLC(MHnMdModelEventObserver &aModelObserver,
MHnControllerInterface &aController
)[static]

Two-phased constructor.

Since
S60 5.0

Parameters

MHnMdModelEventObserver & aModelObserverModel event observer.
MHnControllerInterface & aControllerInterface enabling to issues request to Hn engine.

Member Data Documentation

MHnControllerInterface & iControllerInterface

MHnControllerInterface &iControllerInterface[private]

Not own. Reference to App UI - Event observer.

MHnMdModelEventObserver & iEventObserver

MHnMdModelEventObserver &iEventObserver[private]

Not own. Reference to HnEngine - Event observer.

TBool iIsExecutingStandardAsyncAction

TBool iIsExecutingStandardAsyncAction[private]

ETrue if a standard asynchroneous action is being executed by this event handler.

CHnServiceHandler * iServiceHandler

CHnServiceHandler *iServiceHandler[private]

Own.