class ContentAccess::CMetaData : public CBase |
Stores a field and data pair for use in a supplier import operation
The field and data can be any values the application doing the import thinks the agent will find useful. Some information that could be included here are headers, eg:
"Content Type", "application/vnd.oma.drm.dm"
The application can include anything it likes, if the agent doesn't understand the header it can just ignore it, eg:
"Colour", "Yellow"
CMetaData can be used with 8-bit or unicode data and automatically performs conversions between the two.
Applications should use the unicode functions whenever possible because it removes the risk of losing information during the unicode to 8 bit conversion.
Public Member Functions | |
---|---|
~CMetaData() | |
IMPORT_C const TDesC & | Data() |
IMPORT_C const TDesC8 & | Data8() |
void | ExternalizeL(RWriteStream &) |
IMPORT_C const TDesC & | Field() |
IMPORT_C const TDesC8 & | Field8() |
CMetaData * | NewL(const TDesC8 &, const TDesC8 &) |
CMetaData * | NewL(const TDesC16 &, const TDesC16 &) |
CMetaData * | NewL(RReadStream &) |
Private Member Functions | |
---|---|
CMetaData(TBool) | |
void | ConstructL(const TDesC8 &, const TDesC8 &) |
void | ConstructL(const TDesC16 &, const TDesC16 &) |
void | InternalizeL(RReadStream &) |
Private Attributes | |
---|---|
HBufC * | iData |
HBufC8 * | iData8 |
HBufC * | iField |
HBufC8 * | iField8 |
TBool | iUnicode |
void | ConstructL | ( | const TDesC8 & | aField, |
const TDesC8 & | aData | |||
) | [private] |
void | ConstructL | ( | const TDesC16 & | aField, |
const TDesC16 & | aData | |||
) | [private] |
void | ExternalizeL | ( | RWriteStream & | aStream | ) | const |
Write the CMetaData to a data stream
RWriteStream & aStream | The stream to write the CMetaData object to |
void | InternalizeL | ( | RReadStream & | aStream | ) | [private] |
Read the CMetaData from a data stream
RReadStream & aStream |
CMetaData * | NewL | ( | const TDesC8 & | aField, |
const TDesC8 & | aData | |||
) | [static] |
CMetaData * | NewL | ( | const TDesC16 & | aField, |
const TDesC16 & | aData | |||
) | [static] |
Construct a new CMetaData with unicode data
CMetaData * | NewL | ( | RReadStream & | aStream | ) | [static] |
Construct a new CMetaData from a data stream
RReadStream & aStream | The stream to read the CMetaData object from |
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.