CGSParentPlugin Class Reference

class CGSParentPlugin : public CGSPluginInterface

CGSParentPlugin view class. Thus is a base class for plugins owning other plugins as their sub-views.

GSFramework.lib
Since
Series60_3.1

Inherits from

Nested Classes and Structures

Public Member Functions
~CGSParentPlugin()
IMPORT_C voidBaseConstructL(TInt, TInt)
voidCheckMiddleSoftkeyLabelL()
IMPORT_C voidGetHelpContext(TCoeHelpContext &)
IMPORT_C voidHandlePluginLoaded(KGSPluginLoaderStatus)
IMPORT_C TGSListboxTypesListBoxType()
IMPORT_C voidOpenLocalizedResourceFileL(const TDesC &, RConeResourceLoader &)
IMPORT_C const TBitFlags &OptionFlags()
voidRequestPriority(CActive::TPriority)
IMPORT_C voidResetSelectedItemIndex()
IMPORT_C CGSPluginInterface *SelectedPlugin()
voidSetMiddleSoftKeyLabelL(const TInt, const TInt)
voidSetMiddleSoftKeyLabelTextL(const TPtr, const TInt)
IMPORT_C voidSetOptionFlags(TBitFlags &)
IMPORT_C voidTransferDynamicPluginL(CGSPluginInterface *)
IMPORT_C voidUpdateView()
IMPORT_C TUidUpperLevelViewUid()
Protected Member Functions
CGSParentPlugin()
IMPORT_C voidDoActivateL(const TVwsViewId &, TUid, const TDesC8 &)
IMPORT_C voidDoDeactivate()
IMPORT_C voidDynInitMenuPaneL(TInt, CEikMenuPane *)
IMPORT_C voidHandleCommandL(TInt)
Private Member Functions
voidConstructContainerL()
voidRemoveCommandFromMSK(TInt)
voidStartAsyncPluginLoadL()
Inherited Functions
CAknView::ActivateViewL(const TVwsViewId &)
CAknView::ActivateViewL(const TVwsViewId &,TUid,const TDesC8 &)
CAknView::AknViewActivatedL(const TVwsViewId &,TUid,const TDesC8 &)
CAknView::AknViewDeactivated()
CAknView::AppUi()const
CAknView::BaseConstructL(TInt)
CAknView::CAknView()
CAknView::Cba()const
CAknView::ClientRect()const
CAknView::ConstructMenuAndCbaEarlyL()
CAknView::CreateAndSetToolbarL(TInt)
CAknView::HandleForegroundEventL(TBool)
CAknView::HandleStatusPaneSizeChange()
CAknView::HandleViewRectChange()
CAknView::Id()const
CAknView::IsForeground()const
CAknView::MenuBar()const
CAknView::MopNext()
CAknView::MopSupplyObject(TTypeUid)
CAknView::ProcessCommandL(TInt)
CAknView::ProcessForegroundEventL(TBool)
CAknView::Redraw()const
CAknView::SaveToolbarStatus(TBool,TBool)
CAknView::SetEmphasis(CCoeControl *,TBool)
CAknView::SetToolbar(CAknToolbar *)
CAknView::ShowToolbarOnViewActivation(TBool)
CAknView::StatusPane()const
CAknView::StopDisplayingMenuBar()
CAknView::StopDisplayingToolbar()
CAknView::Toolbar()const
CAknView::ToolbarShownOnViewActivation()const
CAknView::ViewActivatedL(const TVwsViewId &,TUid,const TDesC8 &)
CAknView::ViewDeactivated()
CAknView::ViewId()const
CAknView::ViewScreenDeviceChangedL()
CAknView::~CAknView()
CBase::CBase()
CBase::Delete(CBase *)
CBase::Extension_(TUint,TAny *&,TAny *)
CBase::operator new(TUint)
CBase::operator new(TUint,TAny *)
CBase::operator new(TUint,TLeave)
CBase::operator new(TUint,TLeave,TUint)
CBase::operator new(TUint,TUint)
CBase::~CBase()
CGSPluginInterface::CGSPluginInterface()
CGSPluginInterface::CreateIconL(const TUid)
CGSPluginInterface::CustomOperationL(TAny *,TAny *)
CGSPluginInterface::GetCaptionL(TDes &)const
CGSPluginInterface::GetEcomDestructorKey()
CGSPluginInterface::GetValue(const TGSPluginValueKeys,TDes &)
CGSPluginInterface::HandleSelection(const TGSSelectionTypes)
CGSPluginInterface::ItemType()
CGSPluginInterface::MenuActivationItem()
CGSPluginInterface::NewL(const TUid,TAny *)
CGSPluginInterface::PluginProviderCategory()const
CGSPluginInterface::SetOrder(TInt)
CGSPluginInterface::Visible()const
CGSPluginInterface::~CGSPluginInterface()
Inherited Enumerations
CGSPluginInterface:TGSPluginProviderCategory
Protected Attributes
TVwsViewId iPrevViewId
Private Attributes
CAknViewAppUi *iAppUi
CGSParentContainer *iContainer
TBool iIsLandscapeOrientation
TInt iMskCommandId
TBitFlags iOptionFlags
CArrayPtrFlat< CGSPluginInterface > *iPluginArray
CGSPluginLoader *iPluginLoader
TListBoxPosition iPosition
RConeResourceLoaderiResourceLoader
TUid iSelectedPluginUid
TInt iTitleRscId
TUid iTopPluginUid
Inherited Attributes
CAknView::iCoeEnv

Constructor & Destructor Documentation

CGSParentPlugin()

IMPORT_CCGSParentPlugin()[protected]

See base class.

~CGSParentPlugin()

IMPORT_C~CGSParentPlugin()

Destructor.

Member Functions Documentation

BaseConstructL(TInt, TInt)

IMPORT_C voidBaseConstructL(TIntaViewRscId,
TIntaTitleRscId
)

Symbian OS default constructor. Call this from sub classes.

Parameters

TInt aViewRscId
TInt aTitleRscId

CheckMiddleSoftkeyLabelL()

voidCheckMiddleSoftkeyLabelL()

Checks if the MSK label needs to be adjusted.

ConstructContainerL()

voidConstructContainerL()[private]

Constructs container for this view.

DoActivateL(const TVwsViewId &, TUid, const TDesC8 &)

IMPORT_C voidDoActivateL(const TVwsViewId &aPrevViewId,
TUidaCustomMessageId,
const TDesC8 &aCustomMessage
)[protected, virtual]

See base class.

Parameters

const TVwsViewId & aPrevViewId
TUid aCustomMessageId
const TDesC8 & aCustomMessage

DoDeactivate()

IMPORT_C voidDoDeactivate()[protected, virtual]

See base class.

DynInitMenuPaneL(TInt, CEikMenuPane *)

IMPORT_C voidDynInitMenuPaneL(TIntaResourceId,
CEikMenuPane *aMenuPane
)[protected]

See base class.

Parameters

TInt aResourceId
CEikMenuPane * aMenuPane

GetHelpContext(TCoeHelpContext &)

IMPORT_C voidGetHelpContext(TCoeHelpContext &aContext)[virtual]

Provides help context. This should be implemented by CGSParentPlugin sub class in case help is needed. Normally this is defined in CCoeControl derived class but since all parent plugin implementations have only CGSParentContainer class as the only CCoeControl derived class, and need still their own unique help contexts, this function is needed in view level class.

Parameters

TCoeHelpContext & aContext

HandleCommandL(TInt)

IMPORT_C voidHandleCommandL(TIntaCommand)[protected, virtual]

See base class.

Parameters

TInt aCommand

HandlePluginLoaded(KGSPluginLoaderStatus)

IMPORT_C voidHandlePluginLoaded(KGSPluginLoaderStatusaStatus)

See base class.

Parameters

KGSPluginLoaderStatus aStatus

ListBoxType()

IMPORT_C TGSListboxTypesListBoxType()[virtual]

Defines the type of the used listbox visualising the child plugins. Classes deriving from CGSParentContainer can override this function to define the used type of the listbox. Otherwise default value EGSListBoxTypeSingleLarge is used.

OpenLocalizedResourceFileL(const TDesC &, RConeResourceLoader &)

IMPORT_C voidOpenLocalizedResourceFileL(const TDesC &aResourceFileName,
RConeResourceLoader &aResourceLoader
)

Opens the nearest localized resourcefile using aResourceLoader. aResourceLoader should be opened only once before closing it. Otherwise it will raise a panic. Therefore it is better to have multiple resource loaders. Uses KDC_RESOURCE_FILES_DIR.

Parameters

const TDesC & aResourceFileNameDrive and name of resource file in format <path>:<rsc_file_name>
RConeResourceLoader & aResourceLoaderResource loader for the resource. The loader must not be opened allready or it will raise a panic. It is caller's responsibility to close the resource loader after using the resource.

OptionFlags()

IMPORT_C const TBitFlags &OptionFlags()const [virtual]

Gets currently used option flags.

RemoveCommandFromMSK(TInt)

voidRemoveCommandFromMSK(TIntaMskCommandId)[private]

Remove command from MSK.

Parameters

TInt aMskCommandIdID of the command to be removed.

RequestPriority(CActive::TPriority)

voidRequestPriority(CActive::TPriorityaPriority)

Attempts to change child plugin load priority on next RunL cycle. Use this if parent needs to change plugin loader priority. Normally when parent plugin view is opened, it is advisable to increase loader priority to get child plugins loaded faster.

Parameters

CActive::TPriority aPriorityDesired priority.

ResetSelectedItemIndex()

IMPORT_C voidResetSelectedItemIndex()[virtual]

See base class.

SelectedPlugin()

IMPORT_C CGSPluginInterface *SelectedPlugin()

SetMiddleSoftKeyLabelL(const TInt, const TInt)

voidSetMiddleSoftKeyLabelL(const TIntaResourceId,
const TIntaCommandId
)

Adds given resource text as MSK to CBA. Use either this or SetMiddleSoftKeyLabelTextL in in case text is used deirectly instead of resource.

Since
S60 v3.1

Parameters

const TInt aResourceIdmiddle softkey label.
const TInt aCommandIdcommand that should be performed when MSK is pressed.

SetMiddleSoftKeyLabelTextL(const TPtr, const TInt)

voidSetMiddleSoftKeyLabelTextL(const TPtraMskLabel,
const TIntaCommandId
)

Adds given text as MSK to CBA.

Since
S60 v3.1

Parameters

const TPtr aMskLabelmiddle softkey label.
const TInt aCommandIdcommand that should be performed when MSK is pressed.

SetOptionFlags(TBitFlags &)

IMPORT_C voidSetOptionFlags(TBitFlags &aOptionFlags)[virtual]

Defines custom options for parent plugin. Use TGSOptionFlagIndexes to enable a combination of bit flags.

Parameters

TBitFlags & aOptionFlagsOption combination created by combining binary option flags.

StartAsyncPluginLoadL()

voidStartAsyncPluginLoadL()[private]

Used in lazy loading. Starts loading the plugins.

TransferDynamicPluginL(CGSPluginInterface *)

IMPORT_C voidTransferDynamicPluginL(CGSPluginInterface *aPlugin)

Parameters

CGSPluginInterface * aPlugin

UpdateView()

IMPORT_C voidUpdateView()[virtual]

Updates plugin's view. This can be used when child plugin's values are changed.

UpperLevelViewUid()

IMPORT_C TUidUpperLevelViewUid()[virtual]

Member Data Documentation

CAknViewAppUi * iAppUi

CAknViewAppUi *iAppUi[private]

CGSParentContainer * iContainer

CGSParentContainer *iContainer[private]

TBool iIsLandscapeOrientation

TBool iIsLandscapeOrientation[private]

TInt iMskCommandId

TInt iMskCommandId[private]

TBitFlags iOptionFlags

TBitFlags iOptionFlags[private]

CArrayPtrFlat< CGSPluginInterface > * iPluginArray

CArrayPtrFlat< CGSPluginInterface > *iPluginArray[private]

CGSPluginLoader * iPluginLoader

CGSPluginLoader *iPluginLoader[private]

TListBoxPosition iPosition

TListBoxPosition iPosition[private]

TVwsViewId iPrevViewId

TVwsViewId iPrevViewId[protected]

RConeResourceLoader iResourceLoader

RConeResourceLoaderiResourceLoader[private]

TUid iSelectedPluginUid

TUid iSelectedPluginUid[private]

TInt iTitleRscId

TInt iTitleRscId[private]

TUid iTopPluginUid

TUid iTopPluginUid[private]