TDataTypeWithPriority Class Reference

#include <apmstd.h>

Link against: apmime.lib

class TDataTypeWithPriority

Detailed Description

A data (MIME) type and a priority value for that data type.

The priority is used to resolve the current preferred handler of a data type, in the absence of any user preferences. An AIF file can associate an application with a data (MIME) type that is not native to Symbian OS. A priority value can be specified that allows the device to choose the highest priority application that can handle that data type.

See also: TDataType TDataTypePriority

Member Attribute Documentation

iDataType

TDataType iDataType

The data type.

iPriority

The priority value.

Constructor & Destructor Documentation

TDataTypeWithPriority ( )

IMPORT_CTDataTypeWithPriority()

Default constructor

TDataTypeWithPriority ( const TDataType &, TDataTypePriority )

IMPORT_CTDataTypeWithPriority(const TDataType &aDataType,
TDataTypePriorityaPriority
)

Constructor taking a data type and a priority value.

ParameterDescription
aDataTypeThe data type.
aPriorityThe priority value.

Member Function Documentation

ExternalizeL ( RWriteStream & )

IMPORT_C voidExternalizeL(RWriteStream &aWriteStream)const

Externalizes the data type to a stream.

The presence of this function means that the standard templated stream operator<<() is available to externalise objects of this class.

ParameterDescription
aWriteStreamThe write stream.

InternalizeL ( RReadStream & )

IMPORT_C voidInternalizeL(RReadStream &aReadStream)

Internalizes the data type from a stream.

The presence of this function means that the standard templated stream operator>>() is available to internalize objects of this class.

ParameterDescription
aReadStreamThe read stream.