diff -r 43e37759235e -r 51a74ef9ed63 Symbian3/SDK/Source/GUID-3987D040-27F7-5226-96AC-D578ECA4C0A2.dita --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Symbian3/SDK/Source/GUID-3987D040-27F7-5226-96AC-D578ECA4C0A2.dita Wed Mar 31 11:11:55 2010 +0100 @@ -0,0 +1,16 @@ + + + + + +Callback Interfaces

The API uses two types of callback interfaces: change notifications, and progress/completion notifications.

Change notifications

The MCalChangeCallBack interface is implemented to monitor changes to calendar entries, such as the addition, deletion, and update of entries.

Call CCalSession::StartChangeNotification() to request change notifications. The following requests notifications of all changes for entries between 1 Jan 2005 and 1 Jan 2006.

// set up notification of all changes on all entries in 2005 +TTime startTime(TDateTime(2005, EJanuary, 0, 0, 0, 0, 0)); // start time +TTime endTime(startTime + TTimeIntervalYears(1)); // end time +// assume this object implements MCalChangeCallBack +session->StartChangeNotification(this, EChangeEntryAll, ETrue, startTime, endTime);

The observer's implementation of MCalChangeCallBack::CalChangeNotification() is called whenever a change to the calendar entries occurs that matches the specified criteria.

You can disable a change notification by using CCalSession::StopChangeNotification().

Progress and completion notifications

The MCalProgressCallBack interface is used for monitoring the progress and completion of asynchronous tasks, such as the addition, deletion or updating of a calendar entry carried out on the entry view or instance view. MCalProgressCallBack::Progress() reports the percentage completion of the current task. MCalProgressCallBack::Completed() is called when the current task is completed.

\ No newline at end of file