Location:
apmstd.h
Link against: apmime.lib
TDataType
Supported from 5.0
A data type.
The class maintains a string that describes the data type and an associated UID.
A data type is also referred to as a MIME type.
Defined in TDataType
:
Des()
, Des8()
, ExternalizeL()
, InternalizeL()
, IsNative()
, TDataType()
, Uid()
, operator!=()
, operator==()
TDataType();
Default constructor.
Sets an empty data type string and sets the associated UID to KNullUid
.
TDataType(const TDataType& aDataType);
Copy constructor.
|
TDataType(const TDesC8& aDataType);
Constructor taking a descriptor.
The data type string is copied from the specified descriptor. By default, the associated UID is set to KNullUid
.
If the data type string begins with the characters "x-epoc/x-app", identifying data as a native Symbian type, then the associated UID is set to the UID value which is expected to follow the characters "x-epoc/x-app".
If no sensible UID can be extracted from the characters following: "x-epoc/x-app", then the associated UID is set to KNullUid
.
|
TDataType(TUid aUid);
Constructor taking a UID.
The data type string is set to "x-epoc/x-app" concatenated with the decimal character representation of the specified UID value. The data type is assumed to identify data as a native Symbian type.
|
TInt operator==(const TDataType& aDataType) const;
Compares this data type for equality with the specified data type.
Two data types are equal if their data type strings are the same. Text is folded for the purpose of the comparison, removing accents and converting letters to a common case form.
|
|
TInt operator!=(const TDataType& aDataType) const;
Compares this data type for inequality with the specified data type.
Two data types are only equal if their data type strings are the same. Text is folded for the purpose of the comparison, removing accents and converting letters to a common case form.
|
|
TBool IsNative() const;
Tests whether the data type is a native Symbian type.
|
TUid Uid() const;
Gets the UID associated with this data type.
|
TBuf<KMaxDataTypeLength> Des() const;
Gets a copy of the data type string.
|
TPtrC8 Des8() const;
Gets an 8 bit non-modifiable pointer descriptor to the data type string.
|
void ExternalizeL(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.
|
void InternalizeL(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.
|