Link against: eikcoctl.lib
#include <akntoolbarextension.h>
Inherits CAknButton.
Toolbar extension component. Opens an extension view when this extension is pressed.
Public Member Functions |
|
~CAknToolbarExtension () | |
Destructor. |
|
void | ConstructFromResourceL (TResourceReader &aReader) |
From CAknButton constructs the extension from resource. |
|
TKeyResponse | OfferKeyEventL (const TKeyEvent &aKeyEvent, TEventCode aType) |
From CCoeControl. |
|
void | HandleResourceChange (TInt aType) |
From CCoeControl Handles resource changes. |
|
void | MakeVisible (TBool aVisible) |
From CCoeControl. |
|
void | HandleControlEventL (CCoeControl *aControl, TCoeEvent aEventType) |
From MCoeControlObserver. |
|
TInt | ExtensionPosition () |
Using this the extension view can get extension position in fixed toolbar. |
|
void | ShowViewViaIdle () |
Creates idle if it does not exist yet and calls it by giving a callback for notifying when ready to draw extension view.
|
|
void | ViewClosed () |
Extension view tells extension to change state using this method. |
|
IMPORT_C CCoeControl * | ControlOrNull (TInt aCommandId) const |
Gets a pointer to the specified control. |
|
IMPORT_C void | AddItemL (CCoeControl *aItem, TInt aType, TInt aCommandId, TInt aFlags, TInt aIndex) |
Adds one item to the specified place. |
|
IMPORT_C void | RemoveItemL (TInt aCommandId) |
Removes one item from the extension view. |
|
TInt | ExtensionFlags () |
Gets extension flags. |
|
IMPORT_C TBool | IsShown () const |
Returns boolean indicating if extension view is shown. |
|
IMPORT_C void | SetShown (TBool aShown) |
Shows or hides extension view. |
|
CCoeControl * | ExtensionView () |
Returns pointer to extension view. |
|
IMPORT_C void | SetItemDimmed (TInt aCommandId, TBool aDimmed) |
Sets item dimmed or undimmed. |
|
IMPORT_C void | HideItemL (TInt aCommandId, TBool aHide) |
Hides or unhides item. |
|
Static Public Member Functions |
|
static CAknToolbarExtension * | NewL () |
Creates toolbar extension. |
|
static IMPORT_C CAknToolbarExtension * | NewL (TInt aResourceId) |
Creates toolbar extension. |
|
static IMPORT_C CAknToolbarExtension * | NewLC (TInt aResourceId) |
Creates toolbar extension. |
|
static TInt | ShowView (TAny *aThis) |
Callback to get notified when ready to show extension view again. |
|
Destructor. |
|
Adds one item to the specified place. Takes ownership. Leaves with value KErrNotSupported, if called when extension view is shown and with KErrArgument if aItem does not exist or aIndex is out of bound.
|
|
From CAknButton constructs the extension from resource.
Reimplemented from CAknButton. |
|
Gets a pointer to the specified control.
|
|
Gets extension flags.
|
|
Using this the extension view can get extension position in fixed toolbar.
|
|
Returns pointer to extension view.
|
|
From MCoeControlObserver. Here the events from the extension itself and extension view components are handled
|
|
From CCoeControl Handles resource changes.
Reimplemented from CAknButton. |
|
Hides or unhides item. Leaves with value KErrNotSupported if called when extension view is shown.
|
|
Returns boolean indicating if extension view is shown.
|
|
From CCoeControl. Makes extension and extension view visible or hides them
Reimplemented from CAknButton. |
|
Creates toolbar extension.
Reimplemented from CAknButton. |
|
Creates toolbar extension.
Reimplemented from CAknButton. |
|
Creates toolbar extension.
Reimplemented from CAknButton. |
|
From CCoeControl.
Reimplemented from CAknButton. |
|
Removes one item from the extension view. Leaves with value KErrNotSupported if called when extension view is shown.
|
|
Sets item dimmed or undimmed.
|
|
Shows or hides extension view.
|
|
Callback to get notified when ready to show extension view again.
|
|
Creates idle if it does not exist yet and calls it by giving a callback for notifying when ready to draw extension view. |
|
Extension view tells extension to change state using this method. This is used when tapping outside extension view. |