diff -r 48780e181b38 -r 578be2adaf3e Symbian3/PDK/Source/GUID-7BB38C3E-BEA9-545B-AEC2-5E9078D0B8A2.dita --- a/Symbian3/PDK/Source/GUID-7BB38C3E-BEA9-545B-AEC2-5E9078D0B8A2.dita Tue Jul 20 12:00:49 2010 +0100 +++ b/Symbian3/PDK/Source/GUID-7BB38C3E-BEA9-545B-AEC2-5E9078D0B8A2.dita Fri Aug 13 16:47:46 2010 +0100 @@ -1,19 +1,19 @@ - - - - - -Setting the Alarm

You can assign an alarm to a calendar entry. CCalAlarm specifies the alarm type and the time prior to the scheduled event at which to activate the alarm.

The following shows how to create and initialise a CCalAlarm object, and use it to set an alarm on an entry.

// Set the alarm to a calendar entry -CCalAlarm* alarm = CCalAlarm::NewL(); // pointer to alarm -alarm->SetTimeOffset(5); //alarm is set to occur 5 minutes prior to the event -// set the name of alarm to ‘Buzzing Alarm’ -_LIT(KAlarmSoundName, "Buzzing Alarm"); -alarm->SetAlarmSoundNameL(KAlarmSoundName); -// set the alarm + + + + + +Setting the Alarm

You can assign an alarm to a calendar entry. CCalAlarm specifies the alarm type and the time prior to the scheduled event at which to activate the alarm.

The following shows how to create and initialise a CCalAlarm object, and use it to set an alarm on an entry.

// Set the alarm to a calendar entry +CCalAlarm* alarm = CCalAlarm::NewL(); // pointer to alarm +alarm->SetTimeOffset(5); //alarm is set to occur 5 minutes prior to the event +// set the name of alarm to ‘Buzzing Alarm’ +_LIT(KAlarmSoundName, "Buzzing Alarm"); +alarm->SetAlarmSoundNameL(KAlarmSoundName); +// set the alarm entry->SetAlarmL(alarm);

If no alarm sound is set, the default alarm sound is used.

To clear an already set alarm from an entry, pass NULL to CCalEntry::SetAlarmL().

\ No newline at end of file