class CAppMngr2InfoIterator : public CBase |
CAppMngr2InfoIterator is the base class for plug-in specific data collecting iterators. CAppMngr2InfoIterator derived iterators can be used to get the data shown in details dialog (CCUIDetailsDialog). Details dialog shows application details and certificate info.
Public Member Functions | |
---|---|
CAppMngr2InfoIterator ( CAppMngr2InfoBase &, TAppMngr2InfoType ) | |
~CAppMngr2InfoIterator () | |
IMPORT_C void | BaseConstructL () |
IMPORT_C TBool | HasNext () |
IMPORT_C void | Next ( TPtrC &, TPtrC &) |
IMPORT_C void | Reset () |
Protected Member Functions | |
---|---|
IMPORT_C void | SetAllFieldsL () |
IMPORT_C void | SetFieldL ( TInt , const TDesC &) |
IMPORT_C void | SetLocationL () |
IMPORT_C void | SetOtherFieldsL () |
IMPORT_C void | SetStatusL () |
Protected Attributes | |
---|---|
TInt | iCurrentIndex |
CAppMngr2InfoBase & | iInfo |
TAppMngr2InfoType | iInfoType |
CDesCArray * | iKeys |
CDesCArray * | iValues |
IMPORT_C | CAppMngr2InfoIterator | ( | CAppMngr2InfoBase & | aInfo, |
TAppMngr2InfoType | aInfoType | |||
) |
Constructs new info iterator to show details dialog.
CAppMngr2InfoBase & aInfo | Reference to application or package info object |
TAppMngr2InfoType aInfoType | Type info (installed application or not installed package) |
IMPORT_C void | BaseConstructL | ( | ) |
Allocates memory for CDesCArrays.
BaseConstructL() must be called from derived ConstructL() before any other leaving functions. BaseConstructL() calls SetAllFieldsL() to get all the displayable details.
IMPORT_C void | SetAllFieldsL | ( | ) | [protected, virtual] |
Sets all default fields, can be overridden in derived classes.
Default implementation sets name (from CAppMngr2InfoBase::Name() ), status (either installed or not installed), location drive (from CAppMngr2InfoBase::Location() ), and application/file size (from CAppMngr2InfoBase::Details() ). Status and location fields are set using SetStatusL() and SetLocationL() functions, so that they can be overridden separately. Finally calls SetOtherFieldsL() to set other fields, if derived class has some additional fields that are not covered here.
IMPORT_C void | SetFieldL | ( | TInt | aResourceId, |
const TDesC & | aValue | |||
) | [protected] |
Sets field to given value.
Uses StringLoader to load aResourceId and adds it to MCUIInfoIterator as a new key having value aValue.
IMPORT_C void | SetLocationL | ( | ) | [protected, virtual] |
Sets location drive based on CAppMngr2InfoBase::Location() . This function can be overridden in derived classes.
IMPORT_C void | SetOtherFieldsL | ( | ) | [protected, virtual] |
Sets other possble fields, default implemenation is empty. This function can be overridden in derived classes.
IMPORT_C void | SetStatusL | ( | ) | [protected, virtual] |
Sets status (installed or not installed) based on aInfoType defined in constructor. This function can be overridden in derived classes.
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.