diff -r 43e37759235e -r 51a74ef9ed63 Symbian3/SDK/Source/GUID-41F1AED1-7BE6-42CF-BC4A-E913A6F2D5E6.dita --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Symbian3/SDK/Source/GUID-41F1AED1-7BE6-42CF-BC4A-E913A6F2D5E6.dita Wed Mar 31 11:11:55 2010 +0100 @@ -0,0 +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 );
+
\ No newline at end of file