CCnaConverterList Class Reference

class CCnaConverterList : public CBase

Provides a list of available converters, allowing clients to search for and obtain converters for specific source and target data types.

Inherits from

Constructor & Destructor Documentation

CCnaConverterList()

CCnaConverterList ( ) [private]

~CCnaConverterList()

IMPORT_C ~CCnaConverterList ( )

Destructor.

This releases all loaded converter DLLs.

Member Functions Documentation

ConstructL()

void ConstructL ( ) [private]

ConvFromL(const TDataType &)

IMPORT_C TUid ConvFromL ( const TDataType & aMimeType )

Gets the UID of the converter that converts from the specified data type.

Parameters

const TDataType & aMimeType Source data type

ConvFromListL(const TDataType &, CArrayFix< SConverterInfo > *)

IMPORT_C void ConvFromListL ( const TDataType & aMimeType,
CArrayFix < SConverterInfo > * aSConverterInfoArray
)

Gets a list of converters that convert from a specified data type.

Parameters

const TDataType & aMimeType Source data type
CArrayFix < SConverterInfo > * aSConverterInfoArray On return, array of converter information objects for all suitable converters

ConvToL(const TDataType &)

IMPORT_C TUid ConvToL ( const TDataType & aMimeType )

Gets the UID of the converter that converts to a specified data type.

Parameters

const TDataType & aMimeType Target data type

ConvToListL(const TDataType &, CArrayFix< SConverterInfo > *)

IMPORT_C void ConvToListL ( const TDataType & aMimeType,
CArrayFix < SConverterInfo > * aSConverterInfoArray
)

Gets a list of converters that convert to a specified data type.

Parameters

const TDataType & aMimeType Target data type
CArrayFix < SConverterInfo > * aSConverterInfoArray On return, an array of converter information objects for all suitable converters

ConverterL(const TDataType &, const TDataType &)

IMPORT_C TUid ConverterL ( const TDataType & aFrom,
const TDataType & aTo
)

Gets the UID of the converter that converts to and from the specified data types.

Parameters

const TDataType & aFrom Source data type
const TDataType & aTo Target data type

Count()

TInt Count ( ) [inline]

Deprecated - Use CCnaConverterList::CountL instead. Rescan of the disk to refresh the list of converters could leave.

CountL()

IMPORT_C TInt CountL ( )

Gets the total number of converters.

It can leave because it needs to rescan the disk to refresh the list of converters.

LoadConverterL(TUid)

CConverterBase * LoadConverterL ( TUid aImplUid ) [private]

Parameters

TUid aImplUid

MimeTypeFrom(TDataType &, const SConverterInfo &)

IMPORT_C TInt MimeTypeFrom ( TDataType & aDataType,
const SConverterInfo & aConverterInfo
) const

Gets converter information for a specified source data type.

Parameters

TDataType & aDataType Source data type
const SConverterInfo & aConverterInfo On return, converter information for a suitable converter

MimeTypeTo(TDataType &, const SConverterInfo &)

IMPORT_C TInt MimeTypeTo ( TDataType & aDataType,
const SConverterInfo & aConverterInfo
) const

Gets converter information for a specified target data type.

Parameters

TDataType & aDataType Target data type
const SConverterInfo & aConverterInfo On return, converter information for a suitable converter

NewConverterL(TUid)

IMPORT_C CConverterBase * NewConverterL ( TUid aUid )

Locates the converter with the specified UID, loads its associated DLL and returns a pointer to it.

Parameters

TUid aUid Converter UID

NewL()

IMPORT_C CCnaConverterList * NewL ( ) [static]

Allocates and constructs a CCnaConverterList .

NewLC()

IMPORT_C CCnaConverterList * NewLC ( ) [static]

Allocates and constructs a CCnaConverterList , leaving the object on the cleanup stack.

Release()

IMPORT_C void Release ( )

Legacy function, do not use.

UpdateL()

IMPORT_C void UpdateL ( )

Requests a rescan of the disk to refresh the list of converters.

Member Data Documentation

CArrayPtr< CCnaConverter > * iConverters

CArrayPtr < CCnaConverter > * iConverters [private]

TBool iDoneScan

TBool iDoneScan [private]

RImplInfoPtrArray iImplementationArray

RImplInfoPtrArray iImplementationArray [private]