Changeset 1766

Show
Ignore:
Timestamp:
02/19/07 18:57:16 (22 months ago)
Author:
dgollub
Message:

Syncing of contact seems to work somehow...
Detecting of deleted entries is broken.
Acutally code was stolen from file-sync .. but
this is going to deleted _everything_

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • plugins/kdepim/src/kaddrbook.cpp

    r1764 r1766  
    173173                // needs to be reported 
    174174                osync_change_set_hash(change, hash.data()); 
     175 
    175176                OSyncChangeType changetype = osync_hashtable_get_changetype(hashtable, uid.local8Bit(), hash.data()); 
     177                osync_change_set_changetype(change, changetype); 
    176178                if (OSYNC_CHANGE_TYPE_UNMODIFIED != changetype) { 
    177179                        osync_context_report_change(ctx, change); 
     
    180182        } 
    181183 
     184        // FIXME: the osync_hashtable_get_deleted reports _EVERYTHING_ 
     185        // ... so really everything got deleted... i wonder how this worked for the file-sync plugin. 
     186        /* 
    182187        int i; 
    183188        char **uids = osync_hashtable_get_deleted(hashtable); 
    184189        for (i=0; uids[i]; i++) { 
     190                osync_trace(TRACE_INTERNAL, "going to delete entry with uid: %s", uids[i]); 
    185191                OSyncChange *change = osync_change_new(&error); 
    186192                if (!change) { 
     
    215221        } 
    216222        g_free(uids); 
     223        */ 
    217224 
    218225        osync_trace(TRACE_EXIT, "%s", __func__);