[Korganizer-devel] [Bug 136954] Reminders from outlook invites are set to unknown in exchange resources

Allen Winter winter at kde.org
Mon Dec 18 17:04:21 CET 2006


------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
         
http://bugs.kde.org/show_bug.cgi?id=136954         
winter kde org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |FIXED



------- Additional Comments From winter kde org  2006-12-18 17:04 -------
SVN commit 614667 by winterz:

Fix for "Reminders from outlook invites are set to unknown in exchange resources"
Patch from Uli.  Thanks!
Approved by Reinhold.

BUGS: 136954


 M  +20 -2     resourceexchange.cpp  


--- branches/KDE/3.5/kdepim/kresources/exchange/resourceexchange.cpp #614666:614667
 @ -403,12 +403,30  @
   return list;
 }
 
+/* Invoked by korgac when checking alarms. Always updates the cache. */
 Alarm::List ResourceExchange::alarms( const QDateTime &from, const QDateTime &to )
 {
   kdDebug(5800) << "ResourceExchange::alarms(" << from.toString() << " - " << to.toString() << ")\n";
   Alarm::List list;
-  if ( mCache )
-  	list = mCache->alarms( from, to );
+
+  QDate start = from.date();
+  QDate end = to.date();
+
+  if ( mCache ) {
+
+    /* Clear the cache */
+    Event::List oldEvents = mCache->rawEvents( start, end, false );
+
+    Event::List::ConstIterator it;
+    for( it = oldEvents.begin(); it != oldEvents.end(); ++it ) {
+      mCache->deleteEvent( *it );
+    }
+
+    /* Fetch events */
+    mClient->downloadSynchronous( mCache, start, end, false );
+
+    list = mCache->alarms( from, to );
+  }
   return list;
 }


More information about the Korganizer-devel mailing list