MPbk2CommandHandler Class Reference

class MPbk2CommandHandler

Phonebook 2 command handler interface.

Constructor & Destructor Documentation

~MPbk2CommandHandler()

~MPbk2CommandHandler()[protected, inline, virtual]

Member Functions Documentation

AddAndExecuteCommandL(MPbk2Command *)

voidAddAndExecuteCommandL(MPbk2Command *aCommand)[pure virtual]

Adds the command into the Phonebook 2 command store and executes it. Takes the ownership of the command.

Parameters

MPbk2Command * aCommandThe command to be executed.

AddMenuCommandObserver(MPbk2MenuCommandObserver &)

voidAddMenuCommandObserver(MPbk2MenuCommandObserver &aObserver)[pure virtual]

Adds a menu command observer.

Parameters

MPbk2MenuCommandObserver & aObserverMenu command observer to add.

CommandHandlerExtension(TUid)

TAny *CommandHandlerExtension(TUid)[inline, virtual]

Returns an extension point for this interface or NULL.

Parameters

TUid

DynInitMenuPaneL(TInt, CEikMenuPane *, CPbk2AppViewBase &, MPbk2ContactUiControl &)

voidDynInitMenuPaneL(TIntaResourceId,
CEikMenuPane *aMenuPane,
CPbk2AppViewBase &aViewBase,
MPbk2ContactUiControl &aControl
)[pure virtual]

Performs Phonebook 2 menu filtering.

Parameters

TInt aResourceIdResource id of the filtered menu pane.
CEikMenuPane * aMenuPaneMenu pane to be filtered.
CPbk2AppViewBase & aViewBaseApplication view where the filtering takes place.
MPbk2ContactUiControl & aControlThe UI control of the calling view.

DynInitToolbarL(TInt, CAknToolbar *, const CPbk2AppViewBase &, MPbk2ContactUiControl &)

voidDynInitToolbarL(TIntaResourceId,
CAknToolbar *aToolbar,
const CPbk2AppViewBase &aAppView,
MPbk2ContactUiControl &aControl
)[pure virtual]

Initialises toolbar before it is drawn.

Parameters

TInt aResourceIdThe resource id of the toolbar.
CAknToolbar * aToolbarThe toolbar object.
const CPbk2AppViewBase & aAppViewApplication view from where the command is launched.
MPbk2ContactUiControl & aControlThe UI control of the calling view.

HandleCommandL(const TInt, MPbk2ContactUiControl &, const CPbk2AppViewBase *)

TBool HandleCommandL(const TIntaCommandId,
MPbk2ContactUiControl &aControl,
const CPbk2AppViewBase *aAppView
)[pure virtual]

Handles Phonebook 2 commands.

Parameters

const TInt aCommandIdThe id of the command to handle.
MPbk2ContactUiControl & aControlThe UI control of the calling view.
const CPbk2AppViewBase * aAppViewApplication view from where the command is launched.

OfferToolbarEventL(TInt, MPbk2ContactUiControl &, const CPbk2AppViewBase *)

voidOfferToolbarEventL(TIntaCommand,
MPbk2ContactUiControl &aControl,
const CPbk2AppViewBase *aAppView
)[pure virtual]

Handles toolbar events for a certain toolbar item.

Parameters

TInt aCommandThe command id of the toolbar item.
MPbk2ContactUiControl & aControlThe UI control of the calling view.
const CPbk2AppViewBase * aAppViewApplication view from where the command is launched.

RegisterAiwInterestL(const TInt, const TInt, const TInt, const TBool)

voidRegisterAiwInterestL(const TIntaInterestId,
const TIntaMenuResourceId,
const TIntaInterestResourceId,
const TBoolaAttachBaseService
)[pure virtual]

Registers (attaches) to an AIW service.

Parameters

const TInt aInterestIdId of the AIW interest.
const TInt aMenuResourceIdResource id of the menu to attach to the AIW interest.
const TInt aInterestResourceIdResource id of the AIW interest.
const TBool aAttachBaseServiceIf ETrue, attaches the AIW resource id to the AIW base service also. This enables command handling via AIW without menus.

RemoveMenuCommandObserver(MPbk2MenuCommandObserver &)

voidRemoveMenuCommandObserver(MPbk2MenuCommandObserver &aObserver)[pure virtual]

Removes a menu command observer.

Parameters

MPbk2MenuCommandObserver & aObserverMenu command observer to remove.

ServiceCmdByMenuCmd(TInt)

TInt ServiceCmdByMenuCmd(TIntaMenuCmdId)const [pure virtual]

Returns the AIW service command id associated to given menu command. If found, it means that there is a provider which can handle the menu command.

CAiwServiceHandler::ServiceCmdByMenuCmd

Parameters

TInt aMenuCmdIdMenu command id to inspect.