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

List:       kde-commits
Subject:    KDE/kdepim/kresources/slox
From:       Volker Krause <volker.krause () rwth-aachen ! de>
Date:       2005-11-12 16:47:32
Message-ID: 1131814052.733941.1717.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 479979 by vkrause:

Read the organizer field from [SL]OX, this fixes the annoying "You are not 
the organizer"-warnings.


 M  +3 -0      kcalresourceslox.cpp  
 M  +1 -1      sloxaccounts.cpp  
 M  +1 -0      sloxbase.cpp  
 M  +1 -0      sloxbase.h  


--- trunk/KDE/kdepim/kresources/slox/kcalresourceslox.cpp #479978:479979
@@ -682,6 +682,9 @@
       // 0 reminder -> disable alarm
       incidence->clearAlarms();
     }
+  } else if ( tag == fieldName( CreatedBy ) ) {
+    KABC::Addressee a = mAccounts->lookupUser( text );
+    incidence->setOrganizer( Person( a.formattedName(), a.preferredEmail() ) );
   } else if ( tag == fieldName( Participants ) ) {
     parseMembersAttribute( e, incidence );
   } else if ( tag == "readrights" ) {
--- trunk/KDE/kdepim/kresources/slox/sloxaccounts.cpp #479978:479979
@@ -212,7 +212,7 @@
       tag = tag.right( tag.length() - ( tag.find( ':' ) + 1 ) );
       QString value = e.text();
       if ( tag == "uid" ) id = value;
-      else if ( tag == "mail" ) a.insertEmail( value );
+      else if ( tag == "mail" ) a.insertEmail( value, true );
       else if ( tag == "forename" ) a.setGivenName( value );
       else if ( tag == "surename" ) a.setFamilyName( value );
     }
--- trunk/KDE/kdepim/kresources/slox/sloxbase.cpp #479978:479979
@@ -31,6 +31,7 @@
   {"lastsync", "lastsync"},
   {"objecttype", "objectmode"},
   {"sloxstatus", "object_status"},
+  {"createfrom", "created_by"},
   // incidence fields
   {"title", "title"},
   {"description", "note"},
--- trunk/KDE/kdepim/kresources/slox/sloxbase.h #479978:479979
@@ -36,6 +36,7 @@
       LastSync,
       ObjectType,
       ObjectStatus,
+      CreatedBy,
       IncidenceTitle, // incidence fields
       Description,
       Participants,
[prev in list] [next in list] [prev in thread] [next in thread] 

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