Symbian
Symbian OS Library

SYMBIAN OS V9.3

[Index] [Spacer] [Previous] [Next]



Location: calcontent.h
Link against: calinterimapi.lib

Class CCalContent

class CCalContent : public CBase;

Description

This class holds in memory 8-bit data of any type, or a link to 8-bit data such as a URI. The MIME type of the data may also be held to help callers determine the appropriate application to launch the content.

Because the data is held in memory, callers should only use this class to store small amounts of data or a URI to some content elsewhere.

This class can be used to set an alarm action using CCalAlarm::SetAlarmAction() (such as a link to an internet radio station, or a small animated icon).

Derivation

Members

Defined in CCalContent:
Content(), Disposition(), MimeType(), NewL(), SetContentL(), ~CCalContent()

Inherited from CBase:
Delete(), Extension_(), operator new()

See also:


Construction and destruction


NewL()

static IMPORT_C CCalContent *NewL();

Description

Constructor.

Return value

CCalContent *

Pointer to a newly created content object


~CCalContent()

IMPORT_C ~CCalContent();

Description

Destructor.

[Top]


Member functions


SetContentL()

IMPORT_C void SetContentL(TDesC8 *aSmallContent, TDesC8 *aContentMIMEType, CCalContent::TDisposition aContentDisposition);

Description

Takes ownership of the data or link to data.

A NULL pointer may be passed to this function as an argument if the caller does not want to specify a parameter. Any data or its MIME type already owned by this class will be deleted first.

Parameters

TDesC8 *aSmallContent

The data or link (URI).

TDesC8 *aContentMIMEType

The MIME type of the data or link (for example, text/image or text/http).

CCalContent::TDisposition aContentDisposition

Whether the content is data or a link to data.


Content()

IMPORT_C const TDesC8 &Content() const;

Description

Gets the data set by CCalContent::SetContentL().

Return value

const TDesC8 &

A reference to the data or link. If no data or link has been set, a NULL descriptor is returned.


MimeType()

IMPORT_C const TDesC8 &MimeType() const;

Description

Gets the MIME type set by CCalContent::SetContentL().

Return value

const TDesC8 &

A reference to the MIME type. If no MIME type has been set, a NULL descriptor is returned.


Disposition()

IMPORT_C TDisposition Disposition() const;

Description

Gets the disposition set by CCalContent::SetContentL().

Return value

TDisposition

The disposition of the data (whether the data is inline or a link).