Link against: FavouritesEngine.lib
ReadUserData WriteUserData
#include <FavouritesItemList.h>
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 Types |
|
| typedef TInt(* | ComparisonFuncL )(const CFavouritesItem &aLeft, const CFavouritesItem &aRight) |
| Comparison function type; compare two items. |
|
Public Member Functions |
|
| IMPORT_C | CFavouritesItemList () |
| Constructor. |
|
| virtual IMPORT_C | ~CFavouritesItemList () |
| Destructor. |
|
| IMPORT_C void | Delete (TInt aIndex) |
| Remove and destroy an element. |
|
| IMPORT_C void | Delete (TInt aIndex, TInt aCount) |
| Remove and destroy elements. |
|
| IMPORT_C void | SortL (ComparisonFuncL aCompareItemsL) |
| Sort the list using bubble-sort. |
|
| IMPORT_C TInt | UidToIndex (TInt aUid) const |
| Convert Uid to index. |
|
| IMPORT_C TInt | IndexToUid (TInt aIndex) const |
| Convert index to Uid. |
|
| IMPORT_C const CFavouritesItem * | ItemByUid (TInt aUid) const |
| Get pointer to item having aUid. |
|
| void | ExternalizeL (RWriteStream &aStream) const |
| Externalize into a stream. |
|
| void | InternalizeL (RReadStream &aStream) |
| Internalize from a stream. |
|
|
|
Comparison function type; compare two items. Should leave in error.
|
|
|
Constructor.
|
|
|
Destructor. Elements are destroyed.
|
|
||||||||||||
|
Remove and destroy elements. Invalid params Panic.
|
|
|
Remove and destroy an element. Invalid params will Panic.
|
|
|
Externalize into a stream.
|
|
|
Convert index to Uid.
|
|
|
Internalize from a stream. Existing data is kept, new ones appended.
|
|
|
Get pointer to item having aUid.
|
|
|
Sort the list using bubble-sort.
|
|
|
Convert Uid to index.
|