Changeset 43
- Timestamp:
- 12/10/04 17:09:37 (4 years ago)
- Location:
- trunk/plugins/kdepim_sync/src
- Files:
-
- 1 removed
- 1 modified
-
kaddrbook.cpp (modified) (6 diffs)
-
kdeplugin.c (deleted)
Legend:
- Unmodified
- Added
- Removed
-
trunk/plugins/kdepim_sync/src/kaddrbook.cpp
r33 r43 91 91 92 92 93 int get_changes(OSyncContext *ctx , int newdbs)93 int get_changes(OSyncContext *ctx) 94 94 { 95 95 //printf("kdepim_plugin: kaddrbook::%s(newdbs=%d)\n", __FUNCTION__, newdbs); … … 154 154 osync_change_set_objformat_string(chg, "vcard"); 155 155 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)) { 157 158 osync_context_report_change(ctx, chg); 158 159 osync_hashtable_update_hash(hashtable, chg); … … 163 164 } 164 165 165 osync_hashtable_report_deleted(hashtable, ctx );166 osync_hashtable_report_deleted(hashtable, ctx, 0); 166 167 167 168 return 0; … … 384 385 printf("kdepim_plugin: %s\n",__FUNCTION__); 385 386 386 //FIXME: newdbs support 387 int reset = 0; 388 int err = addrbook->get_changes(ctx, reset); 387 int err = addrbook->get_changes(ctx); 389 388 if (err) { 390 389 osync_context_report_error(ctx, OSYNC_ERROR_GENERIC, "Couldn't access KDE addressbook"); … … 417 416 } 418 417 419 static OSyncFormatFunctions vcard_functions;420 421 418 extern "C" { 422 419 void get_info(OSyncPluginInfo *info) … … 432 429 info->functions.get_changeinfo = kde_get_changeinfo; 433 430 434 vcard_functions.commit_change = kde_commit_change, 431 osync_plugin_accept_objtype(info, "contact"); 432 osync_plugin_accept_objformat(info, "contact", "vcard"); 435 433 /*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 440 437 } 441 438
