CLiwMenuPane Class Reference
class CLiwMenuPane : public CBase
|
CLiwMenuPane
for providers to have limited access to consumer menu.
LIW provider can get a reference to
CLiwMenuPane
in its InitializeMenuPaneL() method, which is derived from
CLiwServiceIfMenu
. With this reference, the provider can e.g. insert menu items to the consumer application's menu.
ServiceHandler.lib
-
Since
-
Series 60 2.6
Nested Classes and Structures
Public Member Functions
|
|
CLiwMenuPane
(
CEikMenuPane
&,
TInt
)
|
|
~CLiwMenuPane
()
|
IMPORT_C void
|
AddMenuItemL
(
TInt
,
CEikMenuPaneItem::SData
&,
TInt
)
|
IMPORT_C void
|
AddMenuItemL
(
TInt
,
CEikMenuPaneItem::SData
&,
TInt
, const
TDesC
&)
|
IMPORT_C void
|
AddMenuItemsL
(
TResourceReader
&,
TInt
,
TInt
,
TBool
)
|
IMPORT_C void
|
AddMenuItemsL
(
TFileName
&,
TInt
,
TInt
,
TInt
,
TBool
)
|
IMPORT_C void
|
AddTitleItemL
(const
TDesC
&,
TInt
)
|
IMPORT_C
TInt
|
DynCmdId
(
TInt
)
|
IMPORT_C
TInt
|
MenuCmdId
(
TInt
)
|
IMPORT_C
TInt
|
ServiceCmdId
(
TInt
)
|
Constructor & Destructor Documentation
CLiwMenuPane(CEikMenuPane &, TInt)
Parameters
CEikMenuPane
& aMenuPane
|
Consumer's menu pane handle.
|
TInt
aBaseCmdId
|
Base command ID for new menu items, specified by consumer.
|
~CLiwMenuPane()
IMPORT_C
|
~CLiwMenuPane
|
(
|
)
|
[virtual]
|
Member Functions Documentation
AddMenuItemL(TInt, CEikMenuPaneItem::SData &, TInt)
Adds a menu item to consumer menu. For each addition a mapping element is created. This method should normally be called from provider's InitializeMenuPaneL().
Parameters
TInt
aServiceCmd
|
The LIW service command the provider implements.
|
CEikMenuPaneItem::SData
& aMenuItem
|
The menu item data.
|
TInt
aIndex
|
Position of item where to add menu items.
|
AddMenuItemL(TInt, CEikMenuPaneItem::SData &, TInt, const TDesC &)
Adds a menu item to consumer menu. For each addition a mapping element is created. This method should normally be called from provider's InitializeMenuPaneL().
Parameters
TInt
aServiceCmd
|
The LIW service command the provider implements.
|
CEikMenuPaneItem::SData
& aMenuItem
|
The menu item data.
|
TInt
aIndex
|
Position of item where to add menu items.
|
const
TDesC
& aExtraText
|
Altenative menu item text, if it is placed to a submenu.
|
AddMenuItemsL(TResourceReader &, TInt, TInt, TBool)
Adds a menu item(s) to consumer menu from provider resource. This method should normally be called from provider's InitializeMenuPaneL().
Parameters
TResourceReader
& aReader
|
Resource reader pointing to the menu resource.
|
TInt
aServiceCmd
|
The LIW service command the provider implements.
|
TInt
aIndex
|
Position of item where to add menu items.
|
TBool
aAddSeperator = EFalse
|
|
AddMenuItemsL(TFileName &, TInt, TInt, TInt, TBool)
Adds a menu item(s) to consumer menu from provider resource. This method should normally be called from provider's InitializeMenuPaneL().
Parameters
TFileName
& aFileName
|
The provider's resource where menu item(s) are defined.
|
TInt
aResId
|
Resource id of a MENU_PANE.
|
TInt
aServiceCmd
|
The LIW service command the provider implements.
|
TInt
aIndex
|
Position of item where to add menu items.
|
TBool
aAddSeperator = EFalse
|
Currently not in use.
|
AddTitleItemL(const TDesC &, TInt)
IMPORT_C void
|
AddTitleItemL
|
(
|
const
TDesC
&
|
aTitle,
|
|
TInt
|
aIndex
|
|
)
|
|
Add sub menu title item. This item will not be visible in menus, but will be used as title for comsumer's LIW submenu (if consumer requests that).
Parameters
const
TDesC
& aTitle
|
Title text
|
TInt
aIndex
|
Position of title item in menu (can be anything, but if there is several title item definitions in menu, then the last one will be used).
|
DynCmdId(TInt)
IMPORT_C
TInt
|
DynCmdId
|
(
|
TInt
|
aMenuCmdId
|
)
|
const
|
Gets the dynamic menu command ID (generated by the LIW framework) from the provider's original menu command ID. There are usually multiple matching dynamic menu command IDs, so this method returns the first item found.
Parameters
TInt
aMenuCmdId
|
Provider's original menu command ID.
|
ExtraText(TInt)
const
TDesC
&
|
ExtraText
|
(
|
TInt
|
aDynMenuCmdId
|
)
|
[private]
|
FindCmdId(TInt)
TInt
|
FindCmdId
|
(
|
TInt
|
aIndex
|
)
|
[private]
|
MenuCmdId(TInt)
IMPORT_C
TInt
|
MenuCmdId
|
(
|
TInt
|
aDynCmdId
|
)
|
const
|
Gets the provider's original menu command ID from the dynamic menu command ID (generated by the LIW framework).
Parameters
TInt
aDynCmdId
|
Dynamic menu command ID.
|
MenuResourceId()
TInt
|
MenuResourceId
|
(
|
)
|
const [private, inline]
|
PaneOffset()
TInt
|
PaneOffset
|
(
|
)
|
const [private, inline]
|
ResourceSlotId()
TInt
|
ResourceSlotId
|
(
|
)
|
const [private, inline]
|
ServiceCmdId(TInt)
IMPORT_C
TInt
|
ServiceCmdId
|
(
|
TInt
|
aDynCmdId
|
)
|
const
|
Gets the LIW service command ID from the dynamic menu command ID (generated by the LIW framework).
Parameters
TInt
aDynCmdId
|
Dynamic menu command ID.
|
SetInitializingOwner(CLiwServiceIfBase *)
SetMenuResourceId(TInt)
void
|
SetMenuResourceId
|
(
|
TInt
|
aMenuResourceId
|
)
|
[private, inline]
|
SetPaneOffset(TInt)
void
|
SetPaneOffset
|
(
|
TInt
|
aOffset
|
)
|
[private, inline]
|
SetResourceSlotId(TInt)
void
|
SetResourceSlotId
|
(
|
TInt
|
aSlot
|
)
|
[private, inline]
|
Member Data Documentation
TInt
iBaseCmdId
TInt
|
iBaseCmdId
|
[private]
|
void * iExtension
void *
|
iExtension
|
[private]
|
RArray< SMenuIdMap > iIdMap
CLiwServiceIfBase * iInitializingOwner
TInt
iMenuResourceId
TInt
|
iMenuResourceId
|
[private]
|
TInt
iNextCmdId
TInt
|
iNextCmdId
|
[private]
|
TInt
iPaneOffset
TInt
|
iPaneOffset
|
[private]
|
TInt
iReserved_1
TInt
|
iReserved_1
|
[private]
|
TInt
iResourceSlotId
TInt
|
iResourceSlotId
|
[private]
|
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.