diff -r 48780e181b38 -r 578be2adaf3e Symbian3/PDK/Source/GUID-41F1AED1-7BE6-42CF-BC4A-E913A6F2D5E6.dita --- a/Symbian3/PDK/Source/GUID-41F1AED1-7BE6-42CF-BC4A-E913A6F2D5E6.dita Tue Jul 20 12:00:49 2010 +0100 +++ b/Symbian3/PDK/Source/GUID-41F1AED1-7BE6-42CF-BC4A-E913A6F2D5E6.dita Fri Aug 13 16:47:46 2010 +0100 @@ -1,32 +1,32 @@ - - - - - -Deleting -an AlarmIntroduction to topic for overview page or search -

The RASCliSession::AlarmDelete() API deletes -an alarm from the Alarm Server and returns KErrNone if successful -as shown in the following code fragment:

// RASCliSession::TheAlarmServerSession is the alarm server session -// TAlarmId::id is the unique identifier of the alarm the client needs to delete -TheAlarmServerSession.AlarmDelete( id );

Deleting an Alarm -by Category

You can delete multiple alarm objects by category and -can also specify the type of alarms within this category. The following code -fragment illustrates how to delete alarms by category:

// Delete all alarms -RArray<TAlarmCategory> categories; -CleanupClosePushL( categories ); -TheAlarmServerSession.GetAvailableCategoryListL( categories ); -const TInt KAlarmCategoriesCount = categories.Count(); -for( TInt i = 0; i<KAlarmCategoriesCount; ++i ) - { - const TAlarmCategory category = categories[i]; - TheAlarmServerSession.AlarmDeleteAllByCategory( category, EFalse ); - } -CleanupStack::PopAndDestroy( &categories );
+ + + + + +Deleting +an AlarmIntroduction to topic for overview page or search +

The RASCliSession::AlarmDelete() API deletes +an alarm from the Alarm Server and returns KErrNone if successful +as shown in the following code fragment:

// RASCliSession::TheAlarmServerSession is the alarm server session +// TAlarmId::id is the unique identifier of the alarm the client needs to delete +TheAlarmServerSession.AlarmDelete( id );

Deleting an Alarm +by Category

You can delete multiple alarm objects by category and +can also specify the type of alarms within this category. The following code +fragment illustrates how to delete alarms by category:

// Delete all alarms +RArray<TAlarmCategory> categories; +CleanupClosePushL( categories ); +TheAlarmServerSession.GetAvailableCategoryListL( categories ); +const TInt KAlarmCategoriesCount = categories.Count(); +for( TInt i = 0; i<KAlarmCategoriesCount; ++i ) + { + const TAlarmCategory category = categories[i]; + TheAlarmServerSession.AlarmDeleteAllByCategory( category, EFalse ); + } +CleanupStack::PopAndDestroy( &categories );
\ No newline at end of file