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.
Public Member Functions | |
---|---|
~CCnaConverterList () | |
IMPORT_C TUid | ConvFromL (const TDataType &) |
IMPORT_C void | ConvFromListL (const TDataType &, CArrayFix < SConverterInfo > *) |
IMPORT_C TUid | ConvToL (const TDataType &) |
IMPORT_C void | ConvToListL (const TDataType &, CArrayFix < SConverterInfo > *) |
IMPORT_C TUid | ConverterL (const TDataType &, const TDataType &) |
TInt | Count () |
IMPORT_C TInt | CountL () |
IMPORT_C TInt | MimeTypeFrom ( TDataType &, const SConverterInfo &) |
IMPORT_C TInt | MimeTypeTo ( TDataType &, const SConverterInfo &) |
IMPORT_C CConverterBase * | NewConverterL ( TUid ) |
IMPORT_C CCnaConverterList * | NewL () |
IMPORT_C CCnaConverterList * | NewLC () |
IMPORT_C void | Release () |
IMPORT_C void | UpdateL () |
Private Member Functions | |
---|---|
CCnaConverterList () | |
void | ConstructL () |
CConverterBase * | LoadConverterL ( TUid ) |
Private Attributes | |
---|---|
CArrayPtr < CCnaConverter > * | iConverters |
TBool | iDoneScan |
RImplInfoPtrArray | iImplementationArray |
IMPORT_C | ~CCnaConverterList | ( | ) |
Destructor.
This releases all loaded converter DLLs.
IMPORT_C TUid | ConvFromL | ( | const TDataType & | aMimeType | ) |
Gets the UID of the converter that converts from the specified data type.
const TDataType & aMimeType | Source data type |
IMPORT_C void | ConvFromListL | ( | const TDataType & | aMimeType, |
CArrayFix < SConverterInfo > * | aSConverterInfoArray | |||
) |
Gets a list of converters that convert from a specified data type.
const TDataType & aMimeType | Source data type |
CArrayFix < SConverterInfo > * aSConverterInfoArray | On return, array of converter information objects for all suitable converters |
IMPORT_C TUid | ConvToL | ( | const TDataType & | aMimeType | ) |
Gets the UID of the converter that converts to a specified data type.
const TDataType & aMimeType | Target data type |
IMPORT_C void | ConvToListL | ( | const TDataType & | aMimeType, |
CArrayFix < SConverterInfo > * | aSConverterInfoArray | |||
) |
Gets a list of converters that convert to a specified data type.
const TDataType & aMimeType | Target data type |
CArrayFix < SConverterInfo > * aSConverterInfoArray | On return, an array of converter information objects for all suitable converters |
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.
TInt | Count | ( | ) | [inline] |
Deprecated - Use CCnaConverterList::CountL instead. Rescan of the disk to refresh the list of converters could leave.
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.
CConverterBase * | LoadConverterL | ( | TUid | aImplUid | ) | [private] |
TUid aImplUid |
IMPORT_C TInt | MimeTypeFrom | ( | TDataType & | aDataType, |
const SConverterInfo & | aConverterInfo | |||
) | const |
Gets converter information for a specified source data type.
TDataType & aDataType | Source data type |
const SConverterInfo & aConverterInfo | On return, converter information for a suitable converter |
IMPORT_C TInt | MimeTypeTo | ( | TDataType & | aDataType, |
const SConverterInfo & | aConverterInfo | |||
) | const |
Gets converter information for a specified target data type.
TDataType & aDataType | Target data type |
const SConverterInfo & aConverterInfo | On return, converter information for a suitable converter |
IMPORT_C CConverterBase * | NewConverterL | ( | TUid | aUid | ) |
Locates the converter with the specified UID, loads its associated DLL and returns a pointer to it.
TUid aUid | Converter UID |
IMPORT_C CCnaConverterList * | NewL | ( | ) | [static] |
Allocates and constructs a CCnaConverterList .
IMPORT_C CCnaConverterList * | NewLC | ( | ) | [static] |
Allocates and constructs a CCnaConverterList , leaving the object on the cleanup stack.
IMPORT_C void | UpdateL | ( | ) |
Requests a rescan of the disk to refresh the list of converters.
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.