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

List:       kde-commits
Subject:    KDE/kdepim/kresources/slox
From:       Tobias Koenig <tokoe () kde ! org>
Date:       2009-11-26 11:36:18
Message-ID: 1259235378.216246.8039.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 1054642 by tokoe:

Save the 'last_modified' field from the OX server
temporary and pass it when updating the incidence.

BUG: 174789


 M  +7 -0      kcalresourceslox.cpp  
 M  +1 -0      sloxbase.cpp  
 M  +1 -0      sloxbase.h  


--- trunk/KDE/kdepim/kresources/slox/kcalresourceslox.cpp #1054641:1054642
@@ -334,6 +334,11 @@
   WebdavHandler::addSloxElement( this, doc, prop, fieldName( ClientId ),
                                  mUploadedIncidence->uid() );
 
+  if ( type() == "ox" ) {
+    const QString lastModified = mUploadedIncidence->customProperty( "SLOX", "LastModified" );
+    WebdavHandler::addSloxElement( this, doc, prop, fieldName( LastModified ), lastModified );
+  }
+
   if ( mUploadIsDelete ) {
     if ( mUploadedIncidence->type() == "Event" ) {
       url.setPath( "/servlet/webdav.calendar/" + sloxId );
@@ -694,6 +699,8 @@
     parseReadRightsAttribute( e, incidence );
   } else if ( tag == fieldName( Categories ) ) {
     incidence->setCategories( text.split( QRegExp(",\\s*") ) );
+  } else if ( tag == fieldName( LastModified ) && type() == "ox" ) {
+    incidence->setCustomProperty( "SLOX", "LastModified", text );
   }
 }
 
--- trunk/KDE/kdepim/kresources/slox/sloxbase.cpp #1054641:1054642
@@ -29,6 +29,7 @@
   {"clientid", "client_id"},
   {"folderid", "folder_id"},
   {"lastsync", "lastsync"},
+  {"n/a", "last_modified"},
   {"objecttype", "objectmode"},
   {"sloxstatus", "object_status"},
   {"createfrom", "created_by"},
--- trunk/KDE/kdepim/kresources/slox/sloxbase.h #1054641:1054642
@@ -34,6 +34,7 @@
       ClientId,
       FolderId,
       LastSync,
+      LastModified,
       ObjectType,
       ObjectStatus,
       CreatedBy,
[prev in list] [next in list] [prev in thread] [next in thread] 

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