CCnaConverter Class Reference

#include <mw/concnf.h>

Link against: conarc.lib

class CCnaConverter : public CBase

Inherits from

Detailed Description

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.

Constructor & Destructor Documentation

~CCnaConverter ( )

IMPORT_C~CCnaConverter()

Destructor.

Member Function Documentation

CountFrom ( )

IMPORT_C TIntCountFrom()const

Gets the number of source data types for the converter.

Return Value
Number of source data types

CountTo ( )

IMPORT_C TIntCountTo()const

Gets the number of target data types for the converter.

Return Value
Number of target data types

MimeFrom ( const TDataType & )

IMPORT_C TBoolMimeFrom(const TDataType &aMimeType)const

Tests if the specified source data type is available.

Parameters
aMimeTypeSource data type
Return Value
True if the converter supports the source data type, else false

MimeFrom ( TInt )

IMPORT_C TDataTypeMimeFrom(TIntaIndex)const

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

Parameters
aIndexIndex of the source data type to get
Return Value
Source data type

MimeFromText ( const TDataType & )

IMPORT_C TTranslationMimeFromText(const TDataType &aMimeType)const

Gets the localised name of the specified source data type.

Parameters
aMimeTypeSource data type
Return Value
Localised name of the source data type

MimeFromText ( TInt )

IMPORT_C TTranslationMimeFromText(TIntaIndex)const

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

Parameters
aIndexIndex of the source data type
Return Value
Localised name 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
aMimeTypeTarget data type
Return Value
True if the converter supports the target data type, else false

MimeTo ( TInt )

IMPORT_C TDataTypeMimeTo(TIntaIndex)const

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

Parameters
aIndexIndex of the target data type to get
Return Value
Target data type

MimeToText ( const TDataType & )

IMPORT_C TTranslationMimeToText(const TDataType &aMimeType)const

Gets the localised name of the specified target data type.

Parameters
aMimeTypeTarget data type
Return Value
Localised name of the target data type

MimeToText ( TInt )

IMPORT_C TTranslationMimeToText(TIntaIndex)const

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

Parameters
aIndexIndex of the target data type
Return Value
Localised name 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
aUidConverter UID
Return Value
New CCnaConverter

NewL ( const CCnaConverter & )

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

Allocates and copies a new CCnaConverter.

Parameters
aConverterObject to copy
Return Value
New CCnaConverter

NewL ( TUid, TResourceReader & )

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

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
aUidConverter UID
Return Value
New CCnaConverter

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
aConverterObject to copy
Return Value
New CCnaConverter

SetUid ( TUid )

IMPORT_C voidSetUid(TUidaUid)

Sets the converter UID.

Parameters
aUidConverter UID

Uid ( )

TUid Uid()const [inline]

Gets the converter UID.

Return Value
Converter UID