Commit Graph

136 Commits

Author SHA1 Message Date
Patrick Ohly af7d2783c2 EvolutionCalendarSyncSource now uses change tracking based on modification time stamp.
- const SyncItem cleanup
- distinguish between added/merged in TrackingSyncSource::insertItem():
  required for calendar events
- getData() util function not needed.
- TrackingSyncSource key/value strings can be arbitrary strings now.
- Clarified insertItem() semantic and errors.
- Added new required SyncSource::removeAllItems() call.


git-svn-id: https://zeitsenke.de/svn/SyncEvolution/trunk@574 15ad00c4-1369-45f4-8270-35d70d36bdcd
2008-04-07 17:59:17 +00:00
Patrick Ohly 6ec8f3e5c7 added testing of config creation, fixed setting of default values
git-svn-id: https://zeitsenke.de/svn/SyncEvolution/trunk@543 15ad00c4-1369-45f4-8270-35d70d36bdcd
2008-03-29 14:16:34 +00:00
Patrick Ohly b16a4b3546 cleaned up test registration
- client-test no longer instantiates classes directly and
  therefore doesn't need to know the class definitions
- tests now work with and without --enable-shared;
  with --enable-shared LD_LIBRARY_PATH must be set to .libs
- added instantiation tests for the various source type strings,
  fixed some problems found by that


git-svn-id: https://zeitsenke.de/svn/SyncEvolution/trunk@540 15ad00c4-1369-45f4-8270-35d70d36bdcd
2008-03-25 21:54:05 +00:00
Patrick Ohly 415aa45e37 fixed compiler warnings and unit test of EvolutionContactSource
git-svn-id: https://zeitsenke.de/svn/SyncEvolution/trunk@537 15ad00c4-1369-45f4-8270-35d70d36bdcd
2008-03-24 21:42:47 +00:00
Patrick Ohly 80b8d8c6d7 - implemented value aliases for the configuration
- rewrote interpretation of "type" property: is now a combination of backend and mime type
- improved registration of sync sources (RegisterSyncSource)


git-svn-id: https://zeitsenke.de/svn/SyncEvolution/trunk@514 15ad00c4-1369-45f4-8270-35d70d36bdcd
2008-03-10 22:45:36 +00:00
Patrick Ohly f5b14d9edc implemented default values and creating config, cleaned up some properties
git-svn-id: https://zeitsenke.de/svn/SyncEvolution/trunk@513 15ad00c4-1369-45f4-8270-35d70d36bdcd
2008-03-09 19:08:34 +00:00
Patrick Ohly 08cf9a33f3 replaced direct setting of properties with set methods
git-svn-id: https://zeitsenke.de/svn/SyncEvolution/trunk@511 15ad00c4-1369-45f4-8270-35d70d36bdcd
2008-03-09 16:57:03 +00:00
Patrick Ohly f88d117d64 - introduced new SyncEvolution config handling
- cleaned up passing of SyncSource creation parameters
- reads old configs and should also work with new layout (not tested yet)


git-svn-id: https://zeitsenke.de/svn/SyncEvolution/trunk@507 15ad00c4-1369-45f4-8270-35d70d36bdcd
2008-03-06 22:23:13 +00:00
Patrick Ohly 1a21c06a2e change tracking for Client::Source must distinguish between database and source accessing it
git-svn-id: https://zeitsenke.de/svn/SyncEvolution/trunk@498 15ad00c4-1369-45f4-8270-35d70d36bdcd
2008-02-03 11:18:13 +00:00
Patrick Ohly ed04af7076 turned SQLiteContactSource into a better example sync source
- simplified the database schema by removing unused tables
- added more per-contact properties missing in the original Apple schema
- added comments
- implemented storing of properties with 1:1 mapping to columns in database
- simplified the test cases used for sqlite

Client::Source::sqlite passes now. Client::Sync::sqlite still had some issues,
partly network timeouts due to load on the server, partly problems in the client (?).


git-svn-id: https://zeitsenke.de/svn/SyncEvolution/trunk@496 15ad00c4-1369-45f4-8270-35d70d36bdcd
2008-02-02 21:40:42 +00:00
Patrick Ohly 1ccbd695ee implemented full change tracking in demo SQLiteContactSource with new TrackingSyncSource base class
git-svn-id: https://zeitsenke.de/svn/SyncEvolution/trunk@486 15ad00c4-1369-45f4-8270-35d70d36bdcd
2008-01-14 21:25:03 +00:00
Patrick Ohly d70b4d0148 dump core if test fails instead of simply exiting
git-svn-id: https://zeitsenke.de/svn/SyncEvolution/trunk@466 15ad00c4-1369-45f4-8270-35d70d36bdcd
2007-12-01 21:26:09 +00:00
Patrick Ohly 47bcfccee0 avoid lengthy objdump -l -C output in error handler, exit to prevent repeated segfault invocation
git-svn-id: https://zeitsenke.de/svn/SyncEvolution/trunk@459 15ad00c4-1369-45f4-8270-35d70d36bdcd
2007-11-28 18:03:58 +00:00
Patrick Ohly 802f69d5b5 Added stack dumping in case of SIGABRT, SIGSEGV, SIGILL.
Both valgrind and glibc backtrace() are used: the former automatically
looks up source code, the later can handle stack back traces out of a signal
handler. objdump is called so that the addresses printed by backtrace()
can be associated with source code.


git-svn-id: https://zeitsenke.de/svn/SyncEvolution/trunk@457 15ad00c4-1369-45f4-8270-35d70d36bdcd
2007-11-21 22:09:06 +00:00
Patrick Ohly ad7ae02fc5 fixed compile errors
git-svn-id: https://zeitsenke.de/svn/SyncEvolution/trunk@392 15ad00c4-1369-45f4-8270-35d70d36bdcd
2007-09-24 21:17:40 +00:00
Patrick Ohly 23f03fdfd8 unsuccessful attempt to work around the 'one address book per user' limitation in order to get automated sync testing working
git-svn-id: https://zeitsenke.de/svn/SyncEvolution/trunk@388 15ad00c4-1369-45f4-8270-35d70d36bdcd
2007-08-25 13:23:25 +00:00
Patrick Ohly 5aee503cae finished change tracking, update and delete - still needs improved import/export with own functions because Address Book vcard parser merges X- properties into NOTE and cannot update contact
git-svn-id: https://zeitsenke.de/svn/SyncEvolution/trunk@385 15ad00c4-1369-45f4-8270-35d70d36bdcd
2007-08-21 20:15:32 +00:00
Patrick Ohly 196c24d77e added initial support for Mac OS X address book: no change tracking, no updating
git-svn-id: https://zeitsenke.de/svn/SyncEvolution/trunk@384 15ad00c4-1369-45f4-8270-35d70d36bdcd
2007-08-19 19:11:20 +00:00
Patrick Ohly 03aaa74e45 added a sync source which stores contacts in a SQLite database
git-svn-id: https://zeitsenke.de/svn/SyncEvolution/trunk@381 15ad00c4-1369-45f4-8270-35d70d36bdcd
2007-08-13 20:46:49 +00:00
Patrick Ohly 000d64557a Maemo address book delete support works now: one has to search for X-OSSO-CONTACT-STATE:DELETED manually
git-svn-id: https://zeitsenke.de/svn/SyncEvolution/trunk@374 15ad00c4-1369-45f4-8270-35d70d36bdcd
2007-06-28 20:11:19 +00:00
Patrick Ohly 8a50eb20b3 - added test for X-OSSO-CONTACT-STATE:DELETED handling
- contacts marked for deletion are now deleted by SyncEvolution (but code fails test...)
- made it possible to run client-test with EDS-DBus


git-svn-id: https://zeitsenke.de/svn/SyncEvolution/trunk@373 15ad00c4-1369-45f4-8270-35d70d36bdcd
2007-06-27 20:24:45 +00:00
Patrick Ohly 910a1b593d fixed compile problem on Debian 3.1/older gcc
git-svn-id: https://zeitsenke.de/svn/SyncEvolution/trunk@361 15ad00c4-1369-45f4-8270-35d70d36bdcd
2007-04-15 19:30:15 +00:00
Patrick Ohly 36f2140ce2 added synchronization of Memos as plain text
git-svn-id: https://zeitsenke.de/svn/SyncEvolution/trunk@360 15ad00c4-1369-45f4-8270-35d70d36bdcd
2007-04-15 13:42:42 +00:00
Patrick Ohly 5a8ef1a5d5 minor changes about ifdef ENABLE, added comment avoid vcard21, FIXED itodo20 type
git-svn-id: https://zeitsenke.de/svn/SyncEvolution/trunk@356 15ad00c4-1369-45f4-8270-35d70d36bdcd
2007-04-14 15:31:42 +00:00
Patrick Ohly 2a3a7f36a4 always set encoding, we might have to overwrite an encoding set earlier
git-svn-id: https://zeitsenke.de/svn/SyncEvolution/trunk@355 15ad00c4-1369-45f4-8270-35d70d36bdcd
2007-04-12 20:04:53 +00:00
Patrick Ohly 94081bd28e - source type was not set in new configs as intended
- fixed confusion with source index vs. type (broke testing of e.g. ical20)


git-svn-id: https://zeitsenke.de/svn/SyncEvolution/trunk@353 15ad00c4-1369-45f4-8270-35d70d36bdcd
2007-04-11 21:03:11 +00:00
Patrick Ohly 7a84fc3a92 fixed incorrect mapping from selected source to type
git-svn-id: https://zeitsenke.de/svn/SyncEvolution/trunk@351 15ad00c4-1369-45f4-8270-35d70d36bdcd
2007-04-09 19:58:51 +00:00
Patrick Ohly 67e35122a8 added CLIENT_TEST_EVOLUTION_PREFIX which overrides the evolutionsource setting in test configs; default SyncEvolution_Test_
git-svn-id: https://zeitsenke.de/svn/SyncEvolution/trunk@347 15ad00c4-1369-45f4-8270-35d70d36bdcd
2007-04-01 18:26:28 +00:00
Patrick Ohly 6c44ecf84d added the possibility to create databases if evolutionsource is set to a file:// uri
git-svn-id: https://zeitsenke.de/svn/SyncEvolution/trunk@345 15ad00c4-1369-45f4-8270-35d70d36bdcd
2007-04-01 13:02:56 +00:00
Patrick Ohly d0a9067be2 synccompare and test suite are now taken from C++ client library
git-svn-id: https://zeitsenke.de/svn/SyncEvolution/trunk@343 15ad00c4-1369-45f4-8270-35d70d36bdcd
2007-03-31 16:22:40 +00:00
Patrick Ohly c5f68abe35 adapted to update test API
git-svn-id: https://zeitsenke.de/svn/SyncEvolution/trunk@300 15ad00c4-1369-45f4-8270-35d70d36bdcd
2006-12-17 22:10:18 +00:00
Patrick Ohly e7cd458d37 copyright transfer to Funambol
git-svn-id: https://zeitsenke.de/svn/SyncEvolution/trunk@297 15ad00c4-1369-45f4-8270-35d70d36bdcd
2006-12-10 17:35:20 +00:00
Patrick Ohly 25a8c1f53f adapted to new C++ client library test suite interface, finished configuration for calendars and tasks
git-svn-id: https://zeitsenke.de/svn/SyncEvolution/trunk@296 15ad00c4-1369-45f4-8270-35d70d36bdcd
2006-12-09 17:50:38 +00:00
Patrick Ohly 548de95cfe support testing with two clients
git-svn-id: https://zeitsenke.de/svn/SyncEvolution/trunk@294 15ad00c4-1369-45f4-8270-35d70d36bdcd
2006-12-07 22:27:18 +00:00
Patrick Ohly 5e5342a228 adapted contacts to full set of local tests
git-svn-id: https://zeitsenke.de/svn/SyncEvolution/trunk@293 15ad00c4-1369-45f4-8270-35d70d36bdcd
2006-12-05 22:24:53 +00:00
Patrick Ohly f7404e6f54 use the new C++ client library testing framework
git-svn-id: https://zeitsenke.de/svn/SyncEvolution/trunk@291 15ad00c4-1369-45f4-8270-35d70d36bdcd
2006-12-01 22:50:17 +00:00