clock2/clockui/uimodel/src/clkuialarmmodel.cpp
branchRCL_3
changeset 30 d68a4b5d5885
parent 0 f979ecb2b13e
child 67 1539a383d7b6
--- 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
 // ---------------------------------------------------------