CMediaFetchImplementation Class Reference

class CMediaFetchImplementation : public CBase

ECom interface for Media Fetch plug-in implementation.

Plug-in implementation used for Media Fetch API functionality is selected based on plug-ins' implementation information.

Media types supported by the plug-in are defined in plug-in resource's default_data. The value must be in hexadecimal format:

LTEXT8 default_data;

Example: default_data = "00000003" if both image (0x00000001) and video (0x00000002) fetchers are supported by the plug-in.

See MediaFileTypes.hrh for supported media types.

If multiple plug-ins support the same media type(s) then the plug-in with the highest version number is selected.

BYTE version_no;

See registryinfov2.rh for ECom resource structure information.

n/a
Since
S60 v3.2

Inherits from

  • CMediaFetchImplementation

Constructor & Destructor Documentation

~CMediaFetchImplementation()

~CMediaFetchImplementation()[inline, virtual]

Member Functions Documentation

GetCancelerL(MMGFetchCanceler *&)

voidGetCancelerL(MMGFetchCanceler *&aCanceler)[pure virtual]
Optional feature. Plug-in should return canceler interface.
Since
S60 v3.2

Parameters

MMGFetchCanceler *& aCancelerSee MMGFetchCanceler.h

LaunchL(CDesCArray &, TMediaFileType)

TBool LaunchL(CDesCArray &aSelectedFiles,
TMediaFileTypeaMediaType
)[pure virtual]
Plug-in should launch fetcher popup for given media type.
Since
S60 v3.2

Parameters

CDesCArray & aSelectedFilesplug-in appends selected files to this array
TMediaFileType aMediaTypeplug-in should display only files with this media type return ETrue if user selected file(s), EFalse if use cancelled.

NewL(const TUid &)

CMediaFetchImplementation *NewL(const TUid &aImplementationUid)[static, inline]

Parameters

const TUid & aImplementationUid

SetHeadingL(const TDesC &)

voidSetHeadingL(const TDesC &aHeading)[pure virtual]
Optional feature Plug-in should use given text as heading
Since
S60 v3.2

Parameters

const TDesC & aHeadingCustom heading text for fetcher

SetMimeTypesL(const MDesCArray &)

voidSetMimeTypesL(const MDesCArray &aMimeTypes)[pure virtual]
Optional feature.
Since
S60 v3.2

Parameters

const MDesCArray & aMimeTypesplug-in should show only files with given Mime types

SetMultiSelectionL(TBool)

voidSetMultiSelectionL(TBoolaMultiSelect)[pure virtual]
Optional feature. By default fetcher is single selection fetcher. If multi-selection is enabled then plug-in should display a multi-selection fetcher and allow user to select several items.
Since
S60 v3.2

Parameters

TBool aMultiSelectif ETrue then multiselection fetcher is enabled

SetSelectionSoftkeyL(const TDesC &)

voidSetSelectionSoftkeyL(const TDesC &aSelectionSoftkey)[pure virtual]
Optional feature. Plug-in should use given text as selection key (SK1) label
Since
S60 v3.2

Parameters

const TDesC & aSelectionSoftkeyCustom selection softkey label

SetVerifierL(MMGFetchVerifier &)

voidSetVerifierL(MMGFetchVerifier &aVerifier)[pure virtual]
Optional feature. Plug-in should call this interface before selection is done. if MMGFetchVerifier::VerifySelectionL() returns ETrue then the user's selection should be accepted and the fetcher closed. If EFalse is returned then user should change the current selection before it can be accepted and the fetcher closed.
Since
S60 v3.2

Parameters

MMGFetchVerifier & aVerifierSee MMGFetchVerifier.h

Member Data Documentation

TUid iDtor_ID_Key

TUid iDtor_ID_Key[private]