ContentListingFactory Class Reference

#include <mw/ContentListingFactory.h>

Link against: ContentListingFramework.lib

class ContentListingFactory

Detailed Description

Factory for Content Listing Framework. You can create new instances of Content Listing Engines, Modifiable items and Sorting Styles by using this factory. Example:
  // Create a new instance of Content Listing Engine
  MCLFContentListingEngine* engine =
      ContentListingFactory::NewContentListingEngineLC();

  // Create a new instance of Sorting style
  MCLFSortingStyle* sortingStyle =
      ContentListingFactory::NewSortingStyleLC();

  // Create a new instance of Modifiable item
  MCLFModifiableItem* modItem =
      ContentListingFactory::NewModifiableItemLC();
Since
S60 3.1

Member Function Documentation

NewContentListingEngineLC ( )

IMPORT_C MCLFContentListingEngine *NewContentListingEngineLC()[static]
Create new instance of Content Listing Engine.
Since
S60 3.1

Returns: New instance of Content Listing Engine. Ownership is transferred to the client application.

NewModifiableItemLC ( )

IMPORT_C MCLFModifiableItem *NewModifiableItemLC()[static]
Create new instance of Modifiable Item.
Since
S60 3.1

Returns: New instance of Modifiable Item. Ownership is transferred to the client application.

NewSortingStyleLC ( )

IMPORT_C MCLFSortingStyle *NewSortingStyleLC()[static]
Create new instance of Sorting Style.
Since
S60 3.1

Returns: New instance of the Sorting Style. Ownership is transferred to the client application.

NewSortingStyleLC ( TResourceReader & )

IMPORT_C MCLFSortingStyle *NewSortingStyleLC(TResourceReader &aResource)[static]
Create new instance of Sorting Style from resource of the application by using TResourceReader.
Since
S60 3.1
ParameterDescription
aResourceResource reader to sorting style resource. Use resource struct CLF_SORTING_STYLE. See CLFContentListing.rh

Returns: New instance of the Sorting Style. Ownership is transferred to the client application.