CCnaConverter Class Reference

class CCnaConverter : public CBase

Holds the inherent properties of a converter.

These are its UID and the data types it supports.

Note that the setter functions affect only the current object, not the stored information for the converter.

Inherits from

Constructor & Destructor Documentation

CCnaConverter()

CCnaConverter()[private]

~CCnaConverter()

IMPORT_C~CCnaConverter()

Destructor.

Member Functions Documentation

AddMimeDataL(TResourceReader &, CArrayPtrFlat< CMimeInfo > &)

voidAddMimeDataL(TResourceReader &aReader,
CArrayPtrFlat< CMimeInfo > &aMimeInfo
)[private]

Parameters

TResourceReader & aReader
CArrayPtrFlat< CMimeInfo > & aMimeInfo

ConstructL()

voidConstructL()[private]

ConstructL(TUid, TResourceReader &)

voidConstructL(TUidaUid,
TResourceReader &aReader
)[private]

Parameters

TUid aUid
TResourceReader & aReader

CountFrom()

IMPORT_C TIntCountFrom()const

Gets the number of source data types for the converter.

CountTo()

IMPORT_C TIntCountTo()const

Gets the number of target data types for the converter.

FindMime(const TDataType &, const CArrayPtrFlat< CMimeInfo > *)

TBool FindMime(const TDataType &aMimeType,
const CArrayPtrFlat< CMimeInfo > *aList
)const [private]

Parameters

const TDataType & aMimeType
const CArrayPtrFlat< CMimeInfo > * aList

FindMimeText(const TDataType &, const CArrayPtrFlat< CMimeInfo > *)

TTranslation FindMimeText(const TDataType &aMimeType,
const CArrayPtrFlat< CMimeInfo > *aList
)const [private]

Parameters

const TDataType & aMimeType
const CArrayPtrFlat< CMimeInfo > * aList

MimeFrom(const TDataType &)

IMPORT_C TBoolMimeFrom(const TDataType &aMimeType)const

Tests if the specified source data type is available.

Parameters

const TDataType & aMimeTypeSource data type

MimeFrom(TInt)

IMPORT_C TDataTypeMimeFrom(TIntaIndex)const

Gets the n'th source data type of the converter.

Parameters

TInt aIndexIndex of the source data type to get

MimeFromText(const TDataType &)

IMPORT_C TTranslationMimeFromText(const TDataType &aMimeType)const

Gets the localised name of the specified source data type.

Parameters

const TDataType & aMimeTypeSource data type

MimeFromText(TInt)

IMPORT_C TTranslationMimeFromText(TIntaIndex)const

Gets the localised name of the n'th source data type.

Parameters

TInt aIndexIndex of the source data type

MimeTo(const TDataType &)

IMPORT_C TBoolMimeTo(const TDataType &aMimeType)const

Tests if the specified target data type is available.

Parameters

const TDataType & aMimeTypeTarget data type

MimeTo(TInt)

IMPORT_C TDataTypeMimeTo(TIntaIndex)const

Gets the n'th target data type of the converter.

Parameters

TInt aIndexIndex of the target data type to get

MimeToText(const TDataType &)

IMPORT_C TTranslationMimeToText(const TDataType &aMimeType)const

Gets the localised name of the specified target data type.

Parameters

const TDataType & aMimeTypeTarget data type

MimeToText(TInt)

IMPORT_C TTranslationMimeToText(TIntaIndex)const

Gets the localised name of the n'th target data type.

Parameters

TInt aIndexIndex of the target data type

NewL()

CCnaConverter *NewL()[static]

NewL(TUid)

IMPORT_C CCnaConverter *NewL(TUidaUid)[static]

Allocates and constructs a CCnaConverter for a specified converter.

Parameters

TUid aUidConverter UID

NewL(const CCnaConverter &)

IMPORT_C CCnaConverter *NewL(const CCnaConverter &aConverter)[static]

Allocates and copies a new CCnaConverter.

Parameters

const CCnaConverter & aConverterObject to copy

NewL(TUid, TResourceReader &)

CCnaConverter *NewL(TUidaUid,
TResourceReader &aReader
)[static]

Parameters

TUid aUid
TResourceReader & aReader

NewLC()

CCnaConverter *NewLC()[static]

NewLC(TUid)

IMPORT_C CCnaConverter *NewLC(TUidaUid)[static]

Allocates and constructs a CCnaConverter for a specified converter, leaving the object on the cleanup stack.

Parameters

TUid aUidConverter UID

NewLC(const CCnaConverter &)

IMPORT_C CCnaConverter *NewLC(const CCnaConverter &aConverter)[static]

Allocates and copies a new CCnaConverter, leaving the object on the cleanup stack.

Parameters

const CCnaConverter & aConverterObject to copy

SetUid(TUid)

IMPORT_C voidSetUid(TUidaUid)

Sets the converter UID.

Parameters

TUid aUidConverter UID

Uid()

TUid Uid()const [inline]

Gets the converter UID.

Member Data Documentation

CArrayPtrFlat< CMimeInfo > * iMimeFrom

CArrayPtrFlat< CMimeInfo > *iMimeFrom[private]

CArrayPtrFlat< CMimeInfo > * iMimeTo

CArrayPtrFlat< CMimeInfo > *iMimeTo[private]

TUid iUid

TUid iUid[private]