CMenuHandler Class Reference

class CMenuHandler : public CBase
Menu handler interface. Menu handlers execute menu commands. mcsmenu.lib
Since
S60 v5.0

Inherits from

Constructor & Destructor Documentation

CMenuHandler(RMenu &)

IMPORT_CCMenuHandler(RMenu &aMenu)[protected]
Constructor.
Since
S60 v5.0

Parameters

RMenu & aMenuMenu.

~CMenuHandler()

IMPORT_C~CMenuHandler()[virtual]
Destructor.
Since
S60 v5.0
capability
None.
Exceptions
None.

panic
None.

Member Functions Documentation

BaseConstructL()

IMPORT_C voidBaseConstructL()[protected]
Second phase constructor.
Since
S60 v5.0

HandleCommandL(CMenuItem &, const TDesC8 &, const TDesC8 &, TRequestStatus &)

IMPORT_C CMenuOperation *HandleCommandL(CMenuItem &aItem,
const TDesC8 &aCommand,
const TDesC8 &aParams,
TRequestStatus &aStatus
)[virtual]
Handle command.
Since
S60 v5.0
capability
None.
Exceptions
This

implementation throws KErrNotSupported.

panic
None.

Parameters

CMenuItem & aItemItem of supported type.
const TDesC8 & aCommandCommand.
const TDesC8 & aParams
TRequestStatus & aStatusObserver request status. When the operation completes, this status will be completed with the resulting error code.

SupportsType(const TDesC &)

IMPORT_C TBoolSupportsType(const TDesC &aType)[virtual]
Query support for item type.
Since
S60 v5.0
capability
None.
Exceptions
None.

panic
None.

Parameters

const TDesC & aTypeType.

Member Data Documentation

TData * iData

TData *iData[private]

RMenu & iMenu

RMenu &iMenu[protected]