[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-pim
Subject:    Re: [Kde-pim] Apple iCal & korganizer..
From:       David Jarvie <lists () astrojar ! org ! uk>
Date:       2002-10-10 20:33:47
[Download RAW message or body]

On Thursday 10 Oct 2002 1:58 pm, Cornelius Schumacher wrote:
> On Thursday 10 October 2002 14:25, Guenter Schwann wrote:
> > How should the compatibility look like?
> > Is it enough if it is done like this when loading a file:
> >
> > // compatibility for korganizer < 3.1
> > if (event->doesFloat()){
> >   if (event->dtStart()==event->dtEnd() ) {
> >     QDateTime qdt = event->dtStart();
> >     qdt.addDay(1);
> >     event->setDtEnd(qdt);
> >   }
> > }
>
> This doesn't work for multi-day events.
>
> I think we have to explicitly check for the version in the PRODID and
> adjust the dates for older versions. I would like to introduce a Compat
> class in libkcal which takes care of such issues in an encapuslated way and
> doesn't clutter the code with if/else statements. If I find the time I will
> do this today.

In case you don't think of it, there are already some bits of code for 
compatibility with older versions in the recurrence code. Presumably these 
ought to go into the new Compat class as well?

-- 
David Jarvie
_______________________________________________
kde-pim mailing list
kde-pim@mail.kde.org
http://mail.kde.org/mailman/listinfo/kde-pim
kde-pim home page at http://pim.kde.org/
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic