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

List:       kde-pim
Subject:    Re: [Kde-pim] Move KOrganizer to new resource framework
From:       Cornelius Schumacher <schumacher () kde ! org>
Date:       2003-01-14 14:44:08
[Download RAW message or body]

On Tuesday 14 January 2003 14:48, Guenter Schwann wrote:
> On Tuesday 14 January 2003 14:16, Steffen Hansen wrote:
> > The fromString() method in the patch seems cool, but the existing
> > ICalFormat::toString( i ); is not what I want. It omits the
> > BEGIN:VCALENDAR ... and only writes the incidence. We still need the
> > data to be surrounded with BEGIN::VCALENDAR and PRODID and whatnot.
> >
> > How would I do that?
>
> My next proposal...
> And again: THIS IS UNTESTED (I can only say, that it compiles)
>
> Now there is
> Incidence *ICalFormat::fromString( const QString &text )
> and
> QString ICalFormat::toICalString( Incidence *incidence )

What about

QString ICalFormat::toICalString( Incidence *incidence )
{
      CalendarLocal cal;
      cal.addIncidence( incidence->clone() );

      ICalFormat format;
      return format.toString( &cal );
}

?

-- 
Cornelius Schumacher <schumacher@kde.org>

_______________________________________________
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