class CCalDataExchange : public CBase |
This class provides functionality for importing and exporting vCal entries.
Public Member Functions | |
---|---|
~CCalDataExchange() | |
IMPORT_C void | ExportAsyncL(TUid, RWriteStream &, RPointerArray< CCalEntry > &, MCalDataExchangeCallBack &) |
IMPORT_C void | ExportL(TUid, RWriteStream &, RPointerArray< CCalEntry > &) |
IMPORT_C void | ImportAsyncL(TUid, RReadStream &, RPointerArray< CCalEntry > &, MCalDataExchangeCallBack &, TInt) |
IMPORT_C void | ImportL(TUid, RReadStream &, RPointerArray< CCalEntry > &) |
IMPORT_C void | ImportL(TUid, RReadStream &, RPointerArray< CCalEntry > &, TInt) |
IMPORT_C void | ImportL(TUid, RReadStream &, RPointerArray< CCalEntry > &, TInt, TInt) |
IMPORT_C CCalDataExchange * | NewL(CCalSession &) |
Private Member Functions | |
---|---|
CCalDataExchange() | |
void | ConstructL(CCalSession &) |
Private Attributes | |
---|---|
CCalDataExchangeImpl * | iImpl |
void | ConstructL | ( | CCalSession & | aSession | ) | [private] |
CCalSession & aSession |
IMPORT_C void | ExportAsyncL | ( | TUid | aDataFormat, |
RWriteStream & | aWriteStream, | |||
RPointerArray< CCalEntry > & | aCalEntryArray, | |||
MCalDataExchangeCallBack & | aObserver | |||
) |
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). capability
ReadUserData
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. |
IMPORT_C void | ExportL | ( | TUid | aDataFormat, |
RWriteStream & | aWriteStream, | |||
RPointerArray< CCalEntry > & | aCalEntryArray | |||
) |
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). capability
ReadUserData
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. |
IMPORT_C void | ImportAsyncL | ( | TUid | aDataFormat, |
RReadStream & | aReadStream, | |||
RPointerArray< CCalEntry > & | aCalEntryArray, | |||
MCalDataExchangeCallBack & | aObserver, | |||
TInt | aFlags | |||
) |
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. capability
WriteUserData
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. |
IMPORT_C void | ImportL | ( | TUid | aDataFormat, |
RReadStream & | aReadStream, | |||
RPointerArray< CCalEntry > & | aCalEntryArray | |||
) |
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. capability
WriteUserData
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 |
IMPORT_C void | ImportL | ( | TUid | aDataFormat, |
RReadStream & | aReadStream, | |||
RPointerArray< CCalEntry > & | aCalEntryArray, | |||
TInt | aFlags | |||
) |
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. capability
WriteUserData
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. |
IMPORT_C void | ImportL | ( | TUid | aDataFormat, |
RReadStream & | aReadStream, | |||
RPointerArray< CCalEntry > & | aCalEntryArray, | |||
TInt | aFlags, | |||
TInt | aNumEntries | |||
) |
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. capability
WriteUserData
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. |
IMPORT_C CCalDataExchange * | NewL | ( | CCalSession & | aSession | ) | [static] |
Allocates and constructs a CCalDataExchange object. capability
None
A pointer to the new synchronisation object.
CCalSession & aSession | The handle to the calender session. |