ContentAccess::CMetaDataArray Class Reference

class ContentAccess::CMetaDataArray : public CBase

Stores an array of CMetaData objects for use in a supplier import operation

It provides search and routines (for both 8 bit and Unicode) to find the value corresponding to a particular field in the array.

Applications should use the unicode search function whenever possible because it removes the risk of losing information during the unicode to 8 bit conversion.

Inherits from

  • ContentAccess::CMetaDataArray

Constructor & Destructor Documentation

CMetaDataArray()

CMetaDataArray()[private]

~CMetaDataArray()

~CMetaDataArray()[virtual]

Destructor

Member Functions Documentation

AddL(const TDesC8 &, const TDesC8 &)

IMPORT_C voidAddL(const TDesC8 &aField,
const TDesC8 &aData
)

Adds a new meta data,

Parameters

const TDesC8 & aFieldThe name used to index the value of interest
const TDesC8 & aDataThe data

AddL(const TDesC &, const TDesC &)

IMPORT_C voidAddL(const TDesC &aField,
const TDesC &aData
)

Adds a new meta data,

Parameters

const TDesC & aFieldThe name used to index the value of interest
const TDesC & aDataThe data

Count()

IMPORT_C TIntCount()const

The number of metadata objects in the list

ExternalizeL(RWriteStream &)

IMPORT_C voidExternalizeL(RWriteStream &aStream)const

Externalizes the CMetaDataArray object to a stream.

Parameters

RWriteStream & aStreamThe stream to write the header information to.

InternalizeL(RReadStream &)

voidInternalizeL(RReadStream &aStream)[private]

Parameters

RReadStream & aStream

NewL()

IMPORT_C CMetaDataArray *NewL()[static]

NewL(RReadStream &)

IMPORT_C CMetaDataArray *NewL(RReadStream &aStream)[static]

Construct a CMetaDataArray from a stream

Parameters

RReadStream & aStreamthe stream containing the metadata array

NewLC()

IMPORT_C CMetaDataArray *NewLC()[static]

SearchL(const TDesC &, TBool)

IMPORT_C const TDesC &SearchL(const TDesC &aField,
TBoolaMatchCase = EFalse
)const

Find the unicode data for a given unicode field.

Parameters

const TDesC & aFieldThe field to retrieve
TBool aMatchCase = EFalseETrue To perform case sensitive search, EFalse - To perform non case sensitive search

SearchL(const TDesC8 &, TBool)

IMPORT_C const TDesC8 &SearchL(const TDesC8 &aField8,
TBoolaMatchCase = EFalse
)const

Find the 8 bit data for a given 8 bit field.

Parameters

const TDesC8 & aField8The field to retrieve
TBool aMatchCase = EFalseETrue To perform case sensitive search, EFalse - To perform non case sensitive search

operator[](TInt)

IMPORT_C const CMetaData &operator[](TIntaIndex)const

Retrieves the MetaData at the given index

Parameters

TInt aIndexThe index of the meta-data

Member Data Documentation

RPointerArray< CMetaData > iArray

RPointerArray< CMetaData >iArray[private]

TInt iMaxFieldLength

TInt iMaxFieldLength[private]