#include <mw/favouritesitemlist.h>
Link against: favouritesengine.lib
| class CFavouritesItemList : public CArrayPtrFlat< CFavouritesItem > |
| Public Member Type Definitions | |
|---|---|
| typedef | TInt(* ComparisonFuncL |
| Public Member Functions | |
|---|---|
| CFavouritesItemList() | |
| virtual | ~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) |
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!
| typedef TInt(* | ComparisonFuncL |
| IMPORT_C | ~CFavouritesItemList | ( | ) | [virtual] |
| IMPORT_C void | Delete | ( | TInt | aIndex | ) |
Reimplemented from CArrayFixBase::Delete(TInt)
| Parameters | |
|---|---|
| aIndex | Index of element to delete. |
Reimplemented from CArrayFixBase::Delete(TInt,TInt)
| Parameters | |
|---|---|
| aIndex | Index of start element to delete. |
| aCount | Number of items to delete. |
| void | ExternalizeL | ( | RWriteStream & | aStream | ) | const |
| Parameters | |
|---|---|
| aStream | The stream to externalize to. |
| void | InternalizeL | ( | RReadStream & | aStream | ) |
| Parameters | |
|---|---|
| aStream | The stream to externalize from. |
| IMPORT_C const CFavouritesItem * | ItemByUid | ( | TInt | aUid | ) | const |
| Parameters | |
|---|---|
| aUid | Uid of item to look for. |
| IMPORT_C void | SortL | ( | ComparisonFuncL | aCompareItemsL | ) |
| Parameters | |
|---|---|
| aCompareItemsL | Function to be used two elements. |