MFscContactActionMenuModel Class Reference

class MFscContactActionMenuModel

Contact Action Menu Model interface.

Since
S60 3.1

Constructor & Destructor Documentation

~MFscContactActionMenuModel()

~MFscContactActionMenuModel()[protected, inline, virtual]

Destructor.

Member Functions Documentation

AddItemL(CFscContactActionMenuItem *)

TInt AddItemL(CFscContactActionMenuItem *aItem)[pure virtual]

Add a single item

Parameters

CFscContactActionMenuItem * aItemNew item. Ownership of the item is transferred.

AddPreQueriedCasItemsL()

voidAddPreQueriedCasItemsL()[pure virtual]

Add pre queried items to the list This method can be used when client application is using same instance of cas and it is know that cas's queryresults are ok for the menu. This is usefull when Cas items are used in options menu and action menu Previously set CAS items are removed before adding new items.

ItemCount()

TInt ItemCount()[pure virtual]

Return number of items in the menu

ItemL(TInt)

CFscContactActionMenuItem &ItemL(TIntaIndex)[pure virtual]

Item getter Method leaves with KErrNotFound if given index is invalid

Parameters

TInt aIndexIndex of requested item

NewMenuItemL(const TDesC &, const CGulIcon *, TInt, TBool, TUid)

CFscContactActionMenuItem *NewMenuItemL(const TDesC &aMenuText,
const CGulIcon *aIcon,
TIntaPriority,
TBoolaStatic,
TUidaUid
)[pure virtual]

Factory method for creating a new menu item. Item is not added to the menu. Ownership of new item is transferred and it is not added to the menu automatically

Parameters

const TDesC & aMenuTextMenu text
const CGulIcon * aIconIcon. Icon ownership is not transferred
TInt aPriorityPriority
TBool aStaticIs static Static items are ment to be kept in the menu longer than non-static. Normal use case for static items are custom items set by Action Menu's client. These special items are always in the menu so client does not want to set them again after clearing other items from the menu. All CAS based items are non-static and therefore they can easily be removed from the menu without removing static items also.
TUid aUidItem Uid

RemoveAll(TBool)

voidRemoveAll(TBoolaStaticAlso = EFalse)[pure virtual]

Remove all items from the menu

Parameters

TBool aStaticAlso = EFalseIf ETrue also static items will be removed

RemoveItemL(TInt)

voidRemoveItemL(TIntaIndex)[pure virtual]

Remove a single item from the menu

Parameters

TInt aIndexIndex of the item

VisibleItemCount()

TInt VisibleItemCount()[pure virtual]

Return number of visible items in the menu Visible items are not hidden or dimmed and they have an icon

VisibleItemL(TInt)

CFscContactActionMenuItem &VisibleItemL(TIntaIndex)[pure virtual]

Visible item getter. Visible items are not hidden or dimmed and they have an icon

Parameters

TInt aIndexIndex of requested item