CAppMngr2InfoIterator Class Reference

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.

appmngr2pluginapi.lib
Since
S60 v5.1

Inherits from

Constructor & Destructor Documentation

CAppMngr2InfoIterator(CAppMngr2InfoBase &, TAppMngr2InfoType)

IMPORT_C CAppMngr2InfoIterator ( CAppMngr2InfoBase & aInfo,
TAppMngr2InfoType aInfoType
)

Constructs new info iterator to show details dialog.

Parameters

CAppMngr2InfoBase & aInfo Reference to application or package info object
TAppMngr2InfoType aInfoType Type info (installed application or not installed package)

~CAppMngr2InfoIterator()

IMPORT_C ~CAppMngr2InfoIterator ( )

Destructor, deletes allocated memory.

Member Functions Documentation

BaseConstructL()

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.

HasNext()

IMPORT_C TBool HasNext ( ) const

Next(TPtrC &, TPtrC &)

IMPORT_C void Next ( TPtrC & aKey,
TPtrC & aValue
)

Parameters

TPtrC & aKey
TPtrC & aValue

Reset()

IMPORT_C void Reset ( )

SetAllFieldsL()

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.

SetFieldL(TInt, const TDesC &)

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.

Parameters

TInt aResourceId Resource id for MCUIInfoIterator key
const TDesC & aValue Value for the key

SetLocationL()

IMPORT_C void SetLocationL ( ) [protected, virtual]

Sets location drive based on CAppMngr2InfoBase::Location() . This function can be overridden in derived classes.

SetOtherFieldsL()

IMPORT_C void SetOtherFieldsL ( ) [protected, virtual]

Sets other possble fields, default implemenation is empty. This function can be overridden in derived classes.

SetStatusL()

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.

Member Data Documentation

TInt iCurrentIndex

TInt iCurrentIndex [protected]

CAppMngr2InfoBase & iInfo

CAppMngr2InfoBase & iInfo [protected]

TAppMngr2InfoType iInfoType

TAppMngr2InfoType iInfoType [protected]

CDesCArray * iKeys

CDesCArray * iKeys [protected]

CDesCArray * iValues

CDesCArray * iValues [protected]