AknSelectionService Class Reference

class AknSelectionService

These are part of Selection service and they should be called by application's HandleCommandL() to get menus and cba's handled automatically for selection service.

The right way to implement these would be to have dialogs with names "Selection List", "MultiSelection List" and "Markable list" and make them keep a listbox inside it. (look at CAknPopupList, it does similar things)

See CAknSelectionListDialog and CAknMarkableListDialog from aknselectionlist.h, they provide better interface for applications.

Member Functions Documentation

HandleItemRemovalAndPositionHighlightL(CEikListBox *, TInt, TBool)

IMPORT_C voidHandleItemRemovalAndPositionHighlightL(CEikListBox *aListBox,
TIntaValueOfCurrentItemIndexBeforeRemoval,
TBoolaCurrentItemWasRemoved
)[static]

Helper function to position list highlight correctly after item removal

Parameters

CEikListBox * aListBox
TInt aValueOfCurrentItemIndexBeforeRemoval
TBool aCurrentItemWasRemoved

HandleItemRemovalAndPositionHighlightL(CEikListBox *, TInt, CArrayFix< TInt > &)

IMPORT_C voidHandleItemRemovalAndPositionHighlightL(CEikListBox *aListBox,
TIntaValueOfCurrentItemIndexBeforeRemoval,
CArrayFix< TInt > &aIndexesOfRemovedItemsBeforeRemoval
)[static]

Helper function to position list highlight correctly after item removal

It also updates selection index array based on information about which items were removed.

Parameters

CEikListBox * aListBox
TInt aValueOfCurrentItemIndexBeforeRemoval
CArrayFix< TInt > & aIndexesOfRemovedItemsBeforeRemoval

HandleMarkableListDynInitMenuItem(CEikMenuPane *, CEikListBox *, TInt, TBool)

IMPORT_C voidHandleMarkableListDynInitMenuItem(CEikMenuPane *aMenu,
CEikListBox *aListBox,
TIntaCommandId,
TBoolaCanBeAppliedToMultipleItems
)[static]

Helper function to implement DynInitMenuPaneL() for markable list dialogs

Parameters

CEikMenuPane * aMenu
CEikListBox * aListBox
TInt aCommandId
TBool aCanBeAppliedToMultipleItems

HandleMarkableListDynInitMenuPane(TInt, CEikMenuPane *, CEikListBox *)

IMPORT_C voidHandleMarkableListDynInitMenuPane(TIntaResourceId,
CEikMenuPane *aMenu,
CEikListBox *aListBox
)[static]

Helper function to implement DynInitMenuPaneL() for markable list dialogs

Parameters

TInt aResourceId
CEikMenuPane * aMenu
CEikListBox * aListBox

HandleMarkableListProcessCommandL(TInt, CEikListBox *)

IMPORT_C voidHandleMarkableListProcessCommandL(TIntaCommand,
CEikListBox *aListBox
)[static]

Helper function to implement ProcessCommandL() for markable list dialogs

Parameters

TInt aCommand
CEikListBox * aListBox

HandleMarkableListUpdateAfterCommandExecution(CEikListBox *)

IMPORT_C voidHandleMarkableListUpdateAfterCommandExecution(CEikListBox *aListBox)[static]

Helper function to implement command handling for markable list dialogs

Parameters

CEikListBox * aListBox

HandleMenuListOfferKeyEventL(const TKeyEvent &, TEventCode, CEikListBox *)

IMPORT_C TKeyResponseHandleMenuListOfferKeyEventL(const TKeyEvent &aKeyEvent,
TEventCodeaType,
CEikListBox *aListBox
)[static]

Helper function to implement ProcessCommandL() for menu lists

Parameters

const TKeyEvent & aKeyEvent
TEventCode aType
CEikListBox * aListBox

HandleMultiselectionListProcessCommandL(TInt, CEikListBox *)

IMPORT_C voidHandleMultiselectionListProcessCommandL(TIntaCommand,
CEikListBox *aListBox
)[static]

Helper function to implement ProcessCommandL() for selection list dialogs

Parameters

TInt aCommand
CEikListBox * aListBox

HandleSelectionListProcessCommandL(TInt, CEikListBox *)

IMPORT_C voidHandleSelectionListProcessCommandL(TIntaCommand,
CEikListBox *aListBox
)[static]

Helper function to implement ProcessCommandL() for selection list dialogs

Parameters

TInt aCommand
CEikListBox * aListBox