CMediaFileList Class Reference

class CMediaFileList : public CBase

Public API for displaying media file list. List is used for selecting/previewing audio and video files.

mediafilelist.lib
Since
Series60_5.1

Inherits from

Constructor & Destructor Documentation

CMediaFileList()

CMediaFileList()[private]

C++ default constructor.

~CMediaFileList()

IMPORT_C~CMediaFileList()[virtual]

Destructor.

Member Functions Documentation

ConstructL()

voidConstructL()[private]

By default Symbian 2nd phase constructor is private.

NewL()

IMPORT_C CMediaFileList *NewL()[static]

Two-phased constructor.

SetAttrL(TInt, TInt)

IMPORT_C voidSetAttrL(TIntaAttr,
TIntaValue
)
Set Media file list attribute. See enum TMediaFileListAttribute for list of supported attributes.
Since
Series60_5.1

Parameters

TInt aAttrAttribute id.
TInt aValueAttribute value.

SetAttrL(TInt, const TDesC &)

IMPORT_C voidSetAttrL(TIntaAttr,
const TDesC &aValue
)
Set Media file list attribute. See enum TMediaFileListAttribute for list of supported attributes.
Since
Series60_5.1

Parameters

TInt aAttrAttribute id.
const TDesC & aValueAttribute value.

SetAttrL(TInt, TAny *)

IMPORT_C voidSetAttrL(TIntaAttr,
TAny *aValue
)
Set Media file list attribute. Currently not in use.
Since
Series60_5.1

Parameters

TInt aAttrAttribute id.
TAny * aValueAttribute value.

SetNullItemL(const TDesC &, const TDesC &, TInt, TInt)

IMPORT_C voidSetNullItemL(const TDesC &aText,
const TDesC &aMediaFile,
TIntaMediaFileType,
TIntaIconId
)
Set Media file list null item. Null items are custom list items that appear at the end of the media file list main view.
Since
Series60_5.1

Parameters

const TDesC & aTextNull item text.
const TDesC & aMediaFileFile that is played when null items gets focused. Use KNullDesC if not used.
TInt aMediaFileTypeMedia file type. See enum TMediaFileType for supported media types.
TInt aIconIdNull item icon id. See enum TNullItemIcon for supported icons.

ShowMediaFileListL(TDes *, TInt *, TInt *, TDes *)

IMPORT_C TBoolShowMediaFileListL(TDes *aFileName,
TInt *aNullItem,
TInt *aInfo,
TDes *aDesInfo
)
Shows Media file list.
Since
Series60_5.1

Parameters

TDes * aFileNameSelected media file name full path.
TInt * aNullItemSelected null item index. Possible values: KErrNotFound - item is not null item or Download item 0 - Download item 1 - first null item 2 - second null item
TInt * aInfoExtra information, set to NULL if not used.
TDes * aDesInfoExtra information, set to KNullDesC if not used.

Member Enumerations Documentation

Enum TFolderType

Enumerators

EFolderDownload = 0
EFolderVideos

Enum TMediaFileListAttribute

Enumerators

EAttrFileSize = 0
EAttrVolume
EAttrRingingType
EAttrVibra
EAttr3DEffect
EAttr3DEcho
EAttrExcludeMimeType
EAttrAutomatedType
EAttrTitle
EAttrExcludeFolder

Enum TMediaFileType

Enumerators

EMediaFileTypeAudio = 0
EMediaFileTypeVideo

Enum TNullItemIcon

Enumerators

ENullItemIconNone = 0
ENullItemIconDefaultTone
ENullItemIconOff

Member Data Documentation

CMediaFileDialog * iDialog

CMediaFileDialog *iDialog[private]