MCLFModifiableItem Class Reference

class MCLFModifiableItem : public MCLFItem
Modifiable item for Content Listing Framework. Use ContentListingFactory to create modifiable items. These new items are used as groups in the custom grouper (see MCLFCustomGrouper). Modifiable item is like MCLFItem but you can add new fields to the modifiable item. One item can contain multiple fields, but normally it is not needed in a custom grouper. The field consists of a Field ID and field data. Type of the field is defined with Field ID. See TCLFDefaultFieldId in CLFContentListing.hrh. Example:
  // Create a modifiable item and add one string field to it.
  // Field id is ECLFFieldIdArtist and field value is "test".
  _LIT( KTest, "test" );
  MCLFModifiableItem* item = ContentListingFactory::NewModifiableItemLC();
  item->AddFieldL( ECLFFieldIdArtist, KTest );
  CleanupStack::Pop(); // item
ContentListingFramework.lib
Since
S60 3.1

Inherits from

Constructor & Destructor Documentation

~MCLFModifiableItem()

~MCLFModifiableItem()[inline, virtual]

Destructor.

Member Functions Documentation

AddFieldL(TCLFFieldId, const TDesC &)

voidAddFieldL(TCLFFieldIdaFieldId,
const TDesC &aValue
)[pure virtual]
Add new string field to the item.
Since
S60 3.1

Parameters

TCLFFieldId aFieldIdField ID
const TDesC & aValueField value

AddFieldL(TCLFFieldId, TInt32)

voidAddFieldL(TCLFFieldIdaFieldId,
TInt32aValue
)[pure virtual]
Add new integer field to the item.
Since
S60 3.1

Parameters

TCLFFieldId aFieldIdField ID
TInt32 aValueField value

AddFieldL(TCLFFieldId, const TTime &)

voidAddFieldL(TCLFFieldIdaFieldId,
const TTime &aValue
)[pure virtual]
Add new time field to the item.
Since
S60 3.1

Parameters

TCLFFieldId aFieldIdField ID
const TTime & aValueField value

ModifiableItemExtension()

MCLFModifiableItemExt *ModifiableItemExtension()[private, inline, virtual]

This member is internal and not intended for use.