140 } |
140 } |
141 if (iEntryType == MCalChangeCallBack2::EChangeEntryEvent && aChange.iEntryType == CCalEntry::ETodo) |
141 if (iEntryType == MCalChangeCallBack2::EChangeEntryEvent && aChange.iEntryType == CCalEntry::ETodo) |
142 { |
142 { |
143 return EFalse; |
143 return EFalse; |
144 } |
144 } |
145 |
145 |
|
146 // Check for the requested entry type and the change type. |
|
147 // Don't notify clients which are listening for event and |
|
148 // to-do notifictaions when note event is modified. |
|
149 if ( ((iEntryType == MCalChangeCallBack2::EChangeEntryEvent) || |
|
150 (iEntryType == MCalChangeCallBack2::EChangeEntryTodo)) && |
|
151 (aChange.iEntryType == CCalEntry::ENote)) |
|
152 { |
|
153 return EFalse; |
|
154 } |
|
155 |
|
156 // Notify clients which are listening for event type note modifications. |
|
157 if (iEntryType == MCalChangeCallBack2::EChangeEntryNote && |
|
158 aChange.iEntryType == CCalEntry::ENote) |
|
159 { |
|
160 return ETrue; |
|
161 } |
|
162 |
146 // Check the entry is within the time range specified by the filter |
163 // Check the entry is within the time range specified by the filter |
147 // aChange.iRepeatRule gives the repeat data for the newly stored entry. If this operation is an update, |
164 // aChange.iRepeatRule gives the repeat data for the newly stored entry. If this operation is an update, |
148 // then aChange.iOriginalRepeatRule gives the repeat data for the old entry. |
165 // then aChange.iOriginalRepeatRule gives the repeat data for the old entry. |
149 TBool entryInTimeRange = CheckChangeWithinRangeL(aChange.iRepeatRule, aChange.iStartTimeOfEntryUtc, aChange.iEndTimeOfEntryUtc); |
166 TBool entryInTimeRange = CheckChangeWithinRangeL(aChange.iRepeatRule, aChange.iStartTimeOfEntryUtc, aChange.iEndTimeOfEntryUtc); |
150 TBool originalEntryInTimeRange = CheckChangeWithinRangeL(aChange.iOriginalRepeatRule, aChange.iOriginalStartTimeUtc, aChange.iOriginalEndTimeUtc); |
167 TBool originalEntryInTimeRange = CheckChangeWithinRangeL(aChange.iOriginalRepeatRule, aChange.iOriginalStartTimeUtc, aChange.iOriginalEndTimeUtc); |