class CConverterBase : public CBase |
For Ecom Style Converters i.e.,for v9.1 and above CConverterBase2 should be used.
Polymorphic interface for converters from one data format to another.
Clients use this interface to access data converters. The implementator of a data converter derives a class from this in which to implement the appropriate conversion functionality.
The interface offers conversions between files, and between objects that support the stream interfaces, e.g. stream stores.
There are two flavours of conversion methods:
the synchronous interfaces, ConvertL() and ConvertObjectL(), which perform the specified conversion and then return
the asynchronous interfaces, ConvertAL() and ConvertObjectAL(), which initialise the converter object, and allow the client code to call DoConvertL() a number of times until the conversion is complete or abandoned.
Public Member Functions | |
---|---|
IMPORT_C void | CancelConvert() |
IMPORT_C TInt | Capabilities() |
IMPORT_C void | ConvertAL(const TFileName &, const TFileName &, MConverterUiObserver *) |
IMPORT_C void | ConvertL(const TFileName &, const TFileName &, MConverterUiObserver *) |
IMPORT_C void | ConvertObjectAL(RReadStream &, RWriteStream &, MConverterUiObserver *) |
IMPORT_C void | ConvertObjectL(RReadStream &, RWriteStream &, MConverterUiObserver *) |
IMPORT_C TBool | DoConvertL() |
IMPORT_C CConverterBase * | EmbeddedObjectL(TDataType &) |
IMPORT_C void | ExtendedInterfaceL(TUid, CBase *&) |
IMPORT_C TBool | GetEmbeddedFileName(TFileName &) |
TUid | Uid() |
Public Member Enumerations | |
---|---|
enum | TCapability { EConvertsFiles = 0x01, EConvertsObjects = 0x02, EConvertsExtract = 0x04 } |
IMPORT_C void | ConvertAL | ( | const TFileName & | aSourceFile, |
const TFileName & | aTargetFile, | |||
MConverterUiObserver * | aObserver = NULL | |||
) | [virtual] |
const TFileName & aSourceFile | |
const TFileName & aTargetFile | |
MConverterUiObserver * aObserver = NULL |
IMPORT_C void | ConvertL | ( | const TFileName & | aSourceFile, |
const TFileName & | aTargetFile, | |||
MConverterUiObserver * | aObserver = NULL | |||
) | [virtual] |
const TFileName & aSourceFile | |
const TFileName & aTargetFile | |
MConverterUiObserver * aObserver = NULL |
IMPORT_C void | ConvertObjectAL | ( | RReadStream & | aReadStream, |
RWriteStream & | aWriteStream, | |||
MConverterUiObserver * | aObserver = NULL | |||
) | [virtual] |
RReadStream & aReadStream | |
RWriteStream & aWriteStream | |
MConverterUiObserver * aObserver = NULL |
IMPORT_C void | ConvertObjectL | ( | RReadStream & | aReadStream, |
RWriteStream & | aWriteStream, | |||
MConverterUiObserver * | aObserver = NULL | |||
) | [virtual] |
RReadStream & aReadStream | |
RWriteStream & aWriteStream | |
MConverterUiObserver * aObserver = NULL |
IMPORT_C CConverterBase * | EmbeddedObjectL | ( | TDataType & | aType | ) | [virtual] |
TDataType & aType |
IMPORT_C void | ExtendedInterfaceL | ( | TUid | aInterfaceUid, |
CBase *& | aInterface | |||
) | [virtual] |
IMPORT_C TBool | GetEmbeddedFileName | ( | TFileName & | aFileName | ) | [virtual] |
TFileName & aFileName |