Commit graph

17 commits

Author SHA1 Message Date
Patrick Ohly 8960e763fa fixed compile errors/warnings on Maemo/Mac OS X
git-svn-id: https://zeitsenke.de/svn/SyncEvolution/trunk@760 15ad00c4-1369-45f4-8270-35d70d36bdcd
2008-10-11 09:44:44 +00:00
Patrick Ohly 2df2728f74 --enable-evolution-compatibility: run with reduced functionality when functions are missing
Availability is logged in the "syncevolution --version" output and
at the start of the log.

Also log device ID.


git-svn-id: https://zeitsenke.de/svn/SyncEvolution/trunk@756 15ad00c4-1369-45f4-8270-35d70d36bdcd
2008-10-10 21:57:55 +00:00
Patrick Ohly 0cb88c7cd1 SF #2095433: regression in 0.8: one-way sync of virtual birthday calendar
"refresh-from-client" works again for the birthday calendar.

In contrast to previous releases SyncEvolution now does some sanity checks
that the sync mode is right. For all modes other than "refresh-from-server"
and "slow" the following error is reported:

22:39:34 [INFO] ical20: sync mode is 'refresh from server'
22:39:34 [ERROR] ical20: could not read revision identifier for item pas-id-43C0ED3900000001-anniversary-rid: only refresh-from-client synchronization is supported

"slow" syncs may or may not work, depending on whether the server sends
back updates. Better don't use it. If the server sends back items during a
slow sync, then the error message is a bit cryptic:

22:47:02 [INFO] ical20: eg2fVHx6bZ6VF2MR5TgdHQ==: add
22:47:02 [INFO] ical20: eg2fVHx6bZ6VF2MR5TgdHQ==: exists already, updating instead
22:47:02 [ERROR] ical20: updating item eg2fVHx6bZ6VF2MR5TgdHQ==: Unknown error


git-svn-id: https://zeitsenke.de/svn/SyncEvolution/trunk@752 15ad00c4-1369-45f4-8270-35d70d36bdcd
2008-10-09 20:51:56 +00:00
Patrick Ohly fe34d29b5f fixed checking out origin branch and updating from git
git-svn-id: https://zeitsenke.de/svn/SyncEvolution/trunk@749 15ad00c4-1369-45f4-8270-35d70d36bdcd
2008-10-09 15:55:11 +00:00
Patrick Ohly 3d5749df17 hard dependencies on specific Evolution libs can be avoided with --enable-evolution-compatibility
This works by mapping all EDS symbols to pointers initialized via dlopen/dlsym.
Avoids version checks as intented, but might lead to runtime crashes if the ABI
of the required symbols really changes...

Currently the binaries refuses to start when any of the EDS libs is not found.
Need to make it work again so that libecal and libebook are optional (Maemo!).


git-svn-id: https://zeitsenke.de/svn/SyncEvolution/trunk@747 15ad00c4-1369-45f4-8270-35d70d36bdcd
2008-10-08 21:30:06 +00:00
Patrick Ohly 5fa63c04a6 license and copyright clarification
The source was always meant to be GPL v2 or later, but wasn't marked
consistently as such. Copyright belongs to Patrick Ohly, with all
code up to 0.7 also owned by Funambol due to a copyright transfer
at that time.


git-svn-id: https://zeitsenke.de/svn/SyncEvolution/trunk@739 15ad00c4-1369-45f4-8270-35d70d36bdcd
2008-08-26 17:45:28 +00:00
Patrick Ohly 14a59ea744 speed up testing by reducing the default delay in Evolution calendar/task/text sync sources
git-svn-id: https://zeitsenke.de/svn/SyncEvolution/trunk@737 15ad00c4-1369-45f4-8270-35d70d36bdcd
2008-08-26 16:15:35 +00:00
Patrick Ohly 2cba0334de EvolutionSyncSource::sleepSinceModification(): delay after a sync only if needed, must be requested by sources
git-svn-id: https://zeitsenke.de/svn/SyncEvolution/trunk@724 15ad00c4-1369-45f4-8270-35d70d36bdcd
2008-08-16 07:39:08 +00:00
Patrick Ohly 251ed24a06 preserve child events when updating parent without relying on CALOBJ_MOD_THIS
git-svn-id: https://zeitsenke.de/svn/SyncEvolution/trunk@723 15ad00c4-1369-45f4-8270-35d70d36bdcd
2008-08-16 07:38:14 +00:00
Patrick Ohly 9d97aaa299 better comment for returnOnlyChildren in removeEvents: parent is always removed
git-svn-id: https://zeitsenke.de/svn/SyncEvolution/trunk@720 15ad00c4-1369-45f4-8270-35d70d36bdcd
2008-08-16 07:35:35 +00:00
Patrick Ohly d4cd8002ce calendar synchronization with Evolution Exchange Connector works again
CALOBJ_MOD_THIS for parent items caused problems. A *long* delay after
a sync was needed, otherwise the Connector returned garbage during
further accesses (e.g., old child event instead of the updated one).

Some code cleanup (creating ItemID from LUID).

Temporarily forked the client test (introduced update items for child/parent,
relaxed semantic selectable at runtime).


git-svn-id: https://zeitsenke.de/svn/SyncEvolution/trunk@719 15ad00c4-1369-45f4-8270-35d70d36bdcd
2008-08-16 07:34:17 +00:00
Patrick Ohly 47fc513597 cleaned up error reporting: errno now passed to throwError
git-svn-id: https://zeitsenke.de/svn/SyncEvolution/trunk@716 15ad00c4-1369-45f4-8270-35d70d36bdcd
2008-08-09 10:26:52 +00:00
Patrick Ohly c4c3b72430 only include integration tests in anonymous namespace because CPPUnit unit tests become ugly otherwise
git-svn-id: https://zeitsenke.de/svn/SyncEvolution/trunk@702 15ad00c4-1369-45f4-8270-35d70d36bdcd
2008-08-03 20:06:13 +00:00
Patrick Ohly c9c8967950 use anonymous namespaces to avoid name conflicts between classes
git-svn-id: https://zeitsenke.de/svn/SyncEvolution/trunk@697 15ad00c4-1369-45f4-8270-35d70d36bdcd
2008-08-03 13:20:06 +00:00
Patrick Ohly d08d1f7e88 added automatic registration of test
git-svn-id: https://zeitsenke.de/svn/SyncEvolution/trunk@692 15ad00c4-1369-45f4-8270-35d70d36bdcd
2008-08-02 15:46:23 +00:00
Patrick Ohly 63e14ddc9c file layout restructuring, take II
Added missing files, finished automatic registration
of backends, Emacs mode for renamed files.


git-svn-id: https://zeitsenke.de/svn/SyncEvolution/trunk@685 15ad00c4-1369-45f4-8270-35d70d36bdcd
2008-07-30 17:30:10 +00:00
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