#include <caf/embeddedobject.h>
Link against: cafutils.lib
class ContentAccess::CEmbeddedObject : public CBase |
Public Member Functions | |
---|---|
virtual | ~CEmbeddedObject() |
IMPORT_C void | ExternalizeL(RWriteStream &) |
IMPORT_C const TDesC8 & | MimeType() |
IMPORT_C const TDesC & | Name() |
IMPORT_C CEmbeddedObject * | NewL(const TDesC &, const TDesC &, const TDesC8 &, TEmbeddedType) |
IMPORT_C CEmbeddedObject * | NewL(const TDesC &, const TDesC8 &, TEmbeddedType) |
IMPORT_C CEmbeddedObject * | NewL(RReadStream &) |
IMPORT_C TEmbeddedType | Type() |
IMPORT_C const TDesC & | UniqueId() |
Represents a content object embedded within a file The agent defined uniqueId field describes the location of the object within the file.
IMPORT_C void | ExternalizeL | ( | RWriteStream & | aStream | ) | const |
Allow the class write itself out to a stream
Parameters | |
---|---|
aStream | The stream to write to |
IMPORT_C const TDesC8 & | MimeType | ( | ) | const |
Mime type of the object
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 | |
---|---|
aUniqueId | The UniqueId of the embedded object |
aName | A user friendly name for the object |
aMimeType | The mime type of the object (if it not a container object) |
aType | The type of object (Content, container, agentspecific etc) |
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 | |
---|---|
aUniqueId | The UniqueId of the embedded object |
aMimeType | The mime type of the object (if it not a container object) |
aType | The type of object (Content, container, agentspecific etc) |
IMPORT_C CEmbeddedObject * | NewL | ( | RReadStream & | aStream | ) | [static] |
Create a new CEmbeddedObject from a stream
Parameters | |
---|---|
aStream | The stream to read the CEmbeddedObject from |