ContentAccess::CEmbeddedObject Class Reference

#include <caf/embeddedobject.h>

Link against: cafutils.lib

class ContentAccess::CEmbeddedObject : public CBase

Inherits from

  • ContentAccess::CEmbeddedObject

Detailed Description

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

Constructor & Destructor Documentation

~CEmbeddedObject ( )

~CEmbeddedObject()[virtual]

destructor

Member Function Documentation

ExternalizeL ( RWriteStream & )

IMPORT_C voidExternalizeL(RWriteStream &aStream)const

Allow the class write itself out to a stream

Parameters
aStreamThe stream to write to

MimeType ( )

IMPORT_C const TDesC8 &MimeType()const

Mime type of the object

Return Value
The mime type of the object or KNullDesC8() if this is a container object

Name ( )

IMPORT_C const TDesC &Name()const

User friendly name of the object

Return Value
The 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
aUniqueIdThe UniqueId of the embedded object
aNameA user friendly name for the object
aMimeTypeThe mime type of the object (if it not a container object)
aTypeThe type of object (Content, container, agentspecific etc)
Return Value
a CEmbeddedObject

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
aUniqueIdThe UniqueId of the embedded object
aMimeTypeThe mime type of the object (if it not a container object)
aTypeThe type of object (Content, container, agentspecific etc)
Return Value
a CEmbeddedObject

NewL ( RReadStream & )

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

Create a new CEmbeddedObject from a stream

Parameters
aStreamThe stream to read the CEmbeddedObject from
Return Value
a CEmbeddedObject

Type ( )

IMPORT_C TEmbeddedTypeType()const

The type of object

Return Value
The type

UniqueId ( )

IMPORT_C const TDesC &UniqueId()const

The agent defined UniqueId

Return Value
The uniqueId