Hi Symbianyucca,
I followed this link http://wiki.forum.nokia.com/index.ph...o_create_alarm to change the alarm clock time. but its different, this link plays the tone set for Calendar (even we change the clock alarm tone), every after the time interval.
here is the code
Code:
case ECommand1:
{
SetAlarmTime();
}
break;
case ECommand2:
{
//set sound file
iErrCode = iRepository->Get(KClockAppSoundFile, iDispVal);
if (iErrCode == KErrNone)
{
iRepository->Set(KClockAppSoundFile, KAlarmSound2);
}
else
{
iDispVal.Num(iErrCode);
iEikonEnv->AlertWin(_L("error"), iDispVal);
}
}
break;
void CAlarmClockAppUi::SetAlarmTime()
{
iSession.Connect();
TASShdAlarm iAlarm; //Alarm object
TTime ihomeTime;
ihomeTime.HomeTime(); // Get Current Hometime(local time set in mobile)
TInt interval;
// interval – Give seconds after which alarm should expire
interval =61;
TTimeIntervalSeconds intervalSecs(interval);
//Returns the time alarm is scheduled to expire
TTime& iNDT = iAlarm.NextDueTime();
//Set the NextDueTime in which alarm will expire
iNDT = ihomeTime + intervalSecs;
TAlarmMessage& imessage(iAlarm.Message());
imessage.Copy(_L("Alarm")); //Alarm message
iSession.AlarmAdd(iAlarm);
iSession.Close();
}
Is there any way i could change the Calendar Tone.