diff -r 43e37759235e -r 51a74ef9ed63 Symbian3/SDK/Source/GUID-A8EE55C2-0636-44E2-8B2B-05EA8D4A96A4.dita --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Symbian3/SDK/Source/GUID-A8EE55C2-0636-44E2-8B2B-05EA8D4A96A4.dita Wed Mar 31 11:11:55 2010 +0100 @@ -0,0 +1,31 @@ + + + + + +Obtaining +Alarm ID or Category List +

To retrieve a list of all alarms maintained within the +Alarm Server's queue, use GetAlarmIdListL as shown in the +following code fragment:

RArray<TAlarmId> alarmIds; +CleanupClosePushL( alarmIds ); +TheAlarmServerSession.GetAlarmIdListL( alarmIds );

You can retrieve +a list of all categories utilized within the alarm server using GetAvailableCategoryListL, +as shown in the following code fragment:

RArray<TAlarmCategory> categories; +TheAlarmServerSession.GetAvailableCategoryListL( categories );

Use GetAlarmIdListForCategoryL to +retrieve an array containing all, for example, Clock alarms, as shown in the +following code fragment:

//Get alarms with category +KASCliCategoryClockRArray<TAlarmId> alarms; +CleanupClosePushL( alarms ); +TheAlarmServerSession.GetAlarmIdListForCategoryL( KASCliCategoryClock, alarms );

You +can also retrieve a list of alarm IDs associated with alarms in a given state +using GetAlarmIdListByStateL, as shown in the following code +fragment:

RArray<TAlarmId> alarmIds; +TheAlarmServerSession.GetAlarmIdListByStateL( EAlarmStateSnoozed, alarmIds );
+
\ No newline at end of file