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 & aModelObserver A model event observer reference.
MHnControllerInterface & aController A HH controller reference.

~CHnEventHandler()

~CHnEventHandler ( )

Destructor.

Since
S60 5.0

Member Functions Documentation

ConstructL()

void ConstructL ( ) [private]

EPOC default constructor for performing 2nd stage construction

Since
S60 5.0

ExecuteActionL(CHnActionModel *)

IMPORT_C TInt ExecuteActionL ( CHnActionModel * aActionModel )

Executes the action that was found in the Model.

Since
S60 v3.2
CHnActionModel

Parameters

CHnActionModel * aActionModel A 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 * aActionModel Model 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 * aActionModel Model of the action.

ExecuteStandardActionL(CHnActionModel *)

TInt ExecuteStandardActionL ( CHnActionModel * aActionModel ) [private]

Uses default mechanism to execute an action.

Since
S60 v5.0

Parameters

CHnActionModel * aActionModel Model 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 & aInterface Interface to invoke action on.
TUid & aUid The resulting UID.

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

TInt HandleNotifyL ( TInt aCmdId,
TInt aEventId,
CLiwGenericParamList & aEventParamList,
const CLiwGenericParamList & aInParamList
)

Handles notification.

Parameters

TInt aCmdId The Id of the command triggered.
TInt aEventId The Id of the event.
CLiwGenericParamList & aEventParamList Parameters to event.
const CLiwGenericParamList & aInParamList Input parameter list.

NewL(MHnMdModelEventObserver &, MHnControllerInterface &)

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

Two-phased constructor.

Since
S60 5.0

Parameters

MHnMdModelEventObserver & aModelObserver Model event observer.
MHnControllerInterface & aController Interface 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 & aModelObserver Model event observer.
MHnControllerInterface & aController Interface 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.