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

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

Parameters

TResourceReader & aReader
CArrayPtrFlat < CMimeInfo > & aMimeInfo

ConstructL()

void ConstructL ( ) [private]

ConstructL(TUid, TResourceReader &)

void ConstructL ( TUid aUid,
TResourceReader & aReader
) [private]

Parameters

TUid aUid
TResourceReader & aReader

CountFrom()

IMPORT_C TInt CountFrom ( ) const

Gets the number of source data types for the converter.

CountTo()

IMPORT_C TInt CountTo ( ) 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 TBool MimeFrom ( const TDataType & aMimeType ) const

Tests if the specified source data type is available.

Parameters

const TDataType & aMimeType Source data type

MimeFrom(TInt)

IMPORT_C TDataType MimeFrom ( TInt aIndex ) const

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

Parameters

TInt aIndex Index of the source data type to get

MimeFromText(const TDataType &)

IMPORT_C TTranslation MimeFromText ( const TDataType & aMimeType ) const

Gets the localised name of the specified source data type.

Parameters

const TDataType & aMimeType Source data type

MimeFromText(TInt)

IMPORT_C TTranslation MimeFromText ( TInt aIndex ) const

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

Parameters

TInt aIndex Index of the source data type

MimeTo(const TDataType &)

IMPORT_C TBool MimeTo ( const TDataType & aMimeType ) const

Tests if the specified target data type is available.

Parameters

const TDataType & aMimeType Target data type

MimeTo(TInt)

IMPORT_C TDataType MimeTo ( TInt aIndex ) const

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

Parameters

TInt aIndex Index of the target data type to get

MimeToText(const TDataType &)

IMPORT_C TTranslation MimeToText ( const TDataType & aMimeType ) const

Gets the localised name of the specified target data type.

Parameters

const TDataType & aMimeType Target data type

MimeToText(TInt)

IMPORT_C TTranslation MimeToText ( TInt aIndex ) const

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

Parameters

TInt aIndex Index of the target data type

NewL()

CCnaConverter * NewL ( ) [static]

NewL(TUid)

IMPORT_C CCnaConverter * NewL ( TUid aUid ) [static]

Allocates and constructs a CCnaConverter for a specified converter.

Parameters

TUid aUid Converter UID

NewL(const CCnaConverter &)

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

Allocates and copies a new CCnaConverter .

Parameters

const CCnaConverter & aConverter Object to copy

NewL(TUid, TResourceReader &)

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

Parameters

TUid aUid
TResourceReader & aReader

NewLC()

CCnaConverter * NewLC ( ) [static]

NewLC(TUid)

IMPORT_C CCnaConverter * NewLC ( TUid aUid ) [static]

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

Parameters

TUid aUid Converter 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 & aConverter Object to copy

SetUid(TUid)

IMPORT_C void SetUid ( TUid aUid )

Sets the converter UID.

Parameters

TUid aUid Converter 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]