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()

voidConstructL()[private]

ConvFromL(const TDataType &)

IMPORT_C TUidConvFromL(const TDataType &aMimeType)

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

Parameters

const TDataType & aMimeTypeSource data type

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

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

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

Parameters

const TDataType & aMimeTypeSource data type
CArrayFix< SConverterInfo > * aSConverterInfoArrayOn return, array of converter information objects for all suitable converters

ConvToL(const TDataType &)

IMPORT_C TUidConvToL(const TDataType &aMimeType)

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

Parameters

const TDataType & aMimeTypeTarget data type

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

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

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

Parameters

const TDataType & aMimeTypeTarget data type
CArrayFix< SConverterInfo > * aSConverterInfoArrayOn return, an array of converter information objects for all suitable converters

ConverterL(const TDataType &, const TDataType &)

IMPORT_C TUidConverterL(const TDataType &aFrom,
const TDataType &aTo
)

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

Parameters

const TDataType & aFromSource data type
const TDataType & aToTarget 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 TIntCountL()

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(TUidaImplUid)[private]

Parameters

TUid aImplUid

MimeTypeFrom(TDataType &, const SConverterInfo &)

IMPORT_C TIntMimeTypeFrom(TDataType &aDataType,
const SConverterInfo &aConverterInfo
)const

Gets converter information for a specified source data type.

Parameters

TDataType & aDataTypeSource data type
const SConverterInfo & aConverterInfoOn return, converter information for a suitable converter

MimeTypeTo(TDataType &, const SConverterInfo &)

IMPORT_C TIntMimeTypeTo(TDataType &aDataType,
const SConverterInfo &aConverterInfo
)const

Gets converter information for a specified target data type.

Parameters

TDataType & aDataTypeTarget data type
const SConverterInfo & aConverterInfoOn return, converter information for a suitable converter

NewConverterL(TUid)

IMPORT_C CConverterBase *NewConverterL(TUidaUid)

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

Parameters

TUid aUidConverter 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 voidRelease()

Legacy function, do not use.

UpdateL()

IMPORT_C voidUpdateL()

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]