Commit graph

41 commits

Author SHA1 Message Date
Patrick Ohly ec378daa8d implemented SyncSource::removeAllItems()
It is needed for the testing framework.


git-svn-id: https://zeitsenke.de/svn/SyncEvolution/trunk@617 15ad00c4-1369-45f4-8270-35d70d36bdcd
2008-06-07 18:53:14 +00:00
Patrick Ohly de2a60b9cf map TZIDs to system timezones, if possible
git-svn-id: https://zeitsenke.de/svn/SyncEvolution/trunk@594 15ad00c4-1369-45f4-8270-35d70d36bdcd
2008-04-17 19:52:08 +00:00
Patrick Ohly a02046b7c1 added testing of opening default database
git-svn-id: https://zeitsenke.de/svn/SyncEvolution/trunk@592 15ad00c4-1369-45f4-8270-35d70d36bdcd
2008-04-17 19:09:28 +00:00
Patrick Ohly 22e4e59e65 adapted to new removeAllItems() prototype
git-svn-id: https://zeitsenke.de/svn/SyncEvolution/trunk@578 15ad00c4-1369-45f4-8270-35d70d36bdcd
2008-04-08 19:43:41 +00:00
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 62169738fc - all passwords can be specified as env variables (${foo}) or read from stdin (-)
- fixed config access in sync sources (broke during rewrite)


git-svn-id: https://zeitsenke.de/svn/SyncEvolution/trunk@562 15ad00c4-1369-45f4-8270-35d70d36bdcd
2008-04-03 20:01:56 +00:00
Patrick Ohly b6e4f69511 simplified configuration
- deviceId is at the end of the config now because it hardly ever has to be set
- evolutionsource can be left unset in most cases: the first Evolution database is
  the default
- mark default data source when listing them


git-svn-id: https://zeitsenke.de/svn/SyncEvolution/trunk@558 15ad00c4-1369-45f4-8270-35d70d36bdcd
2008-03-30 19:08:19 +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 c7138968c4 next step in the configuration rewrite
- added sanity checking of properties
- added listing of properties and help for individual properties
- use user-visible string as main alias for sources


git-svn-id: https://zeitsenke.de/svn/SyncEvolution/trunk@524 15ad00c4-1369-45f4-8270-35d70d36bdcd
2008-03-19 11:29:14 +00:00
Patrick Ohly 7538b19553 fixed some memory leaks for results of e_book_get_contacts/changes and e_cal_get_object_list_as_comp/e_cal_get_changes
The API documentation of these calls doesn't say so explicitly, but it
seems that a combination of g_object_unref()/g_free()/g_list_free() is
necessary. Rewrote the eptr smart pointer so that different deleter
functions can be selected as template parameters.


git-svn-id: https://zeitsenke.de/svn/SyncEvolution/trunk@521 15ad00c4-1369-45f4-8270-35d70d36bdcd
2008-03-18 13:36:59 +00:00
Patrick Ohly 6d1f0e3ccd clarified which data has to be set in createItem()
git-svn-id: https://zeitsenke.de/svn/SyncEvolution/trunk@516 15ad00c4-1369-45f4-8270-35d70d36bdcd
2008-03-13 19:41:30 +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 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 64756c9860 removed SyncState parameter out of all createItem() implementations into the caller; requires smartptr release()
git-svn-id: https://zeitsenke.de/svn/SyncEvolution/trunk@484 15ad00c4-1369-45f4-8270-35d70d36bdcd
2008-01-13 01:41:21 +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 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 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 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 d649064860 messages about local changes are now logged as DEBUG and not INFO because they were confusing for users; now they are not visible in the final report
git-svn-id: https://zeitsenke.de/svn/SyncEvolution/trunk@282 15ad00c4-1369-45f4-8270-35d70d36bdcd
2006-11-11 16:00:37 +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 0a67a4a786 adapted to C++ client API change: supported datatypes now in config
git-svn-id: https://zeitsenke.de/svn/SyncEvolution/trunk@258 15ad00c4-1369-45f4-8270-35d70d36bdcd
2006-09-16 09:00:50 +00:00
Patrick Ohly 168dd2b911 adapted to official DevInf API with one patch: config passed to SyncClient::conf()
git-svn-id: https://zeitsenke.de/svn/SyncEvolution/trunk@237 15ad00c4-1369-45f4-8270-35d70d36bdcd
2006-09-07 19:47:29 +00:00
Patrick Ohly 455da2660d changed list into a set to be more resilient against getting UIDs multiple times
git-svn-id: https://zeitsenke.de/svn/SyncEvolution/trunk@218 15ad00c4-1369-45f4-8270-35d70d36bdcd
2006-08-17 20:39:35 +00:00
Patrick Ohly bfc7f64173 implemented Evolution authentication
git-svn-id: https://zeitsenke.de/svn/SyncEvolution/trunk@217 15ad00c4-1369-45f4-8270-35d70d36bdcd
2006-08-17 20:26:08 +00:00
Patrick Ohly 8199a7b38c - adapted to new SyncClient API: configuration tree handling is now part
of the library
- do not reset anchors after failure: allows to proceed with two-way sync


git-svn-id: https://zeitsenke.de/svn/SyncEvolution/trunk@196 15ad00c4-1369-45f4-8270-35d70d36bdcd
2006-08-06 07:56:41 +00:00
Patrick Ohly 90e5393a6d ensure that deleted items have a sane datatype (in particular avoid text/x-todo)
git-svn-id: https://zeitsenke.de/svn/SyncEvolution/trunk@195 15ad00c4-1369-45f4-8270-35d70d36bdcd
2006-07-27 19:42:44 +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 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 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 07f43e8444 adapted to head revision of Sync4j C++ client library
git-svn-id: https://zeitsenke.de/svn/SyncEvolution/trunk@61 15ad00c4-1369-45f4-8270-35d70d36bdcd
2006-04-06 17:02:43 +00:00
Patrick Ohly 12b98e85c4 - implemented automatic backups, logging and database comparison
- prepared 0.2 release


git-svn-id: https://zeitsenke.de/svn/SyncEvolution/trunk@57 15ad00c4-1369-45f4-8270-35d70d36bdcd
2006-03-19 21:37:30 +00:00
Patrick Ohly 191dd40b23 test for copying via server now transmits testVCard.vcf and also compares against it
git-svn-id: https://zeitsenke.de/svn/SyncEvolution/trunk@45 15ad00c4-1369-45f4-8270-35d70d36bdcd
2006-03-18 13:35:23 +00:00
Patrick Ohly d6fe29ef0e added support for the new refresh-client/server sync modes
git-svn-id: https://zeitsenke.de/svn/SyncEvolution/trunk@26 15ad00c4-1369-45f4-8270-35d70d36bdcd
2006-02-04 20:22:55 +00:00
Patrick Ohly 584c29873a implemented distinction between different sync modes: 'refresh' requires deleting items, scanning is different for full and partial sync
git-svn-id: https://zeitsenke.de/svn/SyncEvolution/trunk@13 15ad00c4-1369-45f4-8270-35d70d36bdcd
2005-12-10 21:10:43 +00:00
Patrick Ohly 2931400051 added some more debug logging
git-svn-id: https://zeitsenke.de/svn/SyncEvolution/trunk@11 15ad00c4-1369-45f4-8270-35d70d36bdcd
2005-12-10 17:48:07 +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