ContentAccess::CEmbeddedObject Class Reference

class ContentAccess::CEmbeddedObject : public CBase

Represents a content object embedded within a file The agent defined uniqueId field describes the location of the object within the file.

Inherits from

  • ContentAccess::CEmbeddedObject

Constructor & Destructor Documentation

CEmbeddedObject(TEmbeddedType)

CEmbeddedObject(TEmbeddedTypeaType)[private]

Parameters

TEmbeddedType aType

~CEmbeddedObject()

~CEmbeddedObject()[virtual]

destructor

Member Functions Documentation

ConstructL(const TDesC &, const TDesC &, const TDesC8 &)

voidConstructL(const TDesC &aUniqueId,
const TDesC &aName,
const TDesC8 &aMimeType
)[private]

Parameters

const TDesC & aUniqueId
const TDesC & aName
const TDesC8 & aMimeType

ExternalizeL(RWriteStream &)

IMPORT_C voidExternalizeL(RWriteStream &aStream)const

Allow the class write itself out to a stream

Parameters

RWriteStream & aStreamThe stream to write to

InternalizeL(RReadStream &)

voidInternalizeL(RReadStream &aStream)[private]

Parameters

RReadStream & aStream

MimeType()

IMPORT_C const TDesC8 &MimeType()const

Mime type of the object

Name()

IMPORT_C const TDesC &Name()const

User friendly name of the object

NewL(const TDesC &, const TDesC &, const TDesC8 &, TEmbeddedType)

IMPORT_C CEmbeddedObject *NewL(const TDesC &aUniqueId,
const TDesC &aName,
const TDesC8 &aMimeType,
TEmbeddedTypeaType
)[static]

Create a new CEmbeddedObject with a different name and uniqueId

Parameters

const TDesC & aUniqueIdThe UniqueId of the embedded object
const TDesC & aNameA user friendly name for the object
const TDesC8 & aMimeTypeThe mime type of the object (if it not a container object)
TEmbeddedType aTypeThe type of object (Content, container, agentspecific etc)

NewL(const TDesC &, const TDesC8 &, TEmbeddedType)

IMPORT_C CEmbeddedObject *NewL(const TDesC &aUniqueId,
const TDesC8 &aMimeType,
TEmbeddedTypeaType
)[static]

Create a new CEmbeddedObject where the Name field is the same as the uniqueId

Parameters

const TDesC & aUniqueIdThe UniqueId of the embedded object
const TDesC8 & aMimeTypeThe mime type of the object (if it not a container object)
TEmbeddedType aTypeThe type of object (Content, container, agentspecific etc)

NewL(RReadStream &)

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

Create a new CEmbeddedObject from a stream

Parameters

RReadStream & aStreamThe stream to read the CEmbeddedObject from

Type()

IMPORT_C TEmbeddedTypeType()const

The type of object

UniqueId()

IMPORT_C const TDesC &UniqueId()const

The agent defined UniqueId

Member Data Documentation

TBuf8< KMaxDataTypeLength > iMimeType

TBuf8< KMaxDataTypeLength >iMimeType[private]

HBufC * iName

HBufC *iName[private]

TEmbeddedType iType

TEmbeddedType iType[private]

HBufC * iUniqueId

HBufC *iUniqueId[private]