Commit Graph

25 Commits

Author SHA1 Message Date
Patrick Ohly 5e8fa6eb94 major restructuring of the file layout and autotools build
This change makes it possible to add a new backend without
changing any of the core files. It also gets rid of some
hacks (like -export-dynamic for the binary) by putting all
core SyncEvolution code into a library.

The transition is not quite complete: there are still
some lists of existing backends, which will be removed
soon. EvolutionSmartPtr.h and EvolutionSyncSource depend
on Evolution/GNOME libs, which forces all backends to
use the right -I flags.


git-svn-id: https://zeitsenke.de/svn/SyncEvolution/trunk@684 15ad00c4-1369-45f4-8270-35d70d36bdcd
2008-07-29 21:06:11 +00:00
Patrick Ohly b77808a909 Mac OS X client now uses the new TrackingSyncSource
git-svn-id: https://zeitsenke.de/svn/SyncEvolution/trunk@670 15ad00c4-1369-45f4-8270-35d70d36bdcd
2008-07-12 19:31:03 +00:00
Patrick Ohly ca390a7743 cleaned up EvolutionSyncSource interface+implementation
git-svn-id: https://zeitsenke.de/svn/SyncEvolution/trunk@664 15ad00c4-1369-45f4-8270-35d70d36bdcd
2008-07-10 19:17:42 +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 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 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 423995e05d last minute fix for iPhone 0.7 pre2: removed debug output
git-svn-id: https://zeitsenke.de/svn/SyncEvolution/trunk@455 15ad00c4-1369-45f4-8270-35d70d36bdcd
2007-11-10 16:10:23 +00:00
Patrick Ohly 762a13af15 fixed iPhone photo import/export: that API wasn't as expected and therefore was
called incorrectly. Importing photos crashed, exporting them may have failed
randomly and/or picked the wrong size of the photo.


git-svn-id: https://zeitsenke.de/svn/SyncEvolution/trunk@446 15ad00c4-1369-45f4-8270-35d70d36bdcd
2007-11-05 22:02:10 +00:00
Patrick Ohly 8ed1710889 when configured to use ScheduleWorld card3 URI, then switch to sending vCard 3.0 (easier to parse by SW); always dump contacts as vCard 3.0 (avoids quoted-printable in synccompare output)
git-svn-id: https://zeitsenke.de/svn/SyncEvolution/trunk@445 15ad00c4-1369-45f4-8270-35d70d36bdcd
2007-11-04 21:10:51 +00:00
Patrick Ohly 25dcae5dc4 fixed compile errors on Mac OS X
git-svn-id: https://zeitsenke.de/svn/SyncEvolution/trunk@439 15ad00c4-1369-45f4-8270-35d70d36bdcd
2007-11-01 13:03:03 +00:00
Patrick Ohly 7b05156632 - consistently ignore all empty strings when reading vcard
- interpret date time stamps relative to current system time zone (like GUI does)


git-svn-id: https://zeitsenke.de/svn/SyncEvolution/trunk@422 15ad00c4-1369-45f4-8270-35d70d36bdcd
2007-10-14 18:40:54 +00:00
Patrick Ohly f63e3c4f1a avoid setting empty strings: the iPhone GUI adds redundant space around the empty property (e.g. middle name)
git-svn-id: https://zeitsenke.de/svn/SyncEvolution/trunk@416 15ad00c4-1369-45f4-8270-35d70d36bdcd
2007-10-14 14:44:44 +00:00
Patrick Ohly 1cc66f59be use vCard 2.1 instead of 3.0 for iPhone: avoids parsing problems in myFUNAMBOL
git-svn-id: https://zeitsenke.de/svn/SyncEvolution/trunk@414 15ad00c4-1369-45f4-8270-35d70d36bdcd
2007-10-14 14:02:15 +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 ed4c8d0f9b problem with C++ output stream (http://code.google.com/p/iphone-dev/issues/detail?id=48):
throws exception although everything is fine - disabled exceptions in one case and replaced
with ANSI C calls in another

IPHONE define now in configure (cleaner).

Creating contacts twice (during dump and when sending) caused crash - ref counting problem?
Disabled any CFRelease() for now on iPhone.

compile error fix for Mac OS X (probably more necessary)


git-svn-id: https://zeitsenke.de/svn/SyncEvolution/trunk@403 15ad00c4-1369-45f4-8270-35d70d36bdcd
2007-10-07 19:06:01 +00:00
Patrick Ohly 4688c12746 removed debug output which was added to track down crashes and now is no longer useful
git-svn-id: https://zeitsenke.de/svn/SyncEvolution/trunk@402 15ad00c4-1369-45f4-8270-35d70d36bdcd
2007-10-07 12:27:55 +00:00
Patrick Ohly 5e4a57beef added comments, some cleanups
git-svn-id: https://zeitsenke.de/svn/SyncEvolution/trunk@401 15ad00c4-1369-45f4-8270-35d70d36bdcd
2007-10-07 12:19:14 +00:00
Patrick Ohly 320723d3a8 workarounds for ABMutableMultiValueRef on iPhone:
- cannot be released
- cannot be turned into a string

improved phone number mapping

=> all properties enabled now


git-svn-id: https://zeitsenke.de/svn/SyncEvolution/trunk@400 15ad00c4-1369-45f4-8270-35d70d36bdcd
2007-10-06 22:13:12 +00:00
Patrick Ohly 4aa5372687 port to iPhone: lots of hacks and debug output, none of the multiprops supported yet (use unknown format in API)
git-svn-id: https://zeitsenke.de/svn/SyncEvolution/trunk@399 15ad00c4-1369-45f4-8270-35d70d36bdcd
2007-10-04 20:54:27 +00:00
Patrick Ohly e8bfe76334 less verbose INFO logging: extracting items is now logged as DEBUG
git-svn-id: https://zeitsenke.de/svn/SyncEvolution/trunk@387 15ad00c4-1369-45f4-8270-35d70d36bdcd
2007-08-25 13:22:26 +00:00
Patrick Ohly c90a742b52 added custom vcard 3.0 <-> AddressBook conversion: needed to make vcard representation close to what SyncML servers understand
git-svn-id: https://zeitsenke.de/svn/SyncEvolution/trunk@386 15ad00c4-1369-45f4-8270-35d70d36bdcd
2007-08-24 21:27:42 +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