Symbian
Symbian Developer Library

SYMBIAN OS V9.4

Feedback

[Index] [Previous] [Next]

#include <calcontent.h>

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(CCalContent *) (such as a link to an internet radio station, or a small animated icon).

Derivation

Members

Defined in CCalContent:

Inherited from CBase:

See also:


Construction and destruction


NewL()

IMPORT_C static CCalContent* NewL();

Description

Constructor.

Return value

CCalContent *

Pointer to a newly created content object


~CCalContent()

IMPORT_C ~CCalContent();

Description

Destructor.

[Top]


Member functions


SetContentL(TDesC8 *,TDesC8 *,CCalContent::TDisposition)

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()const

IMPORT_C const TDesC8& Content() const;

Description

Gets the data set by CCalContent::SetContentL(TDesC8 *,TDesC8 *,CCalContent::TDisposition).

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()const

IMPORT_C const TDesC8& MimeType() const;

Description

Gets the MIME type set by CCalContent::SetContentL(TDesC8 *,TDesC8 *,CCalContent::TDisposition).

Return value

const TDesC8 &

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


Disposition()const

IMPORT_C TDisposition Disposition() const;

Description

Gets the disposition set by CCalContent::SetContentL(TDesC8 *,TDesC8 *,CCalContent::TDisposition).

Return value

CCalContent::TDisposition

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