KAlarmClockOne API
Article Metadata
Code Example
Source file: Media:AlarmNotification.zip
Article
Created: ltomuta
(16 Jun 2007)
Last edited: hamishwillee
(02 Feb 2012)
Note: :This API is not part of the public SDK. It can be found in the SDK API Plug-in.
APIPurpose
KAlarmClockOne can be used to identify whether an alarm in the alarm server is a clock alarm or not.
Headers:
#include <almconst.h>
Use cases
It can be used to find out if an alarm is a clock alarm or not.
Example code
RArray<TAlarmId> ids;
iCliSession.GetAlarmIdListL(ids);
TASShdAlarm alarm;
for(TInt i = 0; i<ids.Count();i++)
{
TInt err ( KErrNone );
err = iCliSession.GetAlarmDetails( ids[i], alarm );
if( (!err))
{
// Check if alarm is clock alarm or not.KAlarmClockOne stands for clock alarm
if ( alarm.Category().iUid == KAlarmClockOne.iUid )
{
CEikonEnv::InfoWinL(_L("Clock Alarm"),alarm.Message());
}
else
{
CEikonEnv::InfoWinL(_L("Not Clock Alarm"),alarm.Message());
}
}
}


29 Sep
2009
Alarm Clock One API are useful to identify whether an alarm in the alarm server is a clock alarm or not. This article demonstrates the use of Alarm Clock One API to know whether alarm is a clock alarm or not. Note that this API, Alarm Clock One API, is not part of the public SDK. So you have to download it from SDK API Plug-in before using it. Furthermore, the author added a working demo project, which can be used for more detailed study of new opportunities for various kinds of experiments.