MCLFItem Class Reference
API published in: S60 3rd Ed FP 1
Link against: contentlistingframework.lib
Capability Information
Required Capabilities
None
#include <mclfitem.h>
Inherited by MCLFModifiableItem.
Detailed Description
Content Listing Framework item.
All items that are fetched from server have got an Item ID number. Item ID is defined in runtime so do not store Item IDs
permanently. One item can contain multiple fields. The field consists of a Field ID and field data. Type of the field is defined
with Field ID: see TCLFDefaultFieldId in CLFContentListing.hrh. For example, a music file could contain these two fields:
ECLFFieldIdSongName (data: title of the song) and ECLFFieldIdArtist (data: name of the artist).
Usage:
Constructor & Destructor Documentation
virtual MCLFItem::~MCLFItem |
( |
|
) |
[inline, virtual] |
|
Member Function Documentation
|
Get data type of the field.
Data type can be text, time or integer.
- Parameters:
-
|
aFieldId
|
ID of the field (TCLFDefaultFieldId) |
- Returns:
- Data type of the field. ECLFItemDataTypeNull, if the field does not exist in the item.
|
virtual TInt MCLFItem::GetField |
( |
TCLFFieldId
|
aFieldId,
|
|
|
TTime & |
aData |
|
) |
const [pure virtual] |
|
|
Get field data that is a time data.
- Parameters:
-
|
aFieldId
|
ID of the field (TCLFDefaultFieldId) |
|
aData
|
Data of the field |
- Returns:
- System wide error code. KErrNone if field exist, KErrNotFound if field doesn't exist, KErrNotSupported if field type doesn't
match
|
virtual TInt MCLFItem::GetField |
( |
TCLFFieldId
|
aFieldId,
|
|
|
TInt32 & |
aData |
|
) |
const [pure virtual] |
|
|
Get field data that is an integer.
- Parameters:
-
|
aFieldId
|
ID of the field (TCLFDefaultFieldId) |
|
aData
|
Data of the field |
- Returns:
- System wide error code. KErrNone if field exist, KErrNotFound if field doesn't exist, KErrNotSupported if field type doesn't
match
|
virtual TInt MCLFItem::GetField |
( |
TCLFFieldId
|
aFieldId,
|
|
|
TPtrC & |
aData |
|
) |
const [pure virtual] |
|
|
Get field data that is a string.
- Parameters:
-
|
aFieldId
|
ID of the field (TCLFDefaultFieldId) |
|
aData
|
Data of the field |
- Returns:
- System wide error code. KErrNone if field exist, KErrNotFound if field doesn't exist, KErrNotSupported if field type doesn't
match
|
virtual TCLFItemId MCLFItem::ItemId
|
( |
|
) |
const [pure virtual] |
|
|
Get Item ID of the item.
- Returns:
- Item ID of the item
|
The documentation for this class was generated from the following file: