MActivePalette2UI Class Reference
The interface for the Active Palette. The
ActivePalette2Factory
is used to instantiate objects that provide this interface.
Public Member Functions
|
|
~MActivePalette2UI
()
|
CCoeControl
*
|
CoeControl
()
|
TInt
|
GetAvailablePlugins
(
RArray
<
TUid
> &)
|
TInt
|
GetCurrentItem
(
TInt
&)
|
TInt
|
GetItemList
(
RArray
<
TActivePalette2ItemVisible
> &)
|
TInt
|
GetItemVisibility
(
TInt
,
TBool
&)
|
TInt
|
GetPaletteVisibilityAnimationDuration
(
TInt
&)
|
CHuiControl *
|
HuiControl
()
|
TInt
|
InstallItemL
(const
TActivePalette2ItemVisible
&, const
TUid
&, const
TDesC8
&)
|
TInt
|
InstallItemL
(const
TActivePalette2ItemVisible
&, const
TUid
&,
TInt
)
|
TInt
|
InstallItemL
(const
TActivePalette2ItemVisible
&, const
TUid
&,
TInt
, const
TDesC8
&)
|
void
|
LocateTo
(const
TPoint
&)
|
TPoint
|
Location
()
|
TInt
|
RemoveItem
(
TInt
)
|
void
|
RenderActivePalette
(const
TRect
&)
|
TInt
|
SendMessage
(
TInt
,
TInt
, const
TDesC8
&)
|
TInt
|
SendMessage
(
TInt
,
TInt
,
TInt
)
|
TInt
|
SetCurrentItem
(
TInt
)
|
void
|
SetGc
(
CBitmapContext
*)
|
TInt
|
SetItemList
(const
RArray
<
TActivePalette2ItemVisible
> &)
|
TInt
|
SetItemVisibility
(
TInt
,
TBool
)
|
void
|
SetNavigationKeys
(const
TActivePalette2NavigationKeys
&)
|
void
|
SetObserver
(
MActivePalette2Observer
*)
|
TInt
|
SetPaletteVisibility
(
TBool
,
TBool
,
TInt
)
|
TInt
|
SetPaletteVisibilityAnimationDuration
(
TInt
)
|
Constructor & Destructor Documentation
~MActivePalette2UI()
~MActivePalette2UI
|
(
|
)
|
[inline, virtual]
|
Destructor. Will clean up all installed plugins.
Member Functions Documentation
GetAvailablePlugins(RArray< TUid > &)
TInt
|
GetAvailablePlugins
|
(
|
RArray
<
TUid
> &
|
aPluginList
|
)
|
const [pure virtual]
|
Gets a list of available external plugins.
Parameters
RArray
<
TUid
> & aPluginList
|
On return, will contain a list a valid plugin UIDs
|
GetCurrentItem(TInt &)
TInt
|
GetCurrentItem
|
(
|
TInt
&
|
aItemId
|
)
|
const [pure virtual]
|
Gets the currently focussed item
Parameters
TInt
& aItemId
|
On return, will contain the ID of the item in focus
|
GetItemList(RArray< TActivePalette2ItemVisible > &)
Gets the list of currently installed items. The list will include all items, both visible and invisible.
SetItemList()
GetItemVisibility(TInt, TBool &)
TInt
|
GetItemVisibility
|
(
|
TInt
|
aItemId,
|
|
TBool
&
|
aIsVisible
|
|
)
|
const [pure virtual]
|
Find out the visibility of a specified item
Parameters
TInt
aItemId
|
The item's ID
|
TBool
& aIsVisible
|
On return, indicates the visibility of the item
|
GetPaletteVisibilityAnimationDuration(TInt &)
TInt
|
GetPaletteVisibilityAnimationDuration
|
(
|
TInt
&
|
aTimeInMilliseconds
|
)
|
const [pure virtual]
|
Parameters
TInt
& aTimeInMilliseconds
|
On return, will contain how long the animation will take, in milliseconds
|
HuiControl()
CHuiControl *
|
HuiControl
|
(
|
)
|
[pure virtual]
|
Returns the underlying CHuiControl, if any.
InstallItemL(const TActivePalette2ItemVisible &, const TUid &, const TDesC8 &)
Installs an item to the AP.
Parameters
const
TActivePalette2ItemVisible
& aItemVisible
|
The ID and visibility of the new item
|
const
TUid
& aPluginUid
|
The UID of the plugin to handle this item
|
const
TDesC8
& aCustomDataDes
|
Descriptor data to pass to the plugin
|
InstallItemL(const TActivePalette2ItemVisible &, const TUid &, TInt)
Installs an item to the AP.
Parameters
const
TActivePalette2ItemVisible
& aItemVisible
|
The ID and visibility of the new item
|
const
TUid
& aPluginUid
|
The UID of the plugin to handle this item
|
TInt
aCustomDataInt = 0
|
Integer data to pass to the plugin
|
InstallItemL(const TActivePalette2ItemVisible &, const TUid &, TInt, const TDesC8 &)
Installs an item to the AP.
Parameters
const
TActivePalette2ItemVisible
& aItemVisible
|
The ID and visibility of the new item
|
const
TUid
& aPluginUid
|
The UID of the plugin to handle this item
|
TInt
aCustomDataInt
|
Integer data to pass to the plugin
|
const
TDesC8
& aCustomDataDes
|
Descriptor data to pass to the plugin
|
LocateTo(const TPoint &)
void
|
LocateTo
|
(
|
const
TPoint
&
|
aTopLeft
|
)
|
[pure virtual]
|
Parameters
const
TPoint
& aTopLeft
|
Point specifying where to move the AP to
|
Location()
TPoint
|
Location
|
(
|
)
|
const [pure virtual]
|
Returns the top left point of the AP
RemoveItem(TInt)
TInt
|
RemoveItem
|
(
|
TInt
|
aItemId
|
)
|
[pure virtual]
|
Parameters
TInt
aItemId
|
The resource ID of the item to install
|
RenderActivePalette(const TRect &)
void
|
RenderActivePalette
|
(
|
const
TRect
&
|
aRect
|
)
|
const [pure virtual]
|
Forces the AP to draw itself to the supplied aRect. Uses the context previously set by SetGc, if any; uses the screen's context otherwise. Calls to this will only have an effect if a CCoeControl-based AP has been created.
SetGc()
Parameters
const
TRect
& aRect
|
The rect to render to
|
SendMessage(TInt, TInt, const TDesC8 &)
TInt
|
SendMessage
|
(
|
TInt
|
aItemId,
|
|
TInt
|
aMessageId,
|
|
const
TDesC8
&
|
aDataDes
|
|
)
|
[pure virtual]
|
Sends a message to the specified item's handling plugin
Parameters
TInt
aItemId
|
The item's ID
|
TInt
aMessageId
|
Message ID
|
const
TDesC8
& aDataDes
|
Custom data passed as a descriptor
|
SendMessage(TInt, TInt, TInt)
TInt
|
SendMessage
|
(
|
TInt
|
aItemId,
|
|
TInt
|
aMessageId,
|
|
TInt
|
aDataInt
|
|
)
|
[pure virtual]
|
Sends a message to the specified item's handling plugin
Parameters
TInt
aItemId
|
The item's ID
|
TInt
aMessageId
|
Message ID
|
TInt
aDataInt
|
Custom data passed as an integer
|
SetCurrentItem(TInt)
TInt
|
SetCurrentItem
|
(
|
TInt
|
aItemId
|
)
|
[pure virtual]
|
Sets the currently focussed item
Parameters
TInt
aItemId
|
The ID of the item to focus
|
SetGc(CBitmapContext *)
Sets the graphics context to draw to. If called with aGc being non-NULL, the AP will be rendered to the supplied context in future drawing operations. If called with NULL, the screen's GC will be used instead. Calls to this will only have an effect if a CCoeControl-based AP has been created.
RenderActivePalette()
SetItemList(const RArray< TActivePalette2ItemVisible > &)
Sets the order and visibility of installed items. aItemVisibleList may be incomplete (i.e. not all installed item IDs must be present). In this case, the non-specified items will be shuffled down to the end of the AP, whilst retaining their relative order. If the item that was in focus before the call is still visible, it retains the focus, else the first visible item gains focus.
GetItemList()
SetItemVisibility(TInt, TBool)
TInt
|
SetItemVisibility
|
(
|
TInt
|
aItemId,
|
|
TBool
|
aIsVisible
|
|
)
|
[pure virtual]
|
Sets the visibility of an item
Parameters
TInt
aItemId
|
The item's ID
|
TBool
aIsVisible
|
The visibility state
|
SetNavigationKeys(const TActivePalette2NavigationKeys &)
Sets the keys the user will press to navigate the AP. This sets the scancodes responded to when CCoeControl::OfferKeyEvent, CHuiControl::OfferEvent or similar are called.
SetObserver(MActivePalette2Observer *)
Sets the active palette observer used for callbacks. Calls to this function replace the previously set observer. SetObserver(NULL) may be called to remove the previously set observer without specifying a new observer
SetPaletteVisibility(TBool, TBool, TInt)
TInt
|
SetPaletteVisibility
|
(
|
TBool
|
aVisible,
|
|
TBool
|
aAnimated,
|
|
TInt
|
aDelayedStartMilliseconds = 0
|
|
)
|
[pure virtual]
|
Parameters
TBool
aVisible
|
If ETrue, shows the AP, otherwise hides it
|
TBool
aAnimated
|
Whether the transition should be animated. If not, the change is made as soon as aDelayedStartMilliseconds has passed
|
TInt
aDelayedStartMilliseconds = 0
|
An optional pause before the transition begins.
|
SetPaletteVisibilityAnimationDuration(TInt)
TInt
|
SetPaletteVisibilityAnimationDuration
|
(
|
TInt
|
aTimeInMilliseconds
|
)
|
[pure virtual]
|
Parameters
TInt
aTimeInMilliseconds
|
How long the animation should take, in milliseconds
|
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.