Changeset 43

Show
Ignore:
Timestamp:
12/10/04 17:09:37 (4 years ago)
Author:
ehabkost
Message:

Make kde-sync build again
- Removed kdeplugin.c from source tree, it is not used anymore

Location:
trunk/plugins/kdepim_sync/src
Files:
1 removed
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/plugins/kdepim_sync/src/kaddrbook.cpp

    r33 r43  
    9191 
    9292 
    93         int get_changes(OSyncContext *ctx, int newdbs)  
     93        int get_changes(OSyncContext *ctx) 
    9494        { 
    9595            //printf("kdepim_plugin: kaddrbook::%s(newdbs=%d)\n", __FUNCTION__, newdbs); 
     
    154154                osync_change_set_objformat_string(chg, "vcard"); 
    155155                osync_change_set_hash(chg, hash.data()); 
    156                 if (osync_hashtable_detect_change(hashtable, chg)) { 
     156                /*FIXME: slowsync */ 
     157                if (osync_hashtable_detect_change(hashtable, chg, 0)) { 
    157158                    osync_context_report_change(ctx, chg); 
    158159                    osync_hashtable_update_hash(hashtable, chg); 
     
    163164            } 
    164165 
    165             osync_hashtable_report_deleted(hashtable, ctx); 
     166            osync_hashtable_report_deleted(hashtable, ctx, 0); 
    166167 
    167168            return 0; 
     
    384385        printf("kdepim_plugin: %s\n",__FUNCTION__); 
    385386 
    386     //FIXME: newdbs support 
    387     int reset = 0; 
    388     int err = addrbook->get_changes(ctx, reset); 
     387    int err = addrbook->get_changes(ctx); 
    389388    if (err) { 
    390389        osync_context_report_error(ctx, OSYNC_ERROR_GENERIC, "Couldn't access KDE addressbook"); 
     
    417416} 
    418417 
    419 static OSyncFormatFunctions vcard_functions; 
    420  
    421418extern "C" { 
    422419void get_info(OSyncPluginInfo *info) 
     
    432429    info->functions.get_changeinfo = kde_get_changeinfo; 
    433430 
    434     vcard_functions.commit_change = kde_commit_change, 
     431    osync_plugin_accept_objtype(info, "contact"); 
     432    osync_plugin_accept_objformat(info, "contact", "vcard"); 
    435433    /*FIXME: check the differences between commit_change() and access() */ 
    436     vcard_functions.access = kde_commit_change, 
    437  
    438     osync_plugin_register_accepted_objtype(info, "contact"); 
    439     osync_plugin_register_accepted_objformat(info, "contact", "vcard", &vcard_functions); 
     434    osync_plugin_set_commit_objformat(info, "contact", "vcard", kde_commit_change); 
     435    osync_plugin_set_access_objformat(info, "contact", "vcard", kde_commit_change); 
     436 
    440437} 
    441438