CAknSettingItemArray Class Reference

class CAknSettingItemArray : public CArrayPtrFlat< CAknSettingItem >

This class holds the setting items themselves and also manages the bitmap array

Public Member Functions
CAknSettingItemArray(TInt, TBool, TInt)
~CAknSettingItemArray()
IMPORT_C TIntItemIndexFromVisibleIndex(TInt)
IMPORT_C TIntMdcaCount()
IMPORT_C TPtrC16MdcaPoint(TInt)
IMPORT_C voidRecalculateVisibleIndicesL()
IMPORT_C voidSetFlags(TInt)
IMPORT_C voidSetInitialOrdinal(TInt)
Protected Member Functions
IMPORT_C voidSetVisibleCount(TInt)
IMPORT_C TIntVisibleCount()
Inherited Functions
CArrayFix< CAknSettingItem * >::AppendL(const CAknSettingItem *&)
CArrayFix< CAknSettingItem * >::AppendL(const CAknSettingItem *&,TInt)
CArrayFix< CAknSettingItem * >::AppendL(const CAknSettingItem **,TInt)
CArrayFix< CAknSettingItem * >::Array()const
CArrayFix< CAknSettingItem * >::At(TInt)
CArrayFix< CAknSettingItem * >::At(TInt)const
CArrayFix< CAknSettingItem * >::Back(TInt)
CArrayFix< CAknSettingItem * >::Back(TInt)const
CArrayFix< CAknSettingItem * >::CArrayFix(TBufRep,TInt)
CArrayFix< CAknSettingItem * >::End(TInt)
CArrayFix< CAknSettingItem * >::End(TInt)const
CArrayFix< CAknSettingItem * >::ExpandL(TInt)
CArrayFix< CAknSettingItem * >::ExtendL()
CArrayFix< CAknSettingItem * >::Find(const CAknSettingItem *&,TKeyArrayFix &,TInt &)const
CArrayFix< CAknSettingItem * >::FindIsq(const CAknSettingItem *&,TKeyArrayFix &,TInt &)const
CArrayFix< CAknSettingItem * >::InsertIsqAllowDuplicatesL(const CAknSettingItem *&,TKeyArrayFix &)
CArrayFix< CAknSettingItem * >::InsertIsqL(const CAknSettingItem *&,TKeyArrayFix &)
CArrayFix< CAknSettingItem * >::InsertL(TInt,const CAknSettingItem *&)
CArrayFix< CAknSettingItem * >::InsertL(TInt,const CAknSettingItem *&,TInt)
CArrayFix< CAknSettingItem * >::InsertL(TInt,const CAknSettingItem **,TInt)
CArrayFix< CAknSettingItem * >::ResizeL(TInt)
CArrayFix< CAknSettingItem * >::ResizeL(TInt,const CAknSettingItem *&)
CArrayFix< CAknSettingItem * >::operator[](TInt)
CArrayFix< CAknSettingItem * >::operator[](TInt)const
CArrayFixBase::AtR(const CBase *,TInt)
CArrayFixBase::CArrayFixBase(TBufRep,TInt,TInt)
CArrayFixBase::Compress()
CArrayFixBase::Count()const
CArrayFixBase::CountR(const CBase *)
CArrayFixBase::Delete(TInt)
CArrayFixBase::Delete(TInt,TInt)
CArrayFixBase::Find(const TAny *,TKeyArrayFix &,TInt &)const
CArrayFixBase::FindIsq(const TAny *,TKeyArrayFix &,TInt &)const
CArrayFixBase::InsertIsqAllowDuplicatesL(const TAny *,TKeyArrayFix &)
CArrayFixBase::InsertIsqL(const TAny *,TKeyArrayFix &)
CArrayFixBase::InsertL(TInt,const TAny *)
CArrayFixBase::InsertL(TInt,const TAny *,TInt)
CArrayFixBase::InsertRepL(TInt,const TAny *,TInt)
CArrayFixBase::Length()const
CArrayFixBase::Reset()
CArrayFixBase::ResizeL(TInt,const TAny *)
CArrayFixBase::SetKey(TKeyArrayFix &)const
CArrayFixBase::SetReserveFlatL(TInt)
CArrayFixBase::Sort(TKeyArrayFix &)
CArrayFixBase::~CArrayFixBase()
CArrayPtr< CAknSettingItem >::CArrayPtr(TBufRep,TInt)
CArrayPtr< CAknSettingItem >::ResetAndDestroy()
CArrayPtrFlat< CAknSettingItem >::CArrayPtrFlat(TInt)
CArrayPtrFlat< CAknSettingItem >::SetReserveL(TInt)
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()
Private Attributes
TInt iFlags
TInt iInitialOrdinal
TBool iIsNumbered
TInt iVisibleCount

Constructor & Destructor Documentation

CAknSettingItemArray(TInt, TBool, TInt)

IMPORT_CCAknSettingItemArray(TIntaGranularity,
TBoolaIsNumbered,
TIntaInitialOrdinal
)

CAknSettingItemArray is constructed as a numbered or unnumbered array.

Parameters

TInt aGranularity- number of items to extend when the aarray needs extention
TBool aIsNumbered- flags the array as numbered or not
TInt aInitialOrdinal- value to start the numbering at

~CAknSettingItemArray()

IMPORT_C~CAknSettingItemArray()[virtual]

Destructor

Member Functions Documentation

ItemIndexFromVisibleIndex(TInt)

IMPORT_C TIntItemIndexFromVisibleIndex(TIntaVisibleIndex)const

This method returns the true index in the array given the index as would be calculated by looking at the visible items.

Parameters

TInt aVisibleIndex- index among the visible items

MdcaCount()

IMPORT_C TIntMdcaCount()const

Method by which the CAknSetStyleListBox accesses the number of items in the array

MdcaPoint(TInt)

IMPORT_C TPtrC16MdcaPoint(TIntaIndex)const

Method by which the setting item list accesses the text for the aIndex-th item in the array.

Parameters

TInt aIndexindex at which to access the listbox text

RecalculateVisibleIndicesL()

IMPORT_C voidRecalculateVisibleIndicesL()[virtual]

Update date the mapping of visible indices. To be called when an item is made visible or invisible.

SetFlags(TInt)

IMPORT_C voidSetFlags(TIntaFlags)

Parameters

TInt aFlags

SetInitialOrdinal(TInt)

IMPORT_C voidSetInitialOrdinal(TIntaInitialOrdinal)

This is used to update the initial setting number for the top index. The number set is the for the 0-th "true" or data index. That is, this numbered item may not show up

Parameters

TInt aInitialOrdinal

SetVisibleCount(TInt)

IMPORT_C voidSetVisibleCount(TIntaCount)[protected]

Set the number of visible items.

Parameters

TInt aCountnumber of items that are visible.

VisibleCount()

IMPORT_C TIntVisibleCount()const [protected]

Returns the number of visible items

Member Data Documentation

TInt iFlags

TInt iFlags[private]

TInt iInitialOrdinal

TInt iInitialOrdinal[private]

TBool iIsNumbered

TBool iIsNumbered[private]

TInt iVisibleCount

TInt iVisibleCount[private]