MFscContactActionMenuModel Class Reference
class MFscContactActionMenuModel |
Contact Action Menu Model interface.
Constructor & Destructor Documentation
~MFscContactActionMenuModel()
~MFscContactActionMenuModel | ( | ) | [protected, inline, virtual] |
Member Functions Documentation
AddItemL(CFscContactActionMenuItem *)
AddPreQueriedCasItemsL()
void | AddPreQueriedCasItemsL | ( | ) | [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)
Item getter Method leaves with KErrNotFound if given index is invalid
Parameters
TInt aIndex | Index of requested item |
NewMenuItemL(const TDesC &, const CGulIcon *, TInt, TBool, TUid)
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 & aMenuText | Menu text |
const CGulIcon * aIcon | Icon. Icon ownership is not transferred |
TInt aPriority | Priority |
TBool aStatic | Is 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 aUid | Item Uid |
RemoveAll(TBool)
void | RemoveAll | ( | TBool | aStaticAlso = EFalse | ) | [pure virtual] |
Remove all items from the menu
Parameters
TBool aStaticAlso = EFalse | If ETrue also static items will be removed |
RemoveItemL(TInt)
void | RemoveItemL | ( | TInt | aIndex | ) | [pure virtual] |
Remove a single item from the menu
Parameters
TInt aIndex | Index 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)
Visible item getter. Visible items are not hidden or dimmed and they have an icon
Parameters
TInt aIndex | Index of requested item |
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.