clock2/clockui/uimodel/src/clkuialarmmodel.cpp
branchRCL_3
changeset 18 d68a4b5d5885
parent 0 f979ecb2b13e
equal deleted inserted replaced
16:55d60436f00b 18:d68a4b5d5885
    99     
    99     
   100     return errorVal;
   100     return errorVal;
   101     }
   101     }
   102 
   102 
   103 // ---------------------------------------------------------
   103 // ---------------------------------------------------------
       
   104 // CClkUiAlarmModel::StopClockAlarm
       
   105 // rest of the details are commented in the header
       
   106 // ---------------------------------------------------------
       
   107 //
       
   108 EXPORT_C TInt CClkUiAlarmModel::AlarmRemoveSnooze ( TAlarmId aAlarmId )
       
   109     {
       
   110 
       
   111     TInt returnVal( KErrNone );
       
   112     SClkAlarmInfo alarmInfo;
       
   113     returnVal = ClockAlarmInfo( aAlarmId, alarmInfo);
       
   114     if ( returnVal != KErrNone )
       
   115         {
       
   116         return returnVal;
       
   117         }
       
   118     returnVal = iAlarmSrvSes.AlarmDelete( aAlarmId );
       
   119     if ( returnVal != KErrNone )
       
   120         {
       
   121         return returnVal;
       
   122         }
       
   123     alarmInfo.iState = EAlarmStateInPreparation;
       
   124     alarmInfo.iAlarmTime = alarmInfo.iOrigExpiryTime;
       
   125     return ClockAlarmSet( alarmInfo );    
       
   126     
       
   127     }
       
   128 
       
   129 // ---------------------------------------------------------
   104 // CClkUiAlarmModel::ClockAlarmEnable
   130 // CClkUiAlarmModel::ClockAlarmEnable
   105 // rest of the details are commented in the header
   131 // rest of the details are commented in the header
   106 // ---------------------------------------------------------
   132 // ---------------------------------------------------------
   107 //
   133 //
   108 EXPORT_C TInt CClkUiAlarmModel::ClockAlarmEnable( TAlarmId aAlarmId, TAlarmStatus aStatus )
   134 EXPORT_C TInt CClkUiAlarmModel::ClockAlarmEnable( TAlarmId aAlarmId, TAlarmStatus aStatus )