Namespaces

Variants
Actions

Please note that as of October 24, 2014, the Nokia Developer Wiki will no longer be accepting user contributions, including new entries, edits and comments, as we begin transitioning to our new home, in the Windows Phone Development Wiki. We plan to move over the majority of the existing entries over the next few weeks. Thanks for all your past and future contributions.

KAlarmClockOne API

From Wiki
Jump to: navigation, search
Article Metadata
Code ExampleCompatibility
Platform(s):
FNWiki
Article
Created: ltomuta (16 Jun 2007)
Last edited: hamishwillee (02 Feb 2012)


Note.pngNote: :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

File:AlarmNotification.zip

 

Was this page helpful?

Your feedback about this content is important. Let us know what you think.

 

Thank you!

We appreciate your feedback.

×