Symbian
Symbian OS Library

SYMBIAN OS V9.3

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



Location: caldataexchange.h
Link against: calinterimapi.lib

Class CCalDataExchange

class CCalDataExchange : public CBase;

Description

This class provides functionality for importing and exporting vCal entries.

Derivation

Members

Defined in CCalDataExchange:
ExportAsyncL(), ExportL(), ImportAsyncL(), ImportL(), ImportL(), ImportL(), NewL(), ~CCalDataExchange()

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


Construction and destruction


NewL()

Capability: Illegal

static IMPORT_C CCalDataExchange *NewL(CCalSession &aSession);

Description

Allocates and constructs a CCalDataExchange object.

Parameters

CCalSession &aSession

The handle to the calender session.

Return value

CCalDataExchange *

A pointer to the new synchronisation object.


~CCalDataExchange()

Capability: Illegal

IMPORT_C ~CCalDataExchange();

Description

Destructor

[Top]


Member functions


ImportL()

Capability: WriteUserData

IMPORT_C void ImportL(TUid aDataFormat, RReadStream &aReadStream, RPointerArray< CCalEntry > &aCalEntryArray);

Description

Imports data of aDataFormat type and returns an array of CCalEntries corresponding to this data

Currently only VCal 1.0 (with extensions) is supported. The vCalendar is read from the read stream specified and its entities are converted into CCalEntries and passed back in the array parameter aCalEntryArray.

Parameters

TUid aDataFormat

Specifies the format of the data to be imported. Currently this must be KUidVCalendar (see CalDataFormat.h)

RReadStream &aReadStream

The read stream which contains the (vCalendar) data.

RPointerArray< CCalEntry > &aCalEntryArray

On return, a list of the calender entries which were imported. The list contains the vEvents followed by the vTodos and are specific to the data format


ImportL()

Capability: WriteUserData

IMPORT_C void ImportL(TUid aDataFormat, RReadStream &aReadStream, RPointerArray< CCalEntry > &aCalEntryArray, TInt aFlags);

Description

Imports data of aDataFormat type and returns an array of CCalEntries corresponding to this data

Currently only VCal 1.0 (with extensions) is supported. The vCalendar is read from the read stream specified and its entities are converted into CCalEntries and passed back in the array parameter aCalEntryArray.

Parameters

TUid aDataFormat

Specifies the format of the data to be imported. Currently this must be KUidVCalendar (see CalDataFormat.h)

RReadStream &aReadStream

The read stream which contains the (vCalendar) data.

RPointerArray< CCalEntry > &aCalEntryArray

On return, a list of the calender entries which were imported. The list contains the vEvents followed by the vTodos and are specific to the data format

TInt aFlags

controls the behaviour of the parser during the import process.


ExportL()

Capability: ReadUserData

IMPORT_C void ExportL(TUid aDataFormat, RWriteStream &aWriteStream, RPointerArray< CCalEntry > &aCalEntryArray);

Description

Exports data of aDataFormat type from an array of CCalEntries corresponding to this data

Currently only VCal 1.0 (with extensions) is supported. The entry is exported either as a vTodo (if it is a to-do), or as a vEvent. The exported property values are converted from Unicode into the character set indicated by the last parameter (UTF-8 by default).

Parameters

TUid aDataFormat

Specifies the format of the data to be exported. Currently this must be KUidVCalendar (see CalDataFormat.h)

RWriteStream &aWriteStream

The stream to which the calender entries should be externalised.

RPointerArray< CCalEntry > &aCalEntryArray

The array of calender entries to export.


ImportL()

Capability: WriteUserData

IMPORT_C void ImportL(TUid aDataFormat, RReadStream &aReadStream, RPointerArray< CCalEntry > &aCalEntryArray, TInt aFlags, TInt aNumEntries);

Description

Imports data of aDataFormat type and returns an array of a selected number of CCalEntries corresponding to this data.

Currently only VCal 1.0 (with extensions) is supported. The vCalendar is read from the read stream specified and its entities are converted into CCalEntries and passed back in the array parameter aCalEntryArray.

Parameters

TUid aDataFormat

Specifies the format of the data to be imported. Currently this must be KUidVCalendar (see CalDataFormat.h)

RReadStream &aReadStream

The read stream which contains the (vCalendar) data.

RPointerArray< CCalEntry > &aCalEntryArray

On return, a list of the calender entries which were imported. The list contains the vEvents followed by the vTodos and are specific to the data format

TInt aFlags

controls the behaviour of the parser during the import process.

TInt aNumEntries

Specifies how many entries are to be imported at once.


ImportAsyncL()

Capability: WriteUserData

IMPORT_C void ImportAsyncL(TUid aDataFormat, RReadStream &aReadStream, RPointerArray< CCalEntry > &aCalEntryArray, MCalDataExchangeCallBack &aObserver, TInt aFlags);

Description

Asynchronously imports data of aDataFormat type and returns an array of CCalEntries corresponding to this data

Currently only VCal 1.0 (with extensions) is supported. The vCalendar is read from the read stream specified and its entities are converted into CCalEntries and passed back in the array parameter aCalEntryArray.

Parameters

TUid aDataFormat

Specifies the format of the data to be imported. Currently this must be KUidVCalendar (see CalDataFormat.h)

RReadStream &aReadStream

The read stream which contains the (vCalendar) data.

RPointerArray< CCalEntry > &aCalEntryArray

On return, a list of the calender entries which were imported. The list contains the vEvents followed by the vTodos and are specific to the data format

MCalDataExchangeCallBack &aObserver

Callback class to indicate the progress of the import and when it has completed.

TInt aFlags

controls the behaviour of the parser during the import process.


ExportAsyncL()

Capability: ReadUserData

IMPORT_C void ExportAsyncL(TUid aDataFormat, RWriteStream &aWriteStream, RPointerArray< CCalEntry > &aCalEntryArray, MCalDataExchangeCallBack &aObserver);

Description

Asynchronously exports data of aDataFormat type from an array of CCalEntries corresponding to this data

Currently only VCal 1.0 (with extensions) is supported. The entry is exported either as a vTodo (if it is a to-do), or as a vEvent. The exported property values are converted from Unicode into the character set indicated by the last parameter (UTF-8 by default).

Parameters

TUid aDataFormat

Specifies the format of the data to be exported. Currently this must be KUidVCalendar (see CalDataFormat.h)

RWriteStream &aWriteStream

The stream to which the calender entries should be externalised.

RPointerArray< CCalEntry > &aCalEntryArray

The array of calender entries to export.

MCalDataExchangeCallBack &aObserver

Callback class to indicate the progress of the import and when it has completed.