Commit Graph

745 Commits

Author SHA1 Message Date
Patrick Ohly 3660154d90 simplified compiling for ppc/386 on Mac OS X
git-svn-id: https://zeitsenke.de/svn/SyncEvolution/trunk@669 15ad00c4-1369-45f4-8270-35d70d36bdcd
2008-07-12 18:44:15 +00:00
Patrick Ohly 1aa93e6cb2 simplified compiling for ppc/386 on Mac OS X
git-svn-id: https://zeitsenke.de/svn/SyncEvolution/trunk@668 15ad00c4-1369-45f4-8270-35d70d36bdcd
2008-07-12 18:43:17 +00:00
Patrick Ohly a8b9c1f25f turned fileSuffix() into a const function
git-svn-id: https://zeitsenke.de/svn/SyncEvolution/trunk@667 15ad00c4-1369-45f4-8270-35d70d36bdcd
2008-07-12 18:36:56 +00:00
Patrick Ohly bd92e16cdc use sc-pim- prefix for device ID
The prefix is important: without it, myFUNAMBOL 6.x and 7.0 map
all SyncEvolution instances to the single phone that they support,
which leads to unwanted slow syncs when switching between multiple
instances.


git-svn-id: https://zeitsenke.de/svn/SyncEvolution/trunk@666 15ad00c4-1369-45f4-8270-35d70d36bdcd
2008-07-11 20:28:00 +00:00
Patrick Ohly f32501af5f reduced explicit usage of iterators (mostly with BOOST_FOREACH)
git-svn-id: https://zeitsenke.de/svn/SyncEvolution/trunk@665 15ad00c4-1369-45f4-8270-35d70d36bdcd
2008-07-11 20:25:02 +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 0d580b83bc added plenty of suppressions for problems only found when running code linked against 2.22.x
git-svn-id: https://zeitsenke.de/svn/SyncEvolution/trunk@663 15ad00c4-1369-45f4-8270-35d70d36bdcd
2008-07-10 18:12:04 +00:00
Patrick Ohly 26633a6a27 added the possibility to run a setup script as part of each test
git-svn-id: https://zeitsenke.de/svn/SyncEvolution/trunk@662 15ad00c4-1369-45f4-8270-35d70d36bdcd
2008-07-10 18:09:36 +00:00
Patrick Ohly 0dfd948f3a added missing header file
git-svn-id: https://zeitsenke.de/svn/SyncEvolution/trunk@661 15ad00c4-1369-45f4-8270-35d70d36bdcd
2008-07-08 08:46:09 +00:00
Patrick Ohly b7c587deb4 better random seed (avoids identical clientId when configs are created rapidly one after the other)
git-svn-id: https://zeitsenke.de/svn/SyncEvolution/trunk@660 15ad00c4-1369-45f4-8270-35d70d36bdcd
2008-07-07 18:01:13 +00:00
Patrick Ohly e5a2fabb43 code cleanup (boost::join, list sort)
git-svn-id: https://zeitsenke.de/svn/SyncEvolution/trunk@659 15ad00c4-1369-45f4-8270-35d70d36bdcd
2008-07-06 20:49:19 +00:00
Patrick Ohly 3c12d2c05d code cleanup (map access)
git-svn-id: https://zeitsenke.de/svn/SyncEvolution/trunk@658 15ad00c4-1369-45f4-8270-35d70d36bdcd
2008-07-06 20:36:29 +00:00
Patrick Ohly 12d1739da6 code cleanup
git-svn-id: https://zeitsenke.de/svn/SyncEvolution/trunk@657 15ad00c4-1369-45f4-8270-35d70d36bdcd
2008-07-06 20:31:20 +00:00
Patrick Ohly e8cd3777d5 simplified ConfigFilter: now uses keys as they are, but with case-insensitive compare
git-svn-id: https://zeitsenke.de/svn/SyncEvolution/trunk@656 15ad00c4-1369-45f4-8270-35d70d36bdcd
2008-07-06 20:26:23 +00:00
Patrick Ohly 6e44db26f3 LUID may not change during update
git-svn-id: https://zeitsenke.de/svn/SyncEvolution/trunk@655 15ad00c4-1369-45f4-8270-35d70d36bdcd
2008-07-06 20:25:36 +00:00
Patrick Ohly 01f00fe40b fixed mem leak when listing databases
git-svn-id: https://zeitsenke.de/svn/SyncEvolution/trunk@654 15ad00c4-1369-45f4-8270-35d70d36bdcd
2008-07-03 19:59:03 +00:00
Patrick Ohly f860995b94 reverted to 0.7 packaging
git-svn-id: https://zeitsenke.de/svn/SyncEvolution/trunk@653 15ad00c4-1369-45f4-8270-35d70d36bdcd
2008-07-03 19:56:15 +00:00
Patrick Ohly 6a390f88e7 updated version, changelog, NEWS for 0.8 beta 1
git-svn-id: https://zeitsenke.de/svn/SyncEvolution/trunk@652 15ad00c4-1369-45f4-8270-35d70d36bdcd
2008-07-02 21:08:38 +00:00
Patrick Ohly 3fb7c21637 SF #1993109: for Evolution 2.6 use .deb dependencies which work with Ubuntu 6.06 LTS
git-svn-id: https://zeitsenke.de/svn/SyncEvolution/trunk@651 15ad00c4-1369-45f4-8270-35d70d36bdcd
2008-07-02 20:00:16 +00:00
Patrick Ohly 9e59e9e664 SF #1991286: when creating config for the first time, only enable sync sources which can be synchronized
The check for that was completely missing. Now SyncEvolution checks that the backend is available and
there is at least one database (the first one will be synchronized unless explicitly changed). If these
checks fail and the sync source was explicitly requested by the user by listing it after the server
name, then an error is printed and no configuration is written. If the user wants the default setup,
then the source is silently disabled.


git-svn-id: https://zeitsenke.de/svn/SyncEvolution/trunk@650 15ad00c4-1369-45f4-8270-35d70d36bdcd
2008-07-02 19:36:02 +00:00
Patrick Ohly 8cc9071e41 fixed problem with loading calendar backend dynamically on Maemo (depends on TrackingSyncSource being in the main binary)
git-svn-id: https://zeitsenke.de/svn/SyncEvolution/trunk@649 15ad00c4-1369-45f4-8270-35d70d36bdcd
2008-07-02 19:32:05 +00:00
Patrick Ohly 7f2d6903b2 avoid useless 'list: unable to access calendars: failure' error message
The error was printed when listing databases failed without setting
an error, like on Maemo where memos are not supported by the Evolution
backend.


git-svn-id: https://zeitsenke.de/svn/SyncEvolution/trunk@648 15ad00c4-1369-45f4-8270-35d70d36bdcd
2008-07-02 19:30:49 +00:00
Patrick Ohly f3c0b7c2ba added MemoToo
git-svn-id: https://zeitsenke.de/svn/SyncEvolution/trunk@647 15ad00c4-1369-45f4-8270-35d70d36bdcd
2008-06-29 17:59:27 +00:00
Patrick Ohly b198b83c02 remember failure when iterating over items
git-svn-id: https://zeitsenke.de/svn/SyncEvolution/trunk@646 15ad00c4-1369-45f4-8270-35d70d36bdcd
2008-06-29 16:19:35 +00:00
Patrick Ohly ed1aa43579 adapted to new C++ client library posixadapter.h
git-svn-id: https://zeitsenke.de/svn/SyncEvolution/trunk@645 15ad00c4-1369-45f4-8270-35d70d36bdcd
2008-06-29 16:17:07 +00:00
Patrick Ohly 4ee3c9b133 return code of removeAllItems() is error code, not SyncML status
git-svn-id: https://zeitsenke.de/svn/SyncEvolution/trunk@644 15ad00c4-1369-45f4-8270-35d70d36bdcd
2008-06-29 16:16:19 +00:00
Patrick Ohly 6db2cd17bf clarified return code of inherited removeAllItems() method
git-svn-id: https://zeitsenke.de/svn/SyncEvolution/trunk@643 15ad00c4-1369-45f4-8270-35d70d36bdcd
2008-06-29 16:15:17 +00:00
Patrick Ohly 7d2b2890b4 fixed compile errors due to wchar redefines
git-svn-id: https://zeitsenke.de/svn/SyncEvolution/trunk@642 15ad00c4-1369-45f4-8270-35d70d36bdcd
2008-06-29 08:56:21 +00:00
Patrick Ohly 9d143b3789 added memotoo to expected list of templates, fixed Funambol syncURL
git-svn-id: https://zeitsenke.de/svn/SyncEvolution/trunk@641 15ad00c4-1369-45f4-8270-35d70d36bdcd
2008-06-28 21:32:16 +00:00
Patrick Ohly 918df7e261 removed extra sorting, std::set is already guaranteed to return entries in ascending order
git-svn-id: https://zeitsenke.de/svn/SyncEvolution/trunk@640 15ad00c4-1369-45f4-8270-35d70d36bdcd
2008-06-28 20:43:45 +00:00
Patrick Ohly 4a3ea2a59b fixed wrong URI in ScheduleWorld template
git-svn-id: https://zeitsenke.de/svn/SyncEvolution/trunk@639 15ad00c4-1369-45f4-8270-35d70d36bdcd
2008-06-28 20:04:34 +00:00
Patrick Ohly fca88313e0 MemoToo sends vcards with just \n line termination, handle that when extracting FN
git-svn-id: https://zeitsenke.de/svn/SyncEvolution/trunk@638 15ad00c4-1369-45f4-8270-35d70d36bdcd
2008-06-28 19:55:56 +00:00
Patrick Ohly ea4e961552 fixed wrong syncURL in ScheduleWorld template
git-svn-id: https://zeitsenke.de/svn/SyncEvolution/trunk@637 15ad00c4-1369-45f4-8270-35d70d36bdcd
2008-06-28 13:27:07 +00:00
Patrick Ohly e08bed66cb added --prebuilt: testing with precompiled SyncEvolution
git-svn-id: https://zeitsenke.de/svn/SyncEvolution/trunk@636 15ad00c4-1369-45f4-8270-35d70d36bdcd
2008-06-26 20:29:56 +00:00
Patrick Ohly 761756d566 MemoToo prefers vCard 2.1 over 3.0
git-svn-id: https://zeitsenke.de/svn/SyncEvolution/trunk@635 15ad00c4-1369-45f4-8270-35d70d36bdcd
2008-06-26 20:24:28 +00:00
Patrick Ohly ba9f3d05a0 rename SyncEvolution's copy of the libecal timezone functions
Currently the functions are identical, but at some point
they might diverge. Avoid conflicts by using different
names.


git-svn-id: https://zeitsenke.de/svn/SyncEvolution/trunk@634 15ad00c4-1369-45f4-8270-35d70d36bdcd
2008-06-25 20:32:49 +00:00
Patrick Ohly 9d4a6cb369 removed obsolete example config files
git-svn-id: https://zeitsenke.de/svn/SyncEvolution/trunk@633 15ad00c4-1369-45f4-8270-35d70d36bdcd
2008-06-25 20:11:27 +00:00
Patrick Ohly dd248f6a9e adapted to the official include flags (posix before common)
git-svn-id: https://zeitsenke.de/svn/SyncEvolution/trunk@632 15ad00c4-1369-45f4-8270-35d70d36bdcd
2008-06-25 20:10:51 +00:00
Patrick Ohly 4ffdf7a97e added synchronization of Evolution memo summary
Most devices only synchronize plain text and do
not have a separate summary field. Such an extra
summary field was added to Evolution after memo
support was initially implemented in SyncEvolution,
therefore SyncEvolution did not transmit that field.

Added transmitting the summary by inserting it
as first line of the plain text blob *if* it is
not already identical with the first line. When
receiving a memo, the summary is set from the first
line *without* removing the first line because
the first line might have been used as a normal
part of the memo.


git-svn-id: https://zeitsenke.de/svn/SyncEvolution/trunk@631 15ad00c4-1369-45f4-8270-35d70d36bdcd
2008-06-25 19:54:55 +00:00
Patrick Ohly e00c12f7ab removed --properties option: not implemented yet
git-svn-id: https://zeitsenke.de/svn/SyncEvolution/trunk@630 15ad00c4-1369-45f4-8270-35d70d36bdcd
2008-06-25 19:29:05 +00:00
Patrick Ohly 1a8f73ab6e added MemoToo server template
git-svn-id: https://zeitsenke.de/svn/SyncEvolution/trunk@629 15ad00c4-1369-45f4-8270-35d70d36bdcd
2008-06-25 18:51:33 +00:00
Patrick Ohly 880202e609 fixed typo (evolution-todo -> evolution-tasks)
git-svn-id: https://zeitsenke.de/svn/SyncEvolution/trunk@628 15ad00c4-1369-45f4-8270-35d70d36bdcd
2008-06-25 18:51:07 +00:00
Patrick Ohly daf952c893 made detached recurrence handling more resilient
Child items can now be inserted without the
corresponding parent or before the parent.
Semantically this makes no sense, but servers
which do not know about the semantic might do
it. Also removing the parent without the children
is now supported.

Technically this has to workaround limitations of
the EDS API and is done as:
* child before parent: temporarily save and remove children, insert parent, update parent with children
* remove parent, but not child: temporarily save and remove children, reinsert after removal of parent



git-svn-id: https://zeitsenke.de/svn/SyncEvolution/trunk@627 15ad00c4-1369-45f4-8270-35d70d36bdcd
2008-06-25 17:21:48 +00:00
Patrick Ohly 879364dc10 regression in 0.8 alpha 1: setting sync mode during status query or sync affected *all* sources, even the disabled ones
The intented behavior is that inactive sources can only be activated
by listing them explicitly after the server name. Fixed by moving
the handling of the sync mode override from the generic config
handling to EvolutionSyncClient, which knows about this special
semantic.

Minor code cleanup: avoid duplicating the "sync" string by
declaring the syncSourceProp as member of EvolutionSyncSourceConfig.


git-svn-id: https://zeitsenke.de/svn/SyncEvolution/trunk@626 15ad00c4-1369-45f4-8270-35d70d36bdcd
2008-06-15 21:31:36 +00:00
Patrick Ohly f234837607 addressed Chenthill's code review comments #49 and #50
- copyright transfer
- API documentation moved to .c file and reformatted
- simplified iterating over TZID parameter
- removed g_assert

Also implemented out-of-memory error handling. If allocating
a GError fails, the process is aborted by calling g_error().


git-svn-id: https://zeitsenke.de/svn/SyncEvolution/trunk@625 15ad00c4-1369-45f4-8270-35d70d36bdcd
2008-06-12 19:52:45 +00:00
Patrick Ohly db5f10daad scheduleworld config template: calendar was using 'event2' instead of the correct 'cal2' URI
git-svn-id: https://zeitsenke.de/svn/SyncEvolution/trunk@624 15ad00c4-1369-45f4-8270-35d70d36bdcd
2008-06-12 18:55:01 +00:00
Patrick Ohly a0be00e2ae fixed segfaults for certain data
SyncEvolution contained code which calls the LOG macros
with a pointer to a string buffer (LOG.debug(data))
which used to be okay when those calls dumped the data
verbatim, but now can segfault since printf
style formatting was added. Now LOG.debug("%s", data) is used.


git-svn-id: https://zeitsenke.de/svn/SyncEvolution/trunk@623 15ad00c4-1369-45f4-8270-35d70d36bdcd
2008-06-12 18:47:55 +00:00
Patrick Ohly a37733c1fb fixed compile error
git-svn-id: https://zeitsenke.de/svn/SyncEvolution/trunk@622 15ad00c4-1369-45f4-8270-35d70d36bdcd
2008-06-12 18:43:47 +00:00
Patrick Ohly 6c55dc24dd removed/replaced 'calendar' string from message in libecal backend because it is also used for memos and tasks
git-svn-id: https://zeitsenke.de/svn/SyncEvolution/trunk@621 15ad00c4-1369-45f4-8270-35d70d36bdcd
2008-06-12 16:39:07 +00:00
Patrick Ohly 735a54cd33 fixed modifying parent/child (=detached) calendar items
- must track which items exist locally because
  asking for a detached recurrence succeeds even if
  the object doesn't exist yet; also reduces communication
  with backend
- new child items must be created via e_cal_modify_object()
- log adding new items with extracted UID/RECURRENCE-ID
- sort item lists so that parent items are processed
  first (required by ScheduleWorld)

More work is needed to handle semantically not quite
correct situations, like adding a child without a parent.


git-svn-id: https://zeitsenke.de/svn/SyncEvolution/trunk@620 15ad00c4-1369-45f4-8270-35d70d36bdcd
2008-06-08 12:10:04 +00:00