class CGSTabHelper : public CBase |
CGSPluginInterface* array (plugins)
MGSTabbedView* interface Array (local views owned by plugin).
How to use:
1. Call CreateTabGroupL() from the plugin's/view's DoActivate(). Providing an array of all the plugins/views which should be in the tab group including the plugin/view itself.
2. Call RemoveTabGroup() from the plugin's/view's DoDeactivate().
3. It is recommended to use CGSTabHelper* as an member variable owned by the plugin/view class.
Public Member Functions | |
---|---|
~CGSTabHelper() | |
IMPORT_C void | CreateTabGroupL(TUid, MGSTabbedViewOwner *) |
IMPORT_C void | CreateTabGroupL(TUid, CArrayPtrFlat< CGSPluginInterface > *) |
IMPORT_C void | CreateTabGroupL(TUid, CArrayPtrFlat< MGSTabbedView > *) |
IMPORT_C CGSTabHelper * | NewL() |
IMPORT_C CGSTabHelper * | NewLC() |
IMPORT_C void | RemoveTabGroup() |
IMPORT_C void | TabChangedL(TInt) |
Protected Member Functions | |
---|---|
CGSTabHelper() | |
void | ConstructL() |
Private Attributes | |
---|---|
CAknViewAppUi * | iAppUi |
CAknNavigationControlContainer * | iNaviContainer |
CAknNavigationDecorator * | iNaviDecorator |
CAknTabGroup * | iTabGroup |
MGSTabbedViewOwner * | iTabOwner |
IMPORT_C void | CreateTabGroupL | ( | TUid | aActiveViewUid, |
MGSTabbedViewOwner * | aTabOwner | |||
) |
This function is for views implementing MGSTabbedViewOwner. Such may be needed in case view needs to update its selected item according to tab selection.
Creates and adds a tab group to navipane. The number of visible tabs is 4 unless there are less tabbed views in which case the number of tabs equal the number of tabbed views.
TUid aActiveViewUid | UID of the view whose tab should be activated when the tab group is added to the navi pane. |
MGSTabbedViewOwner * aTabOwner | Reference to the owner of the tabbed views. |
IMPORT_C void | CreateTabGroupL | ( | TUid | aActiveViewUid, |
CArrayPtrFlat< CGSPluginInterface > * | aTabbedViews | |||
) |
This function is for plugin implementation.
Creates and adds a tab group to navipane. The number of visible tabs is 4 unless there are less tabbed views in which case the number of tabs equal the number of tabbed views.
TUid aActiveViewUid | UID of the view whose tab should be activated when the tab group is added to the navi pane. |
CArrayPtrFlat< CGSPluginInterface > * aTabbedViews | References to the views which belong to the tab group. |
IMPORT_C void | CreateTabGroupL | ( | TUid | aActiveViewUid, |
CArrayPtrFlat< MGSTabbedView > * | aTabbedViews | |||
) |
This function is for local view implementation.
Creates and adds a tab group to navipane. The number of visible tabs is 4 unless there are less tabbed views in which case the number of tabs equal the number of tabbed views.
TUid aActiveViewUid | UID of the view whose tab should be activated when the tab group is added to the navi pane. |
CArrayPtrFlat< MGSTabbedView > * aTabbedViews | References to the views which belong to the tab group. |
CAknNavigationControlContainer * | iNaviContainer | [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.