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

List:       kde-commits
Subject:    kdepim/kresources/opengroupware
From:       Till Adam <adam () kde ! org>
Date:       2004-11-01 1:19:25
Message-ID: 20041101011925.EF6B616C2D () office ! kde ! org
[Download RAW message or body]

CVS commit by tilladam: 

Yeah! Add, delete, change and get work with cache now.


  M +8 -3      kcal_resourceopengroupware.cpp   1.23


--- kdepim/kresources/opengroupware/kcal_resourceopengroupware.cpp  #1.22:1.23
@@ -341,6 +341,4 @@ void OpenGroupware::slotUploadJobResult(
     Incidence *i = ical.fromString( mIncidencesForUpload.front() );
     clearChange( i );
-    mCalendar.deleteIncidence( i );
-    saveCache();
     mIncidencesForUpload.pop_front();
   }
@@ -385,4 +383,5 @@ void OpenGroupware::slotJobResult( KIO::
         const QString &remote = KURL( mCurrentGetUrl ).path();
         const QString &local = idMapper().localId( remote );
+        kdDebug(7000) << "Remote: " << remote << " local: " << local << endl;
         if ( local.isEmpty() ) {
           idMapper().setRemoteId( i->uid(), remote );
@@ -480,4 +479,10 @@ void OpenGroupware::uploadNextIncidence(
   if ( !mIncidencesForUpload.isEmpty() ) {
     KURL url( mBaseUrl );
+    ICalFormat ical;
+    Incidence *i = ical.fromString( mIncidencesForUpload.front() );
+    const QString remote = idMapper().remoteId( i->uid() );
+    if ( !remote.isEmpty() )
+      url.setPath( remote );
+    else
     url.setPath( url.path() + "/Calendar/new.ics" );
     const QString inc = mIncidencesForUpload.front();


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

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