calendarui/editors/src/calenunifiededitorcontrol.cpp
branchRCL_3
changeset 5 42814f902fe6
parent 0 f979ecb2b13e
child 14 21239b3bcd78
equal deleted inserted replaced
0:f979ecb2b13e 5:42814f902fe6
  1476     
  1476     
  1477     CleanupStack::PopAndDestroy();
  1477     CleanupStack::PopAndDestroy();
  1478     
  1478     
  1479     TRACE_EXIT_POINT;
  1479     TRACE_EXIT_POINT;
  1480     }
  1480     }
  1481 
  1481 // -----------------------------------------------------------------------------
       
  1482 // CCalenUnifiedEditorControl::HandleErrorL()
       
  1483 // Handles errors. This function may be called on saving note.
       
  1484 // (other items were commented in a header).
       
  1485 // -----------------------------------------------------------------------------
       
  1486 //
       
  1487 void CCalenUnifiedEditorControl::HandleErrorL(const TInt& aError)
       
  1488     {
       
  1489     TRACE_ENTRY_POINT;
       
  1490     if( aError == CCalenEditorDataHandler::EFormErrDurationGreaterThanRepeatInterval )
       
  1491         {
       
  1492         iUnifiedEditor.TryChangeFocusToL(ECalenEditorRepeat);
       
  1493         }
       
  1494     else if( aError == CCalenEditorDataHandler::EFormErrOutOfSequence )
       
  1495         {
       
  1496         iUnifiedEditor.TryChangeFocusToL(ECalenEditorStartDate);
       
  1497         }
       
  1498     else if( aError == CCalenEditorDataHandler::EFormErrOverlapsExistingInstance )
       
  1499         {
       
  1500         iUnifiedEditor.TryChangeFocusToL(ECalenEditorStartDate);
       
  1501         }
       
  1502     else
       
  1503         {
       
  1504         if( aError == CCalenEditorDataHandler::EFormErrInstanceAlreadyExistsOnThisDay )
       
  1505             {   
       
  1506             iUnifiedEditor.TryChangeFocusToL(ECalenEditorStartDate);
       
  1507             }    
       
  1508         }
       
  1509 
       
  1510     if (iReminderField->HandleErrorL(aError) )
       
  1511         {
       
  1512         TRACE_EXIT_POINT;
       
  1513         return;
       
  1514         }
       
  1515     if ( iRepeatField->HandleErrorL(aError) )
       
  1516         {
       
  1517         TRACE_EXIT_POINT;
       
  1518         return;
       
  1519         }
       
  1520 
       
  1521     TRACE_EXIT_POINT;
       
  1522     }
  1482 // End of file
  1523 // End of file
       
  1524 
       
  1525