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:
// Get file names and sizes of all items
TInt count( listModel->ItemCount() );
for( TInt i = 0 ; i < count ; ++i )
{
constMCLFItem& myItem = listModel->Item( i );
// Get file name of an item (string data)
TPtrC fileName;
TInt error( myItem.GetField( ECLFFieldIdFileName, fileName ) );
...
// Get file size of an item (integer data)
TInt32 size( 0 );
error = myItem.GetField( ECLFFieldIdFileSize, size );
...
}