Commit Graph

36 Commits

Author SHA1 Message Date
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 d1d2290037 Detect unexpected crashes of the Evolution Data Server. A workaround for
the fact that the synchronous EDS API calls block infinitely in that case.
- drive default glib event look in background thread
- listen for "backend-died" signals
- if triggered, print a message ("Evolution Data Server has died unexpectedly,
  database no longer available.") and abort the process (other error handling is
  impossible)
- for contacts instead of "database" "contacts" is printed


git-svn-id: https://zeitsenke.de/svn/SyncEvolution/trunk@441 15ad00c4-1369-45f4-8270-35d70d36bdcd
2007-11-03 17:07:42 +00:00
Patrick Ohly 4d27abdfbe fixed compile error with enabled modules (missing comma)
git-svn-id: https://zeitsenke.de/svn/SyncEvolution/trunk@407 15ad00c4-1369-45f4-8270-35d70d36bdcd
2007-10-12 16:50:08 +00:00
Patrick Ohly fb86f9fa4e added workaround for missing exception handling on iPhone (http://code.google.com/p/iphone-dev/issues/detail?id=48)
git-svn-id: https://zeitsenke.de/svn/SyncEvolution/trunk@406 15ad00c4-1369-45f4-8270-35d70d36bdcd
2007-10-11 21:02:49 +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 e59701c932 fixed error handling: a failed source was not forced into a slow sync, one failed source prevented saving configs of not-failed ones
git-svn-id: https://zeitsenke.de/svn/SyncEvolution/trunk@363 15ad00c4-1369-45f4-8270-35d70d36bdcd
2007-04-21 13:14:43 +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 c9fb4042e5 dlopen(RTLD_GLOBAL) fixes obscure libebook failures on Maemo; dlopen() errors can occur due to missing modules, only print as debug to avoid failure message after sync
git-svn-id: https://zeitsenke.de/svn/SyncEvolution/trunk@331 15ad00c4-1369-45f4-8270-35d70d36bdcd
2007-03-24 22:50:25 +00:00
Patrick Ohly 6c312c0c65 fixed compile error without calendar support
git-svn-id: https://zeitsenke.de/svn/SyncEvolution/trunk@322 15ad00c4-1369-45f4-8270-35d70d36bdcd
2007-03-24 15:06:32 +00:00
Patrick Ohly 4ebb979fe9 --enable-ecal/ebook are only enabled by default if the libs are present
--enable-shared will build backends as modules which are loaded dynamically if possible (off by default)


git-svn-id: https://zeitsenke.de/svn/SyncEvolution/trunk@315 15ad00c4-1369-45f4-8270-35d70d36bdcd
2007-03-11 22:13:13 +00:00
Patrick Ohly 8d3031396b added support for synchronizing Evolution memos in iCalendar 2.0 VJOURNAL format
git-svn-id: https://zeitsenke.de/svn/SyncEvolution/trunk@305 15ad00c4-1369-45f4-8270-35d70d36bdcd
2007-01-04 20:54:11 +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 9b64d15b58 adapted to const qualifier changes in client library and fixed minor memory leak
git-svn-id: https://zeitsenke.de/svn/SyncEvolution/trunk@290 15ad00c4-1369-45f4-8270-35d70d36bdcd
2006-11-27 21:08:12 +00:00
Patrick Ohly 7e82888469 added support and testing of one-way-from-client/server
git-svn-id: https://zeitsenke.de/svn/SyncEvolution/trunk@281 15ad00c4-1369-45f4-8270-35d70d36bdcd
2006-11-04 13:00:47 +00:00
Patrick Ohly 4de56c607e adapted to new API
git-svn-id: https://zeitsenke.de/svn/SyncEvolution/trunk@263 15ad00c4-1369-45f4-8270-35d70d36bdcd
2006-10-03 11:44:34 +00:00
Patrick Ohly 0a533feef3 adapted to additional SyncSourceConfig parameter in SyncSource constructor, added testing of LargeObject support
git-svn-id: https://zeitsenke.de/svn/SyncEvolution/trunk@260 15ad00c4-1369-45f4-8270-35d70d36bdcd
2006-09-28 23:02:43 +00:00
Patrick Ohly 53815e7e1a added one-way from server/client
git-svn-id: https://zeitsenke.de/svn/SyncEvolution/trunk@240 15ad00c4-1369-45f4-8270-35d70d36bdcd
2006-09-08 19:55:40 +00:00
Patrick Ohly 2d9da1b65f ensure that after refresh-from-client items are not sent again
git-svn-id: https://zeitsenke.de/svn/SyncEvolution/trunk@219 15ad00c4-1369-45f4-8270-35d70d36bdcd
2006-08-17 21:39:29 +00:00
Patrick Ohly 9c886fd2b5 added --disable-ecal/ebook for installations without the required libs
git-svn-id: https://zeitsenke.de/svn/SyncEvolution/trunk@192 15ad00c4-1369-45f4-8270-35d70d36bdcd
2006-07-23 10:27:21 +00:00
Patrick Ohly 671fa4c689 never executed delete since adding workaround (wrong brackets)
git-svn-id: https://zeitsenke.de/svn/SyncEvolution/trunk@164 15ad00c4-1369-45f4-8270-35d70d36bdcd
2006-06-17 20:07:38 +00:00
Patrick Ohly 41bb624b97 added safety check to avoid segfaults if server sends no data for item
git-svn-id: https://zeitsenke.de/svn/SyncEvolution/trunk@157 15ad00c4-1369-45f4-8270-35d70d36bdcd
2006-06-15 15:12:11 +00:00
Patrick Ohly 0fb2f5d474 fixed several compiler warnings
git-svn-id: https://zeitsenke.de/svn/SyncEvolution/trunk@138 15ad00c4-1369-45f4-8270-35d70d36bdcd
2006-06-11 20:07:26 +00:00
Patrick Ohly 3dc100dd3f fixed memory leaks
git-svn-id: https://zeitsenke.de/svn/SyncEvolution/trunk@132 15ad00c4-1369-45f4-8270-35d70d36bdcd
2006-06-10 12:26:44 +00:00
Patrick Ohly 42d6cf11e3 better error logging
git-svn-id: https://zeitsenke.de/svn/SyncEvolution/trunk@114 15ad00c4-1369-45f4-8270-35d70d36bdcd
2006-05-29 19:32:58 +00:00
Patrick Ohly 5cd36ad7f3 cleaned up error reporting and exception handling
git-svn-id: https://zeitsenke.de/svn/SyncEvolution/trunk@105 15ad00c4-1369-45f4-8270-35d70d36bdcd
2006-05-26 12:49:19 +00:00
Patrick Ohly 044e03b984 cleaned up error handling and logging, in particular when using multiple sources at once
git-svn-id: https://zeitsenke.de/svn/SyncEvolution/trunk@104 15ad00c4-1369-45f4-8270-35d70d36bdcd
2006-05-25 17:32:07 +00:00
Patrick Ohly 106452b6ff added test for slow-sync and added handling of the STC_ALREADY_EXISTS encountered then; twinning is currently broken in Funambol 3.0 beta 3, see #305357
git-svn-id: https://zeitsenke.de/svn/SyncEvolution/trunk@101 15ad00c4-1369-45f4-8270-35d70d36bdcd
2006-05-25 10:35:36 +00:00
Patrick Ohly 29875ea243 added possibility to choose between sending vCard 2.1 and 3.0
git-svn-id: https://zeitsenke.de/svn/SyncEvolution/trunk@90 15ad00c4-1369-45f4-8270-35d70d36bdcd
2006-04-26 20:44:41 +00:00
Patrick Ohly a5775d4026 - renamed "test" program to "TestEvolution"
- copy original test cases to fit the name expected by TestEvolution and to have
  them in the build directory
- handle merge with existing item in addItem(): return special status


git-svn-id: https://zeitsenke.de/svn/SyncEvolution/trunk@71 15ad00c4-1369-45f4-8270-35d70d36bdcd
2006-04-17 09:41:37 +00:00
Patrick Ohly 6acd0891b1 - added support for calendars and tasks: not yet tested automatically
but manual tests show that it works in principle, albeit with some
  loss of attributes in the server for calendars (time zone)
- removed "disabled" configuration option, use "sync = none" instead
- added selection of databases to synchronize via additional command
  line parameters

Source:
- Refactored code so that EvolutionSyncSource contains the client-library
  facing code and commong logging/error handling. EvolutionContactSource
  and EvolutionCalendarSource (for both calendars and tasks) can now
  indicate errors via exceptions in all functions.


git-svn-id: https://zeitsenke.de/svn/SyncEvolution/trunk@62 15ad00c4-1369-45f4-8270-35d70d36bdcd
2006-04-09 11:48:11 +00:00
Patrick Ohly 20701cad26 strip special characters, Evolution gets confused by them
git-svn-id: https://zeitsenke.de/svn/SyncEvolution/trunk@7 15ad00c4-1369-45f4-8270-35d70d36bdcd
2005-12-03 14:33:41 +00:00
Patrick Ohly 6b09f2f6c3 implemented front-end based on new SyncML C++ config API
implemented the new begin/endSync() callbacks
explain the change tracking and error handling
-> copying from server works, the other way around fails, probably because of vcard 3.0 parsing problems on the server


git-svn-id: https://zeitsenke.de/svn/SyncEvolution/trunk@6 15ad00c4-1369-45f4-8270-35d70d36bdcd
2005-11-26 21:16:03 +00:00
Patrick Ohly 29ae19e174 base class with functionality common to all Evolution sync sources
git-svn-id: https://zeitsenke.de/svn/SyncEvolution/trunk@4 15ad00c4-1369-45f4-8270-35d70d36bdcd
2005-11-25 20:50:21 +00:00