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 ( TEmbeddedType aType ) [private]

Parameters

TEmbeddedType aType

~CEmbeddedObject()

~CEmbeddedObject ( ) [virtual]

destructor

Member Functions Documentation

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

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

Parameters

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

ExternalizeL(RWriteStream &)

IMPORT_C void ExternalizeL ( RWriteStream & aStream ) const

Allow the class write itself out to a stream

Parameters

RWriteStream & aStream The stream to write to

InternalizeL(RReadStream &)

void InternalizeL ( 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,
TEmbeddedType aType
) [static]

Create a new CEmbeddedObject with a different name and uniqueId

Parameters

const TDesC & aUniqueId The UniqueId of the embedded object
const TDesC & aName A user friendly name for the object
const TDesC8 & aMimeType The mime type of the object (if it not a container object)
TEmbeddedType aType The type of object (Content, container, agentspecific etc)

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

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

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

Parameters

const TDesC & aUniqueId The UniqueId of the embedded object
const TDesC8 & aMimeType The mime type of the object (if it not a container object)
TEmbeddedType aType The 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 & aStream The stream to read the CEmbeddedObject from

Type()

IMPORT_C TEmbeddedType Type ( ) 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]