MGFetch Class Reference

#include <mw/MGFetch.h>

Link against: MGFetch.lib

class MGFetch
Public Member Functions
IMPORT_C TBoolRunL(CDesCArray &, TMediaFileType, TBool, MMGFetchVerifier *)
IMPORT_C TBoolRunL(CDesCArray &, TMediaFileType, TBool, const TDesC &, const TDesC &, MMGFetchVerifier *)
IMPORT_C TBoolRunL(CDesCArray &, TMediaFileType, TBool, const TDesC &, const TDesC &, MDesCArray *, MMGFetchVerifier *)
IMPORT_C TBoolRunL(CDesCArray &, TMediaFileType, TBool, const TDesC &, const TDesC &, MDesCArray *, MMGFetchCanceler *&, MMGFetchVerifier *)

Detailed Description

MGFetch can be used to to fetch media files from third party applications. Supported TMediaFileType's EImageFile, EVideoFile, EAudioFile and EMusicFile.

Since
2.0

Member Function Documentation

RunL ( CDesCArray &, TMediaFileType, TBool, MMGFetchVerifier * )

IMPORT_C TBoolRunL(CDesCArray &aSelectedFiles,
TMediaFileTypeaMediaType,
TBoolaMultiSelect,
MMGFetchVerifier *aVerifier = NULL
)[static]

Launch media file fetcher for single media type

Since
2.0
will leave with KErrNotSupported if plugin for wanted content is not found.
ParameterDescription
aSelectedFilesArray to hold selected files
aMediaTypeDefines what media files to fetch
aMultiSelectSingle or multiple file selection
aVerifierOptional verifier for file selection

Returns: ETrue if user selected file(s), EFalse if cancelled

RunL ( CDesCArray &, TMediaFileType, TBool, const TDesC &, const TDesC &, MMGFetchVerifier * )

IMPORT_C TBoolRunL(CDesCArray &aSelectedFiles,
TMediaFileTypeaMediaType,
TBoolaMultiSelect,
const TDesC &aSelectionSoftkey,
const TDesC &aHeading,
MMGFetchVerifier *aVerifier = NULL
)[static]

Launch media file fetcher for single media type

Since
2.6
will leave with KErrNotSupported if plugin for wanted content is not found.
ParameterDescription
aSelectedFilesArray to hold selected files
aMediaTypeDefines what media files to fetch
aMultiSelectSingle or multiple file selection
aSelectionSoftkeyOptional text for left softkey (KNullDesC for default text)
aHeadingOptional text for popup heading (KNullDesC for default text)
aVerifierOptional verifier for file selection

Returns: ETrue if user selected file(s), EFalse if cancelled

RunL ( CDesCArray &, TMediaFileType, TBool, const TDesC &, const TDesC &, MDesCArray *, MMGFetchVerifier * )

IMPORT_C TBoolRunL(CDesCArray &aSelectedFiles,
TMediaFileTypeaMediaType,
TBoolaMultiSelect,
const TDesC &aSelectionSoftkey,
const TDesC &aHeading,
MDesCArray *aMimeTypes,
MMGFetchVerifier *aVerifier = NULL
)[static]

Launch media file fetcher for single media type

Since
2.6
will leave with KErrNotSupported if plugin for wanted content is not found.
ParameterDescription
aSelectedFilesArray to hold selected files
aMediaTypeDefines what media files to fetch
aMultiSelectSingle or multiple file selection
aSelectionSoftkeyOptional text for left softkey (KNullDesC for default text)
aHeadingOptional text for popup heading (KNullDesC for default text)
aMimeTypesOptional array containing MIME types of files which are displayed in the fetcher
aVerifierOptional verifier for file selection

Returns: ETrue if user selected file(s), EFalse if cancelled

RunL ( CDesCArray &, TMediaFileType, TBool, const TDesC &, const TDesC &, MDesCArray *, MMGFetchCanceler *&, MMGFetchVerifier * )

IMPORT_C TBoolRunL(CDesCArray &aSelectedFiles,
TMediaFileTypeaMediaType,
TBoolaMultiSelect,
const TDesC &aSelectionSoftkey,
const TDesC &aHeading,
MDesCArray *aMimeTypes,
MMGFetchCanceler *&aCanceler,
MMGFetchVerifier *aVerifier = NULL
)[static]

Launch media file fetcher for single media type

Since
2.6
will leave with KErrNotSupported if plugin for wanted content is not found.
ParameterDescription
aSelectedFilesArray to hold selected files
aMediaTypeDefines what media files to fetch
aMultiSelectSingle or multiple file selection
aSelectionSoftkeyOptional text for left softkey (KNullDesC for default text)
aHeadingOptional text for popup heading (KNullDesC for default text)
aMimeTypesOptional array containing MIME types of files which are displayed in the fetcher
aCancelerReference to canceler interface pointer
aVerifierOptional verifier for file selection

Returns: ETrue if user selected file(s), EFalse if cancelled