Sending again due to wrong author email in the previous patch.
On Fri, Aug 5, 2011 at 11:03 AM, Dumez, Christophe
<christophe.dumez(a)intel.com> wrote:
Hi,
Please find attached a patch for SyncEvolution bringing support for
the new EBookClient API present in EDS 3.2.
***
Support for the new EBookClient API in EDS 3.2
SyncEvolution EDS backend currently uses the EBook API which is
deprecated as of EDS v3.2 and replaced by the new EBookClient API.
This patch brings support for this new EBookClient API (when EDS
3.2 is detected at compile time).
The new code based on the EBookClient API enables a few
optimizations, especially the partial fetching of contacts to
avoid useless DBus trafic. This results in better contact change
tracking by fetching only the UID/REV attributes for each contact.
Note: The new code uses the new GLibSupport header instead of the
deprecated SmartPointer (eptr).
***
Note that this patch only alters the contacts code (I think the
calendar code should be handled in a separate patch). I also haven't
optimized the EvolutionContactSource::isEmpty() yet and I'm planning
to send another patch for this (the idea would be to use a view, ask
only for the UIDs and stop the view as soon as we get a objectsAdded
signal, this way we don't fetch the whole contacts and hopefully we
don't even fetch all the UIDs, just the first burst).
I'm awaiting review for this patch and for the
EvolutionContactSource::isEmpty() change proposal before I move onto
the next tasks.
Kr,
--
Dr. Christophe Dumez
Linux Software Engineer
Intel Finland Oy - Open Source Technology Center
--
Dr. Christophe Dumez
Linux Software Engineer
Intel Finland Oy - Open Source Technology Center