CFLDFileListContainer Class Reference

class CFLDFileListContainer : public CBase

FileListContainer owns the list box, the model, and the controller, and it is used to launch the popup list.

filelist.lib
Since
2.1

Inherits from

  • CFLDFileListContainer
Public Member Functions
~CFLDFileListContainer()
IMPORT_C voidAddExclusiveMediaTypeL(const TInt32)
IMPORT_C voidAddExclusiveMimeTypeL(const TDesC &)
IMPORT_C voidInsertEndNullItemL(const TDesC &)
IMPORT_C voidInsertEndNullItemL(const TDesC &, const TDesC &)
IMPORT_C voidInsertNullItemL(const TDesC &)
IMPORT_C voidInsertNullItemL(const TDesC &, const TDesC &)
IMPORT_C TBoolLaunchL(TDes &, const TDesC &)
IMPORT_C CFLDFileListContainer *NewL()
IMPORT_C CFLDFileListContainer *NewL(const TInt)
IMPORT_C CFLDFileListContainer *NewL(const TInt, const TInt)
IMPORT_C CFLDFileListContainer *NewLC()
IMPORT_C CFLDFileListContainer *NewLC(const TInt)
IMPORT_C CFLDFileListContainer *NewLC(const TInt, const TInt)
IMPORT_C voidResetExclusiveMediaTypes()
IMPORT_C voidResetExclusiveMimeTypes()
IMPORT_C voidSet3dEffects(TBool)
IMPORT_C voidSetAutomatedType(CDRMHelper::TDRMHelperAutomatedType)
IMPORT_C voidSetDelay(TTimeIntervalMicroSeconds32)
IMPORT_C voidSetMaxFileSize(const TInt)
IMPORT_C voidSetRingingType(TInt)
IMPORT_C voidSetVibra(TBool)
IMPORT_C voidSetVolume(TInt)
IMPORT_C voidSetWantedMediaTypesL(const TArray< TCLFMediaType > &)
IMPORT_C voidSetWantedMimeTypesL(const MDesCArray &)
Private Member Functions
CFLDFileListContainer()
voidConstructL(const TInt, const TInt)
Inherited Functions
CBase::CBase()
CBase::Delete(CBase *)
CBase::Extension_(TUint,TAny *&,TAny *)
CBase::operator new(TUint)
CBase::operator new(TUint,TAny *)
CBase::operator new(TUint,TLeave)
CBase::operator new(TUint,TLeave,TUint)
CBase::operator new(TUint,TUint)
CBase::~CBase()
Private Attributes
CFLDController *iController
CFLDDRMImplementation *iDRMImplementation
CFLDFileListModel *iModel
RConeResourceLoaderiResourceLoader

Constructor & Destructor Documentation

CFLDFileListContainer()

CFLDFileListContainer()[private]

Constructor

~CFLDFileListContainer()

IMPORT_C~CFLDFileListContainer()[virtual]

Destructor

Member Functions Documentation

AddExclusiveMediaTypeL(const TInt32)

IMPORT_C voidAddExclusiveMediaTypeL(const TInt32aMediaType)

Adds a new media type into blocking list.

Parameters

const TInt32 aMediaTypeThe blocked media type (see TCLFMediaType enumeration inside CFLContentListing.hrh)

AddExclusiveMimeTypeL(const TDesC &)

IMPORT_C voidAddExclusiveMimeTypeL(const TDesC &aMimeType)

Adds a new MIME type into blocking list.

Parameters

const TDesC & aMimeTypeThe blocked MIME type

ConstructL(const TInt, const TInt)

voidConstructL(const TIntaResourceId,
const TIntaDirectoriesResourceId
)[private]

Second phase constructor

Parameters

const TInt aResourceIdA CLF model resource, see CLFContentListing.rh
const TInt aDirectoriesResourceIdA resource using FILELISTDIRECTORIES structure, see FileListModel.rh for details

InsertEndNullItemL(const TDesC &)

IMPORT_C voidInsertEndNullItemL(const TDesC &aItemText)

Adds a text (e.g. "None") as the last item of the list, which will not be sorted among the file name items.

Parameters

const TDesC & aItemTextA descriptor containing the null item text

InsertEndNullItemL(const TDesC &, const TDesC &)

IMPORT_C voidInsertEndNullItemL(const TDesC &aItemText,
const TDesC &aFileName
)

Adds a text (e.g. "None") as the last item of the list, which will not be sorted among the file name items.

Parameters

const TDesC & aItemTextA descriptor containing the null item text
const TDesC & aFileNameA descriptor containing the ringing tone file name for null item

InsertNullItemL(const TDesC &)

IMPORT_C voidInsertNullItemL(const TDesC &aItemText)

Adds a text (e.g. "None") as the first item of the list, which will not be sorted among the file name items.

Parameters

const TDesC & aItemTextA descriptor containing the null item text

InsertNullItemL(const TDesC &, const TDesC &)

IMPORT_C voidInsertNullItemL(const TDesC &aItemText,
const TDesC &aFileName
)

Adds a text (e.g. "None") as the first item of the list, which will not be sorted among the file name items.

Parameters

const TDesC & aItemTextA descriptor containing the null item text
const TDesC & aFileNameA descriptor containing the ringing tone file name for null item

LaunchL(TDes &, const TDesC &)

IMPORT_C TBoolLaunchL(TDes &aFileName,
const TDesC &aPopupTitle =  KNullDesC
)

Launches a popup list for browsing files

Parameters

TDes & aFileNameThe selected file name will be stored here. If the selected item was not a file but a null text item, aFileName will contain KNullDesC. If aFileName contains something already, CFLDFileListContainer tries to find the name on the list and focus on it. NOTE: Size of aFileName must be KMaxFileName, otherwise KErrNotFound is returned (aFileName is compared against TFileName entities).
const TDesC & aPopupTitle =  KNullDesC If this parameter is given, sets the title text of the popup

NewL()

IMPORT_C CFLDFileListContainer *NewL()[static]

Two-phase static constructor

NewL(const TInt)

IMPORT_C CFLDFileListContainer *NewL(const TIntaResourceId)[static]

Two-phase static constructor

Parameters

const TInt aResourceIdA CLF model resource, see CLFContentListing.rh

NewL(const TInt, const TInt)

IMPORT_C CFLDFileListContainer *NewL(const TIntaResourceId,
const TIntaDirectoriesResourceId
)[static]

Two-phase static constructor

Parameters

const TInt aResourceIdA CLF model resource, see CLFContentListing.rh
const TInt aDirectoriesResourceIdA resource using FILELISTDIRECTORIES structure, see FileListModel.rh for details

NewLC()

IMPORT_C CFLDFileListContainer *NewLC()[static]

Two-phase static constructor

NewLC(const TInt)

IMPORT_C CFLDFileListContainer *NewLC(const TIntaResourceId)[static]

Two-phase static constructor

Parameters

const TInt aResourceIdA CLF model resource, see CLFContentListing.rh

NewLC(const TInt, const TInt)

IMPORT_C CFLDFileListContainer *NewLC(const TIntaResourceId,
const TIntaDirectoriesResourceId
)[static]

Two-phase static constructor

Parameters

const TInt aResourceIdA CLF model resource, see CLFContentListing.rh
const TInt aDirectoriesResourceIdA resource using FILELISTDIRECTORIES structure, see FileListModel.rh for details

ResetExclusiveMediaTypes()

IMPORT_C voidResetExclusiveMediaTypes()

Removes all the defined exlusive media types

ResetExclusiveMimeTypes()

IMPORT_C voidResetExclusiveMimeTypes()

Removes all the defined exlusive MIME types

Set3dEffects(TBool)

IMPORT_C voidSet3dEffects(TBoola3dEffects)

Sets 3d-effects on or off. If this method is called using parameter EFalse 3d-effects are always disabled even though those are set in active profile. Otherwise toneplayer uses the setting in active profile.

Parameters

TBool a3dEffectsTrue: 3dEffects are on. False: 3dEffects are off.

SetAutomatedType(CDRMHelper::TDRMHelperAutomatedType)

IMPORT_C voidSetAutomatedType(CDRMHelper::TDRMHelperAutomatedTypeaAutomatedType)

Set the automated content type

Parameters

CDRMHelper::TDRMHelperAutomatedType aAutomatedType

SetDelay(TTimeIntervalMicroSeconds32)

IMPORT_C voidSetDelay(TTimeIntervalMicroSeconds32aDelay)

Set the delay until the timer expires.

Parameters

TTimeIntervalMicroSeconds32 aDelayThe delay in microseconds

SetMaxFileSize(const TInt)

IMPORT_C voidSetMaxFileSize(const TIntaMaxFileSize)
Sets the maximum file size for the list.
Since
3.1

Parameters

const TInt aMaxFileSizeThe maximum file size in bytes. If you want to allow all file sizes, set this to KFLDNoSizeFiltering (defined in FileListModel.hrh).

SetRingingType(TInt)

IMPORT_C voidSetRingingType(TIntaRingingType)

Sets the ringing type If this method is not called, toneplayer uses the setting in active profile.

Parameters

TInt aRingingTypeThe ringing type (see CFLDRingingTonePlayer::TRingingTypes)

SetVibra(TBool)

IMPORT_C voidSetVibra(TBoolaVibra)

Sets vibrating alert on or off. If this method is not called, toneplayer uses the setting in active profile.

Parameters

TBool aVibraTrue: Vibra is on. False: Vibra is off.

SetVolume(TInt)

IMPORT_C voidSetVolume(TIntaVolume)

Set the volume level on which the sound is played. If this method is not called, toneplayer uses the setting in active profile.

Parameters

TInt aVolumeThe volume level

SetWantedMediaTypesL(const TArray< TCLFMediaType > &)

IMPORT_C voidSetWantedMediaTypesL(const TArray< TCLFMediaType > &aMediaTypes)

Sets wanted media types. Overrides all settings defined inside resource, defined with AddExclusive -methods or with SetWanted -methods.

Parameters

const TArray< TCLFMediaType > & aMediaTypesThe array containing wanted media types

SetWantedMimeTypesL(const MDesCArray &)

IMPORT_C voidSetWantedMimeTypesL(const MDesCArray &aMimeTypes)

Sets wanted mime types. Overrides all settings defined inside resource, defined with AddExclusive -methods or with SetWanted -methods.

Parameters

const MDesCArray & aMimeTypesThe array containing wanted MIME types

Member Data Documentation

CFLDController * iController

CFLDController *iController[private]

CFLDDRMImplementation * iDRMImplementation

CFLDDRMImplementation *iDRMImplementation[private]

CFLDFileListModel * iModel

CFLDFileListModel *iModel[private]

RConeResourceLoader iResourceLoader

RConeResourceLoaderiResourceLoader[private]