calendarui/caleneditor/src/caleneditordatahandler.cpp
changeset 55 2c54b51f39c4
parent 51 0b38fc5b94c6
child 57 bb2d3e476f29
equal deleted inserted replaced
51:0b38fc5b94c6 55:2c54b51f39c4
    21 #include <hbdataformmodelitem.h>
    21 #include <hbdataformmodelitem.h>
    22 
    22 
    23 // User Includes
    23 // User Includes
    24 #include "caleneditordatahandler.h"
    24 #include "caleneditordatahandler.h"
    25 #include "calendateutils.h"
    25 #include "calendateutils.h"
    26 #include "agendaentry.h"
    26 #include <agendaentry.h>
    27 #include "OstTraceDefinitions.h"
    27 #include "OstTraceDefinitions.h"
    28 #ifdef OST_TRACE_COMPILER_IN_USE
    28 #ifdef OST_TRACE_COMPILER_IN_USE
    29 #include "caleneditordatahandlerTraces.h"
    29 #include "caleneditordatahandlerTraces.h"
    30 #endif
    30 #endif
    31 
    31 
   245 	        && (mEditedEntry->repeatRule().type()
   245 	        && (mEditedEntry->repeatRule().type()
   246 	                == AgendaRepeatRule::InvalidRule)) {
   246 	                == AgendaRepeatRule::InvalidRule)) {
   247 		OstTraceFunctionExit0( CALENEDITORDATAHANDLER_ISREPEATRULEEDITED_EXIT );
   247 		OstTraceFunctionExit0( CALENEDITORDATAHANDLER_ISREPEATRULEEDITED_EXIT );
   248 		return false;
   248 		return false;
   249 	} else {
   249 	} else {
   250 		return ((mOriginalEntry->repeatRule().type() != 
   250 		return (mOriginalEntry->repeatRule() != mEditedEntry->repeatRule());
   251 				mEditedEntry->repeatRule().type())
       
   252 				|| (mOriginalEntry->repeatRule().until().date() != 
       
   253 				mEditedEntry->repeatRule().until().date()));
       
   254 	}
   251 	}
   255 }
   252 }
   256 
   253 
   257 /*!
   254 /*!
   258 	Returns true if the Description field has been edited, false otherwise.
   255 	Returns true if the Description field has been edited, false otherwise.