[Kde-pim] Question: KCal ResourceCalendar behavior

Kevin Krammer kevin.krammer at gmx.at
Wed Jan 30 20:32:08 GMT 2008


On Wednesday 30 January 2008, David Jarvie wrote:

> Updating an incidence in KCal::ResourceCalendar doesn't in itself save the
> incidence. But if you're using KCal::ResourceCached, the save policy can
> be set to automatically save whenever the calendar is updated, or to save
> at regular intervals. KOrganizer may be using this facility.

I am directly subclassing the base class KCal::ResourceCalendar, but similar 
to ResourceCached I am using a CalendarLocal internally for implementing the 
accessor functionality.

So my take is that KOrganizer itself is triggering the save on 
adding/changing.

> I'm not certain whether deletions are handled any differently.

It seems so.

In any case, directly modifying the items in Akonadi would fit it better, 
however since this is about backward compatability I wanted to make sure that 
applications don't manipulate the data without them knowing.

I guess I'll have to check what other resources do, e.g. the ones for 
groupware servers.

trunk/playground/pim/akonadi-kres/kcal if anyone is interested in having a 
look. Can be added in KOrganizer just like any other resource.

Cheers,
Kevin

-- 
Kevin Krammer, KDE developer, xdg-utils developer
KDE user support, developer mentoring
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/kde-pim/attachments/20080130/164f71e1/attachment.sig>
-------------- next part --------------
_______________________________________________
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