#include <mw/concnf.h>
| class CCnaConverter : public CBase |
| Public Member Functions | |
|---|---|
| ~CCnaConverter() | |
| IMPORT_C TInt | CountFrom() |
| IMPORT_C TInt | CountTo() |
| IMPORT_C TBool | MimeFrom(const TDataType &) |
| IMPORT_C TDataType | MimeFrom(TInt) |
| IMPORT_C TTranslation | MimeFromText(const TDataType &) |
| IMPORT_C TTranslation | MimeFromText(TInt) |
| IMPORT_C TBool | MimeTo(const TDataType &) |
| IMPORT_C TDataType | MimeTo(TInt) |
| IMPORT_C TTranslation | MimeToText(const TDataType &) |
| IMPORT_C TTranslation | MimeToText(TInt) |
| CCnaConverter * | NewL() |
| IMPORT_C CCnaConverter * | NewL(TUid) |
| IMPORT_C CCnaConverter * | NewL(const CCnaConverter &) |
| CCnaConverter * | NewL(TUid, TResourceReader &) |
| CCnaConverter * | NewLC() |
| IMPORT_C CCnaConverter * | NewLC(TUid) |
| IMPORT_C CCnaConverter * | NewLC(const CCnaConverter &) |
| IMPORT_C void | SetUid(TUid) |
| TUid | Uid() |
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.
| IMPORT_C TInt | CountFrom | ( | ) | const |
Gets the number of source data types for the converter.
Returns: Number of source data types
| IMPORT_C TInt | CountTo | ( | ) | const |
Gets the number of target data types for the converter.
Returns: Number of target data types
| IMPORT_C TTranslation | MimeFromText | ( | const TDataType & | aMimeType | ) | const |
Gets the localised name of the specified source data type.
| Parameter | Description |
|---|---|
| aMimeType | Source data type |
Returns: Localised name of the source data type
| IMPORT_C TTranslation | MimeFromText | ( | TInt | aIndex | ) | const |
Gets the localised name of the n'th source data type.
| Parameter | Description |
|---|---|
| aIndex | Index of the source data type |
Returns: Localised name of the source data type
| IMPORT_C TTranslation | MimeToText | ( | const TDataType & | aMimeType | ) | const |
Gets the localised name of the specified target data type.
| Parameter | Description |
|---|---|
| aMimeType | Target data type |
Returns: Localised name of the target data type
| IMPORT_C TTranslation | MimeToText | ( | TInt | aIndex | ) | const |
Gets the localised name of the n'th target data type.
| Parameter | Description |
|---|---|
| aIndex | Index of the target data type |
Returns: Localised name of the target data type
| IMPORT_C CCnaConverter * | NewL | ( | TUid | aUid | ) | [static] |
Allocates and constructs a CCnaConverter for a specified converter.
| Parameter | Description |
|---|---|
| aUid | Converter UID |
Returns: New CCnaConverter
| IMPORT_C CCnaConverter * | NewL | ( | const CCnaConverter & | aConverter | ) | [static] |
Allocates and copies a new CCnaConverter.
| Parameter | Description |
|---|---|
| aConverter | Object to copy |
Returns: New CCnaConverter
| IMPORT_C CCnaConverter * | NewLC | ( | TUid | aUid | ) | [static] |
Allocates and constructs a CCnaConverter for a specified converter, leaving the object on the cleanup stack.
| Parameter | Description |
|---|---|
| aUid | Converter UID |
Returns: New CCnaConverter
| IMPORT_C CCnaConverter * | NewLC | ( | const CCnaConverter & | aConverter | ) | [static] |
Allocates and copies a new CCnaConverter, leaving the object on the cleanup stack.
| Parameter | Description |
|---|---|
| aConverter | Object to copy |
Returns: New CCnaConverter