Commit Graph

13 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 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 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 fb69c3642e make results from insertItem explicit by putting them all in one struct
git-svn-id: https://zeitsenke.de/svn/SyncEvolution/trunk@576 15ad00c4-1369-45f4-8270-35d70d36bdcd
2008-04-07 18:38:25 +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 c050e4f828 SQLiteContactSource now mentions the file:/// access to databases
git-svn-id: https://zeitsenke.de/svn/SyncEvolution/trunk@523 15ad00c4-1369-45f4-8270-35d70d36bdcd
2008-03-19 10:08:16 +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 491b22556c typo: mime-type must not include version (only matters for Synthesis at the moment)
git-svn-id: https://zeitsenke.de/svn/SyncEvolution/trunk@497 15ad00c4-1369-45f4-8270-35d70d36bdcd
2008-02-03 11:17:21 +00:00
Patrick Ohly ed04af7076 turned SQLiteContactSource into a better example sync source
- simplified the database schema by removing unused tables
- added more per-contact properties missing in the original Apple schema
- added comments
- implemented storing of properties with 1:1 mapping to columns in database
- simplified the test cases used for sqlite

Client::Source::sqlite passes now. Client::Sync::sqlite still had some issues,
partly network timeouts due to load on the server, partly problems in the client (?).


git-svn-id: https://zeitsenke.de/svn/SyncEvolution/trunk@496 15ad00c4-1369-45f4-8270-35d70d36bdcd
2008-02-02 21:40:42 +00:00
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 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 420afaf14b Replaced "is a" SQLiteSyncSource with "has a" SQLiteUtil instance in SQLiteContactSource.
This is a first step towards deriving SQLiteContactSource from a sync source base
class which does change tracking.


git-svn-id: https://zeitsenke.de/svn/SyncEvolution/trunk@483 15ad00c4-1369-45f4-8270-35d70d36bdcd
2008-01-12 23:22:43 +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