Symbian Developer Library

SYMBIAN OS V6.1 EDITION FOR C++

[Index] [Glossary] [Previous] [Next]



Location: eikmobs.h
Link against: eikcore.lib

Class MEikAutoMenuObserver

MEikAutoMenuObserver

Support

Supported from 6.0

Description

Provides additional functionality to an auto menu title, in the form of an OfferHotKeyL() method, which is not required in the normal MEikMenuObserver. Auto menu titles are used to ensure that some menu panes appear in every menu constructed for an application.

Derivation

MEikAutoMenuObserverProvides additional functionality to an auto menu title, in the form of an OfferHotKeyL() method, which is not required in the normal MEikMenuObserver
MEikCommandObserverCommand observers respond to user commands, and have the secondary function of creating custom controls on request for classes such as CEikToolbar, or user-defined classes
MEikMenuObserverMenu observer interface

Defined in MEikAutoMenuObserver:
OfferHotKeyL(), SetEmphasis()

Inherited from MEikCommandObserver:
CreateCustomCommandControlL(), ProcessCommandL()

Inherited from MEikMenuObserver:
CheckHotKeyNotDimmedL(), DynInitMenuBarL(), DynInitMenuPaneL(), EMenuBar, EMenuPane, HandleAttemptDimmedSelectionL(), HandleSideBarMenuL(), OfferKeyToAppL(), RestoreMenuL(), TMenuType


Member functions


OfferHotKeyL()

virtual TKeyResponse OfferHotKeyL(const TKeyEvent& aKeyEvent,TEventCode aType)=0;

Description

Offers the specified hot key to the auto menu title.

Implement this function if you expect to handle any events from an auto menu.

Parameters

const TKeyEvent& aKeyEvent

The key event.

TEventCode aType

The type of key event.

Return value

TKeyResponse

The auto menu title's response.


SetEmphasis()

void SetEmphasis(CCoeControl* MenuControl,TBool aEmphasis);

Description

Sets the specified control's emphasis.

Parameters

CCoeControl* aMenuControl

The control for which emphasis is set.

TBool aEmphasis

If ETrue the menu is emphasised. If EFalse the menu is not emphasised.