[Kde-pim] Re: KCalCore::Calendar::dissociateOccurrence() does not set the incidence UID / RecurrenceId

Alvaro Manera alvaro.manera at nokia.com
Wed Jul 6 09:32:19 BST 2011


On Wednesday 06 July 2011 11:14:50 ext Dumez, Christophe wrote:
> Hi,
> 
> I'm maintaining KCal-EDS in MeeGo, which relies on KCalCore.
> When using KCalCore::Calendar::dissociateOccurrence(), I noticed that
> it does not set the UID / RecurrenceId of the returned detached
> occurrence. Is that the expected behavior for this method?
> 
> I personally would consider this as bug since I cannot think of any
> reason why we would want this method not the set the UID /
> RecurrenceID of the returned occurrence. This is error-prone IMHO
> because if the caller adds the returned incidence to the calendar
> without properly setting the UID/RecurrenceId first, the incidence is
> not recognized as an occurrence (exception) of the original recurrence
> event.
> 
> Could anyone tell me if this is the expected behavior? If so, I
> believe that this should be clearly stated in the documentation.
> If not, I will be happy to file a bug report and submit a patch.
> 
> Thanks in advance,


In mKCal, the ExtendedCalendar sets the RecurrenceId to the proper value, and 
the UID is of course the same as the "parent" recurrence.

_______________________________________________
KDE PIM mailing list kde-pim at kde.org
https://mail.kde.org/mailman/listinfo/kde-pim
KDE PIM home page at http://pim.kde.org/



More information about the kde-pim mailing list