MGFetch Class Reference

class MGFetch

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

MGFetch.lib
Since
2.0
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 *)

Member Functions 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.

Parameters

CDesCArray & aSelectedFilesArray to hold selected files
TMediaFileType aMediaTypeDefines what media files to fetch
TBool aMultiSelectSingle or multiple file selection
MMGFetchVerifier * aVerifier = NULLOptional verifier for file selection

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.

Parameters

CDesCArray & aSelectedFilesArray to hold selected files
TMediaFileType aMediaTypeDefines what media files to fetch
TBool aMultiSelectSingle or multiple file selection
const TDesC & aSelectionSoftkeyOptional text for left softkey (KNullDesC for default text)
const TDesC & aHeadingOptional text for popup heading (KNullDesC for default text)
MMGFetchVerifier * aVerifier = NULLOptional verifier for file selection

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.

Parameters

CDesCArray & aSelectedFilesArray to hold selected files
TMediaFileType aMediaTypeDefines what media files to fetch
TBool aMultiSelectSingle or multiple file selection
const TDesC & aSelectionSoftkeyOptional text for left softkey (KNullDesC for default text)
const TDesC & aHeadingOptional text for popup heading (KNullDesC for default text)
MDesCArray * aMimeTypesOptional array containing MIME types of files which are displayed in the fetcher
MMGFetchVerifier * aVerifier = NULLOptional verifier for file selection

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.

Parameters

CDesCArray & aSelectedFilesArray to hold selected files
TMediaFileType aMediaTypeDefines what media files to fetch
TBool aMultiSelectSingle or multiple file selection
const TDesC & aSelectionSoftkeyOptional text for left softkey (KNullDesC for default text)
const TDesC & aHeadingOptional text for popup heading (KNullDesC for default text)
MDesCArray * aMimeTypesOptional array containing MIME types of files which are displayed in the fetcher
MMGFetchCanceler *& aCancelerReference to canceler interface pointer
MMGFetchVerifier * aVerifier = NULLOptional verifier for file selection