CFavouritesItemList Class Reference

class CFavouritesItemList : public CArrayPtrFlat< CFavouritesItem >

CFavouritesItemList is the Array of CFavouritesItem-s. Items are owned and deleted upon destruction. Note: using this array downcasted to its base can result in leaks. Delete method of base class is not virtual!

Public Member Functions
CFavouritesItemList ()
~CFavouritesItemList ()
IMPORT_C void Delete ( TInt )
IMPORT_C void Delete ( TInt , TInt )
void ExternalizeL ( RWriteStream &)
IMPORT_C TInt IndexToUid ( TInt )
void InternalizeL ( RReadStream &)
IMPORT_C const CFavouritesItem * ItemByUid ( TInt )
IMPORT_C void SortL ( ComparisonFuncL )
IMPORT_C TInt UidToIndex ( TInt )
Inherited Functions
CArrayFix< CFavouritesItem * >::AppendL(const CFavouritesItem *&)
CArrayFix< CFavouritesItem * >::AppendL(const CFavouritesItem *&,TInt)
CArrayFix< CFavouritesItem * >::AppendL(const CFavouritesItem **,TInt)
CArrayFix< CFavouritesItem * >::Array()const
CArrayFix< CFavouritesItem * >::At(TInt)
CArrayFix< CFavouritesItem * >::At(TInt)const
CArrayFix< CFavouritesItem * >::Back(TInt)
CArrayFix< CFavouritesItem * >::Back(TInt)const
CArrayFix< CFavouritesItem * >::CArrayFix(TBufRep,TInt)
CArrayFix< CFavouritesItem * >::End(TInt)
CArrayFix< CFavouritesItem * >::End(TInt)const
CArrayFix< CFavouritesItem * >::ExpandL(TInt)
CArrayFix< CFavouritesItem * >::ExtendL()
CArrayFix< CFavouritesItem * >::Find(const CFavouritesItem *&,TKeyArrayFix &,TInt &)const
CArrayFix< CFavouritesItem * >::FindIsq(const CFavouritesItem *&,TKeyArrayFix &,TInt &)const
CArrayFix< CFavouritesItem * >::InsertIsqAllowDuplicatesL(const CFavouritesItem *&,TKeyArrayFix &)
CArrayFix< CFavouritesItem * >::InsertIsqL(const CFavouritesItem *&,TKeyArrayFix &)
CArrayFix< CFavouritesItem * >::InsertL(TInt,const CFavouritesItem *&)
CArrayFix< CFavouritesItem * >::InsertL(TInt,const CFavouritesItem *&,TInt)
CArrayFix< CFavouritesItem * >::InsertL(TInt,const CFavouritesItem **,TInt)
CArrayFix< CFavouritesItem * >::ResizeL(TInt)
CArrayFix< CFavouritesItem * >::ResizeL(TInt,const CFavouritesItem *&)
CArrayFix< CFavouritesItem * >::operator[](TInt)
CArrayFix< CFavouritesItem * >::operator[](TInt)const
CArrayFixBase::AtR(const CBase *,TInt)
CArrayFixBase::CArrayFixBase(TBufRep,TInt,TInt)
CArrayFixBase::Compress()
CArrayFixBase::Count()const
CArrayFixBase::CountR(const CBase *)
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< CFavouritesItem >::CArrayPtr(TBufRep,TInt)
CArrayPtr< CFavouritesItem >::ResetAndDestroy()
CArrayPtrFlat< CFavouritesItem >::CArrayPtrFlat(TInt)
CArrayPtrFlat< CFavouritesItem >::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()
Public Member Type Definitions
typedef TInt (* ComparisonFuncL

Constructor & Destructor Documentation

CFavouritesItemList()

IMPORT_C CFavouritesItemList ( )
Constructor.
Since
0.9

~CFavouritesItemList()

IMPORT_C ~CFavouritesItemList ( ) [virtual]
Destructor. Elements are destroyed.
Since
0.9

Member Functions Documentation

Delete(TInt)

IMPORT_C void Delete ( TInt aIndex )
Remove and destroy an element. Invalid params will Panic.
Since
0.9

Parameters

TInt aIndex Index of element to delete.

Delete(TInt, TInt)

IMPORT_C void Delete ( TInt aIndex,
TInt aCount
)
Remove and destroy elements. Invalid params Panic.
Since
0.9

Parameters

TInt aIndex Index of start element to delete.
TInt aCount Number of items to delete.

ExternalizeL(RWriteStream &)

void ExternalizeL ( RWriteStream & aStream ) const
Externalize into a stream.
Since
0.9

Parameters

RWriteStream & aStream The stream to externalize to.

IndexToUid(TInt)

IMPORT_C TInt IndexToUid ( TInt aIndex ) const
Convert index to Uid.
Since
0.9

Parameters

TInt aIndex Index to convert.

InternalizeL(RReadStream &)

void InternalizeL ( RReadStream & aStream )
Internalize from a stream. Existing data is kept, new ones appended.
Since
0.9

Parameters

RReadStream & aStream The stream to externalize from.

ItemByUid(TInt)

IMPORT_C const CFavouritesItem * ItemByUid ( TInt aUid ) const
Get pointer to item having aUid.
Since
0.9

Parameters

TInt aUid Uid of item to look for.

SortL(ComparisonFuncL)

IMPORT_C void SortL ( ComparisonFuncL aCompareItemsL )
Sort the list using bubble-sort.
Since
0.9

Parameters

ComparisonFuncL aCompareItemsL Function to be used two elements.

UidToIndex(TInt)

IMPORT_C TInt UidToIndex ( TInt aUid ) const
Convert Uid to index.
Since
0.9

Parameters

TInt aUid Uid to convert.

Member Type Definitions Documentation

Typedef ComparisonFuncL

typedef TInt (* ComparisonFuncL
Comparison function type; compare two items. Should leave in error.
Since
0.9