Join Now

This page was last modified 13:16, 24 June 2008.

KAlarmClockOne API

From Forum Nokia Wiki

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());
}	
}
}

Example Application

AlarmNotification application

 
Powered by MediaWiki
     
     RDF Facets:
     
     
     qfnZtypeQUqfnTypeZCommunityContentQ
     qfnZtypeQUqfnTypeZWebpageQ
     qfnZtypeQUqfnTypeZWikiContentQ
     qmarsZlanguageQUxhttpE3aE2fE2fswE2enokiaE2ecomE2flanguageE2d1E2fenX