diff -r 55d60436f00b -r d68a4b5d5885 clock2/clockui/uimodel/src/clkuialarmmodel.cpp --- a/clock2/clockui/uimodel/src/clkuialarmmodel.cpp Tue May 11 16:12:24 2010 +0300 +++ b/clock2/clockui/uimodel/src/clkuialarmmodel.cpp Tue May 25 12:41:10 2010 +0300 @@ -101,6 +101,32 @@ } // --------------------------------------------------------- +// CClkUiAlarmModel::StopClockAlarm +// rest of the details are commented in the header +// --------------------------------------------------------- +// +EXPORT_C TInt CClkUiAlarmModel::AlarmRemoveSnooze ( TAlarmId aAlarmId ) + { + + TInt returnVal( KErrNone ); + SClkAlarmInfo alarmInfo; + returnVal = ClockAlarmInfo( aAlarmId, alarmInfo); + if ( returnVal != KErrNone ) + { + return returnVal; + } + returnVal = iAlarmSrvSes.AlarmDelete( aAlarmId ); + if ( returnVal != KErrNone ) + { + return returnVal; + } + alarmInfo.iState = EAlarmStateInPreparation; + alarmInfo.iAlarmTime = alarmInfo.iOrigExpiryTime; + return ClockAlarmSet( alarmInfo ); + + } + +// --------------------------------------------------------- // CClkUiAlarmModel::ClockAlarmEnable // rest of the details are commented in the header // ---------------------------------------------------------