#include <caf/metadata.h>
Link against: cafutils.lib
class ContentAccess::CMetaData : public CBase |
Public Member Functions | |
---|---|
virtual | ~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 &) |
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.
void | ExternalizeL | ( | RWriteStream & | aStream | ) | const |
Write the CMetaData to a data stream
Parameters | |
---|---|
aStream | The stream to write the CMetaData object to |
Parameters | |
---|---|
aField | The name of the field |
aData | The data associated with the field |
CMetaData * | NewL | ( | RReadStream & | aStream | ) | [static] |
Construct a new CMetaData from a data stream
Parameters | |
---|---|
aStream | The stream to read the CMetaData object from |