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 TInt ItemIndexFromVisibleIndex ( TInt )
IMPORT_C TInt MdcaCount ()
IMPORT_C TPtrC16 MdcaPoint ( TInt )
IMPORT_C void RecalculateVisibleIndicesL ()
IMPORT_C void SetFlags ( TInt )
IMPORT_C void SetInitialOrdinal ( TInt )
Protected Member Functions
IMPORT_C void SetVisibleCount ( TInt )
IMPORT_C TInt VisibleCount ()
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_C CAknSettingItemArray ( TInt aGranularity,
TBool aIsNumbered,
TInt aInitialOrdinal
)

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 TInt ItemIndexFromVisibleIndex ( TInt aVisibleIndex ) 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 TInt MdcaCount ( ) const

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

MdcaPoint(TInt)

IMPORT_C TPtrC16 MdcaPoint ( TInt aIndex ) const

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

Parameters

TInt aIndex index at which to access the listbox text

RecalculateVisibleIndicesL()

IMPORT_C void RecalculateVisibleIndicesL ( ) [virtual]

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

SetFlags(TInt)

IMPORT_C void SetFlags ( TInt aFlags )

Parameters

TInt aFlags

SetInitialOrdinal(TInt)

IMPORT_C void SetInitialOrdinal ( TInt aInitialOrdinal )

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 void SetVisibleCount ( TInt aCount ) [protected]

Set the number of visible items.

Parameters

TInt aCount number of items that are visible.

VisibleCount()

IMPORT_C TInt VisibleCount ( ) 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]