CFavouritesItemList Class Reference
#include
<mw/favouritesitemlist.h>
Link against: FavouritesEngine.lib
class CFavouritesItemList : public CArrayPtrFlat< CFavouritesItem > |
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() |
Detailed Description
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!
Member Type Definition Documentation
Typedef ComparisonFuncL
typedef
TInt(* | ComparisonFuncL |
Comparison function type; compare two items. Should leave in error.
- Since
- 0.9
Constructor & Destructor Documentation
CFavouritesItemList ( )
IMPORT_C | CFavouritesItemList | ( | ) | |
~CFavouritesItemList ( )
IMPORT_C | ~CFavouritesItemList | ( | ) | [virtual] |
Destructor. Elements are destroyed.
- Since
- 0.9
Member Function Documentation
Delete ( TInt )
IMPORT_C void | Delete | ( | TInt | aIndex | ) | |
Remove and destroy an element. Invalid params will Panic.
- Since
- 0.9
Parameter | Description | 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
Parameter | Description | aIndex | Index of start element to delete. |
aCount | Number of items to delete. |
ExternalizeL ( RWriteStream & )
Parameter | Description | aStream | The stream to externalize to. |
IndexToUid ( TInt )
IMPORT_C TInt | IndexToUid | ( | TInt | aIndex | ) | const |
Convert index to Uid.
- Since
- 0.9
Parameter | Description | aIndex | Index to convert. |
Returns: Uid for this index, or KFavouritesNullUid if not found.
InternalizeL ( RReadStream & )
Internalize from a stream. Existing data is kept, new ones appended.
- Since
- 0.9
Parameter | Description | aStream | The stream to externalize from. |
ItemByUid ( TInt )
Get pointer to item having aUid.
- Since
- 0.9
Parameter | Description | aUid | Uid of item to look for. |
Returns: Pointer to item having aUid, or NULL if there is no such item. Item is still owned by the list.
SortL ( ComparisonFuncL )
Sort the list using bubble-sort.
- Since
- 0.9
Parameter | Description | aCompareItemsL | Function to be used two elements. |
UidToIndex ( TInt )
Convert Uid to index.
- Since
- 0.9
Parameter | Description | aUid | Uid to convert. |
Returns: Index for this Uid, or -KErrNotFound if not found.