CCnaConverter Class Reference

#include <mw/concnf.h>

Link against: conarc.lib

class CCnaConverter : public CBase

Inherits from

  • CCnaConverter

    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.

    Returns: Number of source data types

    CountTo ( )

    IMPORT_C TIntCountTo()const

    Gets the number of target data types for the converter.

    Returns: Number of target data types

    MimeFrom ( const TDataType & )

    IMPORT_C TBoolMimeFrom(const TDataType &aMimeType)const

    Tests if the specified source data type is available.

    ParameterDescription
    aMimeTypeSource data type

    Returns: 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.

    ParameterDescription
    aIndexIndex of the source data type to get

    Returns: Source data type

    MimeFromText ( const TDataType & )

    IMPORT_C TTranslationMimeFromText(const TDataType &aMimeType)const

    Gets the localised name of the specified source data type.

    ParameterDescription
    aMimeTypeSource data type

    Returns: 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.

    ParameterDescription
    aIndexIndex of the source data type

    Returns: 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.

    ParameterDescription
    aMimeTypeTarget data type

    Returns: 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.

    ParameterDescription
    aIndexIndex of the target data type to get

    Returns: Target data type

    MimeToText ( const TDataType & )

    IMPORT_C TTranslationMimeToText(const TDataType &aMimeType)const

    Gets the localised name of the specified target data type.

    ParameterDescription
    aMimeTypeTarget data type

    Returns: 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.

    ParameterDescription
    aIndexIndex of the target data type

    Returns: 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.

    ParameterDescription
    aUidConverter UID

    Returns: New CCnaConverter

    NewL ( const CCnaConverter & )

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

    Allocates and copies a new CCnaConverter.

    ParameterDescription
    aConverterObject to copy

    Returns: 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.

    ParameterDescription
    aUidConverter UID

    Returns: 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.

    ParameterDescription
    aConverterObject to copy

    Returns: New CCnaConverter

    SetUid ( TUid )

    IMPORT_C voidSetUid(TUidaUid)

    Sets the converter UID.

    ParameterDescription
    aUidConverter UID

    Uid ( )

    TUid Uid()const [inline]

    Gets the converter UID.

    Returns: Converter UID