phpgroupware-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Phpgroupware-cvs] sync/inc/class.ipc_sync.inc.php, 1.35


From: nomail
Subject: [Phpgroupware-cvs] sync/inc/class.ipc_sync.inc.php, 1.35
Date: Tue, 6 Jul 2004 12:11:40 +0200

Update of /sync/inc
Modified Files:
        Branch: 
          class.ipc_sync.inc.php

date: 2004/07/06 10:11:40;  author: mleonhardt;  state: Exp;  lines: +25 -28

Log Message:
- removed unused deleteClientMappings function
- documentation
- extended conflicthandling-ui
=====================================================================
Index: sync/inc/class.ipc_sync.inc.php
diff -u sync/inc/class.ipc_sync.inc.php:1.34 
sync/inc/class.ipc_sync.inc.php:1.35
--- sync/inc/class.ipc_sync.inc.php:1.34        Thu Jul  1 08:46:44 2004
+++ sync/inc/class.ipc_sync.inc.php     Tue Jul  6 10:11:40 2004
@@ -473,27 +473,6 @@
     return  $this->bo->addClientMappings($deviceid, $source, $mapping);
   }
   
- /**
-  * delete mapping entries of the last sync with this device
-  *
-  * @param integer $deviceid is the deviceid of the device which whant to 
-  *        do the sync
-  * @param string $source Source-URI of the source to sync
-  * @param array $deletedLUIDs - array of the Items Unique Identifier (string) 
LUIDs which are 
-  *        deleted
-  * @return boolean true if successful 
-  */
-  
-  function deleteClientMappings($deviceid, $source, $deletedLUIDs) 
-  {
-    if ($this->debug)
-      error_log("deleteClientMappings: $deviceid, $source, $deletedLUIDs");
-    
-    // not used in our implementation
-    // mapping is deleted in removeSyncItem already
-    return true;
-  }
-  
  /*
   * handle a detected conflict
   *
@@ -522,9 +501,19 @@
   }
   
  /*
-  * //Tdodo: !! add documentation
+  * Set the prefered Mimetypes of this source
+  *
+  * this callback function is called while parsing the syncml-xml 
device-/sourceinfo, so we save
+  * the submitted info to session-var for later use
   * 
-  */ 
+  * @param string $deviceuri Unique Device URI of the sync device i.e.: 
'a95e8a09-4af5-4319-9324-06f4fed11c37'
+  * @param array $sourceinfo holds the prefered mimetype and version of the 
requested mimetype (RX) <br>
+  * and the transmitted mimetype and version (TX)<br>
+  * i.e.: array('contentType.RX.type' => 'text/vcard', 
'contentType.RX.version' => '3.0', 'SourceInfo.targetUri' => 'Contacts', 
'contentType.TX.version' => '3.0', 'contentType.TX.type' => 'text/vcard'));
+  * @return integer <> -1 in case of success
+  * 
+  */
+   
   function setPrefSourceInfo($deviceuri, $sourceinfo)
   {
     if ($this->debug)
@@ -537,13 +526,21 @@
   }  
   
  /*
-  * //Tdodo: !! add documentation
+  * submit some info about the sync device (momentarily not filled with data)
   * 
-  */ 
-    function setDevInf($deviceuri, $devicename)
+  * this callback function is called while parsing the syncml-xml 
device-/sourceinfo, so we save
+  * the submitted info to session-var for later use
+
+  * @param string $deviceuri Unique Device URI of the sync device i.e.: 
'a95e8a09-4af5-4319-9324-06f4fed11c37'
+  * @param array $deviceinfo holds information about the sync device 
+  * @return integer <> -1 in case of success
+  * 
+  */
+   
+  function setDevInf($deviceuri, $deviceinfo)
   {
     if ($this->debug)
-      error_log("setDevInf($deviceuri, $devicename)");
+      error_log("setDevInf($deviceuri, $deviceinfo)");
     
     return 1;
   }  




reply via email to

[Prev in Thread] Current Thread [Next in Thread]